/*
 * Bunny Jumping — Motion & Background Toolkit
 * Classi da applicare in Elementor nel campo "CSS Classes" di sezioni,
 * container, immagini e gallery. Nessuna configurazione richiesta.
 */

:root {
	/* Palette brand reale (da Blocksy > Custom Palette) */
	--bj-yellow: #ffcd05;
	--bj-amber: #fcb424;
	--bj-charcoal: #504e4a;
	--bj-forest: #183d35;
	--bj-mint: #bdeed8;
	--bj-coral: #ff806d;
	--bj-cream: #fff9e8;
	--bj-green: #46c890;
	--bj-mint-pale: #e8f8f0;

	--bj-radius: 18px;
	--bj-shadow-soft: 0 10px 30px rgba(80, 78, 74, 0.12);
	--bj-shadow-hover: 0 20px 40px rgba(80, 78, 74, 0.2);
	--bj-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--bj-ease-smooth: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* =========================================================
   1. IMMAGINI IN MOVIMENTO
   ========================================================= */

/* Fluttuazione continua, delicata — ottima per mascotte/illustrazioni */
.bj-float {
	animation: bj-float 4s var(--bj-ease-smooth) infinite;
	will-change: transform;
}
.bj-float-slow {
	animation: bj-float 7s var(--bj-ease-smooth) infinite;
	will-change: transform;
}
@keyframes bj-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

/* Oscillazione laterale continua, come appesa a un filo — sempre attiva, no hover */
.bj-sway {
	display: inline-block;
	transform-origin: top center;
	animation: bj-sway 5s ease-in-out infinite;
	will-change: transform;
}
.bj-sway-slow {
	display: inline-block;
	transform-origin: top center;
	animation: bj-sway 8s ease-in-out infinite;
	will-change: transform;
}
@keyframes bj-sway {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(4deg); }
}

/* Ritardi per sfalsare più immagini fluttuanti vicine */
.bj-delay-1 { animation-delay: 0.4s; }
.bj-delay-2 { animation-delay: 0.8s; }
.bj-delay-3 { animation-delay: 1.2s; }
.bj-delay-4 { animation-delay: 1.6s; }

/* Wiggle simpatico al passaggio del mouse (effetto "orecchie") */
.bj-wiggle-hover {
	display: inline-block;
	transition: transform 0.4s var(--bj-ease-bounce);
}
.bj-wiggle-hover:hover {
	animation: bj-wiggle 0.6s var(--bj-ease-bounce);
}
@keyframes bj-wiggle {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-4deg); }
	75% { transform: rotate(4deg); }
}

/* Salto al passaggio — coerente col nome del brand */
.bj-jump-hover {
	display: inline-block;
	transition: transform 0.3s var(--bj-ease-smooth);
}
.bj-jump-hover:hover {
	animation: bj-jump 0.7s var(--bj-ease-bounce);
}
/* Salto una tantum quando l'immagine entra nel viewport (richiede il JS) */
.bj-jump-onview.is-jumping {
	animation: bj-jump 0.9s var(--bj-ease-bounce);
}
@keyframes bj-jump {
	0%   { transform: translateY(0) scale(1, 1); }
	25%  { transform: translateY(4px) scale(1.05, 0.92); }
	55%  { transform: translateY(-26px) scale(0.96, 1.06); }
	80%  { transform: translateY(0) scale(1.03, 0.97); }
	100% { transform: translateY(0) scale(1, 1); }
}

/* Lift + ombra morbida al passaggio */
.bj-pop-hover {
	transition: transform 0.35s var(--bj-ease-bounce), box-shadow 0.35s var(--bj-ease-smooth);
	border-radius: var(--bj-radius);
}
.bj-pop-hover:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: var(--bj-shadow-hover);
}

/* Zoom morbido — richiede un wrapper con overflow:hidden (va bene una sezione/container Elementor) */
.bj-zoom-hover {
	overflow: hidden;
	border-radius: var(--bj-radius);
}
.bj-zoom-hover img,
.bj-zoom-hover .elementor-gallery-item__image {
	transition: transform 0.6s var(--bj-ease-smooth);
}
.bj-zoom-hover:hover img,
.bj-zoom-hover:hover .elementor-gallery-item__image {
	transform: scale(1.09);
}

/* Rotazione lenta continua al passaggio (badge, icone, timbri) */
.bj-spin-hover:hover {
	animation: bj-spin 3.5s linear infinite;
}
@keyframes bj-spin {
	to { transform: rotate(360deg); }
}

/* Tilt 3D che segue il cursore — richiede il JS (aggiunge --bj-rx/--bj-ry) */
.bj-tilt {
	--bj-rx: 0deg;
	--bj-ry: 0deg;
	transform-style: preserve-3d;
	perspective: 800px;
	transition: transform 0.15s var(--bj-ease-smooth);
	transform: rotateX(var(--bj-rx)) rotateY(var(--bj-ry));
	border-radius: var(--bj-radius);
	will-change: transform;
}

/* Parallasse leggero allo scroll — richiede il JS, opzionale data-bj-speed="0.2" */
.bj-parallax {
	will-change: transform;
}

/* =========================================================
   1b. MICRO-INTERAZIONI — icone, bottoni, box
   ========================================================= */

/* --- Icone / immagini piccole --- */
.bj-bounce-hover { display: inline-block; }
.bj-bounce-hover:hover {
	animation: bj-bounce 0.9s ease;
}
@keyframes bj-bounce {
	0%, 100% { transform: translateY(0); }
	30% { transform: translateY(-10px); }
	50% { transform: translateY(0); }
	65% { transform: translateY(-5px); }
	80% { transform: translateY(0); }
	90% { transform: translateY(-2px); }
}

.bj-heartbeat-hover { display: inline-block; }
.bj-heartbeat-hover:hover {
	animation: bj-heartbeat 0.9s ease;
}
@keyframes bj-heartbeat {
	0%, 100% { transform: scale(1); }
	14% { transform: scale(1.25); }
	28% { transform: scale(1); }
	42% { transform: scale(1.22); }
	70% { transform: scale(1); }
}

.bj-flip-hover { display: inline-block; }
.bj-flip-hover:hover {
	animation: bj-flip 0.6s ease;
}
@keyframes bj-flip {
	from { transform: perspective(400px) rotateY(0deg); }
	to   { transform: perspective(400px) rotateY(360deg); }
}

/* --- Bottoni --- */
.bj-btn-squish {
	transition: transform 0.18s var(--bj-ease-bounce);
}
.bj-btn-squish:active {
	transform: scale(0.92, 0.85);
}

.bj-btn-shine-hover {
	position: relative;
	overflow: hidden;
}
.bj-btn-shine-hover::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 45%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}
.bj-btn-shine-hover:hover::after {
	animation: bj-shine 0.9s ease;
}
@keyframes bj-shine {
	from { left: -75%; }
	to   { left: 125%; }
}

.bj-btn-jelly-hover:hover {
	animation: bj-jelly 0.7s var(--bj-ease-smooth);
}
@keyframes bj-jelly {
	0%, 100% { transform: scale(1, 1); }
	30% { transform: scale(1.15, 0.85); }
	50% { transform: scale(0.9, 1.1); }
	70% { transform: scale(1.06, 0.96); }
	85% { transform: scale(0.98, 1.02); }
}

/* --- Box / card --- */
.bj-box-border-grow {
	position: relative;
}
.bj-box-border-grow::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid var(--bj-coral);
	border-radius: var(--bj-radius);
	clip-path: inset(50% round var(--bj-radius));
	transition: clip-path 0.45s var(--bj-ease-smooth);
	pointer-events: none;
}
.bj-box-border-grow:hover::after {
	clip-path: inset(0% round var(--bj-radius));
}

.bj-box-lift-glow {
	position: relative;
	transition: transform 0.4s var(--bj-ease-bounce);
}
.bj-box-lift-glow::before {
	content: "";
	position: absolute;
	inset: 8px;
	z-index: -1;
	border-radius: var(--bj-radius);
	background: radial-gradient(circle, var(--bj-coral) 0%, transparent 70%);
	opacity: 0;
	filter: blur(18px);
	transition: opacity 0.4s ease;
}
.bj-box-lift-glow:hover {
	transform: translateY(-8px);
}
.bj-box-lift-glow:hover::before {
	opacity: 0.55;
}

/* =========================================================
   2. GALLERY DINAMICHE
   ========================================================= */

/* --- Masonry con hover colorato --- */
.bj-gallery-masonry {
	columns: 3 220px;
	column-gap: 18px;
}
.bj-gallery-masonry > * {
	break-inside: avoid;
	margin-bottom: 18px;
	border-radius: var(--bj-radius);
	overflow: hidden;
	position: relative;
	box-shadow: var(--bj-shadow-soft);
	transition: box-shadow 0.35s var(--bj-ease-smooth);
}
.bj-gallery-masonry > *:hover {
	box-shadow: var(--bj-shadow-hover);
}
.bj-gallery-masonry img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.6s var(--bj-ease-smooth), filter 0.4s ease;
}
.bj-gallery-masonry > *:hover img {
	transform: scale(1.08) rotate(-0.6deg);
}
.bj-gallery-masonry > *::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(24, 61, 53, 0.55) 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}
.bj-gallery-masonry > *:hover::after {
	opacity: 1;
}

/* --- Griglia con reveal a comparsa (funziona anche con Elementor Image Gallery) --- */
.bj-gallery-grid-reveal {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}
.bj-gallery-grid-reveal > *,
.bj-gallery-grid-reveal .elementor-gallery-item {
	position: relative;
	border-radius: var(--bj-radius);
	overflow: hidden;
	transform: translateY(0) scale(1);
	transition: transform 0.45s var(--bj-ease-bounce), box-shadow 0.4s ease;
	box-shadow: var(--bj-shadow-soft);
}
.bj-gallery-grid-reveal > *:hover,
.bj-gallery-grid-reveal .elementor-gallery-item:hover {
	transform: translateY(-8px) scale(1.03) rotate(-0.5deg);
	box-shadow: var(--bj-shadow-hover);
}
.bj-gallery-grid-reveal img,
.bj-gallery-grid-reveal .elementor-gallery-item__image {
	transition: transform 0.5s var(--bj-ease-smooth);
}
.bj-gallery-grid-reveal > *:hover img,
.bj-gallery-grid-reveal .elementor-gallery-item:hover .elementor-gallery-item__image {
	transform: scale(1.1);
}
/* Didascalia che sale dal basso, se presente (figcaption / .wp-caption-text) */
.bj-gallery-grid-reveal figcaption,
.bj-gallery-grid-reveal .wp-caption-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 14px 16px;
	background: linear-gradient(180deg, transparent, rgba(24, 61, 53, 0.75));
	color: var(--bj-cream);
	font-size: 14px;
	transform: translateY(100%);
	transition: transform 0.35s var(--bj-ease-smooth);
}
.bj-gallery-grid-reveal > *:hover figcaption,
.bj-gallery-grid-reveal > *:hover .wp-caption-text {
	transform: translateY(0);
}

