/* Wide Home only. Keep the 1440px and narrower R5 layouts; the reference's
   centered guide steps from 1100px to 1400px above 1440px. */
@media (width > 1440px) {
  .page-home {
    --home-guide: 1400px;
    --home-gutter: calc((100% - var(--home-guide)) / 2);
    --home-photo-edge: 50px;
    --home-feature-inner: max(var(--home-photo-edge), var(--home-gutter));
  }

  .page-home .navigation nav > ul > li > a { padding-inline: 8px; }
  /* Compensate for the smaller label advances of the local Raleway face;
     keep the measured 8px inset on each link, including the flag. */
  .page-home .navigation nav > ul > li > a:not(:has(.flag)) { letter-spacing: 2.25px; }
  html[lang=it] .page-home .navigation nav > ul > li > a:not(:has(.flag)) { letter-spacing: 2.175px; }
  .page-home .navigation nav > ul > li > a[aria-current=page]::after { inset-inline: 8px; }
  .home-hero h1.hero-title { left: calc(var(--home-gutter) + 70px); }

  .page-home :is(.home-intro, .home-teasers, .home-slow, .home-weather, .footer-columns) {
    width: var(--home-guide);
  }
  .page-home .copyright { padding-inline: var(--home-gutter); }
  .home-teasers .card-photo { padding: 1px; }
  .home-teasers p { margin-top: 15px; }

  /* The travel rail starts on the guide and is cropped by the viewport,
     unlike the activity rail, whose three cards sit inside the guide. */
  .page-home main { overflow-x: clip; }
  .home-slow .slider-track {
    width: min(1750px, calc((100vw + var(--home-guide)) / 2));
    margin-right: 0;
  }
  .home-slow .offer-card { flex-basis: calc((1750px - 3 * 45px) / 4); }
  .home-activity-rail { width: 1140px; padding-inline: 0; }

  .home-services {
    padding-inline: var(--home-gutter);
    gap: 0;
    min-height: 440px;
  }
  .home-services .copy {
    padding-inline: 10px;
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    align-items: start;
  }
  .home-services .copy p { margin-top: 14px; }
  .home-services .copy > :not(img) { width: min(100%, 204px); }
  html[lang=de] .home-services .copy:first-child > :not(img) { width: 214px; }
  html[lang=de] .home-services .copy:last-child > :not(img) { width: 251px; }
  html[lang=it] .home-services .copy:last-child > :not(img) { width: 219px; }

  /* Full-bleed feature rows: pictures start 50px from the outer edge;
     the opposite side follows the guide unless that leaves <50px. */
  .home-feature, .home-feature.reverse {
    width: 100%;
    max-width: none;
    gap: 0;
  }
  .home-feature:not(.reverse) {
    padding-inline: var(--home-photo-edge) var(--home-feature-inner);
    grid-template-columns: minmax(0, 56.9fr) minmax(0, 43.1fr);
  }
  .home-feature:not(.reverse) > div:nth-child(2) {
    max-width: none;
    padding: 104px 104px 0;
  }
  .home-feature.reverse {
    padding-inline: var(--home-feature-inner) var(--home-photo-edge);
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  }
  .home-feature.reverse > div:nth-child(2) {
    max-width: none;
    padding: 140px 95px 0 0;
  }
  .home-feature h3 { margin-bottom: 25px; }
  .home-feature.home-hiking .feature-photo,
  html[lang=it] .home-feature.home-hiking .feature-photo { min-height: 529px; }
  .home-feature.home-produce .feature-photo { min-height: 501px; }

  /* Preserve the full-width callout; use the measured inset of its content. */
  .home-family-callout { padding-block: 24vw 18vw; }
}
