.molise-page {
  --ink: #332e29;
  --ecru: var(--mf-warm-ivory, #f8eee3);
  --peach: var(--mf-peach, #e8cbb9);
  --schedule-peach: #f4dfc1;
  --sage: var(--mf-sage, #c5c09c);
  --clear-green: #2d684c;
  --header-green: #2a6149;
  --cerulean: var(--mf-blue, #064b73);
  --warm-terracotta: #dda38d;
  --warm-yellow: var(--mf-gold, #e7bf72);
  --title-butter: var(--mf-gold, #e7bf72);
  --panel-gutter: clamp(18px, 4vw, 70px);
  --panel-gap: clamp(24px, 4.4vw, 60px);
}

/* The hero, header, and footer span the screen; the color stories sit on ivory. */
.molise-page main { padding-bottom: var(--panel-gap); background: var(--ecru); }
.molise-page main > .molise-title,
.molise-page main > .journey-intro,
.molise-page main > .gallery-section,
.molise-page main > .molise-itinerary,
.molise-page main > .journey-inquire {
  width: min(1500px, calc(100% - var(--panel-gutter) - var(--panel-gutter)));
  margin: var(--panel-gap) auto 0;
}
.molise-page main > .molise-title + .journey-intro { margin-top: 0; }

/* A sunlit detail from Agnone closes the itinerary before the invitation. */
.molise-page main > .molise-bells-interlude {
  display: flex;
  justify-content: center;
  width: min(1500px, calc(100% - var(--panel-gutter) - var(--panel-gutter)));
  margin: var(--panel-gap) auto 0;
  padding: clamp(24px, 5vw, 80px);
}
.molise-bells-interlude figure { width: min(100%, 760px); margin: 0; }
.molise-bells-interlude img { display: block; width: 100%; height: auto; }
.molise-bells-interlude.molise-reveal { transition-duration: 1s; }

/* Keep the photograph free of lettering, including the navigation. */
.molise-page .site-header {
  position: sticky;
  color: var(--header-green);
  background: var(--peach);
  animation: molise-header-reveal 450ms ease-out both;
}
@keyframes molise-header-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.molise-page .site-header.is-scrolled { color: var(--header-green); background: var(--peach); }
.molise-page .brand,
.molise-page .site-header.is-scrolled .brand { background: var(--cerulean); }
.molise-page .mobile-nav,
.molise-page .site-header.is-scrolled .mobile-nav { background: var(--peach); }
.molise-page .mobile-nav .nav-link,
.molise-page .site-header.is-scrolled .mobile-nav .nav-link { color: var(--header-green); }
.molise-hero { min-height: min(69svh, 820px); }
.molise-hero::after { content: none; }
.molise-hero > img { object-position: 55% 60%; animation: molise-landscape-reveal 11s ease-out 150ms both; }
@keyframes molise-landscape-reveal {
  from { opacity: 0; transform: scale(1.02); }
  5% { opacity: 1; }
  to { opacity: 1; transform: scale(1.055); }
}

.molise-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(45px, 5.5vw, 80px) clamp(24px, 10vw, 170px) 28px;
  background: var(--terra);
}
.molise-title h1 {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 2.6vw, 40px);
  margin: 0;
  color: var(--ecru);
  font-family: var(--display);
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  font-weight: 300;
  letter-spacing: .14em;
  line-height: 1.1;
  text-transform: uppercase;
}
.molise-title__number {
  color: var(--warm-yellow);
  font-family: Georgia, serif;
  font-size: clamp(1.125rem, .34em, 1.65rem);
  letter-spacing: .16em;
}
.molise-title .breadcrumbs { color: var(--title-butter); font-size: .78rem; }
.molise-page .journey-intro { padding-top: clamp(52px, 6vw, 90px); background: var(--peach); }
.molise-page .journey-intro .eyebrow { color: #8a432f; font-size: .88rem; }
.molise-page .journey-intro h2 { color: var(--clear-green); }
.molise-page .journey-intro h2 em { color: var(--mf-terra, #a6533c); }
.molise-page .journey-intro__copy { align-self: start; letter-spacing: .025em; }
.molise-page .journey-intro__copy p { font-size: clamp(1.06rem, 1.3vw, 1.25rem); line-height: 1.75; }
.molise-page .gallery-section { background: var(--sage); }
.molise-page .gallery-heading h2 { color: var(--cerulean); letter-spacing: .06em; }

/* Both rows share a level seam; wide and tall frames alternate. */
.molise-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(280px, 32vw, 490px);
  gap: 10px;
  width: min(100%, 1500px);
  margin-inline: auto;
}
.molise-photo { position: relative; isolation: isolate; overflow: hidden; min-width: 0; margin: 0; background: var(--forest); }
.molise-photo--peppers, .molise-photo--truffles { grid-column: span 3; }
.molise-photo--campobasso, .molise-photo--termoli { grid-column: span 2; }
.molise-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
.molise-photo--peppers { --photo-position: 40% 45%; }
.molise-photo--truffles { --photo-position: center 46%; }
.molise-photo--campobasso { --photo-position: center 58%; }
.molise-photo--termoli { --photo-position: 50% 43%; }

@media (max-width: 760px) {
  .molise-hero { min-height: 56svh; }
  .molise-hero > img { object-position: 63% 50%; }
  .molise-title { flex-wrap: wrap; row-gap: 18px; }
  .molise-title .breadcrumbs { font-size: .76rem; }
  .molise-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 50vw, 360px); gap: 6px; }
  .molise-photo { grid-column: span 1; }
}

.molise-itinerary { padding: 0 0 clamp(75px, 9vw, 140px); background: var(--schedule-peach); }
.molise-itinerary h2, .molise-notify h1 { font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 4.5vw, 4.7rem); line-height: 1.12; letter-spacing: .055em; color: var(--forest); margin: 0 0 24px; }
.itinerary-band { background: var(--forest); color: var(--ecru); padding: clamp(64px, 8vw, 116px) clamp(24px, 10vw, 170px) clamp(68px, 8vw, 112px); }
.molise-itinerary .itinerary-band h2 { max-width: 18ch; color: var(--warm-terracotta); font-size: clamp(3.15rem, 5.2vw, 5.4rem); margin-bottom: 18px; }
.itinerary-subtitle { max-width: 60ch; margin: 0; color: var(--peach); font-family: var(--display); font-size: clamp(1.5rem, 1.9vw, 1.8rem); font-optical-sizing: auto; font-weight: 300; letter-spacing: .035em; line-height: 1.3; text-wrap: balance; }
.itinerary-days { list-style: none; margin: clamp(65px, 7vw, 100px) clamp(24px, 10vw, 170px) 0; padding: 0; }
.itinerary-days li { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 6vw, 100px); padding: 36px 0; border-top: 1px solid #123f3128; }
.itinerary-days .eyebrow { color: #984a35; font-size: .9rem; }
.itinerary-day-number { font-size: calc(1em + 1pt); }
.itinerary-days h3 { color: var(--cerulean); font: 300 clamp(1.7rem, 2.3vw, 2.4rem)/1.2 var(--display); letter-spacing: .03em; margin: 13px 0 0; }
.itinerary-days p { margin: 0; font-size: 1.16rem; line-height: 1.8; letter-spacing: .025em; }
.itinerary-note { max-width: 780px; margin: 40px clamp(24px, 10vw, 170px) 0; color: var(--cerulean); font-size: 1.04rem; line-height: 1.8; letter-spacing: .025em; }
.molise-page .journey-inquire .eyebrow { font-size: clamp(.84rem, 1vw, 1rem); }
.molise-page .journey-inquire h2 { font-size: clamp(2.9rem, 4.8vw, 5.3rem); max-width: 14ch; }
.molise-page .journey-inquire h2 em { font-weight: 300; }
.molise-page .journey-inquire .contact-link { display: inline-flex; align-items: center; min-height: 56px; padding: 16px 22px; border: 1px solid currentColor; color: var(--warm-yellow); font-size: clamp(.9rem, 1.05vw, 1.05rem); letter-spacing: .14em; transition: color 250ms ease, background-color 250ms ease; }
.molise-page .journey-inquire .contact-link:hover,
.molise-page .journey-inquire .contact-link:focus-visible { background: var(--warm-yellow); color: #8a432f; }
@media (max-width: 960px) {
  .molise-page .journey-inquire { grid-template-columns: 1fr; gap: 32px; }
  .molise-page .journey-inquire .contact-link { justify-self: start; }
}
.molise-footer { grid-template-columns: 1fr auto 1fr; align-items: center; }
.molise-footer .footer-brand { text-align: left; }
.molise-footer .footer-links { flex-wrap: wrap; justify-content: flex-end; opacity: 1; }
.molise-footer__center { display: flex; flex-direction: column; align-items: center; }
.molise-footer__mark { display: block; width: clamp(112px, 12vw, 175px); aspect-ratio: 1; background: var(--warm-yellow); -webkit-mask: url("../assets/mf-mark.png") center / contain no-repeat; mask: url("../assets/mf-mark.png") center / contain no-repeat; }
.molise-footer__mark--peach { background: #d18f78; }
.molise-footer .social-icons { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; }
.molise-footer .social-icon { display: grid; place-items: center; width: 32px; height: 38px; color: var(--warm-yellow); }
.molise-footer__mark--peach + .social-icons .social-icon { color: #d18f78; }
.molise-footer .social-icon svg { width: 22px; height: 22px; }
.molise-notify { max-width: 720px; min-height: 70svh; margin: auto; padding: clamp(65px, 9vw, 130px) 26px; }
.molise-notify h1 { color: var(--navy); }
.molise-notify > .eyebrow { display: block; color: var(--terra); margin-bottom: 30px; }
.notify-intro { font-family: var(--display); font-size: clamp(1.45rem, 2vw, 1.7rem); font-weight: 300; line-height: 1.5; letter-spacing: .055em; margin-bottom: 38px; }
.notify-field { margin-bottom: 26px; }
.notify-field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
.notify-field input, .notify-field select { width: 100%; padding: 14px 12px; border: 1px solid #123f3155; border-radius: 0; background: transparent; color: var(--ink); font: inherit; }
.notify-field input:focus, .notify-field select:focus { outline: 2px solid var(--forest); outline-offset: 3px; }
.notify-consent { font-family: var(--display); font-size: clamp(1.2rem, 1.55vw, 1.35rem); font-weight: 300; line-height: 1.55; letter-spacing: .065em; }
.notify-submit { border: 1px solid var(--navy); background: var(--navy); color: var(--ecru); padding: 17px 28px; font: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .13em; cursor: pointer; margin-top: 12px; }
.notify-submit span { margin-left: 25px; }
.notify-submit:disabled { opacity: .6; cursor: wait; }
#notify-status { line-height: 1.7; color: var(--forest); }
#notify-status[data-error="true"] { color: #954129; }
.notify-back { display: inline-block; margin-top: 28px; font-size: 1rem; letter-spacing: .055em; }
.notify-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
 .itinerary-days li { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
 .molise-footer { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
 .molise-footer .footer-brand { text-align: center; }
 .molise-footer .footer-links { justify-content: center; }
}

/* Match the genuine Castellar artwork used for the Journeys title. */
.molise-title h1 { color: var(--title-butter); font-family: Castellar, "Castellar MT", Georgia, serif; font-size: clamp(2.2rem, 4vw, 4.4rem); font-weight: 400; }
.molise-castellar { display: inline-flex; gap: .14em; }
/* The butter-yellow Castellar artwork contains a real transparent background. */
.molise-castellar > span { display: block; flex: none; width: calc(var(--width) * 1em / 128); height: 1em; background: var(--title-butter); -webkit-mask: url("../assets/molise-castellar-butter.png") calc(var(--start) * -1em / 128) -.0703125em / 11.875em 1.4921875em no-repeat; mask: url("../assets/molise-castellar-butter.png") calc(var(--start) * -1em / 128) -.0703125em / 11.875em 1.4921875em no-repeat; }
.molise-title__number { color: var(--title-butter); }

/* Sections enter when they reach the viewport; photos keep their slower fade. */
.molise-reveal { opacity: 0; transition: opacity 800ms ease var(--molise-reveal-delay, 0ms); }
.molise-reveal.is-revealed, .molise-reveal:focus-within { opacity: 1; }
.molise-reveal:focus-within { transition-delay: 0ms; }
.journey-intro__copy p:nth-child(2).molise-reveal { --molise-reveal-delay: 80ms; }
.journey-intro__copy p:nth-child(3).molise-reveal { --molise-reveal-delay: 160ms; }
.molise-photo.molise-reveal { transition-duration: 1s; }
.molise-photo:nth-child(2).molise-reveal { --molise-reveal-delay: 80ms; }
.molise-photo:nth-child(3).molise-reveal { --molise-reveal-delay: 160ms; }
.molise-photo:nth-child(4).molise-reveal { --molise-reveal-delay: 240ms; }
.journey-inquire > a.molise-reveal { --molise-reveal-delay: 120ms; }
.molise-footer__center.molise-reveal { --molise-reveal-delay: 80ms; }
@media (prefers-reduced-motion: reduce) {
  .molise-page .site-header, .molise-hero > img { animation: none; opacity: 1; transform: none; }
  .molise-reveal { opacity: 1; transition: none; }
}
@media print {
  .molise-page .site-header, .molise-hero > img { animation: none; opacity: 1; transform: none; }
  .molise-reveal { opacity: 1; transition: none; }
}

/* Reverse the signup panel while preserving the shared header and footer. */
.molise-notify-page { --notify-terra: #a24e36; background: var(--notify-terra); }
.molise-notify-page main { background: var(--navy); }
.molise-notify-page .molise-notify {
  display: grid;
  grid-template-columns: minmax(26px, 1fr) minmax(0, 668px) minmax(26px, 1fr);
  align-content: start;
  width: min(1500px, calc(100% - var(--panel-gutter) - var(--panel-gutter)));
  max-width: none;
  margin: var(--panel-gap) auto;
  padding: clamp(65px, 9vw, 130px) 0;
  color: var(--warm-yellow);
}
.molise-notify-page .molise-notify > * { grid-column: 2; }
.molise-notify-page .notify-back { justify-self: start; }
.molise-notify-page .molise-notify h1 { color: var(--warm-yellow); }
.molise-notify-page .molise-notify .molise-release-title { font-size: clamp(1.125rem, 4.4vw, 3.25rem); letter-spacing: .02em; white-space: nowrap; }
.molise-notify-page .notify-back--molise { min-height: 44px; padding-block: 6px; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); letter-spacing: .12em; line-height: 1.6; }
.molise-notify-page .molise-notify > .eyebrow { color: #e4a38a; font-size: 1rem; }
.molise-notify-page .notify-capacity { margin: 0 0 24px; color: #e4a38a; font: 300 clamp(1.3rem, 1.8vw, 1.5rem)/1.45 var(--display); letter-spacing: .025em; }
.molise-notify-page .notify-field input, .molise-notify-page .notify-field select { color: var(--warm-yellow); border-color: #f7f0e499; background: #ffffff04; }
.molise-notify-page .notify-field input:focus, .molise-notify-page .notify-field select:focus { outline-color: var(--warm-yellow); }
.molise-notify-page .notify-submit { background: var(--notify-terra); border-color: var(--notify-terra); color: var(--warm-yellow); transition: border-color .3s ease, background-color .3s ease; }
.molise-notify-page .notify-submit:hover { background: #8a432f; border-color: #8a432f; }
.molise-notify-page .notify-submit:focus-visible, .molise-notify-page .notify-back:focus-visible { outline: 2px solid var(--warm-yellow); outline-offset: 5px; }
.molise-notify-page #notify-status { color: var(--warm-yellow); }
.molise-notify-page #notify-status[data-error="true"] { color: #efb49e; }
.molise-notify-page .journey-footer, .molise-notify-page .footer-tagline { color: var(--warm-yellow); }

.notify-field select { display: block; min-width: 0; min-height: 52px; max-width: 100%; }
.notify-field select option { color: #343b36; background: #f7f0e4; }