/* Entrata animata a comparsa scalata allo scroll — richiede il JS */
.bj-gallery-animate-in > * {
	opacity: 0;
	transform: translateY(28px) scale(0.94);
	transition: opacity 0.6s var(--bj-ease-smooth), transform 0.6s var(--bj-ease-bounce);
}
.bj-gallery-animate-in > *.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* --- Striscia "formato telefono" per immagini verticali (es. Città Lapine) --- */
.bj-gallery-phone {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding: 10px 28px 22px;
	scroll-padding-inline: 28px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.bj-gallery-phone::-webkit-scrollbar {
	display: none;
}
.bj-gallery-phone > * {
	position: relative;
	flex: 0 0 auto;
	width: 230px;
	aspect-ratio: 698 / 1000;
	border-radius: 22px;
	overflow: hidden;
	scroll-snap-align: start;
	box-shadow: var(--bj-shadow-soft);
	transition: transform 0.4s var(--bj-ease-bounce), box-shadow 0.4s ease;
}
@media (min-width: 1000px) {
	.bj-gallery-phone > * {
		width: 460px;
		border-radius: 30px;
	}
	.bj-gallery-phone {
		gap: 24px;
		padding-inline: 56px;
		scroll-padding-inline: 56px;
	}
}
.bj-gallery-phone > *:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: var(--bj-shadow-hover);
}
.bj-gallery-phone img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--bj-ease-smooth);
}
.bj-gallery-phone > *:hover img {
	transform: scale(1.06);
}
.bj-gallery-phone figcaption,
.bj-gallery-phone .wp-caption-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 16px 14px 12px;
	background: linear-gradient(180deg, transparent, rgba(24, 61, 53, 0.8));
	color: var(--bj-cream);
	font-size: 13.5px;
	font-weight: 600;
}

/* Wrapper e frecce iniettati automaticamente dal JS — nessuna modifica all'HTML necessaria */
.bj-gallery-phone-wrap {
	position: relative;
}
.bj-gallery-phone-wrap .bj-gallery-phone {
	cursor: grab;
}
.bj-gallery-phone-wrap .bj-gallery-phone.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}
.bj-gallery-phone-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 999px;
	background: var(--bj-cream);
	color: var(--bj-forest);
	box-shadow: var(--bj-shadow-soft);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	line-height: 1;
	z-index: 3;
	transition: opacity 0.25s ease, transform 0.25s var(--bj-ease-bounce), box-shadow 0.25s ease;
}
.bj-gallery-phone-nav:hover {
	box-shadow: var(--bj-shadow-hover);
	transform: translateY(-50%) scale(1.08);
}
.bj-gallery-phone-nav.bj-prev { left: 10px; }
.bj-gallery-phone-nav.bj-next { right: 10px; }
.bj-gallery-phone-nav[hidden] { display: none; }
@media (max-width: 640px) {
	/* Su mobile lo swipe nativo basta: evitiamo di affollare lo schermo */
	.bj-gallery-phone-nav { display: none; }
}

/* --- Mobile: una scheda alla volta, con un pezzetto della successiva --- */
.bj-gallery-phone-dots { display: none; }
@media (max-width: 640px) {
	.bj-gallery-phone {
		gap: 12px;
		padding: 8px 20px 20px;
		scroll-padding-inline: 20px;
		overscroll-behavior-x: contain;
	}
	.bj-gallery-phone > * {
		width: calc(100% - 20px);
		scroll-snap-align: start;
		scroll-snap-stop: always;
		border-radius: 24px;
	}
	/* niente "sollevamento" al tocco: su schermo touch resterebbe attivo dopo il tap */
	.bj-gallery-phone > *:hover { transform: none; box-shadow: var(--bj-shadow-soft); }
	.bj-gallery-phone > *:hover img { transform: none; }
	.bj-gallery-phone figcaption,
	.bj-gallery-phone .wp-caption-text { font-size: 15px; padding: 22px 16px 16px; }
	.bj-gallery-phone-dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: -4px;
		padding-bottom: 6px;
	}
	.bj-gallery-phone-dots button {
		width: 9px;
		height: 9px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgba(24, 61, 53, 0.25);
		cursor: pointer;
		transition: width 0.3s var(--bj-ease-bounce), background-color 0.25s var(--bj-ease-smooth);
	}
	.bj-gallery-phone-dots button.is-active { width: 26px; background: var(--bj-amber); }
}

/* =========================================================
   3. SFONDI DINAMICI
   ========================================================= */

/* --- Blob di colore morbidi e "respiranti" ---
   Palette presa dall'illustrazione del coniglio con i fiori:
   azzurro pervinca, rosa orchidea, lilla, verde salvia dei gambi e giallo-sabbia delle margherite. */
.bj-bg-blobs {
	--bj-blob-periwinkle: 118, 152, 220;
	--bj-blob-orchid: 232, 150, 232;
	--bj-blob-sage: 140, 205, 160;
	--bj-blob-sand: 250, 224, 140;
	position: relative;
	background-color: var(--bj-cream);
	background-image:
		radial-gradient(circle at 15% 20%, rgba(var(--bj-blob-periwinkle), 0.42) 0%, transparent 38%),
		radial-gradient(circle at 85% 15%, rgba(var(--bj-blob-orchid), 0.4) 0%, transparent 36%),
		radial-gradient(circle at 20% 85%, rgba(var(--bj-blob-sage), 0.34) 0%, transparent 38%),
		radial-gradient(circle at 90% 80%, rgba(var(--bj-blob-sand), 0.55) 0%, transparent 40%);
	background-size: 140% 140%, 130% 130%, 150% 150%, 130% 130%;
	background-repeat: no-repeat;
	animation: bj-blobs-drift 22s var(--bj-ease-smooth) infinite alternate;
}
@keyframes bj-blobs-drift {
	0%   { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
	100% { background-position: 10% 10%, 90% 15%, 12% 88%, 88% 90%; }
}

/* --- Texture puntinata leggera, per sezioni che vanno "respirare" senza distrarre --- */
.bj-bg-dots {
	background-color: var(--bj-cream);
	background-image: radial-gradient(var(--bj-charcoal) 1.4px, transparent 1.4px);
	background-size: 22px 22px;
	background-position: 0 0;
	opacity: 1;
}
.bj-bg-dots::before { content: none; }

/* --- Coriandoli — accenti colorati sparsi, per zone shop / CTA --- */
.bj-bg-confetti {
	position: relative;
	background-color: var(--bj-mint-pale);
	background-image:
		radial-gradient(circle, var(--bj-yellow) 5px, transparent 5px),
		radial-gradient(circle, var(--bj-coral) 4px, transparent 4px),
		radial-gradient(circle, var(--bj-green) 4.5px, transparent 4.5px),
		radial-gradient(circle, var(--bj-amber) 3.5px, transparent 3.5px);
	background-size: 160px 160px, 130px 130px, 190px 190px, 110px 110px;
	background-position: 10px 20px, 90px 80px, 150px 30px, 40px 120px;
	background-repeat: repeat;
	animation: bj-confetti-drift 40s linear infinite;
}
@keyframes bj-confetti-drift {
	from { background-position: 10px 20px, 90px 80px, 150px 30px, 40px 120px; }
	to   { background-position: 170px 180px, 220px 210px, 340px 190px, 150px 240px; }
}

/* --- Onda divisoria tra sezioni --- */
.bj-bg-wave-top,
.bj-bg-wave-bottom {
	position: relative;
}
.bj-bg-wave-top::before,
.bj-bg-wave-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 70px;
	background-repeat: repeat-x;
	background-size: 400px 70px;
	pointer-events: none;
}
.bj-bg-wave-top::before {
	top: -1px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35 C 60 70 140 0 200 35 C 260 70 340 0 400 35 L400 0 L0 0 Z' fill='%23FFF9E8'/%3E%3C/svg%3E");
	transform: translateY(-99%);
}
.bj-bg-wave-bottom::after {
	bottom: -1px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35 C 60 0 140 70 200 35 C 260 0 340 70 400 35 L400 70 L0 70 Z' fill='%23FFF9E8'/%3E%3C/svg%3E");
	transform: translateY(99%);
}
/* Varianti colore onda: aggiungi in coppia con bj-bg-wave-top/bottom */
.bj-wave-mint::before, .bj-wave-mint::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35 C 60 70 140 0 200 35 C 260 70 340 0 400 35 L400 0 L0 0 Z' fill='%23E8F8F0'/%3E%3C/svg%3E") !important;
}
.bj-wave-forest::before, .bj-wave-forest::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35 C 60 70 140 0 200 35 C 260 70 340 0 400 35 L400 0 L0 0 Z' fill='%23183D35'/%3E%3C/svg%3E") !important;
}

/* =========================================================
   3b. SFONDI A TEMA CONIGLIO
   Set di pattern illustrati coerenti col brand: impronte,
   sagome di conigli, carote, orecchie. Sfondo già incluso,
   nessuna configurazione necessaria.
   ========================================================= */

/* --- Impronte di zampa sparse — 2 livelli (principale + accento) per varietà, tile più ampio --- */
.bj-bg-paws {
	background-color: var(--bj-cream);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='p'%3E%3Cellipse cx='16' cy='22' rx='8' ry='6.2'/%3E%3Ccircle cx='7' cy='13' r='3.4'/%3E%3Ccircle cx='13' cy='6' r='3.7'/%3E%3Ccircle cx='19' cy='6' r='3.7'/%3E%3Ccircle cx='25' cy='13' r='3.4'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='%23183D35' fill-opacity='0.14'%3E%3Cuse href='%23p' transform='translate(40,51) rotate(-18)'/%3E%3Cuse href='%23p' transform='translate(191,160) rotate(25) scale(1.15)'/%3E%3Cuse href='%23p' transform='translate(91,216) rotate(60) scale(0.85)'/%3E%3C/g%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='p2'%3E%3Cellipse cx='16' cy='22' rx='8' ry='6.2'/%3E%3Ccircle cx='7' cy='13' r='3.4'/%3E%3Ccircle cx='13' cy='6' r='3.7'/%3E%3Ccircle cx='19' cy='6' r='3.7'/%3E%3Ccircle cx='25' cy='13' r='3.4'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23p2' transform='translate(250,50) rotate(50) scale(1.3)' fill='%23183D35' fill-opacity='0.08'/%3E%3C/svg%3E");
	background-position: 0 0, 110px 70px;
	background-size: 300px 300px, 300px 300px;
	background-repeat: repeat, repeat;
	animation: bj-drift-paws 60s linear infinite;
}
@keyframes bj-drift-paws {
	from { background-position: 0 0, 110px 70px; }
	to   { background-position: 300px 300px, 410px 370px; }
}

