:root {
  --bn-bg: #1e1e1e;
  --bn-panel: #343434;
  --bn-panel-soft: #292929;
  --bn-line: rgba(255, 255, 255, 0.48);
  --bn-text: #f7f5ef;
  --bn-muted: #b8b5ae;
  --bn-accent: #d6a52b;
  --bn-radius: 15px;
  --bn-shell: 1260px;
}

/* Neutralizza esclusivamente il layout contenuti di Astra sulla pagina prodotto. */
body.single-product .site-content,
body.single-product .site-content > .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product #primary.bn-product {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product #secondary,
body.single-product .widget-area.secondary {
  display: none !important;
}

/* Header Astra: stessi contenuti del tema, resa scura come nel frame Figma. */
body.single-product .site-header,
body.single-product .ast-primary-header-bar,
body.single-product .main-header-bar {
  background: var(--bn-bg) !important;
  border-bottom-color: rgba(255, 255, 255, 0.16) !important;
}

body.single-product .ast-primary-header-bar .site-primary-header-wrap {
  min-height: 98px;
}

body.single-product .main-header-menu > .menu-item > .menu-link {
  color: var(--bn-text) !important;
}

body.single-product .main-header-menu > .current-menu-item > .menu-link,
body.single-product .main-header-menu > .menu-item > .menu-link:hover {
  color: var(--bn-accent) !important;
}

body.single-product .bn-product {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--bn-bg);
  color: var(--bn-text);
  overflow: visible;
  isolation: auto;
}

body.single-product {
  overflow-x: clip;
}

.bn-product *,
.bn-product *::before,
.bn-product *::after {
  box-sizing: border-box;
}

.bn-product h1,
.bn-product h2,
.bn-product p,
.bn-product dl,
.bn-product dd {
  margin-top: 0;
}

.bn-product .woocommerce-notices-wrapper:empty {
  display: none;
}

.bn-product__marquee {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(210px, 19vw, 330px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid var(--bn-line);
  overflow: hidden;
}

.bn-product__marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bn-bg), transparent 8%, transparent 92%, var(--bn-bg)),
    radial-gradient(circle at 20% 54%, rgba(255, 255, 255, 0.06), transparent 30%);
}

.bn-product__marquee-track {
  display: flex;
  align-items: center;
  gap: 0.62em;
  width: max-content;
  min-width: max-content;
  animation: bn-marquee 28s linear infinite;
  will-change: transform;
}

.bn-product__marquee-track span {
  flex: 0 0 auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.18);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.66);
  font-family: inherit;
  font-size: clamp(92px, 10vw, 176px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bn-product__marquee-track span:nth-child(4n + 1) {
  color: var(--bn-text);
  -webkit-text-stroke: 0;
}

.bn-product__shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--bn-shell));
  margin: 0 auto;
  padding: clamp(34px, 4vw, 70px) 0 clamp(80px, 10vw, 150px);
}

.bn-product__commerce {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}

.bn-product__details-column {
  min-width: 0;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: clamp(28px, 4vw, 54px);
  align-content: start;
}

.bn-product__visual-slot {
  position: relative;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}

.bn-product__visual-column,
.bn-product__media {
  min-width: 0;
}

.bn-product__visual-column {
  position: relative;
  top: auto;
  align-self: start;
  z-index: 4;
  display: grid;
  gap: 22px;
}

.bn-product__visual-column.bn-product__visual-column--pinned {
  --bn-visual-fixed-top: 400px;
  position: fixed;
  top: var(--bn-visual-fixed-top);
  left: var(--bn-visual-fixed-left);
  width: var(--bn-visual-fixed-width);
  margin-top: 0 !important;
  transform: translate3d(0, var(--bn-visual-release-shift, 0), 0);
  will-change: transform;
}

.bn-product__media {
  position: relative;
  z-index: 5;
}

.bn-product__media--cutout {
  margin-top: clamp(-225px, -13vw, -145px);
}

.bn-product__media .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.bn-product__media .woocommerce-product-gallery__wrapper {
  margin: 0;
}

/* Nel dettaglio prodotto viene mostrata esclusivamente l'immagine principale/variante. */
.bn-product__media .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child),
.bn-product__media .flex-control-thumbs {
  display: none !important;
}

.bn-product__media--cutout .flex-viewport,
.bn-product__media--cutout .woocommerce-product-gallery__wrapper,
.bn-product__media--cutout .woocommerce-product-gallery__image {
  overflow: visible !important;
}

.bn-product__media .woocommerce-product-gallery__image {
  display: grid !important;
  min-height: 500px;
  place-items: center;
  cursor: default !important;
  pointer-events: none !important;
}

