/* ============================================
   BLACKBAR PROMOZIONALE FATTE (fiere/eventi)
============================================ */

.fatte-blackbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  transition: transform 0.3s ease;
  background-color: #f7f7f9;
  box-sizing: border-box;
}

/* Classe per nascondere la blackbar allo scroll */
.fatte-blackbar-wrapper--hidden {
  transform: translateY(-100%);
}

.fatte-blackbar {
  position: relative;
  color: #000;
  font-family: inherit;
}

/* ==========================================================================
   VARIANTE FIERE (struttura a 4 colonne)
   ========================================================================== */

.fatte-blackbar .bb-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 30px;
  max-width: 1600px;
  padding: 16px 50px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Colonna loghi */
.fatte-blackbar .bb-col-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fatte-blackbar .bb-logo {
  height: 40px;
  width: auto;
  display: block;
  border: 1px solid #000000;
  padding: 4px 8px;
  box-sizing: content-box;
  border-radius: 4px;
}

/* Colonna testo */
.fatte-blackbar .bb-col-text {
  text-align: center;
}

.fatte-blackbar .bb-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fatte-blackbar .bb-row {
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  color: #000000;
}

.fatte-blackbar .bb-row strong {
  color: #000;
  font-weight: 600;
}

.fatte-blackbar .bb-pin {
  margin-right: 6px;
}

/* Colonna azioni */
.fatte-blackbar .bb-col-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fatte-blackbar .bb-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #000;
}

.fatte-blackbar .bb-buttons {
  display: flex;
  gap: 10px;
}

.fatte-blackbar .bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.fatte-blackbar .bb-btn-purple {
  background-color: #5c61e6;
  color: #fff;
}

.fatte-blackbar .bb-btn-purple:hover {
  background-color: #4247c9;
}

.fatte-blackbar .bb-btn-orange {
  background-color: #fdb528;
  color: #fff;
}

.fatte-blackbar .bb-btn-orange:hover {
  background-color: #e09f18;
}

/* Bottone chiusura X (shared tra fiere e ferie) */
.fatte-blackbar .bb-close {
  background: #2c2c2c;
  border: 1px solid #444;
  color: #fff;
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.fatte-blackbar .bb-close:hover {
  background: #4a4a4a;
}

/* ============================================
   RESPONSIVE FIERE
============================================ */
@media (max-width: 1280px) {
  .fatte-blackbar .bb-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 44px 16px 44px;
    gap: 10px;
    position: relative;
  }

  .fatte-blackbar .bb-col-logo {
    justify-content: center;
  }

  .fatte-blackbar .bb-logo {
    height: 32px;
  }

  .fatte-blackbar .bb-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .fatte-blackbar .bb-row {
    font-size: 12px;
    line-height: 18px;
  }

  .fatte-blackbar .bb-col-actions {
    width: 100%;
  }

  .fatte-blackbar .bb-label {
    font-size: 12px;
  }

  .fatte-blackbar .bb-buttons {
    justify-content: center;
    width: 100%;
  }

  .fatte-blackbar .bb-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 12px;
  }

  .fatte-blackbar .bb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .fatte-blackbar .bb-grid {
    padding: 12px 40px 14px 40px;
  }

  .fatte-blackbar .bb-col-logo {
    gap: 6px;
  }

  .fatte-blackbar .bb-logo {
    height: 26px;
    padding: 3px 6px;
  }
}

/* ==========================================================================
   VARIANTE FERIE (struttura a colonna singola)
   Stessi padding della variante fiere per coerenza visiva
   ========================================================================== */

.bb-grid-ferie {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 50px;
  text-align: center;
  box-sizing: border-box;
}

.bb-ferie-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.bb-ferie-text {
  font-size: 15px;
  line-height: 22px;
  color: #000;
}

.bb-ferie-text strong {
  color: #000;
  font-weight: 700;
}

.bb-ferie-text a {
  color: #5c61e6;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.bb-ferie-text a:hover {
  color: #4247c9;
}

/* Posizionamento del close button nella variante ferie */
.fatte-blackbar--ferie .bb-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

/* ============================================
   RESPONSIVE FERIE (stessi breakpoint delle fiere)
============================================ */
@media (max-width: 1280px) {
  .bb-grid-ferie {
    padding: 14px 44px 16px 44px;
    position: relative;
  }

  .fatte-blackbar--ferie .bb-close {
    top: 10px;
    right: 10px;
    transform: none;
  }
}

@media (max-width: 480px) {
  .bb-grid-ferie {
    padding: 12px 40px 14px 40px;
    flex-direction: column;
    gap: 6px;
  }

  .bb-ferie-icon {
    display: none;
  }
}

@media (max-width: 699px) {
  .display_none_699px {
    display: none;
  }
}