/* --- Sagome di coniglietti — 2 livelli --- */
.bj-bg-bunny-hop {
	background-color: var(--bj-mint-pale);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 380'%3E%3Cdefs%3E%3Cg id='b'%3E%3Ccircle cx='17' cy='27' r='9'/%3E%3Cellipse cx='10' cy='10' rx='4.2' ry='13' transform='rotate(-16 10 10)'/%3E%3Cellipse cx='24' cy='10' rx='4.2' ry='13' transform='rotate(16 24 10)'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='%23FF806D' fill-opacity='0.16'%3E%3Cuse href='%23b' transform='translate(60,80) rotate(-8)'/%3E%3Cuse href='%23b' transform='translate(240,240) rotate(12) scale(1.1)'/%3E%3C/g%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 380'%3E%3Cdefs%3E%3Cg id='b2'%3E%3Ccircle cx='17' cy='27' r='9'/%3E%3Cellipse cx='10' cy='10' rx='4.2' ry='13' transform='rotate(-16 10 10)'/%3E%3Cellipse cx='24' cy='10' rx='4.2' ry='13' transform='rotate(16 24 10)'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23b2' transform='translate(330,60) rotate(-25) scale(0.9)' fill='%23FF806D' fill-opacity='0.09'/%3E%3C/svg%3E");
	background-position: 0 0, 150px 90px;
	background-size: 380px 380px, 380px 380px;
	background-repeat: repeat, repeat;
	animation: bj-drift-bunny 72s linear infinite;
}
@keyframes bj-drift-bunny {
	from { background-position: 0 0, 150px 90px; }
	to   { background-position: 380px 380px, 530px 470px; }
}

/* --- Carotine, per zone shop / CTA — 2 livelli --- */
.bj-bg-carrots {
	background-color: var(--bj-cream);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg transform='translate(48,52) rotate(-14) scale(1.0)'%3E%3Cpath d='M9 16 L23 16 L16 42 Z' fill='%23FCB424' fill-opacity='0.4'/%3E%3Cellipse cx='16' cy='8' rx='2' ry='6' fill='%2346C890' fill-opacity='0.4'/%3E%3Cellipse cx='11' cy='10' rx='1.8' ry='5.5' transform='rotate(-25 11 10)' fill='%2346C890' fill-opacity='0.4'/%3E%3Cellipse cx='21' cy='10' rx='1.8' ry='5.5' transform='rotate(25 21 10)' fill='%2346C890' fill-opacity='0.4'/%3E%3C/g%3E%3Cg transform='translate(250,36) rotate(22) scale(0.9)'%3E%3Cpath d='M12 14 L20 14 L16 54 Z' fill='%23FCB424' fill-opacity='0.34'/%3E%3Cellipse cx='16' cy='6' rx='1.7' ry='6' fill='%2346C890' fill-opacity='0.34'/%3E%3Cellipse cx='10' cy='9' rx='1.6' ry='5' transform='rotate(-32 10 9)' fill='%2346C890' fill-opacity='0.34'/%3E%3Cellipse cx='22' cy='9' rx='1.6' ry='5' transform='rotate(32 22 9)' fill='%2346C890' fill-opacity='0.34'/%3E%3C/g%3E%3Cg transform='translate(330,170) rotate(-28) scale(1.2)'%3E%3Cpath d='M6 15 Q16 10 26 15 Q22 31 16 37 Q10 31 6 15 Z' fill='%23FCB424' fill-opacity='0.4'/%3E%3Cellipse cx='12' cy='8' rx='2' ry='6' transform='rotate(-15 12 8)' fill='%2346C890' fill-opacity='0.4'/%3E%3Cellipse cx='20' cy='8' rx='2' ry='6' transform='rotate(15 20 8)' fill='%2346C890' fill-opacity='0.4'/%3E%3C/g%3E%3Cg transform='translate(150,150) rotate(0) scale(1.0)'%3E%3Ccircle cx='16' cy='16' r='8' fill='%23FCB424' fill-opacity='0.36000000000000004'/%3E%3Ccircle cx='16' cy='16' r='4.3' fill='none' stroke='%2346C890' stroke-opacity='0.36000000000000004' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(60,280) rotate(12) scale(1.0)'%3E%3Cellipse cx='16' cy='10' rx='2' ry='7' fill='%2346C890' fill-opacity='0.32000000000000006'/%3E%3Cellipse cx='10' cy='13' rx='1.8' ry='6' transform='rotate(-35 10 13)' fill='%2346C890' fill-opacity='0.32000000000000006'/%3E%3Cellipse cx='22' cy='13' rx='1.8' ry='6' transform='rotate(35 22 13)' fill='%2346C890' fill-opacity='0.32000000000000006'/%3E%3Cpath d='M16 17 L16 28' stroke='%2346C890' stroke-opacity='0.32000000000000006' stroke-width='1.3' fill='none'/%3E%3C/g%3E%3Cg transform='translate(230,300) rotate(34) scale(1.15)'%3E%3Cpath d='M9 16 L23 16 L16 42 Z' fill='%23FCB424' fill-opacity='0.36000000000000004'/%3E%3Cellipse cx='16' cy='8' rx='2' ry='6' fill='%2346C890' fill-opacity='0.36000000000000004'/%3E%3Cellipse cx='11' cy='10' rx='1.8' ry='5.5' transform='rotate(-25 11 10)' fill='%2346C890' fill-opacity='0.36000000000000004'/%3E%3Cellipse cx='21' cy='10' rx='1.8' ry='5.5' transform='rotate(25 21 10)' fill='%2346C890' fill-opacity='0.36000000000000004'/%3E%3C/g%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 340'%3E%3Cg transform='translate(40,40) rotate(24) scale(0.8)'%3E%3Cpath d='M6 15 Q16 10 26 15 Q22 31 16 37 Q10 31 6 15 Z' fill='%23FCB424' fill-opacity='0.17600000000000005'/%3E%3Cellipse cx='12' cy='8' rx='2' ry='6' transform='rotate(-15 12 8)' fill='%2346C890' fill-opacity='0.17600000000000005'/%3E%3Cellipse cx='20' cy='8' rx='2' ry='6' transform='rotate(15 20 8)' fill='%2346C890' fill-opacity='0.17600000000000005'/%3E%3C/g%3E%3Cg transform='translate(200,70) rotate(-36) scale(0.85)'%3E%3Cpath d='M9 16 L23 16 L16 42 Z' fill='%23FCB424' fill-opacity='0.19800000000000004'/%3E%3Cellipse cx='16' cy='8' rx='2' ry='6' fill='%2346C890' fill-opacity='0.19800000000000004'/%3E%3Cellipse cx='11' cy='10' rx='1.8' ry='5.5' transform='rotate(-25 11 10)' fill='%2346C890' fill-opacity='0.19800000000000004'/%3E%3Cellipse cx='21' cy='10' rx='1.8' ry='5.5' transform='rotate(25 21 10)' fill='%2346C890' fill-opacity='0.19800000000000004'/%3E%3C/g%3E%3Cg transform='translate(270,200) rotate(-12) scale(0.8)'%3E%3Cpath d='M12 14 L20 14 L16 54 Z' fill='%23FCB424' fill-opacity='0.17600000000000005'/%3E%3Cellipse cx='16' cy='6' rx='1.7' ry='6' fill='%2346C890' fill-opacity='0.17600000000000005'/%3E%3Cellipse cx='10' cy='9' rx='1.6' ry='5' transform='rotate(-32 10 9)' fill='%2346C890' fill-opacity='0.17600000000000005'/%3E%3Cellipse cx='22' cy='9' rx='1.6' ry='5' transform='rotate(32 22 9)' fill='%2346C890' fill-opacity='0.17600000000000005'/%3E%3C/g%3E%3Cg transform='translate(100,230) rotate(0) scale(0.9)'%3E%3Ccircle cx='16' cy='16' r='8' fill='%23FCB424' fill-opacity='0.17600000000000005'/%3E%3Ccircle cx='16' cy='16' r='4.3' fill='none' stroke='%2346C890' stroke-opacity='0.17600000000000005' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(190,255) rotate(-20) scale(0.8)'%3E%3Cellipse cx='16' cy='10' rx='2' ry='7' fill='%2346C890' fill-opacity='0.154'/%3E%3Cellipse cx='10' cy='13' rx='1.8' ry='6' transform='rotate(-35 10 13)' fill='%2346C890' fill-opacity='0.154'/%3E%3Cellipse cx='22' cy='13' rx='1.8' ry='6' transform='rotate(35 22 13)' fill='%2346C890' fill-opacity='0.154'/%3E%3Cpath d='M16 17 L16 28' stroke='%2346C890' stroke-opacity='0.154' stroke-width='1.3' fill='none'/%3E%3C/g%3E%3C/svg%3E");
	background-position: 0 0, 170px 90px;
	background-size: 400px 400px, 340px 340px;
	background-repeat: repeat, repeat;
	animation: bj-drift-carrots 60s linear infinite;
}
@keyframes bj-drift-carrots {
	from { background-position: 0 0, 170px 90px; }
	to   { background-position: 400px 400px, 510px 430px; }
}

/* --- Solo orecchie, più astratto e delicato — 2 livelli --- */
.bj-bg-ears {
	background-color: var(--bj-mint-pale);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='e'%3E%3Cellipse cx='9' cy='16' rx='5' ry='16' transform='rotate(-12 9 16)' fill='%23183D35' fill-opacity='0.1'/%3E%3Cellipse cx='23' cy='16' rx='5' ry='16' transform='rotate(12 23 16)' fill='%23183D35' fill-opacity='0.1'/%3E%3Cellipse cx='9' cy='18' rx='2' ry='10' transform='rotate(-12 9 18)' fill='%23FF806D' fill-opacity='0.18'/%3E%3Cellipse cx='23' cy='18' rx='2' ry='10' transform='rotate(12 23 18)' fill='%23FF806D' fill-opacity='0.18'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23e' transform='translate(51,71) rotate(-10)'/%3E%3Cuse href='%23e' transform='translate(200,200) rotate(15) scale(1.2)'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cdefs%3E%3Cg id='e2'%3E%3Cellipse cx='9' cy='16' rx='5' ry='16' transform='rotate(-12 9 16)' fill='%23183D35' fill-opacity='0.06'/%3E%3Cellipse cx='23' cy='16' rx='5' ry='16' transform='rotate(12 23 16)' fill='%23183D35' fill-opacity='0.06'/%3E%3Cellipse cx='9' cy='18' rx='2' ry='10' transform='rotate(-12 9 18)' fill='%23FF806D' fill-opacity='0.1'/%3E%3Cellipse cx='23' cy='18' rx='2' ry='10' transform='rotate(12 23 18)' fill='%23FF806D' fill-opacity='0.1'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23e2' transform='translate(240,40) rotate(30) scale(1.15)'/%3E%3C/svg%3E");
	background-position: 0 0, 130px 180px;
	background-size: 300px 300px, 300px 300px;
	background-repeat: repeat, repeat;
	animation: bj-drift-ears 65s linear infinite;
}
@keyframes bj-drift-ears {
	from { background-position: 0 0, 130px 180px; }
	to   { background-position: 300px 300px, 430px 480px; }
}

/* =========================================================
   4. LIGHTBOX — click per vedere l'immagine intera
   Attiva automaticamente su .bj-gallery-masonry,
   .bj-gallery-grid-reveal e .bj-gallery-phone (richiede il JS).
   ========================================================= */

.bj-gallery-masonry img,
.bj-gallery-grid-reveal img,
.bj-gallery-phone img {
	cursor: zoom-in;
}

