/**
 * Homepage (redesign step 2): hero button, info strip, path cards.
 * Templates: block--front-hero, block--front-info-strip,
 * views-view--scegli-la-tua-visita--homepage. Loaded after style.css.
 */

/* ── Hero (handoff v2: compact, 400px, horizontal photo) ── */
.museo-frontpage .museo-frontpage__hero {
  padding: var(--museo-space-7) 0 0;
}

.museo-frontpage__hero .museo-front-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--museo-space-8);
  align-items: stretch;
  min-height: 400px;
}

.museo-frontpage__hero .museo-front-hero__content {
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: var(--museo-space-2) 0 0;
}

.museo-frontpage__hero h1.museo-front-hero__title {
  margin-bottom: 0 !important;
  font-size: 76px;
  line-height: 0.95;
}

.museo-frontpage__hero .museo-front-hero__actions {
  margin-top: auto;
  padding-top: var(--museo-space-6);
}

.museo-frontpage__hero .museo-front-hero__media {
  height: 400px;
  min-height: 400px;
  border: 0;
  box-shadow: none;
}

.museo-frontpage__hero .museo-front-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Space between the hero and the info strip's top rule. */
.museo-frontpage .museo-frontpage__info {
  padding-top: var(--museo-space-8);
}

.museo-front-hero .museo-front-hero__eyebrow {
  color: var(--fg-label) !important;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.museo-front-hero__title-accent {
  color: var(--accent-display);
}

/* The button is always the primary action (cinabro), whatever the block's
   colour variant. Its arrow comes from the ".museo-frontpage a::after" rule. */
.museo-front-hero .museo-front-hero__action--primary a {
  gap: 10px;
  background: var(--action-bg);
  color: var(--action-fg);
  font-weight: 400;
}

.museo-front-hero .museo-front-hero__action--primary a:hover {
  background: var(--action-bg-hover);
  color: var(--action-fg);
}

/* ── Info strip: up to three columns (Orari · Ultimo ingresso · Dove siamo) ── */
.museo-front-info-strip .field__items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--museo-space-7);
}

/* Only the strip's items: the label and text inside are .field__item too. */
.museo-front-info-strip .field__items > .field__item {
  padding: 18px 0 20px;
}

.museo-front-info-strip .field__items > .field__item .field__item {
  padding: 0;
}

.museo-front-info-strip .field--name-field-label {
  margin: 0 0 6px;
}

.museo-front-info-strip .field--name-field-label {
  color: var(--fg-label);
}

/* ── Path cards ── */
.museo-home-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--museo-space-6);
  margin-top: var(--museo-space-8);
}

.museo-path-card {
  display: flex;
  flex-direction: column;
  padding: var(--museo-space-8);
  background: var(--bg-raised);
  border: 1px solid var(--border-rule);
}

.museo-path-card .museo-eyebrow {
  margin: 0;
}

.museo-frontpage .museo-path-card__title {
  margin: var(--museo-space-4) 0 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.museo-path-card__plus {
  margin: 0 0.25em;
  color: var(--accent-display);
}

.museo-frontpage .museo-path-card__description {
  max-width: 34rem;
  margin: var(--museo-space-5) 0 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.museo-path-card__prices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--museo-space-3) var(--museo-space-7);
  margin: var(--museo-space-6) 0 0;
  padding-top: var(--museo-space-4);
  border-top: 1px solid var(--border-rule);
}

.museo-path-card__price dt {
  font-weight: 400;
}

.museo-path-card__price dd {
  margin: 2px 0 0;
  color: var(--fg-default);
  font-size: 28px;
  line-height: 1.1;
}

.museo-path-card__unit {
  color: var(--fg-label);
  font-size: 13.5px;
}

.museo-path-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--museo-space-3);
  margin-top: auto;
  padding-top: var(--museo-space-6);
}

/* Undo the generic homepage link style (cinabro, underline, arrow). */
.museo-frontpage a.museo-btn {
  border: 1px solid var(--beo-btn-border-color);
  border-bottom: 1px solid var(--beo-btn-border-color);
  color: var(--beo-btn-color);
  font-weight: 400;
}

.museo-frontpage a.museo-btn::after {
  content: none;
}

@media (hover: hover) {
  .museo-frontpage a.museo-btn:hover {
    background: var(--beo-btn-hover-bg);
    color: var(--beo-btn-hover-color);
  }
}

.museo-home-paths__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--museo-space-6);
  margin-top: var(--museo-space-6);
}

.museo-frontpage .museo-home-paths__features p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
}

.museo-home-paths__features strong {
  color: var(--fg-default);
  font-weight: 400;
}

.museo-frontpage__tickets {
  padding-bottom: var(--museo-space-11);
}

/* ── Tablet / mobile ── */
@media (max-width: 991.98px) {
  .museo-home-paths__grid,
  .museo-home-paths__features {
    grid-template-columns: 1fr;
  }

  .museo-path-card {
    padding: var(--museo-space-6);
  }
}

@media (max-width: 1199.98px) {
  .museo-frontpage__hero .museo-front-hero {
    grid-template-columns: 1fr;
    gap: var(--museo-space-6);
    min-height: 0;
  }

  .museo-frontpage__hero .museo-front-hero__media {
    height: 320px;
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .museo-frontpage__hero h1.museo-front-hero__title {
    font-size: 44px;
  }

  .museo-frontpage__hero .museo-front-hero__media {
    height: 200px;
    min-height: 200px;
  }

  .museo-frontpage__hero .museo-front-hero__action--primary,
  .museo-frontpage__hero .museo-front-hero__action--primary a {
    width: 100%;
  }

  .museo-front-info-strip .field__items {
    grid-template-columns: 1fr;
  }

  .museo-front-info-strip .field__items > .field__item + .field__item {
    border-top: 1px solid var(--border-rule);
  }

  .museo-home-paths__grid {
    margin-top: var(--museo-space-6);
  }

  .museo-path-card__price dd {
    font-size: 24px;
  }

  .museo-path-card__actions .museo-btn {
    flex: 1 1 auto;
  }
}

/* Card eyebrows at the eyebrow size (style.css enlarges homepage <p>). */
.museo-frontpage .museo-path-card .museo-eyebrow,
.museo-frontpage .museo-path-card__price dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--fg-label);
}

/* "Scegli la tua visita" closer to its path cards (review of 27/10/2026):
   the region gap, the empty "more" row and the grid margin added up to
   ~90px under the title. Now only the grid margin is left. */
.museo-frontpage__tickets .region-front-tickets {
  gap: 0;
}

.museo-frontpage__tickets .region-front-tickets > .block--type-section-intro {
  margin-bottom: 0;
}

.museo-frontpage__tickets .museo-section-intro__more:not(:has(a, button)) {
  display: none;
}

@media (max-width: 991.98px) {
  .museo-frontpage .museo-frontpage__info {
    padding-bottom: var(--museo-space-8);
  }

  .museo-home-paths__grid {
    margin-top: var(--museo-space-7);
  }
}

/* Phone (review 28/10/2026): "Scegli data e biglietti →" on one line. */
@media (max-width: 575.98px) {
  .museo-path-card__actions .museo-btn {
    padding-right: 16px;
    padding-left: 16px;
    white-space: nowrap;
  }
}
