/* Foresta+ — si appoggia al CSS di Foresta e aggiunge parallasse e animazioni */

.jr-home::before, .jr-home::after { display: none; }

/* Copertine in parallasse: l'immagine è più alta del 40% così, spostandosi, non lascia mai bordi vuoti */
.jr-px-bg { overflow: hidden; }
.jr-px-bg > .wp-block-cover__image-background { top: -20% !important; bottom: auto !important; height: 140% !important; will-change: transform; }
[class*="jr-px-s"] { will-change: transform; }

/* ---------- Hero ---------- */
.jr-pxhero { padding-block: 120px 80px !important; color: #fff; }
.jr-pxhero .wp-block-cover__background { background: linear-gradient(100deg, rgba(31,42,18,.88) 0%, rgba(31,42,18,.55) 45%, rgba(31,42,18,.15) 100%) !important; opacity: 1 !important; }
.jr-pxhero .wp-block-cover__inner-container { width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; position: static; }
.jr-pxhero .wp-block-cover__inner-container > * { margin-left: 0 !important; }
.jr-pxhero__text { position: relative; z-index: 3; max-width: 640px; }
.jr-pxhero .jr-hero__title { color: #F3EDE0; font-size: clamp(3.6rem, 9vw, 7.8rem) !important; line-height: .92 !important; margin: .5rem 0 1.4rem; text-shadow: 0 6px 40px rgba(0,0,0,.25); }
.jr-pxhero .jr-hero__title span { color: #C9B6F0; }
.jr-pxhero .jr-lead { color: rgba(255,255,255,.9); max-width: 40ch; }
.jr-pxhero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }
.jr-pxhero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--jr-forest); }

.jr-leaves { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.jr-leaf { position: absolute; display: block; background: var(--jr-leaf) center / contain no-repeat; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.jr-leaf--1 { width: 300px; height: 300px; right: -60px; top: 6%; rotate: 205deg; }
.jr-leaf--2 { width: 180px; height: 180px; right: 22%; bottom: -40px; rotate: -20deg; filter: blur(2px) brightness(.8); opacity: .9; }
.jr-leaf--3 { width: 420px; height: 420px; left: -170px; bottom: -150px; rotate: 30deg; filter: blur(5px) brightness(.65); }
.jr-leaf--4 { width: 130px; height: 130px; right: 8%; top: 62%; rotate: 120deg; filter: brightness(1.15); }

.jr-scrollcue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; margin: 0; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: rgba(255,255,255,.8); }
.jr-scrollcue::after { content: ""; display: block; width: 2px; height: 42px; margin: 10px auto 0; background: linear-gradient(#fff, transparent); animation: jr-cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes jr-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Fasce fotografiche ---------- */
.jr-band { color: #fff; padding-block: 80px !important; }
.jr-band .wp-block-cover__background { background: radial-gradient(ellipse at center, rgba(31,42,18,.35), rgba(31,42,18,.75)) !important; opacity: 1 !important; }
.jr-band__title { color: #F3EDE0 !important; font-size: clamp(2.8rem, 7.5vw, 6.4rem) !important; line-height: .95 !important; margin-block: 1rem 1.4rem !important; text-shadow: 0 6px 40px rgba(0,0,0,.3); }
.jr-band__title span { color: #C9E09B; }
.jr-band .jr-tag { display: block; width: fit-content !important; margin-inline: auto !important; }
.jr-band__link a { color: #fff; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; text-decoration: none; border-bottom: 2px solid #C9E09B; padding-bottom: 4px; }
.jr-band__link a:hover { color: #C9E09B; }

/* ---------- Due foto a velocità diverse ---------- */
.jr-duo { position: relative; padding: 0 0 18% 0; }
.jr-duo figure { margin: 0; }
.jr-duo img { width: 100%; object-fit: cover; border-radius: 24px; border: 8px solid #fff; box-shadow: 0 24px 50px -20px rgba(52,72,28,.55); }
.jr-duo__a { width: 78%; rotate: -2deg; }
.jr-duo__a img { aspect-ratio: 1; }
.jr-duo__b { position: absolute !important; right: 0; bottom: 0; width: 52%; rotate: 3deg; z-index: 1; }
.jr-duo__b img { aspect-ratio: 4 / 3; }

/* ---------- Pagine ---------- */
.jr-pagecover { color: #fff; padding-block: 120px 56px !important; margin-bottom: 0 !important; }
.jr-pagecover .wp-block-cover__background { background: linear-gradient(180deg, rgba(31,42,18,.25), rgba(31,42,18,.85)) !important; opacity: 1 !important; }
.jr-pagecover .wp-block-post-title { color: #F3EDE0; font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; margin: .4rem 0 0; }
.jr-page > .jr-content { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- Comparsa allo scorrimento ---------- */
.jr-motion .jr-reveal, .jr-motion .jr-whats > *, .jr-motion .jr-flyers > *, .jr-motion .jr-posts li,
.jr-motion .jr-access__card, .jr-motion .jr-card, .jr-motion .jr-day, .jr-motion .jr-stat,
.jr-motion .jr-content > .wp-block-image, .jr-motion .jr-gallery > * {
	opacity: 0; translate: 0 36px;
	transition: opacity .8s ease var(--jr-delay, 0ms), translate .9s cubic-bezier(.2, .7, .2, 1) var(--jr-delay, 0ms);
}
.jr-motion .is-in { opacity: 1 !important; translate: 0 0 !important; }

@media (max-width: 781px) {
	.jr-pxhero { padding-block: 110px 90px !important; }
	.jr-leaf--1 { width: 170px; height: 170px; right: -60px; top: 10%; }
	.jr-leaf--2 { display: none; }
	.jr-leaf--3 { width: 240px; height: 240px; left: -110px; bottom: -90px; }
	.jr-leaf--4 { width: 80px; height: 80px; top: auto; bottom: 16%; }
	.jr-band { min-height: 60vh !important; }
	.jr-duo { margin-bottom: 24px; }
}

.jr-pagecover .wp-block-cover__inner-container { width: 100% !important; max-width: 1100px !important; margin-inline: auto !important; }
.jr-pagecover .wp-block-cover__inner-container > * { margin-left: 0 !important; }

/* il layout "constrained" limita la larghezza dei figli: le decorazioni devono coprire tutta la copertina */
.jr-pxhero .wp-block-cover__inner-container > .jr-leaves, .jr-pxhero .wp-block-cover__inner-container > .jr-gear { max-width: none !important; margin: 0 !important; }