.bj-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(24, 61, 53, 0.92);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--bj-ease-smooth);
}
.bj-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.bj-lightbox figure {
	margin: 0;
	max-width: 92vw;
	max-height: 88vh;
	transform: scale(0.92);
	transition: transform 0.35s var(--bj-ease-bounce);
}
.bj-lightbox.is-open figure {
	transform: scale(1);
}
.bj-lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
	cursor: default;
}
.bj-lightbox figcaption {
	margin-top: 10px;
	text-align: center;
	color: var(--bj-cream);
	font-size: 14px;
	opacity: 0.85;
}
.bj-lightbox button {
	position: absolute;
	appearance: none;
	border: none;
	background: rgba(255, 249, 232, 0.14);
	color: var(--bj-cream);
	cursor: pointer;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}
.bj-lightbox button:hover {
	background: rgba(255, 249, 232, 0.28);
	transform: scale(1.06);
}
.bj-lightbox-close {
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	font-size: 20px;
}
.bj-lightbox-prev,
.bj-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 22px;
}
.bj-lightbox-prev:hover,
.bj-lightbox-next:hover {
	transform: translateY(-50%) scale(1.06);
}
.bj-lightbox-prev { left: 16px; }
.bj-lightbox-next { right: 16px; }
.bj-lightbox-count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--bj-cream);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

@media (max-width: 560px) {
	.bj-lightbox-prev, .bj-lightbox-next { width: 40px; height: 40px; }
	.bj-lightbox-prev { left: 6px; }
	.bj-lightbox-next { right: 6px; }
}

/* =========================================================
   5b. CARD SOFT — box con sfondo tenue per allineare colonne
   (es. le 3 colonne "Cos'è / Niente AI qui / Conigli senza limiti")
   Applica la classe a ciascuna colonna e imposta "Align Items:
   Stretch" sul container che le contiene, così tutte le card
   hanno la stessa altezza e icone/titoli partono allineati.
   ========================================================= */
.bj-card-soft {
	background: var(--bj-mint-pale);
	border-radius: var(--bj-radius);
	padding: 34px 28px;
	height: 100%;
	box-shadow: var(--bj-shadow-soft);
	transition: transform 0.35s var(--bj-ease-bounce), box-shadow 0.35s ease;
}
.bj-card-soft:hover {
	transform: translateY(-5px);
	box-shadow: var(--bj-shadow-hover);
}
/* Varianti colore, stessa struttura */
.bj-card-soft.bj-card-cream { background: var(--bj-cream); }
.bj-card-soft.bj-card-white { background: #ffffff; }

/* =========================================================
   5. CARD STICKER — box immagine in stile polaroid/adesivo
   ========================================================= */
.bj-card-sticker {
	position: relative;
	display: inline-block;
	background: #ffffff;
	padding: 10px 10px 32px;
	border-radius: 6px;
	box-shadow: var(--bj-shadow-soft);
	transform: rotate(-3deg);
	transition: transform 0.4s var(--bj-ease-bounce), box-shadow 0.4s ease;
}
.bj-card-sticker:nth-child(even) {
	transform: rotate(2.5deg);
}
.bj-card-sticker:hover {
	transform: rotate(0deg) translateY(-6px) scale(1.02);
	box-shadow: var(--bj-shadow-hover);
	z-index: 2;
}
.bj-card-sticker img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}
.bj-card-sticker figcaption {
	margin-top: 10px;
	text-align: center;
	font-size: 14px;
	color: var(--bj-charcoal);
}
/* Striscia di washi tape decorativa, ancorata in cima */
.bj-card-sticker::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%) rotate(-4deg);
	width: 56px;
	height: 22px;
	background: rgba(255, 205, 5, 0.78);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	border-radius: 2px;
}
/* Variante senza tape, per chi preferisce il look più pulito */
.bj-card-sticker.bj-no-tape::before {
	content: none;
}

/* Rispetta le preferenze di accessibilità: riduce le animazioni continue */
@media (prefers-reduced-motion: reduce) {
	.bj-float,
	.bj-float-slow,
	.bj-sway,
	.bj-sway-slow,
	.bj-bg-blobs,
	.bj-bg-confetti,
	.bj-bg-paws,
	.bj-bg-bunny-hop,
	.bj-bg-carrots,
	.bj-bg-ears,
	.bj-spin-hover:hover,
	.bj-bounce-hover:hover,
	.bj-heartbeat-hover:hover,
	.bj-flip-hover:hover,
	.bj-btn-jelly-hover:hover,
	.bj-btn-shine-hover:hover::after {
		animation: none !important;
	}
	.bj-tilt {
		transition: none !important;
	}
}

/* =========================================================
   Home: 3 colonne "Cos'è / Niente AI qui / Conigli senza limiti"
   Applicato via ID Elementor (sezione 064da14, colonne 49ee6d9,
   676fd26, c184db5): stessa larghezza/altezza + macchia di colore
   dietro il coniglietto. Se la sezione viene ricreata, gli ID
   cambiano e questa regola va aggiornata.
   ========================================================= */
body .elementor-element-064da14.e-con {
	align-items: stretch !important;
}
body .elementor-element-49ee6d9.e-con,
body .elementor-element-676fd26.e-con,
body .elementor-element-c184db5.e-con {
	position: relative;
	isolation: isolate;
	padding: 24px 24px 34px;
	justify-content: flex-start !important;
	align-items: center !important;
	align-self: stretch !important;
	background: transparent !important;
	box-shadow: none !important;
}
@media (min-width: 768px) {
	body .elementor-element-49ee6d9.e-con,
	body .elementor-element-676fd26.e-con,
	body .elementor-element-c184db5.e-con {
		flex: 1 1 0% !important;
		width: auto !important;
		min-width: 0 !important;
	}
}
/* I widget interni hanno la classe bj-card-soft: qui il box tenue non serve */
body .elementor-element-294fb62.bj-card-soft,
body .elementor-element-7ee75e7.bj-card-soft,
body .elementor-element-d590179.bj-card-soft {
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	padding: 0 !important;
	height: auto !important;
}
body .elementor-element-49ee6d9 .elementor-image-box-description,
body .elementor-element-676fd26 .elementor-image-box-description,
body .elementor-element-c184db5 .elementor-image-box-description {
	font-family: "Preahvihear", sans-serif;
}
/* La macchia sta dietro al blocco di testo: ancorata al widget, quindi segue l'altezza del testo */
body .elementor-element-294fb62,
body .elementor-element-7ee75e7,
body .elementor-element-d590179 { position: relative; isolation: isolate; }
body .elementor-element-294fb62::before,
body .elementor-element-7ee75e7::before,
body .elementor-element-d590179::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 120px;
	bottom: -24px;
	left: 50%;
	width: min(106%, 420px);
	--r: -2deg;
	transform: translateX(-50%) rotate(var(--r));
	border-radius: 58% 42% 63% 37% / 41% 57% 43% 59%;
	background: var(--bj-mint);
	opacity: 0.9;
	animation: bj-blob-morph 14s ease-in-out infinite;
	pointer-events: none;
}
/* Testi dei 3 blocchi in palette: titoli verdi (#1E6B50), descrizione in verde bosco più morbido */
body .elementor-element-49ee6d9 .elementor-image-box-title,
body .elementor-element-676fd26 .elementor-image-box-title,
body .elementor-element-c184db5 .elementor-image-box-title { color: #1E6B50 !important; }
body .elementor-element-49ee6d9 .elementor-image-box-description,
body .elementor-element-676fd26 .elementor-image-box-description,
body .elementor-element-c184db5 .elementor-image-box-description { color: #2f574b !important; }
/* Colori solo dalla palette del kit: menta, giallo, ambra (nessun rosso) */
body .elementor-element-7ee75e7::before {
	--r: 2.5deg;
	border-radius: 34% 66% 47% 53% / 58% 36% 64% 42%;
	background: color-mix(in srgb, var(--bj-yellow) 42%, var(--bj-cream));
	animation-name: bj-blob-morph-b;
	animation-delay: -4s;
}
body .elementor-element-d590179::before {
	--r: -1deg;
	border-radius: 45% 55% 32% 68% / 36% 62% 38% 64%;
	background: color-mix(in srgb, var(--bj-amber) 40%, var(--bj-cream));
	animation-name: bj-blob-morph-c;
	animation-delay: -8s;
}
@keyframes bj-blob-morph {
	0%, 100% { border-radius: 58% 42% 63% 37% / 41% 57% 43% 59%; }
	50%      { border-radius: 38% 62% 41% 59% / 63% 40% 60% 37%; }
}
@keyframes bj-blob-morph-b {
	0%, 100% { border-radius: 34% 66% 47% 53% / 58% 36% 64% 42%; }
	50%      { border-radius: 60% 40% 35% 65% / 38% 62% 38% 62%; }
}
@keyframes bj-blob-morph-c {
	0%, 100% { border-radius: 45% 55% 32% 68% / 36% 62% 38% 64%; }
	50%      { border-radius: 30% 70% 58% 42% / 62% 35% 65% 38%; }
}
@media (prefers-reduced-motion: reduce) {
	body .elementor-element-294fb62::before,
	body .elementor-element-7ee75e7::before,
	body .elementor-element-d590179::before { animation: none; }
}

/* =========================================================
   Parola che cambia — nel testo scrivere {una|due|tre}
   ========================================================= */
.bj-rotator {
	display: inline-grid;
	vertical-align: baseline;
	text-align: left;
	font-weight: 700;
	color: var(--bj-rotator-color, #ce951a);
}
.bj-rotator.is-ready {
	transition: width 0.5s var(--bj-ease-smooth);
}
.bj-rotator-word {
	grid-area: 1 / 1;
	justify-self: start;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(0.45em);
	transition: opacity 0.45s ease, transform 0.5s var(--bj-ease-bounce);
}
.bj-rotator-word.is-active {
	opacity: 1;
	transform: none;
}
.bj-rotator-word.is-leaving {
	opacity: 0;
	transform: translateY(-0.45em);
}
@media (prefers-reduced-motion: reduce) {
	.bj-rotator-word { transition: none; }
}

/* =========================================================
   Scena animata "coniglio con bouquet" (bj-bq)
   Livelli separati: corpo, orecchie, petalo blu, segno, 4 farfalle.
   ========================================================= */
.bj-bq { position: relative; width: 640px; max-width: 100%; margin-inline: auto; aspect-ratio: 1540 / 1780; }
.bj-bq img { position: absolute; display: block; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.bj-bq-body { position: absolute; inset: 0; transform-origin: 50% 96%; animation: bj-bq-breathe 4.6s ease-in-out infinite; }
@keyframes bj-bq-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.004, 1.012); } }

.bj-bq-ear-l { transform-origin: 85.36% 78.992%; animation: bj-bq-twitch-l 7.5s ease-in-out infinite; }
.bj-bq-ear-r { transform-origin: 67.089% 94.409%; animation: bj-bq-twitch-r 9.5s ease-in-out infinite 1.8s; }
@keyframes bj-bq-twitch-l { 0%, 62%, 100% { transform: none; } 67% { transform: matrix(1.0150, -0.0142, 0.0158, 0.9850, 0, 0); } 72% { transform: matrix(1.0020, -0.0019, 0.0021, 0.9980, 0, 0); } 77% { transform: matrix(1.0120, -0.0113, 0.0127, 0.9880, 0, 0); } 84% { transform: none; } }
@keyframes bj-bq-twitch-r { 0%, 58%, 100% { transform: none; } 64% { transform: matrix(0.9982, -0.0001, 0.0249, 1.0018, 0, 0); } 70% { transform: matrix(1.0003, 0.0000, -0.0040, 0.9997, 0, 0); } 76% { transform: matrix(0.9985, -0.0001, 0.0199, 1.0015, 0, 0); } 84% { transform: none; } }

.bj-bq-petal { transform-origin: 45.136% 30.263%; animation: bj-bq-petal 3.8s ease-in-out infinite alternate; }
@keyframes bj-bq-petal { from { transform: rotate(-2deg); } to { transform: rotate(2.2deg); } }

.bj-bq-scribble { transform-origin: 50% 100%; animation: bj-bq-scribble 2.6s ease-in-out infinite; }
@keyframes bj-bq-scribble { 0%, 100% { opacity: 0.25; transform: translateY(3%) scale(0.96); } 50% { opacity: 1; transform: translateY(-3%) scale(1.04) rotate(-2deg); } }

.bj-bq-fly { position: absolute; display: block; }
.bj-bq .bj-bq-flap { position: static; width: 100%; transform-origin: 50% 50%; animation: bj-bq-flap 0.42s ease-in-out infinite alternate; }
@keyframes bj-bq-flap { from { transform: scaleX(1); } to { transform: scaleX(0.45); } }
.bj-bq-fly-1 { animation: bj-bq-path-1 9s ease-in-out infinite; }
.bj-bq-fly-2 { animation: bj-bq-path-2 11s ease-in-out infinite 1s; }
.bj-bq-fly-3 { animation: bj-bq-path-3 8s ease-in-out infinite 0.5s; }
.bj-bq-fly-4 { animation: bj-bq-path-4 10s ease-in-out infinite 2s; }
.bj-bq-fly-1 .bj-bq-flap { transform-origin: 30% 70%; animation-duration: 0.38s; }
.bj-bq-fly-2 .bj-bq-flap { animation-duration: 0.46s; animation-delay: -0.2s; }
.bj-bq-fly-3 .bj-bq-flap { animation-duration: 0.4s; animation-delay: -0.1s; }
.bj-bq-fly-4 .bj-bq-flap { animation-duration: 0.5s; animation-delay: -0.3s; }
@keyframes bj-bq-path-1 { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(35%, -30%) rotate(6deg); } 50% { transform: translate(75%, 8%) rotate(-5deg); } 75% { transform: translate(30%, 45%) rotate(5deg); } }
@keyframes bj-bq-path-2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(-90%, -25%) rotate(-10deg); } 60% { transform: translate(60%, -45%) rotate(8deg); } 80% { transform: translate(90%, 10%) rotate(0); } }
@keyframes bj-bq-path-3 { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(-60%, 40%) rotate(-8deg); } 66% { transform: translate(50%, 55%) rotate(10deg); } }
@keyframes bj-bq-path-4 { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(70%, -50%) rotate(8deg); } 55% { transform: translate(110%, 20%) rotate(-6deg); } 80% { transform: translate(30%, 60%) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .bj-bq *, .bj-bq-fly { animation: none !important; } }

