/* Scoped to the approved six-theme composition. Illustrations and backdrops
   are the supplied, unmodified WebPs; every word remains accessible HTML. */
#pdf.lva-v5-pdf { padding-top: 0; }
.lva-six-themes {
  position: relative; isolation: isolate;
  padding: 48px 0 56px;
  background-color: #f3d5c7;
  scroll-margin-top: 20px;
}
.lva-six-themes::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 auto;
  aspect-ratio: 941 / 1672; pointer-events: none;
  background: linear-gradient(to bottom,#fff5e42b,transparent 40%,#f3d5c7 100%),url('assets/temi-fondale_sei_temi_mobile.webp') center/cover no-repeat;
}
.lva-six-themes-inner { width: min(1220px,calc(100% - 48px)); margin: auto; }
.lva-six-themes h2 {
  max-width: 950px; margin: 0 0 20px;
  font-size: clamp(2rem,3.5vw,3.25rem); font-weight: 600;
  line-height: 1.06; letter-spacing: -.02em; text-wrap: initial;
}
.lva-six-themes-inner > p { color: var(--plum); font-size: 1.0625rem; line-height: 1.5; }
.lva-six-themes-inner > p + p { margin-top: 8px; }
.lva-six-themes-inner > p:last-of-type {
  margin-top: 23px; font: 600 1.5rem/1.2 'EB Garamond',Georgia,serif;
}
.lva-six-themes-inner > p:last-of-type::after {
  content: ''; display: block; width: 158px; height: 2px; margin-top: 16px; background: var(--gold);
}
.lva-six-themes .lva-theme-grid {
  grid-template-columns: minmax(0,1fr); align-items: stretch;
  gap: 20px; margin: 28px 0 0;
}
.lva-six-themes .lva-theme-card {
  position: relative; isolation: isolate; overflow: hidden; height: auto;
  padding: 0 22px 24px; border: 2px solid #c48d3d; border-radius: 22px;
  background: linear-gradient(120deg,#fff5e6,#fbe9dc 70%,#fff6e9);
  box-shadow: inset 0 0 0 1px #fff9e9,0 10px 20px #632b4f24;
}
.lva-six-themes .lva-theme-art {
  height: 152px; margin: 0 -22px -19px; position: relative; z-index: -1;
  background: linear-gradient(to bottom,#f3d5c700 30%,#fff1e4 100%),url('assets/temi-fondale_sei_temi_desktop.webp') center 56%/cover;
}
.lva-six-themes .lva-theme-art img {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0;
  object-fit: cover; object-position: center 54%; border: 0; border-radius: 0;
}
.lva-six-themes .lva-theme-art::after {
  content: ''; position: absolute; inset: auto 0 0; height: 45px;
  background: linear-gradient(transparent,#fff1e4);
}
.lva-six-themes .lva-number {
  width: 36px; height: 36px; display: flex; margin-bottom: 3px;
  border: 1.5px solid #b77f2d; background: #fff6df; color: var(--plum);
  font: 600 1rem/1 'Cabin',sans-serif; box-shadow: 0 0 12px #fff9e9;
}
.lva-theme-order {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.lva-six-themes .lva-theme-card h3 {
  position: relative; margin: 0 0 12px; font-size: 1.75rem;
  font-weight: 600; line-height: 1.04; text-wrap: initial; letter-spacing: -.015em;
}
.lva-six-themes .lva-theme-card h3::after {
  content: ''; display: block; width: 46%; height: 2px; margin-top: 13px; background: #ba8538;
}
.lva-six-themes .lva-theme-card p { color: var(--plum); font-size: 1rem; line-height: 1.45; }
.lva-pdf-rest { padding-top: 38px; }
@media (min-width:768px) {
  .lva-six-themes {
    padding: 54px 0 60px;
  }
  .lva-six-themes::before {
    inset: 0; aspect-ratio: auto;
    background-image: linear-gradient(to bottom,#fff5e450,transparent 65%,#f3d5c7),url('assets/temi-fondale_sei_temi_desktop.webp');
  }
  .lva-six-themes .lva-theme-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 34px; }
  .lva-six-themes .lva-theme-art { height: clamp(125px,12vw,172px); }
  .lva-six-themes .lva-theme-card h3 { font-size: clamp(1.45rem,2.15vw,1.9375rem); }
}
@media (max-width:359px) {
  .lva-six-themes { padding-top: 36px; }
  .lva-six-themes-inner { width: calc(100% - 36px); }
  .lva-six-themes h2 { font-size: 1.9375rem; }
  .lva-six-themes .lva-theme-card { padding: 0 17px 22px; }
  .lva-six-themes .lva-theme-art { height: 135px; margin-inline: -17px; }
  .lva-six-themes .lva-theme-card h3 { font-size: 1.625rem; }
}

/* Scenic crossfade: one upper landscape continues physically into the next
   section, then reveals its existing backdrop. No spacer or colour-only band.
   Both content layers stay above the two images; masks affect scenery only. */
#prospettive.lva-v5-perspectives {
  --lva-scenic-blend: 120px;
  position: relative; background: none; border-bottom-color: transparent;
}
#prospettive.lva-v5-perspectives::after {
  content: ''; position: absolute; z-index: 1;
  inset: 0 0 calc(-1 * var(--lva-scenic-blend)); pointer-events: none;
  background: linear-gradient(#fff3e995,#fff1de70),url('assets/fondo-hero-desktop.webp') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,#000 calc(100% - var(--lva-scenic-blend)),transparent);
  mask-image: linear-gradient(to bottom,#000 calc(100% - var(--lva-scenic-blend)),transparent);
}
#prospettive.lva-v5-perspectives > .lva-prose,
#pdf .lva-six-themes-inner { position: relative; z-index: 2; }
#pdf .lva-six-themes { isolation: auto; }
#pdf .lva-six-themes::before { z-index: 0; }
@media (min-width:768px) {
  #prospettive.lva-v5-perspectives { --lva-scenic-blend: clamp(150px,14vw,220px); }
}
@media (max-width:359px) {
  #prospettive.lva-v5-perspectives { --lva-scenic-blend: 100px; }
}