.bn-product__media .woocommerce-product-gallery__image img {
  display: block !important;
  width: min(100%, 430px) !important;
  height: auto !important;
  max-height: 560px !important;
  margin: 0 auto !important;
  object-fit: contain;
  box-shadow: none !important;
  filter: none !important;
  transition: none !important;
}

.bn-product__media .woocommerce-product-gallery__image:hover img,
.bn-product__media .woocommerce-product-gallery__image:focus-within img {
  transform: none !important;
}

.bn-product__media--cutout .woocommerce-product-gallery__image {
  min-height: 620px;
}

.bn-product__media--cutout .woocommerce-product-gallery__image img {
  max-width: none !important;
  transform: scale(1.45) !important;
  transform-origin: center 52%;
}

.bn-product__media--cutout .woocommerce-product-gallery__image:hover img,
.bn-product__media--cutout .woocommerce-product-gallery__image:focus-within img {
  transform: scale(1.45) !important;
}

.bn-product__media .zoomImg {
  display: none !important;
}

.bn-product__media .woocommerce-product-gallery__trigger {
  display: none !important;
}

.bn-product__media .flex-control-thumbs {
  gap: 10px;
  padding: 0;
  margin: 18px 0 0 !important;
  list-style: none;
}

.bn-product__media .flex-control-thumbs li {
  float: none !important;
  width: 68px !important;
}

.bn-product__media .flex-control-thumbs img {
  border: 1px solid var(--bn-line);
  border-radius: 6px;
}

.bn-product__quick-card,
.bn-product__buy-card,
.bn-product__specs,
.bn-product__pairing {
  border: 1px solid var(--bn-line);
  border-radius: var(--bn-radius);
  background: var(--bn-panel-soft);
}

.bn-product__quick-card {
  position: relative;
  z-index: 6;
  padding: 22px 24px 18px;
}

.bn-product__mobile-variations-mount {
  display: block;
  margin: 0 0 16px;
}

.bn-product__mobile-variations-mount .bn-product__cart {
  width: 100%;
}

.bn-product__mobile-variations-mount .variations {
  margin-bottom: 12px !important;
}

.bn-product__options-heading,
.bn-product__buy-card > .bn-product__format {
  display: none;
}

.bn-product__buy-card {
  margin: 34px 0 0;
  padding: clamp(28px, 3vw, 46px);
}

.bn-product__details-column .bn-product__pairing {
  margin-top: 0;
}

.bn-product__buy-card > h2 {
  margin-bottom: 18px;
  color: var(--bn-accent);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.bn-product__intro {
  margin-bottom: 28px;
}

.bn-product__buy-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 14px;
}

.bn-product__title {
  margin-bottom: 0;
  color: var(--bn-text);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}

.bn-product__price,
.bn-product__price .price {
  margin: 0;
  color: var(--bn-text) !important;
  font-size: clamp(16px, 1.8vw, 22px) !important;
  white-space: nowrap;
}

/* Stato acquistabile in ordine arretrato. */
.bn-product__backorder-badge {
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  margin: 2px 0 18px;
  padding: 9px 13px 9px 38px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(214, 165, 43, 0.72);
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(214, 165, 43, 0.18), rgba(214, 165, 43, 0.06));
  color: #f6d982;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.bn-product__backorder-badge[hidden] {
  display: none !important;
}

.bn-product__backorder-badge::before {
  position: absolute;
  left: 15px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bn-bg);
  border-radius: 50%;
  background: var(--bn-accent);
  box-shadow: 0 0 0 5px rgba(214, 165, 43, 0.16);
  content: "";
}

.bn-product__backorder-badge:hover,
.bn-product__backorder-badge:focus-visible {
  border-color: #f6d982;
  background: rgba(214, 165, 43, 0.24);
  color: #fff4cf;
  outline: none;
  transform: translateY(-1px);
}

.bn-product__backorder-badge:active,
.bn-product__backorder-badge.is-active,
.bn-product__backorder-badge[aria-expanded="true"] {
  border-color: #f5f1e8 !important;
  background: #f5f1e8 !important;
  color: #181818 !important;
  transform: translateY(0);
}

.bn-product__backorder-badge:active::before,
.bn-product__backorder-badge.is-active::before,
.bn-product__backorder-badge[aria-expanded="true"]::before {
  border-color: #f5f1e8;
  background: #b87a10;
}

.bn-product__backorder-badge:active .bn-product__backorder-badge-copy small,
.bn-product__backorder-badge.is-active .bn-product__backorder-badge-copy small,
.bn-product__backorder-badge[aria-expanded="true"] .bn-product__backorder-badge-copy small {
  color: rgba(24, 24, 24, 0.68);
}