/* =========================================================
   Disegno "vivo" (bj-boil) — il tratto vibra piano come in un'animazione a mano
   e il disegno ondeggia appena. Si applica a un contenitore con l'illustrazione.
   Richiede il JS del kit (inietta il filtro SVG).
   ========================================================= */
.bj-boil { filter: url(#bj-boil-filter); }
@media (prefers-reduced-motion: reduce) { .bj-boil { filter: none; } }

/* =========================================================
   Scena animata "ciotola di creature" (bj-bowl)
   Corpo fermo + occhi che sbattono le palpebre e si guardano intorno
   + orecchie che oscillano + alcuni frutti che dondolano o "respirano".
   ========================================================= */
.bj-bowl { position: relative; width: 100%; max-width: 1200px; margin-inline: auto; aspect-ratio: 1124 / 1125; }
/* Il widget che contiene la ciotola prende tutta la larghezza disponibile (fino a 1200px) e può restringersi:
   senza questo, in un contenitore "a misura del contenuto" la scena collassa a larghezza 0. */
.elementor-widget:has(> .bj-bowl), .elementor-element-0bc656d { width: 1200px; max-width: 100%; min-width: 0; }
@media (min-width: 768px) { body .elementor-element-0bc656d.elementor-widget { max-width: calc(100% - 480px); } }
body .elementor-element-d4add9e.e-con { flex-shrink: 0; }
.bj-bowl-art { position: absolute; inset: 0; }
.bj-bowl img { position: absolute; display: block; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.bj-bowl .bj-bowl-base { inset: 0; width: 100%; height: 100%; }
.bj-bowl-fruit { position: absolute; }
.bj-bowl .bj-bowl-fruit > img { left: 0; top: 0; width: 100%; height: 100%; }
.bj-bowl-eye { position: absolute; display: block; transform-origin: 50% 50%; animation: bj-blink var(--d, 5s) ease-in-out var(--o, 0s) infinite; pointer-events: none; }
.bj-bowl-eye b { position: absolute; inset: 0; display: block; background-image: var(--bj-sheet); background-repeat: no-repeat; animation: bj-look var(--ld, 6s) ease-in-out var(--lo, 0s) infinite; }
@keyframes bj-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
@keyframes bj-look { 0%, 38%, 100% { transform: translateX(0); } 46%, 62% { transform: translateX(var(--lk, 14%)); } 70% { transform: translateX(0); } }
.bj-bowl-ear-wm { transform-origin: 23.445% 83.750%; animation: bj-bowl-sway-wm 2.3s ease-in-out infinite alternate; }
.bj-bowl-ear-cuc { transform-origin: 17.178% 81.977%; animation: bj-bowl-sway-cuc 2.8s ease-in-out -1.1s infinite alternate; }
@keyframes bj-bowl-sway-wm { from { transform: matrix(0.9804, -0.0240, 0.0160, 1.0196, 0, 0); } to { transform: matrix(1.0294, 0.0360, -0.0240, 0.9706, 0, 0); } }
@keyframes bj-bowl-sway-cuc { from { transform: matrix(0.9802, -0.0229, 0.0171, 1.0198, 0, 0); } to { transform: matrix(1.0297, 0.0344, -0.0256, 0.9703, 0, 0); } }
@keyframes bj-bowl-swing { from { transform: rotate(calc(var(--a, 3deg) * -1)); } to { transform: rotate(var(--a, 3deg)); } }
@keyframes bj-bowl-pulse { from { transform: scale(1); } to { transform: scale(var(--s, 1.04)); } }
.bj-bowl-fruit-tulip { transform-origin: 22.1% 94.7%; --a: 1.5deg; animation: bj-bowl-swing 1.3s ease-in-out infinite alternate; }
.bj-bowl-fruit-plum1 { transform-origin: 54.5% 4.6%; --a: 1.2deg; animation: bj-bowl-swing 1.1s ease-in-out infinite alternate; }
.bj-bowl-fruit-plum2 { transform-origin: 26.4% 23.5%; --a: 2.0deg; animation: bj-bowl-swing 0.9s ease-in-out infinite alternate; }
.bj-bowl-fruit-plum3 { transform-origin: 33.7% 7.6%; --a: 2.2deg; animation: bj-bowl-swing 0.8s ease-in-out infinite alternate; }
.bj-bowl-fruit-leftplum { transform-origin: 50% 55%; --s: 1.03; animation: bj-bowl-pulse 1.2s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .bj-bowl *, .bj-bowl-eye { animation: none !important; } }

/* =========================================================
   5. SEZIONE CONTATTI (scura) — carotine chiare statiche + Contact Form 7 in palette
   Si applica da solo alla sezione "Ti è venuta per caso voglia di un lapino?" (id d1945de).
   Per riusarli altrove: classe  bj-bg-carrots-light  sul container (sfondo)  e  bj-form  sul container del form.
   Il colore di sfondo resta quello impostato in Elementor: qui si aggiunge solo il pattern.
   ========================================================= */
.bj-bg-carrots-light,
.bj-footer,
body #offcanvas .ct-panel-inner,
body .elementor-element-d1945de.e-con {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg transform='translate(48,52) rotate(-14) scale(1.0)'%3E%3Cpath d='M9 16 L23 16 L16 42 Z' fill='%23FED569' fill-opacity='0.2'/%3E%3Cellipse cx='16' cy='8' rx='2' ry='6' fill='%23BDEED8' fill-opacity='0.2'/%3E%3Cellipse cx='11' cy='10' rx='1.8' ry='5.5' transform='rotate(-25 11 10)' fill='%23BDEED8' fill-opacity='0.2'/%3E%3Cellipse cx='21' cy='10' rx='1.8' ry='5.5' transform='rotate(25 21 10)' fill='%23BDEED8' fill-opacity='0.2'/%3E%3C/g%3E%3Cg transform='translate(250,36) rotate(22) scale(0.9)'%3E%3Cpath d='M12 14 L20 14 L16 54 Z' fill='%23FED569' fill-opacity='0.17'/%3E%3Cellipse cx='16' cy='6' rx='1.7' ry='6' fill='%23BDEED8' fill-opacity='0.17'/%3E%3Cellipse cx='10' cy='9' rx='1.6' ry='5' transform='rotate(-32 10 9)' fill='%23BDEED8' fill-opacity='0.17'/%3E%3Cellipse cx='22' cy='9' rx='1.6' ry='5' transform='rotate(32 22 9)' fill='%23BDEED8' fill-opacity='0.17'/%3E%3C/g%3E%3Cg transform='translate(330,170) rotate(-28) scale(1.2)'%3E%3Cpath d='M6 15 Q16 10 26 15 Q22 31 16 37 Q10 31 6 15 Z' fill='%23FED569' fill-opacity='0.2'/%3E%3Cellipse cx='12' cy='8' rx='2' ry='6' transform='rotate(-15 12 8)' fill='%23BDEED8' fill-opacity='0.2'/%3E%3Cellipse cx='20' cy='8' rx='2' ry='6' transform='rotate(15 20 8)' fill='%23BDEED8' fill-opacity='0.2'/%3E%3C/g%3E%3Cg transform='translate(150,150) rotate(0) scale(1.0)'%3E%3Ccircle cx='16' cy='16' r='8' fill='%23FED569' fill-opacity='0.18000000000000002'/%3E%3Ccircle cx='16' cy='16' r='4.3' fill='none' stroke='%23BDEED8' stroke-opacity='0.18000000000000002' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(60,280) rotate(12) scale(1.0)'%3E%3Cellipse cx='16' cy='10' rx='2' ry='7' fill='%23BDEED8' fill-opacity='0.16000000000000003'/%3E%3Cellipse cx='10' cy='13' rx='1.8' ry='6' transform='rotate(-35 10 13)' fill='%23BDEED8' fill-opacity='0.16000000000000003'/%3E%3Cellipse cx='22' cy='13' rx='1.8' ry='6' transform='rotate(35 22 13)' fill='%23BDEED8' fill-opacity='0.16000000000000003'/%3E%3Cpath d='M16 17 L16 28' stroke='%23BDEED8' stroke-opacity='0.16000000000000003' stroke-width='1.3' fill='none'/%3E%3C/g%3E%3Cg transform='translate(230,300) rotate(34) scale(1.15)'%3E%3Cpath d='M9 16 L23 16 L16 42 Z' fill='%23FED569' fill-opacity='0.18000000000000002'/%3E%3Cellipse cx='16' cy='8' rx='2' ry='6' fill='%23BDEED8' fill-opacity='0.18000000000000002'/%3E%3Cellipse cx='11' cy='10' rx='1.8' ry='5.5' transform='rotate(-25 11 10)' fill='%23BDEED8' fill-opacity='0.18000000000000002'/%3E%3Cellipse cx='21' cy='10' rx='1.8' ry='5.5' transform='rotate(25 21 10)' fill='%23BDEED8' fill-opacity='0.18000000000000002'/%3E%3C/g%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 340'%3E%3Cg transform='translate(40,40) rotate(24) scale(0.8)'%3E%3Cpath d='M6 15 Q16 10 26 15 Q22 31 16 37 Q10 31 6 15 Z' fill='%23FED569' fill-opacity='0.08800000000000002'/%3E%3Cellipse cx='12' cy='8' rx='2' ry='6' transform='rotate(-15 12 8)' fill='%23BDEED8' fill-opacity='0.08800000000000002'/%3E%3Cellipse cx='20' cy='8' rx='2' ry='6' transform='rotate(15 20 8)' fill='%23BDEED8' fill-opacity='0.08800000000000002'/%3E%3C/g%3E%3Cg transform='translate(200,70) rotate(-36) scale(0.85)'%3E%3Cpath d='M9 16 L23 16 L16 42 Z' fill='%23FED569' fill-opacity='0.09900000000000002'/%3E%3Cellipse cx='16' cy='8' rx='2' ry='6' fill='%23BDEED8' fill-opacity='0.09900000000000002'/%3E%3Cellipse cx='11' cy='10' rx='1.8' ry='5.5' transform='rotate(-25 11 10)' fill='%23BDEED8' fill-opacity='0.09900000000000002'/%3E%3Cellipse cx='21' cy='10' rx='1.8' ry='5.5' transform='rotate(25 21 10)' fill='%23BDEED8' fill-opacity='0.09900000000000002'/%3E%3C/g%3E%3Cg transform='translate(270,200) rotate(-12) scale(0.8)'%3E%3Cpath d='M12 14 L20 14 L16 54 Z' fill='%23FED569' fill-opacity='0.08800000000000002'/%3E%3Cellipse cx='16' cy='6' rx='1.7' ry='6' fill='%23BDEED8' fill-opacity='0.08800000000000002'/%3E%3Cellipse cx='10' cy='9' rx='1.6' ry='5' transform='rotate(-32 10 9)' fill='%23BDEED8' fill-opacity='0.08800000000000002'/%3E%3Cellipse cx='22' cy='9' rx='1.6' ry='5' transform='rotate(32 22 9)' fill='%23BDEED8' fill-opacity='0.08800000000000002'/%3E%3C/g%3E%3Cg transform='translate(100,230) rotate(0) scale(0.9)'%3E%3Ccircle cx='16' cy='16' r='8' fill='%23FED569' fill-opacity='0.08800000000000002'/%3E%3Ccircle cx='16' cy='16' r='4.3' fill='none' stroke='%23BDEED8' stroke-opacity='0.08800000000000002' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(190,255) rotate(-20) scale(0.8)'%3E%3Cellipse cx='16' cy='10' rx='2' ry='7' fill='%23BDEED8' fill-opacity='0.077'/%3E%3Cellipse cx='10' cy='13' rx='1.8' ry='6' transform='rotate(-35 10 13)' fill='%23BDEED8' fill-opacity='0.077'/%3E%3Cellipse cx='22' cy='13' rx='1.8' ry='6' transform='rotate(35 22 13)' fill='%23BDEED8' fill-opacity='0.077'/%3E%3Cpath d='M16 17 L16 28' stroke='%23BDEED8' stroke-opacity='0.077' stroke-width='1.3' fill='none'/%3E%3C/g%3E%3C/svg%3E") !important;
	background-position: 0 0, 170px 90px !important;
	background-size: 400px 400px, 340px 340px !important;
	background-repeat: repeat, repeat !important;
	animation: none;
}

.bj-form .wpcf7,
.elementor-element-d1945de .wpcf7 {
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
	font-family: "Preahvihear", sans-serif;
	color: var(--bj-cream);
	text-align: left;
}
.bj-form .wpcf7 form p,
.elementor-element-d1945de .wpcf7 form p { margin: 0 0 20px; }
.bj-form .wpcf7 label,
.elementor-element-d1945de .wpcf7 label {
	display: block;
	color: var(--bj-mint);
	font-family: inherit;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	line-height: 1.4;
}
.bj-form .wpcf7 .wpcf7-form-control-wrap,
.elementor-element-d1945de .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }

.bj-form .wpcf7 input[type="text"],
.bj-form .wpcf7 input[type="email"],
.bj-form .wpcf7 input[type="tel"],
.bj-form .wpcf7 input[type="url"],
.bj-form .wpcf7 textarea,
.elementor-element-d1945de .wpcf7 input[type="text"],
.elementor-element-d1945de .wpcf7 input[type="email"],
.elementor-element-d1945de .wpcf7 input[type="tel"],
.elementor-element-d1945de .wpcf7 input[type="url"],
.elementor-element-d1945de .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	background: var(--bj-cream);
	color: var(--bj-forest);
	font-family: inherit;
	font-size: 1rem;
	border: 2px solid transparent;
	border-radius: var(--bj-radius);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: border-color 0.25s var(--bj-ease-smooth), box-shadow 0.25s var(--bj-ease-smooth), transform 0.3s var(--bj-ease-bounce);
}
.elementor-element-d1945de .elementor-widget-shortcode,
.bj-form .elementor-widget-shortcode { width: min(100%, 560px); max-width: 100%; }
.bj-form .wpcf7 textarea,
.elementor-element-d1945de .wpcf7 textarea { min-height: 190px; resize: vertical; }
.bj-form .wpcf7 input:focus,
.bj-form .wpcf7 textarea:focus,
.elementor-element-d1945de .wpcf7 input:focus,
.elementor-element-d1945de .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--bj-yellow);
	box-shadow: 0 0 0 4px rgba(255, 205, 5, 0.28), 0 6px 18px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.bj-form .wpcf7 input[type="submit"],
