/* ══ Home hero — immersive, full-bleed, bottom-aligned, Ken Burns ══ */
.gw-home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 960px);
  padding: 7rem 0 clamp(3rem, 8vh, 5.5rem);
}
.gw-home-hero__bg { position: absolute; inset: 0; z-index: -2; }
.gw-home-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
/* base transform = the Ken Burns end scale, so a slide leaving .is-active
   settles to where its zoom finished (no snap-back during the crossfade). */
.gw-home-hero__slide.is-active { opacity: 1; animation: gw-kenburns 7.5s ease-out forwards; }
@keyframes gw-kenburns { from { transform: scale(1.03); } to { transform: scale(1.12); } }

.gw-home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(8deg, hsl(340 50% 10% / .84) 4%, hsl(340 45% 16% / .42) 42%, hsl(340 40% 20% / .08) 74%),
    linear-gradient(180deg, hsl(340 50% 10% / .5), transparent 22%);
}
.gw-home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #fff;
  text-shadow: 0 2px 4px hsl(340 60% 8% / .45), 0 4px 30px hsl(340 60% 8% / .35);
}
.gw-home-hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  line-height: 1.03;
  margin: 1rem 0 1.2rem;
  letter-spacing: -.015em;
}
.gw-home-hero .lead { color: hsl(0 0% 100% / .9); max-width: 34rem; }
.gw-home-hero .gw-eyebrow { color: hsl(var(--gw-champagne)); }
.gw-home-hero h1 em { color: hsl(340 70% 82%); }
.gw-home-hero .btn-light { margin-top: 0; text-align: center; color: hsl(var(--gw-wine)); text-shadow: none; }
.gw-home-hero .free-note { color: hsl(0 0% 100% / .82); }
.gw-home-hero .free-note strong { color: #fff; }
.gw-home-hero .hero-proof { color: hsl(0 0% 100% / .85); }
.gw-home-hero .hero-proof b { color: #fff; }
.gw-home-hero .avatars { flex-shrink: 0; }
/* the immersive hero stays left-aligned on tablet↓ (override base .hero centering at ≤900px) */
@media (max-width: 900px) {
  .gw-home-hero .lead { margin-inline: 0; }
  .gw-home-hero .hero-actions { justify-content: flex-start; }
  .gw-home-hero .hero-proof { justify-content: flex-start; }
}

.gw-home-hero__dots {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(3rem, 8vh, 5.5rem);
  display: flex;
  gap: .5rem;
}
.gw-home-hero__dots button {
  width: 26px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: hsl(0 0% 100% / .4);
  transition: background .3s ease, width .3s ease;
}
.gw-home-hero__dots button.is-active { background: #fff; width: 40px; }

@media (max-width: 767.98px) {
  .gw-home-hero__scrim {
    background:
      linear-gradient(0deg, hsl(340 50% 10% / .7) 0%, hsl(340 45% 16% / .3) 44%, transparent 74%),
      linear-gradient(180deg, hsl(340 50% 10% / .5), transparent 20%);
  }
  .gw-home-hero__dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-home-hero__slide { animation: none; transform: none; transition: none; }
  .gw-home-hero__slide:not(.is-active) { opacity: 0; }
  .gw-home-hero__slide.is-active { opacity: 1; }
}

.strip-cta { text-align:center; margin-top:1.75rem; }

/* The Ospiti list: one household, the people in it, their answers. */
.gw-hm-guests { gap: 0; padding: 0; overflow: hidden; }
.gw-hm-guests__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: .8em 1em .8em 1.2em; background: #FBFAF8; }
.gw-hm-guests__head::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(hsl(142 71% 45%) 66%, hsl(38 92% 50%) 0); }
.gw-hm-guests__head b { font-weight: 600; }
.gw-hm-guests__head small { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; color: hsl(var(--gw-muted-fg)); }
.gw-hm-guest { display: flex; align-items: center; gap: .6em; padding: .6em 1em; border-top: 1px solid hsl(30 20% 92%); }
.gw-hm-guest b { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.gw-hm-av { position: relative; flex: none; width: 2em; height: 2em; border-radius: 50%; }
.gw-hm-av::after { content: ''; position: absolute; inset: 10%; background: currentColor; -webkit-mask: var(--avatar) center / contain no-repeat; mask: var(--avatar) center / contain no-repeat; }
.gw-hm-badge { flex: none; padding: .25em .6em; border-radius: 20px; font-size: .85em; font-weight: 600; }
.gw-hm-av.is-yes, .gw-hm-badge.is-yes { background: hsl(142 71% 45% / .12); color: hsl(142 71% 36%); }
.gw-hm-av.is-wait, .gw-hm-badge.is-wait { background: hsl(38 92% 50% / .12); color: hsl(38 92% 40%); }

/* A period of the planner, open: its progress and two of its activities. */
.gw-hm-plan__top { display: flex; align-items: center; gap: .8em; padding-bottom: .75em; border-bottom: 1px solid hsl(var(--gw-border)); }
.gw-hm-plan__top > span:last-child { display: flex; flex-direction: column; }
.gw-hm-plan__top b { font-weight: 600; }
.gw-hm-plan__top small { font-size: .85em; color: hsl(var(--gw-muted-fg)); }
.gw-hm-ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.6em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 74%, transparent 76%), conic-gradient(hsl(var(--gw-wine)) calc(var(--p) * 1%), hsl(30 20% 94%) 0);
}
.gw-hm-ring b { font-size: .85em; font-weight: 700; color: hsl(var(--gw-wine)); }
.gw-hm-task { display: flex; align-items: center; gap: .6em; font-size: .95em; }
.gw-hm-task i { flex: none; display: grid; place-items: center; width: 1.4em; height: 1.4em; border: 1.5px solid hsl(var(--gw-border)); border-radius: .35em; font-size: .85em; }
.gw-hm-task.is-done { text-decoration: line-through; color: hsl(var(--gw-muted-fg)); }
.gw-hm-task.is-done i { border-color: hsl(var(--gw-wine)); background: hsl(var(--gw-wine)); color: #fff; }

/* The gallery's sections, as the day went. */
.gw-hm-gal { gap: 0; padding: .45em .6em; }
.gw-hm-gal__sec { display: grid; grid-template-columns: 2.8em minmax(0, 1fr); column-gap: .75em; align-items: center; padding: .5em .2em; }
.gw-hm-gal__sec + .gw-hm-gal__sec { border-top: 1px solid hsl(30 20% 93%); }
.gw-hm-gal__sec img { grid-row: span 2; width: 2.8em; height: 2.8em; border-radius: .5em; object-fit: cover; }
.gw-hm-gal__sec b { align-self: end; font-weight: 600; }
.gw-hm-gal__sec small { align-self: start; font-size: .85em; color: hsl(var(--gw-muted-fg)); }

.gw-hm-free { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 2.25rem; text-align: center; }
.gw-hm-free p { margin: 0; color: hsl(var(--gw-muted-fg)); }
.gw-hm-free p b { font-weight: 700; white-space: nowrap; color: hsl(var(--gw-fg)); }

/* ── For the people who work at weddings: the way to the two Pro pages, in its emerald ── */
.gw-hm-pro-block { padding-top: 0; }
.gw-hm-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: 'copy list' 'cta list';
  gap: 0 clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem);
  overflow: hidden;
  border-radius: 1.75rem;
}
.gw-hm-pro h2 { margin: .8rem 0 .9rem; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.15; }
.gw-hm-pro h2 em { font-style: italic; color: hsl(var(--field-ink)); }
.gw-hm-pro p { max-width: 30rem; margin: 0 0 1.5rem; color: hsl(var(--gw-fg) / .8); }
.gw-hm-pro__copy { grid-area: copy; align-self: end; }
.gw-hm-pro__cta { grid-area: cta; align-self: start; justify-self: start; }
.gw-hm-pro__cta a { padding-inline: 1.5rem; }
.gw-hm-pro__list { grid-area: list; display: flex; flex-direction: column; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.gw-hm-pro__list li { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; border-radius: 1rem; background: hsl(0 0% 100% / .75); font-size: .9rem; line-height: 1.5; color: hsl(var(--gw-muted-fg)); }
.gw-hm-pro__list i { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; background: hsl(var(--field-base)); font-size: 1.05rem; color: hsl(var(--field-ink)); }
.gw-hm-pro__list b { display: block; font-size: .98rem; font-weight: 600; color: hsl(var(--gw-fg)); }
/* Below 1100px the copy column narrows: a tighter padding keeps the two buttons side by side down to 992px. */
@media (max-width: 1099.98px) {
  .gw-hm-pro__cta a { padding-inline: 1rem; }
}
@media (max-width: 991.98px) {
  .gw-hm-pro { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'list' 'cta'; }
  .gw-hm-pro__cta { justify-self: stretch; flex-direction: column; margin-top: 1.5rem; }
}

/* ── Real weddings: the couples' photos, then the Galleria's empty slot for the next one ── */
@media (min-width: 992px) {
  .gw-home-swiper[data-gw-swiper="weddings"] .swiper-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (max-width: 767.98px) {
  .block { padding-block: 2.25rem; }
}