.bn-product__backorder-badge-copy {
  display: grid;
  gap: 1px;
}

.bn-product__backorder-badge-copy strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.bn-product__backorder-badge-copy small {
  color: var(--bn-muted);
  font-size: 11px;
  line-height: 1.3;
}

.bn-product__backorder-badge-arrow {
  font-size: 18px;
  line-height: 1;
}

.bn-product--backorder .single_variation .stock.available-on-backorder,
.bn-product--backorder .stock.available-on-backorder {
  display: none !important;
}

body.bn-backorder-modal-open {
  overflow: hidden !important;
}

.bn-backorder-modal,
.bn-backorder-modal * {
  box-sizing: border-box;
}

.bn-backorder-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  padding: 24px;
  place-items: center;
  color: var(--bn-text);
}

.bn-backorder-modal[hidden] {
  display: none !important;
}

.bn-backorder-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.76);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 200ms ease;
}

.bn-backorder-modal__dialog {
  position: relative;
  width: min(100%, 660px);
  max-height: calc(100dvh - 48px);
  padding: clamp(28px, 5vw, 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(214, 165, 43, 0.16), transparent 28%),
    #242424;
  opacity: 0;
  outline: none;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
  transform: translateY(18px) scale(0.975);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.2, 0.72, 0.28, 1);
}

.bn-backorder-modal__dialog::before {
  position: absolute;
  top: 0;
  right: 48px;
  left: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bn-accent), transparent);
  content: "";
}

.bn-backorder-modal.is-open .bn-backorder-modal__backdrop,
.bn-backorder-modal.is-open .bn-backorder-modal__dialog {
  opacity: 1;
}

.bn-backorder-modal.is-open .bn-backorder-modal__dialog {
  transform: translateY(0) scale(1);
}

.bn-backorder-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--bn-text);
  box-shadow: none;
  cursor: pointer;
}

.bn-backorder-modal__close span {
  display: block;
  height: 20px;
  font-size: 25px;
  font-weight: 300;
  line-height: 17px;
}

.bn-backorder-modal__close:hover,
.bn-backorder-modal__close:focus-visible {
  border-color: var(--bn-accent);
  background: var(--bn-accent);
  color: #17120a;
  outline: none;
}