.elementor-element-d1945de .wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 14px 40px;
	background: var(--bj-yellow);
	color: var(--bj-forest);
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	transition: transform 0.35s var(--bj-ease-bounce), background-color 0.25s var(--bj-ease-smooth), box-shadow 0.25s var(--bj-ease-smooth);
}
.bj-form .wpcf7 input[type="submit"]:hover,
.elementor-element-d1945de .wpcf7 input[type="submit"]:hover {
	background: var(--bj-amber);
	transform: translateY(-4px) rotate(-1.5deg);
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}
.bj-form .wpcf7 input[type="submit"]:active,
.elementor-element-d1945de .wpcf7 input[type="submit"]:active { transform: translateY(0) scale(0.97); }
.bj-form .wpcf7 input[type="submit"]:focus-visible,
.elementor-element-d1945de .wpcf7 input[type="submit"]:focus-visible { outline: 3px solid var(--bj-mint); outline-offset: 3px; }
.bj-form .wpcf7 .wpcf7-spinner,
.elementor-element-d1945de .wpcf7 .wpcf7-spinner { background-color: var(--bj-mint); }

/* Messaggi di validazione e di esito */
.bj-form .wpcf7 .wpcf7-not-valid-tip,
.elementor-element-d1945de .wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; color: var(--bj-coral); font-size: 0.95rem; }
.bj-form .wpcf7 form .wpcf7-response-output,
.elementor-element-d1945de .wpcf7 form .wpcf7-response-output {
	margin: 8px 0 0;
	padding: 12px 18px;
	color: var(--bj-cream);
	border: 2px solid var(--bj-mint);
	border-radius: var(--bj-radius);
	background: rgba(189, 238, 216, 0.1);
}
.bj-form .wpcf7 form.sent .wpcf7-response-output,
.elementor-element-d1945de .wpcf7 form.sent .wpcf7-response-output { border-color: var(--bj-green); background: rgba(70, 200, 144, 0.16); }
.bj-form .wpcf7 form.invalid .wpcf7-response-output,
.bj-form .wpcf7 form.unaccepted .wpcf7-response-output,
.bj-form .wpcf7 form.failed .wpcf7-response-output,
.elementor-element-d1945de .wpcf7 form.invalid .wpcf7-response-output,
.elementor-element-d1945de .wpcf7 form.unaccepted .wpcf7-response-output,
.elementor-element-d1945de .wpcf7 form.failed .wpcf7-response-output { border-color: var(--bj-coral); background: rgba(255, 128, 109, 0.14); }
.bj-form .wpcf7 form.spam .wpcf7-response-output,
.elementor-element-d1945de .wpcf7 form.spam .wpcf7-response-output { border-color: var(--bj-amber); background: rgba(252, 180, 36, 0.14); }

/* =========================================================
   6. SEZIONE "CHI SONO" (coniglio con i fiori) — sfondo sfumato dal menta (#BDEED8) al trasparente
   Si applica da solo al container 22b57b2; per riusarlo: classe  bj-bg-mint-fade  su qualsiasi container.
   Direzione: dal basso (menta pieno) verso l'alto (trasparente). Per invertirla, cambiare 0deg in 180deg.
   ========================================================= */
