/* Home hero. It pins under the header while .cipri-after-hero, and every band after it, slides up over it.
   Plain green (the client, 16 Nov 2026); a photo, when one is set, sits under the wash (.cipri-hero-photo). */
.cipri-hero { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hh)); z-index: 0; min-height: min(calc(100svh - var(--hh)), 860px); display: flex; align-items: center; background: var(--green); color: var(--cream); padding-block: 56px; overflow: hidden; }
.cipri-hero .cipri-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cipri-hero.cipri-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--wash-hero-top), var(--wash-hero-bottom)); }
.cipri-hero .cipri-wrap { width: 100%; position: relative; z-index: 1; }
.cipri-hero .cipri-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cipri-hero .cipri-hero-logo { display: block; width: min(420px, 78vw); font: inherit; letter-spacing: normal; text-transform: none; }  /* Home's h1: the logo alone, without h1's type */
.cipri-hero .cipri-hero-logo img { width: 100%; }
.cipri-hero .cipri-hero-logo-rule { display: block; height: calc(min(420px, 78vw) * .018); margin-top: calc(min(420px, 78vw) * .06); background: var(--orange); }  /* orange rule under the hero logo, drawn in code */
.cipri-hero .cipri-script { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1; color: var(--cream); }  /* "Cibo e Vino", in capitals (.cipri-script-caps) */
.cipri-hero .cipri-lede { color: var(--cream-dim); max-width: 32ch; }
.cipri-hero .cipri-hero-ills { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 28px; pointer-events: none; }
.cipri-hero .cipri-hero-ills img { width: clamp(70px, 9vw, 112px); opacity: .85; }
.cipri-hero .cipri-hero-ills .cipri-ill-cibo { width: clamp(120px, 13.8vw, 194px); }  /* client's Cibo symbol, bottom left */
.cipri-hero .cipri-hero-ills .cipri-ill-vino { width: clamp(67px, 7.6vw, 106px); }   /* client's Vino symbol, bottom right */
.cipri-after-hero { position: relative; z-index: 1; }

/* Reduced motion: nothing pins, the sections simply stack. */
@media (prefers-reduced-motion: reduce) {
  .cipri-hero { position: relative; top: auto; }
}

/* A phone on its side: the hero is taller than the screen under the header, so pinned, its lower
   part ("Cibo e Vino" and the line under it) never showed before the next band covered it
   (Geoff's QA, 16 Nov 2026). There it doesn't pin, and the sections stack, as above. */
@media (orientation: landscape) and (max-height: 500px) {
  .cipri-hero { position: relative; top: auto; }
}