.bn-backorder-modal__eyebrow {
  display: block;
  margin: 0 52px 10px 0;
  color: var(--bn-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bn-backorder-modal h2 {
  max-width: 540px;
  margin: 0 52px 14px 0;
  color: var(--bn-text);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.bn-backorder-modal__lead {
  max-width: 570px;
  margin: 0 0 22px;
  color: var(--bn-muted);
  font-size: 14px;
  line-height: 1.65;
}

.bn-backorder-modal__selection {
  display: flex;
  margin-bottom: 24px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(214, 165, 43, 0.38);
  border-radius: 10px;
  background: rgba(214, 165, 43, 0.09);
}

.bn-backorder-modal__selection > span {
  color: var(--bn-muted);
  font-size: 12px;
}

.bn-backorder-modal__selection strong {
  color: #f6d982;
  font-size: 13px;
  text-align: right;
}

.bn-backorder-modal__steps {
  display: grid;
  margin: 0 0 24px;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  list-style: none;
}

.bn-backorder-modal__steps li {
  position: relative;
  display: grid;
  min-height: 122px;
  padding: 15px;
  align-content: start;
  gap: 4px;
  background: #292929;
}

.bn-backorder-modal__steps li > span {
  margin-bottom: 9px;
  color: var(--bn-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bn-backorder-modal__steps strong {
  color: var(--bn-text);
  font-size: 13px;
  line-height: 1.3;
}

.bn-backorder-modal__steps small {
  color: var(--bn-muted);
  font-size: 11px;
  line-height: 1.45;
}

.bn-backorder-modal__note {
  margin-bottom: 22px;
  padding-left: 15px;
  border-left: 2px solid var(--bn-accent);
}

.bn-backorder-modal__note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bn-text);
  font-size: 14px;
}

.bn-backorder-modal__note p {
  margin: 0;
  color: var(--bn-muted);
  font-size: 12px;
  line-height: 1.55;
}

.bn-backorder-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.bn-backorder-modal__whatsapp,
.bn-backorder-modal__continue {
  display: inline-flex;
  min-height: 50px;
  padding: 11px 17px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.bn-backorder-modal__whatsapp {
  border: 1px solid #fff;
  background: #fff;
  color: #181818 !important;
}

.bn-backorder-modal__whatsapp:hover,
.bn-backorder-modal__whatsapp:focus-visible {
  border-color: var(--bn-accent);
  background: var(--bn-accent);
  color: #17120a !important;
  outline: none;
}

.bn-backorder-modal__continue {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--bn-text);
  box-shadow: none;
}

.bn-backorder-modal__continue:hover,
.bn-backorder-modal__continue:focus-visible {
  border-color: var(--bn-text);
  background: rgba(255, 255, 255, 0.08);
  color: var(--bn-text);
  outline: none;
}

.bn-product__quick-actions {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 12px;
}

.bn-product__quick-quantity {
  display: grid;
  grid-template-columns: 38px minmax(38px, 1fr) 38px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--bn-line);
  border-radius: 3px;
  background: #191919;
}

.bn-product__quick-quantity button,
.bn-product__quick-quantity input {
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bn-text);
  font: inherit;
  text-align: center;
}

.bn-product__quick-quantity button {
  cursor: pointer;
  font-size: 20px;
}

.bn-product__quick-quantity button:hover,
.bn-product__quick-quantity button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.bn-product__quick-quantity input {
  width: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  appearance: textfield;
  -moz-appearance: textfield;
}

.bn-product__quick-quantity input::-webkit-inner-spin-button,
.bn-product__quick-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.bn-product__quick-button,
.bn-product__cart .single_add_to_cart_button {
  width: 100% !important;
  min-height: 48px;
  border: 1px solid #fff !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #181818 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.bn-product__quick-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 18px !important;
  padding-left: 18px !important;
}

.bn-product__quick-button:hover,
.bn-product__quick-button:focus-visible,
.bn-product__cart .single_add_to_cart_button:hover,
.bn-product__cart .single_add_to_cart_button:focus-visible {
  background: var(--bn-accent) !important;
  color: #17120a !important;
}

/* Il pulsante nativo resta nel DOM per invio, validazione e plugin WooCommerce,
   ma l'unico controllo visibile è quello nella colonna sinistra. */
.bn-product__cart .single_add_to_cart_button {
  display: none !important;
}

.bn-product__format,
.bn-product__cart-help {
  margin: 10px 0 0;
  color: var(--bn-muted);
  font-size: 11px;
  text-align: center;
}

.bn-product__eyebrow {
  margin-bottom: 14px;
  color: var(--bn-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bn-product__richtext,
.bn-product__richtext p,
.bn-product__richtext li {
  color: var(--bn-text);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.62;
}

.bn-product__richtext > :last-child {
  margin-bottom: 0;
}

.bn-product__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 26px 0;
  padding: 0 28px;
}

.bn-product__spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bn-line);
}

.bn-product__spec:nth-child(odd) {
  padding-right: 22px;
}

.bn-product__spec:nth-child(even) {
  padding-left: 22px;
}

.bn-product__spec dt {
  color: var(--bn-muted);
  font-size: 11px;
}

.bn-product__spec dd {
  margin-bottom: 0;
  color: var(--bn-text);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.bn-product__options-title {
  color: var(--bn-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.bn-product__cart form.cart {
  margin: 0 !important;
}

/* Scheda tecnica già iniettata dal codice ACF del tema attuale. */
.bn-product .beer-specs {
  width: 100%;
  margin: 0 0 22px;
}

.bn-product .beer-specs__item {
  border-color: #fff !important;
}

.bn-product .beer-specs__color-bar {
  background: var(
    --beer-gradient,
    linear-gradient(90deg, #fff2a6 0%, #f1bd25 48%, #a96600 100%)
  );
}

.bn-product__cart .variations {
  width: 100%;
  margin: 0 0 14px !important;
  color: var(--bn-text);
  border-top: 3px double var(--bn-line);
  border-bottom: 1px solid var(--bn-line);
}

.bn-product__cart .variations th,
.bn-product__cart .variations td {
  display: block;
  width: 100%;
  padding: 12px 0 8px !important;
  text-align: left;
}

.bn-product__cart .variable-items-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bn-product__cart .variable-item {
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  border: 1px solid var(--bn-line) !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: var(--bn-text) !important;
  box-shadow: none !important;
}

.bn-product__cart .variable-item.selected {
  border-color: #fff !important;
  background: #fff !important;
  color: #181818 !important;
}

.bn-product__cart select,
.bn-product__cart input.qty {
  min-height: 44px;
  border: 1px solid var(--bn-line);
  border-radius: 4px;
  background: #191919;
  color: var(--bn-text);
}

.bn-product__cart .quantity {
  display: none !important;
}

.bn-product__cart .single_variation_wrap,
.bn-product__cart .woocommerce-variation-add-to-cart {
  width: 100%;
}

.bn-product__cart .single_variation_wrap .woocommerce-variation-price {
  display: none !important;
}

.bn-product__cart .reset_variations {
  color: var(--bn-muted);
  font-size: 11px;
}

/* Notifica WooCommerce: toast coerente con la pagina prodotto. */
.bn-product .woocommerce-message {
  position: fixed;
  top: 118px;
  right: 24px;
  z-index: 2147483647;
  width: min(420px, calc(100vw - 32px));
  min-height: 76px;
  margin: 0 !important;
  padding: 20px 22px 20px 62px !important;
  overflow: hidden;
  border: 1px solid rgba(214, 165, 43, 0.75) !important;
  border-radius: 12px;
  background: rgba(41, 41, 41, 0.98) !important;
  color: var(--bn-text) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  line-height: 1.45;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 260ms ease, transform 260ms ease;
  backdrop-filter: blur(12px);
}

.bn-product .woocommerce-message::before {
  content: "✓";
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--bn-accent);
  color: #17120a;
  font-size: 16px;
  font-weight: 900;
}

.bn-product .woocommerce-message::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bn-accent);
  transform-origin: left center;
  animation: bn-notice-timer 4.8s linear forwards;
}

.bn-product .woocommerce-message .button {
  float: none !important;
  display: inline-flex;
  align-items: center;
  margin: 10px 0 0 !important;
  padding: 7px 11px !important;
  border: 1px solid var(--bn-line) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--bn-text) !important;
  font-size: 11px !important;
  text-transform: uppercase;
}