.bj-bg-mint-fade,
body .elementor-element-22b57b2.e-con {
	background-color: transparent !important;
	background-image: linear-gradient(0deg, #BDEED8 0%, rgba(189, 238, 216, 0) 100%) !important;
}

/* Coniglio "welcome": l'overlay di sfondo del container (::before/::after) copriva l'immagine
   e intercettava il mouse, quindi il salto (bj-jump-hover) non partiva. */
.elementor-element-bf47763.e-con::before,
.elementor-element-bf47763.e-con::after { pointer-events: none; }
.elementor-element-bf47763 > .e-image-base { position: relative; z-index: 1; }

/* =========================================================
   7. RESPONSIVE — TABLET (≤900px: sezioni a colonna) e MOBILE (≤767px: titoli e gallerie)
   Le sezioni della Home sono "riga" su desktop: sotto i 900px diventano colonna, si azzerano
   i margini in % che le spingevano fuori schermo e si riducono i titoli.
   Selettori per ID Elementor (stessa logica del blocco "Home: 3 colonne"): se la sezione
   viene ricreata, gli ID cambiano e vanno aggiornati.
   ========================================================= */
html, body { max-width: 100%; overflow-x: clip; }

/* --- Tablet e mobile (≤1024px): margini laterali in % azzerati --- */
@media (max-width: 1024px) {
	body .elementor-element-064da14.e-con,
	body .elementor-element-a6fe0c9.e-con,
	body .elementor-element-8b5453d.e-con,
	body .elementor-element-b93dc10.e-con {
		margin-inline: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		padding-inline: 28px !important;
	}
	body hr.e-divider-base { width: 100%; max-width: 100%; margin-inline: 0 !important; box-sizing: border-box; }
}

/* --- Tablet verticale e mobile (≤900px): da riga a colonna --- */
@media (max-width: 900px) {
	body .elementor-element-064da14.e-con,
	body .elementor-element-a6fe0c9.e-con,
	body .elementor-element-b93dc10.e-con,
	body .elementor-element-22b57b2.e-con {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 20px;
	}
	body .elementor-element-064da14.e-con { padding-block: 28px 40px !important; gap: 34px; align-items: center !important; }
	body .elementor-element-064da14 > .e-con {
		width: min(100%, 560px) !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 0 auto !important;
		height: auto !important;
		align-self: center !important;
		padding: 8px 8px 30px;
		box-sizing: border-box;
	}
	body .elementor-element-a6fe0c9 > .e-con,
	body .elementor-element-a6fe0c9 > .elementor-widget,
	body .elementor-element-b93dc10 > .e-con,
	body .elementor-element-22b57b2 > .e-con {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 0 auto !important;
		box-sizing: border-box;
	}
	body .elementor-element-294fb62::before,
	body .elementor-element-7ee75e7::before,
	body .elementor-element-d590179::before { width: 104%; }

	/* Ciotola di creature: tutta la larghezza, centrata */
	body .elementor-element-0bc656d.elementor-widget { width: 100% !important; max-width: 640px !important; margin-inline: auto; }
	body .elementor-element-d4add9e.e-con { flex-shrink: 0; }

	/* Polaroid: tre/due per riga invece di 200px fissi */
	body .elementor-element-cbe34fe.e-con,
	body .elementor-element-ea0efd6.e-con { align-items: stretch !important; padding-inline: 0 !important; margin-inline: 0 !important; }
	body .elementor-element-47725cb.elementor-widget { width: 100% !important; }
	body .elementor-element-47725cb div[style*="flex-wrap"] { gap: 24px 14px !important; justify-content: center; }
	figure.bj-card-sticker[style*="width:200px"] { width: calc(50% - 10px) !important; max-width: 300px; min-width: 0; }

	/* Chi sono: testo sopra, coniglio sotto, a tutta larghezza */
	body .elementor-element-22b57b2.e-con { padding: 28px 24px 0 !important; }
	body .elementor-element-6d6cc99 .bj-bq { width: min(100%, 460px); margin-inline: auto; }

	body .elementor-element-71ec8b4.e-con { padding-inline: 24px !important; }
	body .elementor-element-d1945de.e-con { padding-inline: 24px !important; }
	body .elementor-element-d1945de .elementor-widget-shortcode { width: min(100%, 560px); }
	body .elementor-element-ba811fa.e-con { margin-top: 24px; }

	/* Allineamento coerente: titoli e testi centrati nelle sezioni a colonna */
	body .elementor-element-d4add9e > * { align-self: center !important; }
	body .elementor-element-71ec8b4 h2, body .elementor-element-71ec8b4 p,
	body .elementor-element-d4add9e h2, body .elementor-element-d4add9e p,
	body .elementor-element-8b5453d h2, body .elementor-element-8b5453d p,
	body .elementor-element-ea0efd6 h2, body .elementor-element-ea0efd6 p { text-align: center !important; }
	body .elementor-element-d4add9e p { width: min(100%, 560px) !important; }
	body .elementor-element-ea0efd6 > img, body .elementor-element-ea0efd6 > .e-image-base { align-self: center !important; }
}

/* --- Mobile (≤767px) --- */
@media (max-width: 767px) {
	body .elementor-element-064da14.e-con,
	body .elementor-element-a6fe0c9.e-con,
	body .elementor-element-8b5453d.e-con,
	body .elementor-element-b93dc10.e-con { padding-inline: 16px !important; }
	body .elementor-element-22b57b2.e-con { padding: 24px 16px 0 !important; }
	/* stesso margine (16px) per tutti i testi: via i margini/padding interni delle colonne */
	body .elementor-element-d4add9e.e-con,
	body .elementor-element-db3c766.e-con,
	body .elementor-element-6d6cc99.e-con { margin-inline: 0 !important; padding-inline: 0 !important; }
	body .elementor-element-71ec8b4.e-con,
	body .elementor-element-d1945de.e-con { padding-inline: 16px !important; }
	body .elementor-element-ba811fa.e-con { padding-inline: 14px !important; }

	/* Titoli: dimensioni fluide, meno "spezzati" */
	body h1.e-870db7f-86ef77a {
		text-align: center !important;
		font-size: clamp(2.5rem, 13.5vw, 3.6rem) !important;
		line-height: 1.05 !important;
		overflow-wrap: break-word;
	}
	body h2.elementor-heading-title {
		font-size: clamp(1.75rem, 8.4vw, 2.4rem) !important;
		line-height: 1.15 !important;
		overflow-wrap: break-word;
	}
	body .elementor-element-66661dc,
	body .elementor-element-66661dc .elementor-widget-container { max-width: 100% !important; width: 100% !important; }
	body .elementor-element-66661dc p { font-size: 1.3rem; line-height: 1.35; }
	body .elementor-element-a6fe0c9 p,
	body .elementor-element-8b5453d p,
	body .elementor-element-71ec8b4 p { overflow-wrap: break-word; }
	body .elementor-widget-button .elementor-button { max-width: 100%; box-sizing: border-box; }

	/* Gallerie */
	.bj-gallery-masonry { columns: 2; column-gap: 10px; }
	.bj-gallery-masonry > * { margin-bottom: 10px; }
	figure.bj-card-sticker[style*="width:200px"] { width: calc(50% - 8px) !important; max-width: none; min-width: 0; }
	/* le polaroid sono inclinate: un piccolo margine interno le tiene allineate ai testi (margine 16px) */
	body .elementor-element-47725cb div[style*="flex-wrap"] { padding-inline: 8px; box-sizing: border-box; }
}

/* --- Quadro "Nascita di Venere lapina" (e qualsiasi immagine con classe bj-peek) ---
   Mobile: l'immagine è più grande dello schermo e sporge a destra; al tocco (o al passaggio
   del mouse) si rimpicciolisce fino a mostrarsi per intero. Tablet: semplicemente più grande. */
@media (max-width: 767px) {
	body img.e-71c6f35-6a8d07f,
	body img.bj-peek {
		display: block;
		width: 150% !important;
		max-width: none !important;
		height: auto !important;
		align-self: flex-start !important;
		margin: 0 0 8px !important;
		cursor: pointer;
		animation: none !important;
		transition: width 0.55s var(--bj-ease-smooth);
		-webkit-tap-highlight-color: transparent;
	}
	body img.e-71c6f35-6a8d07f.is-open,
	body img.bj-peek.is-open { width: 100% !important; }
	@media (hover: hover) {
		body img.e-71c6f35-6a8d07f:hover,
		body img.bj-peek:hover { width: 100% !important; }
	}
	body .elementor-element-8b5453d.e-con { overflow-x: clip; }
}
/* Coniglio con i fiori (Chi sono): stesso effetto del quadro — più grande dello schermo,
   al tocco si mostra intero. */
@media (max-width: 767px) {
	body .elementor-element-6d6cc99 .bj-bq {
		width: 145% !important;
		max-width: none !important;
		margin-left: -10% !important;
		margin-right: 0 !important;
		cursor: pointer;
		transition: width 0.55s var(--bj-ease-smooth), margin-left 0.55s var(--bj-ease-smooth);
		-webkit-tap-highlight-color: transparent;
	}
	body .elementor-element-6d6cc99 .bj-bq.is-open { width: 100% !important; margin-left: 0 !important; }
	@media (hover: hover) {
		body .elementor-element-6d6cc99 .bj-bq:hover { width: 100% !important; margin-left: 0 !important; }
	}
	body .elementor-element-22b57b2.e-con { overflow-x: clip; }
}
@media (min-width: 768px) and (max-width: 900px) {
	body img.e-71c6f35-6a8d07f { width: min(100%, 560px) !important; max-width: 100% !important; height: auto !important; align-self: center !important; }
}

/* --- Tablet (768–900px): titoli un po' più contenuti --- */
@media (min-width: 768px) and (max-width: 900px) {
	body h2.elementor-heading-title { font-size: clamp(2rem, 5.2vw, 2.7rem) !important; line-height: 1.15 !important; }
	.bj-gallery-masonry { columns: 3; column-gap: 12px; }
}


/* =========================================================
   8. ANIMAZIONI TESTO (titolo + paragrafi sotto di lui) E FOOTER
   ========================================================= */

/* Titoli con animazione di Elementor (slideInLeft, slideInUp…): lo stesso effetto vale per i
   paragrafi che li seguono, e tutti escono quando lasciano lo schermo (JS: initTextFx). */
.bj-fx { --fx-x: 0px; --fx-y: 0px; --fx-s: 1; }
/* Stessa distanza (in px/vw) per titolo e paragrafi: si muovono insieme, non di "100% della propria larghezza" */
.bj-fx[data-bj-fx-name="slideInLeft"]  { --fx-x: calc(-1 * clamp(70px, 16vw, 180px)); }
.bj-fx[data-bj-fx-name="slideInRight"] { --fx-x: clamp(70px, 16vw, 180px); }
.bj-fx[data-bj-fx-name="slideInUp"]    { --fx-y: clamp(50px, 8vw, 90px); }
.bj-fx[data-bj-fx-name="slideInDown"]  { --fx-y: calc(-1 * clamp(50px, 8vw, 90px)); }
.bj-fx[data-bj-fx-name="fadeInUp"]     { --fx-y: 40px; }
.bj-fx[data-bj-fx-name="fadeInDown"]   { --fx-y: -40px; }
.bj-fx[data-bj-fx-name="fadeInLeft"]   { --fx-x: -40px; }
.bj-fx[data-bj-fx-name="fadeInRight"]  { --fx-x: 40px; }
.bj-fx[data-bj-fx-name="zoomIn"]       { --fx-s: 0.6; }
.bj-fx-hidden { opacity: 0; }
.bj-fx.bj-fx-done { opacity: 1; transform: none; animation: none; }
.bj-fx.bj-fx-in, .bj-fx.bj-fx-out { pointer-events: none; }
.bj-fx.bj-fx-in  { animation: bj-fx-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--bj-fx-delay, 0s) both; }
.bj-fx.bj-fx-out { animation: bj-fx-out 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) both; }
@keyframes bj-fx-in {
	from { opacity: 0; transform: translate3d(var(--fx-x), var(--fx-y), 0) scale(var(--fx-s)); }
	to   { opacity: 1; transform: none; }
}
@keyframes bj-fx-out {
	from { opacity: 1; transform: none; }
	to   { opacity: 0; transform: translate3d(var(--fx-x), var(--fx-y), 0) scale(var(--fx-s)); }
}
@media (prefers-reduced-motion: reduce) {
	.bj-fx, .bj-fx.bj-fx-in, .bj-fx.bj-fx-out { animation: none; opacity: 1; }
}

