/* Entry block to the Bologna Trip Planner (DESIGN-012, v2): a photograph under a dark plane, the pitch
   on the left and three steps on the right. White text on rgba(34,22,17,.78) and darker: contrast
   stays above 7:1 on any part of the photo. No border, no shadow. Loaded only on a page that shows the
   block. Selectors weigh (0,4,2) to beat larossa.css, which colours every content link at (0,3,2). */

body.larossa .entry-content .bb-trip-cta {
  position: relative;
  box-sizing: border-box;
  margin: var(--lr-xl, 2.5rem) 0 var(--lr-lg);
  padding: 44px 48px;
  color: #FFFFFF;
  background-color: #221611;
  background-image:
    linear-gradient(90deg, rgba(34, 22, 17, 0.90) 0%, rgba(34, 22, 17, 0.80) 55%, rgba(34, 22, 17, 0.70) 100%),
    var(--bb-cta-img);
  background-size: cover;
  background-position: center 60%;
  border-radius: var(--lr-radius);
}

/* In an article the block covers the whole white card, side to side and down to the bottom edge. */
body.larossa .entry-content .bb-trip-cta--bleed {
  margin-left: -32px;
  margin-right: -32px;
  margin-bottom: -32px;
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 56px;
  padding-bottom: 56px;
  border-radius: 0 0 var(--lr-radius) var(--lr-radius);
}

body.larossa .entry-content .bb-trip-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: center;
  max-width: 62rem;
  margin: 0 auto;
}

body.larossa .entry-content .bb-trip-cta__tag {
  margin: 0 0 10px;
  font-family: var(--lr-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F3C9BE;
}

body.larossa .entry-content .bb-trip-cta__title {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--lr-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  color: #FFFFFF;
}

body.larossa .entry-content .bb-trip-cta__title::after { display: none; }

body.larossa .entry-content .bb-trip-cta__text {
  margin: 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #FFFFFF;
}

body.larossa .entry-content .bb-trip-cta__action { margin: 24px 0 0; }

body.larossa .entry-content .bb-trip-cta a.bb-trip-cta__button,
body.larossa .entry-content .bb-trip-cta a.bb-trip-cta__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  box-sizing: border-box;
  min-height: 52px;
  padding-left: 2.2em;
  padding-right: 2.2em;
  font-size: 1.0625rem;
  color: #FFFFFF;
  background-color: var(--lr-accent);
  text-decoration: none;
}

body.larossa .entry-content .bb-trip-cta a.bb-trip-cta__button:hover,
body.larossa .entry-content .bb-trip-cta a.bb-trip-cta__button:focus-visible {
  color: #FFFFFF;
  background-color: var(--lr-accent-deep);
  text-decoration: none;
}

body.larossa .entry-content .bb-trip-cta a.bb-trip-cta__button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

body.larossa .entry-content .bb-trip-cta__fine {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #E9DDD6;
}

/* The three steps: quiet planes on the photo, a large number each. */
body.larossa .entry-content .bb-trip-cta__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bbstep;
}

body.larossa .entry-content .bb-trip-cta__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 16px 20px 16px 68px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--lr-radius);
  counter-increment: bbstep;
}

body.larossa .entry-content .bb-trip-cta__steps li::before {
  content: counter(bbstep);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--lr-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #F3C9BE;
}

body.larossa .entry-content .bb-trip-cta__steps strong {
  font-family: var(--lr-display);
  font-size: 1.0625rem;
  color: #FFFFFF;
}

body.larossa .entry-content .bb-trip-cta__steps span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #F0E7E1;
}

@media (max-width: 899px) {
  body.larossa .entry-content .bb-trip-cta__inner { grid-template-columns: minmax(0, 1fr); }
  body.larossa .entry-content .bb-trip-cta,
  body.larossa .entry-content .bb-trip-cta--bleed { padding: 32px 22px; }
}

@media (max-width: 599px) {
  body.larossa .entry-content .bb-trip-cta--bleed { margin-left: -24px; margin-right: -24px; margin-bottom: -24px; }
  body.larossa .entry-content .bb-trip-cta a.bb-trip-cta__button { display: flex; width: 100%; }
}

/* The "My Trip (n)" link the menu script inserts beside the planner item. */
body.larossa a.bb-trip-nav-my { white-space: nowrap; }
