/* AM Banner Promozionale — styles deliberately scoped to the plugin. */
.ampb-banner,
.ampb-banner *,
.ampb-banner *::before,
.ampb-banner *::after {
  box-sizing: border-box;
}

.ampb-banner[hidden],
.ampb-banner [hidden],
#ampb-spacer[hidden] {
  display: none !important;
}

.ampb-banner {
  --ampb-background: linear-gradient(110deg, #141517, #302426);
  --ampb-bottom-offset: 0px;
  --ampb-padding-x: 24px;
  --ampb-padding-y: 14px;
  --ampb-gap: 4px;
  --ampb-close-space: 0px;
  --ampb-safe-bottom: 0px;
  --ampb-safe-left: 0px;
  --ampb-safe-right: 0px;
  --ampb-viewport-height: 100vh;
  position: fixed;
  inset: auto 0 var(--ampb-bottom-offset) 0;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: calc(var(--ampb-viewport-height) - var(--ampb-bottom-offset) - 16px);
  margin: 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  z-index: var(--ampb-z-index, 9990);
  border: 0;
  border-top: var(--ampb-border-width, 1px) solid var(--ampb-border-color, #f56365);
  border-radius: 0;
  background: var(--ampb-background);
  box-shadow: var(--ampb-shadow, 0 -6px 28px rgb(0 0 0 / 20%));
  color: #fff;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0;
  transform: translate3d(0, calc(100% + var(--ampb-bottom-offset) + 16px), 0);
  transition: transform var(--ampb-duration, 450ms) cubic-bezier(.22, 1, .36, 1),
    opacity var(--ampb-duration, 450ms) ease;
}

@supports (height: 100dvh) {
  .ampb-banner {
    --ampb-viewport-height: 100dvh;
  }
}

.ampb-banner.ampb-banner--preview {
  position: absolute;
}

.ampb-banner.ampb-banner--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ampb-banner.ampb-banner--closable {
  --ampb-close-space: max(0px, calc(52px - var(--ampb-padding-x)));
}

.ampb-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  content: "";
  border: 0;
  border-radius: inherit;
  background-image: var(--ampb-pattern-image, none);
  background-position: center;
  background-size: var(--ampb-pattern-size, 16px 16px);
  background-repeat: var(--ampb-pattern-repeat, repeat);
  opacity: var(--ampb-pattern-opacity, .05);
  pointer-events: none;
}

.ampb-banner a.ampb-banner__link,
.ampb-banner a.ampb-banner__link:visited,
.ampb-banner a.ampb-banner__link:hover,
.ampb-banner a.ampb-banner__link:active {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  gap: var(--ampb-gap);
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 60px;
  max-height: calc(var(--ampb-viewport-height) - var(--ampb-bottom-offset) - var(--ampb-border-width, 1px) - 16px);
  margin: 0;
  padding: var(--ampb-padding-y)
    calc(var(--ampb-padding-x) + var(--ampb-close-space) + var(--ampb-safe-right))
    calc(var(--ampb-padding-y) + var(--ampb-safe-bottom))
    calc(var(--ampb-padding-x) + var(--ampb-close-space) + var(--ampb-safe-left));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  cursor: pointer;
  -webkit-tap-highlight-color: rgb(255 255 255 / 12%);
}

.ampb-banner .ampb-banner__line {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: min(100%, var(--ampb-content-width, 1200px));
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.ampb-banner .ampb-banner__line--1 {
  color: var(--ampb-line1-color, #fff);
  font-family: var(--ampb-line1-font, inherit);
  font-size: var(--ampb-line1-size, 2rem);
  font-style: var(--ampb-line1-style, normal);
  font-weight: var(--ampb-line1-weight, 700);
  line-height: var(--ampb-line1-height, 1.2);
  letter-spacing: var(--ampb-line1-spacing, 0);
  text-transform: var(--ampb-line1-transform, none);
}

.ampb-banner .ampb-banner__line--2 {
  color: var(--ampb-line2-color, #f56365);
  font-family: var(--ampb-line2-font, inherit);
  font-size: var(--ampb-line2-size, 1.25rem);
  font-style: var(--ampb-line2-style, normal);
  font-weight: var(--ampb-line2-weight, 600);
  line-height: var(--ampb-line2-height, 1.35);
  letter-spacing: var(--ampb-line2-spacing, 0);
  text-transform: var(--ampb-line2-transform, none);
}

.ampb-banner button.ampb-banner__close {
  position: absolute;
  top: calc((100% - var(--ampb-safe-bottom)) / 2);
  right: calc(4px + var(--ampb-safe-right));
  bottom: auto;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: #25282d;
  box-shadow: none;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ampb-banner button.ampb-banner__close:hover {
  background: #3c424a;
}

.ampb-banner a.ampb-banner__link:focus-visible,
.ampb-banner button.ampb-banner__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px #111;
}

.ampb-banner .ampb-banner__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

#ampb-spacer {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ampb-banner {
    transition: none !important;
    transform: none !important;
  }
}

.ampb-banner[data-ampb-reduced-motion="true"] {
  transition: none !important;
  transform: none !important;
}

@media print {
  .ampb-banner,
  #ampb-spacer {
    display: none !important;
  }
}