.bn-product .woocommerce-message.bn-notice--hiding {
  opacity: 0;
  transform: translate3d(24px, 0, 0);
}

@keyframes bn-notice-timer {
  to {
    transform: scaleX(0);
  }
}

.bn-product__pairing {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(72px, 9vw, 130px);
  overflow: hidden;
}

.bn-product__pairing.has-image {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
}

.bn-product__pairing-image {
  min-height: 430px;
}

.bn-product__pairing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bn-product__pairing-copy {
  align-self: center;
  padding: clamp(30px, 4vw, 54px);
}

.bn-product__pairing h2 {
  margin-bottom: 20px;
  color: var(--bn-accent);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.bn-product .woocommerce-notices-wrapper {
  width: min(calc(100% - 64px), var(--bn-shell));
  margin: 0 auto;
  padding-top: 20px;
}

@keyframes bn-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 980px) {
  .bn-product__commerce {
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: 34px;
  }

  .bn-product__shell {
    width: min(calc(100% - 36px), var(--bn-shell));
  }
}

@media (max-width: 780px) {
  body.single-product .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 72px;
  }

  .bn-product__marquee {
    min-height: 150px;
  }

  .bn-product__marquee-track span {
    font-size: 76px;
  }

  .bn-product__shell {
    width: min(calc(100% - 28px), var(--bn-shell));
    padding-top: 26px;
  }

  .bn-product__commerce,
  .bn-product__pairing.has-image {
    grid-template-columns: 1fr;
  }

  .bn-product__details-column {
    display: grid;
    grid-column: 1;
    grid-row: auto;
  }

  .bn-product__visual-slot {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    min-height: 0 !important;
  }

  .bn-product__visual-column {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    transform: none;
    will-change: auto;
  }

  .bn-product__visual-column {
    gap: 14px;
  }

  .bn-product__media--cutout {
    margin-top: -120px;
  }

  .bn-product__media--cutout .woocommerce-product-gallery__image {
    min-height: 520px;
  }

  .bn-product__media--cutout .woocommerce-product-gallery__image img {
    transform: scale(1.55) !important;
  }

  .bn-product__media--cutout .woocommerce-product-gallery__image:hover img,
  .bn-product__media--cutout .woocommerce-product-gallery__image:focus-within img {
    transform: scale(1.55) !important;
  }

  .bn-product__media .woocommerce-product-gallery__image {
    min-height: 420px;
  }

  .bn-product__media .woocommerce-product-gallery__image img {
    max-height: 470px !important;
  }

  .bn-product__buy-card {
    margin-top: 0;
  }

  .bn-product__mobile-variations-mount {
    display: block;
    margin: 0 0 16px;
  }

  .bn-product__mobile-variations-mount .bn-product__cart {
    width: 100%;
  }

  .bn-product__mobile-variations-mount .variations {
    margin-bottom: 12px !important;
  }

  .bn-product__options-heading,
  .bn-product__buy-card > .bn-product__format {
    display: none;
  }

  .bn-product__pairing {
    margin-top: 22px;
  }

  .bn-product__pairing-image {
    min-height: 330px;
  }
}