/* --- Footer --- */
#footer.ct-footer { display: none; }
.bj-footer {
	position: relative;
	background-color: var(--bj-forest);
	color: var(--bj-cream);
	font-family: "Preahvihear", sans-serif;
	margin-top: 0;
	padding: 56px 28px 0;
	overflow: hidden;
}
.bj-footer-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px 48px;
	padding-bottom: 44px;
}
.bj-footer-logo {
	display: inline-block;
	font-family: "Delius Swash Caps", "Preahvihear", cursive;
	font-size: 2rem;
	line-height: 1.1;
	color: var(--bj-yellow);
	text-decoration: none;
	transition: transform 0.35s var(--bj-ease-bounce);
}
.bj-footer-logo:hover { transform: rotate(-3deg) scale(1.04); }
.bj-footer-brand p { margin: 12px 0 18px; color: var(--bj-mint); max-width: 28ch; line-height: 1.5; }
.bj-footer-col h2 {
	margin: 0 0 14px;
	font-family: "Delius Swash Caps", "Preahvihear", cursive;
	font-size: 1.15rem;
	font-weight: 400;
	color: var(--bj-yellow);
}
.bj-footer ul { list-style: none; margin: 0; padding: 0; }
.bj-footer-col li { margin: 0 0 9px; }
.bj-footer a { color: var(--bj-mint); text-decoration: none; transition: color 0.25s var(--bj-ease-smooth), transform 0.3s var(--bj-ease-bounce); }
.bj-footer-col a { display: inline-block; background-image: linear-gradient(var(--bj-yellow), var(--bj-yellow)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--bj-ease-smooth), color 0.25s var(--bj-ease-smooth); }
.bj-footer-col a:hover,
.bj-footer-col a:focus-visible { color: var(--bj-yellow); background-size: 100% 2px; }
.bj-footer a:focus-visible { outline: 2px solid var(--bj-yellow); outline-offset: 3px; border-radius: 4px; }
.bj-footer-social { display: flex; gap: 10px; }
.bj-footer-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 2px solid rgba(189, 238, 216, 0.45);
	border-radius: 50%;
	color: var(--bj-mint);
}
.bj-footer-social a:hover,
.bj-footer-social a:focus-visible { color: var(--bj-forest); background: var(--bj-yellow); border-color: var(--bj-yellow); transform: translateY(-3px) rotate(-6deg); }
.bj-footer-bottom {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding: 18px 0 22px;
	border-top: 1px solid rgba(189, 238, 216, 0.22);
	font-size: 0.9rem;
	color: rgba(255, 249, 232, 0.75);
}
@media (max-width: 900px) {
	.bj-footer-inner { grid-template-columns: 1fr 1fr; }
	.bj-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.bj-footer { padding: 44px 20px 0; }
	.bj-footer-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
	.bj-footer-brand p { margin-inline: auto; }
	.bj-footer-social { justify-content: center; }
	.bj-footer-bottom { justify-content: center; text-align: center; }
}


/* --- Desktop (>1024px): le sezioni con margini in % non devono uscire a destra dallo schermo --- */
@media (min-width: 1025px) {
	body .elementor-element-064da14.e-con,
	body .elementor-element-a6fe0c9.e-con,
	body .elementor-element-8b5453d.e-con,
	body .elementor-element-b93dc10.e-con {
		width: auto !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	/* Polaroid: 4 foto visibili in 2 righe da 2, mai tagliate */
	body .elementor-element-47725cb div[style*="flex-wrap"] { justify-content: center; gap: 28px 24px !important; }
	figure.bj-card-sticker[style*="width:200px"] { width: calc(50% - 12px) !important; max-width: 300px; }
}


/* --- Footer: coniglio in basso a destra (lo stesso di "Va dove ti porta il codino", un po' più piccolo) --- */
.bj-footer-bunny {
	position: absolute;
	right: max(28px, calc(50% - 570px));
	bottom: 66px;
	width: 170px;
	height: auto;
	pointer-events: auto;
	user-select: none;
	-webkit-user-drag: none;
}
@media (max-width: 900px) {
	.bj-footer-bunny { width: 140px; bottom: 80px; }
}
@media (max-width: 560px) {
	.bj-footer-bunny { position: static; display: block; width: 120px; margin: 4px auto 14px; }
}


/* --- Link alle sezioni della Home (ancore) --- */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
#cose-bunny-jumping, #città_lapine, #gourmet_lapini, #arte_lapina,
#ritratti_lapini, #chi_sono, #commissioni_lapine { scroll-margin-top: 16px; }


/* --- Home: niente striscia di sfondo tra l'ultima sezione e il footer --- */
body.home .site-main > .ct-container-full,
body.page-id-608 .site-main > .ct-container-full { padding-bottom: 0 !important; }
body.home .site-main,
body.page-id-608 .site-main { margin-bottom: 0; }


/* --- Gallery "a colonne sfalsate": colonne di larghezza diversa e non allineate in alto ---
   Struttura: .bj-gallery-stagger > .bj-col (x3) > div > img.
   La 1ª colonna è più stretta, la 3ª più larga; sulla 1ª e sulla 3ª le immagini partono più in basso. */
.bj-gallery-stagger {
	display: grid;
	grid-template-columns: 0.82fr 1fr 1.45fr;
	gap: 18px;
	align-items: start;
}
.bj-gallery-stagger > .bj-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bj-gallery-stagger > .bj-col:nth-child(1) { margin-top: 84px; }
.bj-gallery-stagger > .bj-col:nth-child(2) { margin-top: 0; }
.bj-gallery-stagger > .bj-col:nth-child(3) { margin-top: 36px; }
.bj-gallery-stagger > .bj-col > * {
	position: relative;
	border-radius: var(--bj-radius);
	overflow: hidden;
	box-shadow: var(--bj-shadow-soft);
	transition: box-shadow 0.35s var(--bj-ease-smooth);
}
.bj-gallery-stagger > .bj-col > *:hover { box-shadow: var(--bj-shadow-hover); }
.bj-gallery-stagger img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.6s var(--bj-ease-smooth);
}
.bj-gallery-stagger > .bj-col > *:hover img { transform: scale(1.08) rotate(-0.6deg); }
.bj-gallery-stagger > .bj-col > *::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(24, 61, 53, 0.55) 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}
.bj-gallery-stagger > .bj-col > *:hover::after { opacity: 1; }
/* Mobile: le colonne si "sciolgono" e le immagini scorrono su 2 colonne come prima */
@media (max-width: 767px) {
	.bj-gallery-stagger { display: block; columns: 2; column-gap: 10px; }
	.bj-gallery-stagger > .bj-col { display: contents; }
	.bj-gallery-stagger > .bj-col > * { break-inside: avoid; margin-bottom: 10px; }
}


/* --- Gallery a 3 immagini "trio": la 1ª più stretta, la 3ª molto più larga, non allineate in alto ---
   Si attiva aggiungendo la classe bj-gallery-trio a una .bj-gallery-masonry con 3 immagini. */
.bj-gallery-masonry.bj-gallery-trio {
	columns: auto;
	display: grid;
	grid-template-columns: 0.7fr 1fr 1.6fr;
	gap: 24px;
	align-items: center;
}
.bj-gallery-masonry.bj-gallery-trio > * { margin-bottom: 0; }
.bj-gallery-masonry.bj-gallery-trio > *:nth-child(1) { align-self: end; }
.bj-gallery-masonry.bj-gallery-trio > *:nth-child(2) { align-self: start; }
.bj-gallery-masonry.bj-gallery-trio > *:nth-child(3) { align-self: center; }
@media (max-width: 767px) {
	.bj-gallery-masonry.bj-gallery-trio { display: block; columns: 2; column-gap: 10px; }
	.bj-gallery-masonry.bj-gallery-trio > * { margin-bottom: 10px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.bj-gallery-masonry.bj-gallery-trio { gap: 16px; grid-template-columns: 0.75fr 1fr 1.45fr; }
}


/* (stessa gallery, agganciata all'ID del widget: resta valida anche se in Elementor si risalva l'HTML senza la classe) --- Gallery a 3 immagini "trio": la 1ª più stretta, la 3ª molto più larga, non allineate in alto ---
   Si attiva aggiungendo la classe bj-gallery-trio a una .bj-gallery-masonry con 3 immagini. */
.elementor-element-586237c .bj-gallery-masonry {
	columns: auto;
	display: grid;
	grid-template-columns: 0.7fr 1fr 1.6fr;
	gap: 24px;
	align-items: center;
}
.elementor-element-586237c .bj-gallery-masonry > * { margin-bottom: 0; }
.elementor-element-586237c .bj-gallery-masonry > *:nth-child(1) { align-self: end; }
.elementor-element-586237c .bj-gallery-masonry > *:nth-child(2) { align-self: start; }
.elementor-element-586237c .bj-gallery-masonry > *:nth-child(3) { align-self: center; }
@media (max-width: 767px) {
	.elementor-element-586237c .bj-gallery-masonry { display: block; columns: 2; column-gap: 10px; }
	.elementor-element-586237c .bj-gallery-masonry > * { margin-bottom: 10px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-element-586237c .bj-gallery-masonry { gap: 16px; grid-template-columns: 0.75fr 1fr 1.45fr; }
}


/* --- Menu di navigazione su mobile (pannello a scomparsa) in palette e con i font del sito --- */
body #offcanvas .ct-panel-inner {
	background-color: var(--bj-forest) !important;
	color: var(--bj-cream);
	font-family: "Preahvihear", sans-serif;
}
body #offcanvas .mobile-menu a,
body #offcanvas .mobile-menu .ct-menu-link {
	font-family: "Preahvihear", sans-serif;
	font-weight: 400;
	font-size: 1.4rem;
	letter-spacing: 0.01em;
	color: var(--bj-cream);
	transition: color 0.25s var(--bj-ease-smooth), transform 0.3s var(--bj-ease-bounce);
}
body #offcanvas .mobile-menu li { border-bottom: 1px solid rgba(189, 238, 216, 0.2); }
body #offcanvas .mobile-menu li:last-child { border-bottom: 0; }
body #offcanvas .mobile-menu a:hover,
body #offcanvas .mobile-menu a:focus-visible,
body #offcanvas .mobile-menu .current-menu-item > a {
	color: var(--bj-yellow);
	transform: translateX(4px);
}
body #offcanvas .mobile-menu a:focus-visible { outline: 2px solid var(--bj-yellow); outline-offset: 3px; border-radius: 6px; }
body #offcanvas .ct-toggle-close { color: var(--bj-cream); }
body #offcanvas .ct-toggle-close .ct-icon,
body #offcanvas .ct-toggle-close svg { fill: var(--bj-cream); }
body #offcanvas .ct-toggle-close:hover { color: var(--bj-yellow); }
body #offcanvas .ct-toggle-close:hover .ct-icon { fill: var(--bj-yellow); }
/* icona "hamburger" del menu: verde bosco invece del grigio-blu */
.ct-header-trigger .ct-icon { fill: var(--bj-forest); }

/* --- Gallery in cima (Home), solo mobile: griglia a 2 colonne con le immagini allineate in alto riga per riga --- */
@media (max-width: 767px) {
	.elementor-element-a677b56 .bj-gallery-masonry {
		columns: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		align-items: start;
	}
	.elementor-element-a677b56 .bj-gallery-masonry > * { margin-bottom: 0; }
}