@media (max-width: 520px) {
  .bn-product__marquee {
    min-height: 124px;
  }

  .bn-product__marquee-track span {
    font-size: 64px;
  }

  .bn-product__shell {
    width: min(calc(100% - 24px), var(--bn-shell));
  }

  .bn-product__media .woocommerce-product-gallery__image {
    min-height: 370px;
  }

  .bn-product__quick-card,
  .bn-product__buy-card,
  .bn-product__specs,
  .bn-product__pairing {
    border-radius: 11px;
  }

  .bn-product__quick-card {
    padding: 18px;
  }

  .bn-product__quick-actions {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 8px;
  }

  .bn-product__quick-quantity {
    grid-template-columns: 34px minmax(34px, 1fr) 34px;
  }

  .bn-product__quick-button {
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 11px !important;
  }

  .bn-product .woocommerce-message {
    top: 86px;
    right: 16px;
  }

  .bn-product__buy-card {
    padding: 24px 20px;
  }

  .bn-product__specs {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .bn-product__spec:nth-child(odd),
  .bn-product__spec:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .bn-product__cart .variable-items-wrapper {
    gap: 8px;
  }

  .bn-product__price,
  .bn-product__price .price {
    font-size: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bn-product__marquee-track {
    animation: none;
  }

  .bn-product__quick-button,
  .bn-product__cart .single_add_to_cart_button {
    transition: none;
  }

  .bn-product .woocommerce-message::after {
    animation: none;
  }
}

/* =====================================================
   PERSONALIZZAZIONI LIVE INTEGRATE
   Origine: /wp-content/uploads/custom-css-js/149.css
   Recuperato il 16 luglio 2026.
   ===================================================== */

.bn-product__article {
  background-color: var(--bn-bg);
  background-image: url("https://birranobile.it/wp-content/uploads/2026/07/Background-Home-Birra-Nobile-scaled.webp");
  background-position: center;
  background-size: cover;
}

.postid-219 {
  --bn-accent: #fff;
}

.postid-219 .bn-product__article {
  background-color: #2f97d4;
  background-image: url("https://birranobile.it/wp-content/uploads/2026/07/Background-Ilen.webp");
}

.postid-227 {
  --bn-accent: #fff;
}

.postid-227 .bn-product__article {
  background-color: #aa146f;
  background-image: url("https://birranobile.it/wp-content/uploads/2026/07/Background-Ilen-Pale-Ale-Birra-Nobile.webp");
}

.postid-234 {
  --bn-accent: #fff;
}

.postid-234 .bn-product__article {
  background-color: #be1622;
  background-image: url("https://birranobile.it/wp-content/uploads/2026/07/Background-Ilen-Red-IPA-Birra-Nobile.webp");
}

.postid-219 .bn-product__marquee::before,
.postid-227 .bn-product__marquee::before,
.postid-234 .bn-product__marquee::before {
  background: none;
}

.bn-product__quick-card,
.bn-product__buy-card,
.bn-product__specs,
.bn-product__pairing {
  background: rgba(41, 41, 41, 0.76);
}

.postid-219 .bn-product__quick-card,
.postid-219 .bn-product__buy-card,
.postid-219 .bn-product__specs,
.postid-219 .bn-product__pairing,
.postid-227 .bn-product__quick-card,
.postid-227 .bn-product__buy-card,
.postid-227 .bn-product__specs,
.postid-227 .bn-product__pairing,
.postid-234 .bn-product__quick-card,
.postid-234 .bn-product__buy-card,
.postid-234 .bn-product__specs,
.postid-234 .bn-product__pairing {
  border-color: rgba(0, 0, 0, 0.52);
  background: rgba(0, 0, 0, 0.52);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(3px);
}

.postid-219 .bn-product__quick-quantity,
.postid-219 .bn-product__quick-actions .bn-product__quick-quantity input[type="number"],
.postid-227 .bn-product__quick-quantity,
.postid-227 .bn-product__quick-actions .bn-product__quick-quantity input[type="number"],
.postid-234 .bn-product__quick-quantity,
.postid-234 .bn-product__quick-actions .bn-product__quick-quantity input[type="number"] {
  background: #fff;
  color: #000;
}

.bn-product__visual-column {
  top: -130px;
}

.bn-product__media--cutout .woocommerce-product-gallery__image {
  top: -40px;
}

.bn-product__marquee-track {
  gap: 11em;
}

.bn-product__marquee-track span {
  color: #fff;
  font-weight: 300;
  -webkit-text-stroke: 0;
}

.bn-product__marquee-track span:nth-child(4n + 1) {
  font-weight: 800;
}

.bn-product__quick-actions .bn-product__quick-quantity input[type="number"] {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: #191919;
  color: #fff;
}

/* Scheda tecnica ACF. */
.beer-specs {
  width: 100%;
  color: #fff;
}

.beer-specs__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 15px;
}

.beer-specs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 50px;
  padding: 20px 32px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

.beer-specs__item:nth-child(-n + 2) {
  border-top: 2px solid rgba(255, 255, 255, 0.9);
}

.beer-specs__label {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.beer-specs__value {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.beer-specs__bottom {
  position: relative;
  margin-top: 0;
  padding: 24px 0 44px !important;
  border-top: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

.beer-specs__bottom::after {
  display: none !important;
  content: none !important;
}

.beer-specs__bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.beer-specs__item--no-border {
  min-height: auto;
  padding: 12px 0 30px;
  border: 0 !important;
}

.beer-specs__color-label {
  margin: 0;
  padding: 18px 0 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.beer-specs__color-bar {
  position: relative;
  width: 100%;
  height: 15px;
  margin-top: 8px;
  border-radius: 100px;
  background: var(--beer-gradient);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.beer-specs--bionda {
  --beer-gradient: linear-gradient(90deg, #fff2a3 0%, #f4cc4f 45%, #b97815 100%);
}

.beer-specs--ambrata {
  --beer-gradient: linear-gradient(90deg, #ffda74 0%, #c88b3a 48%, #562015 100%);
}

.beer-specs--rossa {
  --beer-gradient: linear-gradient(90deg, #f4c66f 0%, #b75a32 48%, #471313 100%);
}

.beer-specs--bruna {
  --beer-gradient: linear-gradient(90deg, #d29a5c 0%, #784327 48%, #281412 100%);
}

.beer-specs--scura {
  --beer-gradient: linear-gradient(90deg, #9b7252 0%, #493126 48%, #090706 100%);
}

.beer-specs__marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(16px, var(--beer-position), calc(100% - 16px));
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--beer-color, transparent);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  transition: left 240ms ease, background-color 240ms ease;
}

/* Variazioni WooCommerce + Variation Swatches. */
.single-product form.variations_form table.variations {
  display: block !important;
  width: 100% !important;
  margin: 15px 0 20px !important;
  padding: 30px 0 !important;
  border-top: 1px solid #fff !important;
  border-right: 0 !important;
  border-bottom: 1px solid #fff !important;
  border-left: 0 !important;
  border-collapse: initial !important;
  color: #fff;
}

.single-product form.variations_form table.variations tbody,
.single-product form.variations_form table.variations tr,
.single-product form.variations_form table.variations th.label,
.single-product form.variations_form table.variations td.value {
  display: block !important;
  width: 100% !important;
}

.single-product table.variations th.label {
  padding: 0 0 15px !important;
  border: 0 !important;
  text-align: left !important;
}

.single-product table.variations th.label label {
  display: block;
  margin: 0 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.2;
}

.single-product table.variations th.label label::after {
  content: " *";
}

.single-product .woo-selected-variation-item-name,
.single-product table.variations .reset_variations {
  display: none !important;
}

.single-product table.variations td.value {
  padding: 0 !important;
  border: 0 !important;
}

.single-product .variable-items-wrapper.button-variable-items-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 26px;
}

.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item {
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 45px !important;
  min-height: 45px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid #fff !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.single-product .variable-items-wrapper .variable-item .variable-item-contents {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  padding: 12px 18px !important;
}

.single-product .variable-items-wrapper .variable-item .variable-item-span-button {
  color: inherit !important;
  font-size: 20px;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-align: center;
  white-space: nowrap;
}

.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item:not(.disabled):not(.selected):hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item.selected,
.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item[aria-checked="true"] {
  border-color: #fff !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: none !important;
  transform: none;
}

.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item.selected::after,
.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item[aria-checked="true"]::after,
.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item.disabled::before,
.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item.disabled::after {
  display: none !important;
}

.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item.disabled {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

.single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55) !important;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .single-product form.variations_form table.variations {
    padding: 34px 20px 40px !important;
  }

  .single-product .variable-items-wrapper.button-variable-items-wrapper {
    gap: 16px;
  }

  .single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item {
    height: 72px !important;
    min-height: 72px !important;
  }
}

@media (max-width: 700px) {
  .bn-product__media--cutout .woocommerce-product-gallery__image {
    top: -10px;
  }

  .beer-specs__top,
  .beer-specs__bottom-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .beer-specs__item {
    min-height: 80px;
    padding: 18px 16px;
  }

  .beer-specs__item:nth-child(2) {
    border-top: 0;
  }

  .beer-specs__bottom {
    padding: 20px 16px 38px;
  }

  .beer-specs__item--no-border {
    min-height: 60px;
    padding: 12px 0;
  }

  .beer-specs__color-label {
    padding: 20px 0 12px;
  }

  .beer-specs__color-bar {
    height: 24px;
    margin-top: 20px;
  }

  .beer-specs__marker {
    width: 38px;
    height: 38px;
    border-width: 4px;
  }
}

@media (max-width: 600px) {
  .bn-product__marquee-track {
    gap: 3em;
  }

  .single-product form.variations_form table.variations {
    margin-top: 15px !important;
    padding: 0 !important;
  }

  .single-product table.variations th.label {
    padding-bottom: 22px !important;
  }

  .single-product .variable-items-wrapper.button-variable-items-wrapper {
    gap: 8px;
  }

  .single-product .variable-items-wrapper.button-variable-items-wrapper .variable-item {
    height: 45px !important;
    min-height: 45px !important;
    border-width: 1px !important;
    border-radius: 12px !important;
  }

  .single-product .variable-items-wrapper .variable-item .variable-item-contents {
    padding: 8px 5px !important;
  }

  .single-product .variable-items-wrapper .variable-item .variable-item-span-button {
    font-size: clamp(13px, 4vw, 18px) !important;
    white-space: normal;
  }

  .bn-product__backorder-badge {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
  }

  .bn-backorder-modal {
    padding: 12px 0 0;
    place-items: end center;
  }

  .bn-backorder-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 30px 20px 22px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(36px);
  }

  .bn-backorder-modal__dialog::before {
    right: 20px;
    left: 20px;
  }

  .bn-backorder-modal__close {
    top: 14px;
    right: 14px;
  }

  .bn-backorder-modal h2 {
    margin-right: 38px;
    font-size: 34px;
  }

  .bn-backorder-modal__selection {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bn-backorder-modal__selection strong {
    text-align: left;
  }

  .bn-backorder-modal__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bn-backorder-modal__steps li {
    min-height: 0;
    padding: 13px 15px 13px 58px;
    grid-template-columns: 1fr;
  }

  .bn-backorder-modal__steps li > span {
    position: absolute;
    margin-left: -42px;
  }

  .bn-backorder-modal__actions {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (prefers-reduced-motion: reduce) {
  .bn-product__backorder-badge,
  .bn-backorder-modal__backdrop,
  .bn-backorder-modal__dialog {
    transition-duration: 0.01ms !important;
  }
}

/* Mantiene interamente visibili su mobile le immagini delle varianti più alte. */
@media (max-width: 780px) {
  /* Su mobile il gruppo Formato non usa separatori orizzontali. */
  body.single-product .bn-product form.variations_form table.variations {
    border-top: 0 !important;
    border-bottom: 0 !important;
  }

  body.single-product:has(.variable-item[data-value="75-cl"][aria-checked="true"]) .bn-product__visual-column,
  body.single-product:has(.variable-item[data-value="25-l"][aria-checked="true"]) .bn-product__visual-column {
    top: 0;
  }

  body.single-product:has(.variable-item[data-value="75-cl"][aria-checked="true"]) .bn-product__quick-card,
  body.single-product:has(.variable-item[data-value="25-l"][aria-checked="true"]) .bn-product__quick-card {
    margin-top: -30px;
  }

  body.single-product:has(.variable-item[data-value="75-cl"][aria-checked="true"]) .bn-product__media--cutout .woocommerce-product-gallery__image img,
  body.single-product:has(.variable-item[data-value="25-l"][aria-checked="true"]) .bn-product__media--cutout .woocommerce-product-gallery__image img,
  body.single-product:has(.variable-item[data-value="75-cl"][aria-checked="true"]) .bn-product__media--cutout .woocommerce-product-gallery__image:hover img,
  body.single-product:has(.variable-item[data-value="25-l"][aria-checked="true"]) .bn-product__media--cutout .woocommerce-product-gallery__image:hover img,
  body.single-product:has(.variable-item[data-value="75-cl"][aria-checked="true"]) .bn-product__media--cutout .woocommerce-product-gallery__image:focus-within img,
  body.single-product:has(.variable-item[data-value="25-l"][aria-checked="true"]) .bn-product__media--cutout .woocommerce-product-gallery__image:focus-within img {
    transform: scale(1.08) !important;
  }
}
