/* Kids Campus Pro Natale - decorazioni natalizie.
   I colori principali (pulsanti, menu, footer, titoli) sono cambiati in functions.php
   rimappando le opzioni del tema padre; qui ci sono solo le decorazioni. */

:root {
	--nat-rosso: #c41e24;
	--nat-rosso-scuro: #8f1217;
	--nat-verde: #14663a;
	--nat-oro: #e3a21a;
	--nat-neve: #ffffff;
}

/* ---------- Luci di Natale lungo l'header ---------- */
.tema-natale .site-header::before,
.tema-natale .site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 44px;
	pointer-events: none;
	z-index: 5;
	background-repeat: repeat-x;
	background-size: 240px 44px;
}
.tema-natale .site-header::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><path d='M0 4 Q60 26 120 4 T240 4' fill='none' stroke='%23144a2b' stroke-width='2'/><g><circle cx='30' cy='19' r='7' fill='%23e53935'/><circle cx='90' cy='19' r='7' fill='%23fdd835'/><circle cx='150' cy='19' r='7' fill='%2343a047'/><circle cx='210' cy='19' r='7' fill='%231e88e5'/></g><g fill='%23144a2b'><rect x='27' y='9' width='6' height='5'/><rect x='87' y='9' width='6' height='5'/><rect x='147' y='9' width='6' height='5'/><rect x='207' y='9' width='6' height='5'/></g></svg>");
	animation: nat-luci 1.8s ease-in-out infinite;
}
.tema-natale .site-header::after {
	background-position: 60px 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'><g><circle cx='30' cy='19' r='7' fill='%23fdd835'/><circle cx='90' cy='19' r='7' fill='%2343a047'/><circle cx='150' cy='19' r='7' fill='%231e88e5'/><circle cx='210' cy='19' r='7' fill='%23e53935'/></g></svg>");
	opacity: 0;
	animation: nat-luci 1.8s ease-in-out infinite reverse;
	filter: drop-shadow(0 0 6px rgba(255, 220, 120, .9));
}
@keyframes nat-luci {
	0%, 100% { opacity: 1; }
	50% { opacity: .25; }
}

/* ---------- Menu: bordo a bastoncino di zucchero ---------- */
@media screen and (min-width: 981px) {
	.tema-natale .header-nav {
		border: 5px solid transparent;
		background-image:
			linear-gradient(#fff, #fff),
			repeating-linear-gradient(-45deg, var(--nat-rosso) 0 12px, #fff 12px 24px);
		background-origin: border-box;
		background-clip: padding-box, border-box;
	}
}

/* ---------- Titoli di sezione ---------- */
.tema-natale h2.section_title::before,
.tema-natale h2.section_title::after,
.tema-natale h3.section_title::before,
.tema-natale h3.section_title::after {
	content: "\2605";
	display: inline-block;
	font-size: .5em;
	color: var(--nat-oro);
	vertical-align: middle;
	margin: 0 .5em;
	animation: nat-stella 2.4s ease-in-out infinite;
}
.tema-natale h2.section_title::after,
.tema-natale h3.section_title::after { animation-delay: 1.2s; }
@keyframes nat-stella {
	0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
	50% { transform: scale(1.35) rotate(20deg); opacity: .7; }
}

/* ---------- Sezione «Le nostre sezioni»: nuvole verdi -> rosse ---------- */
.tema-natale #section3 { background-image: url("../img/nuvole-rosse.webp") !important; }

/* ---------- Foto di testata: illustrazione dedicata (assets/img/testata.webp, #42), nessun filtro colore ---------- */

/* ---------- Pulsanti ---------- */
.tema-natale .button,
.tema-natale .wpcf7 form input[type='submit'] {
	box-shadow: 0 4px 0 var(--nat-rosso-scuro);
}
.tema-natale .button:hover {
	box-shadow: 0 4px 0 #0b3d22;
}

/* ---------- Neve (canvas creato da natale.js) ---------- */
.natale-neve {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9990;
}

/* ---------- Slitta di Babbo Natale ---------- */
.natale-sleigh {
	position: fixed;
	top: 20vh;
	left: 0;
	width: 340px;
	z-index: 9980;
	pointer-events: none;
	transform: translateX(-120%);
	animation: nat-slitta 46s linear 4s infinite;
}
.natale-sleigh img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
@keyframes nat-slitta {
	0%   { transform: translate(-120%, 0) rotate(-3deg); }
	8%   { transform: translate(calc(25vw - 60%), -30px) rotate(2deg); }
	16%  { transform: translate(calc(55vw - 60%), 20px) rotate(-3deg); }
	24%  { transform: translate(calc(100vw + 20%), -20px) rotate(2deg); }
	100% { transform: translate(calc(100vw + 20%), -20px) rotate(2deg); }
}

/* ---------- Scena natalizia sopra il footer ---------- */
.natale-scene { display: none; }
.natale-scene.is-placed {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2vw;
	position: relative;
	z-index: 1;
	padding: 30px 20px 150px;
	background: linear-gradient(180deg, #fff 0%, #f1f8f2 100%);
	overflow: hidden;
}
.natale-scene__center { text-align: center; flex: 0 1 620px; }
.natale-scene__presepe { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .15)); }
.natale-scene__greeting {
	margin: 6px 0 0;
	font-family: 'Amatic SC', cursive;
	font-weight: 700;
	font-size: 64px;
	line-height: 1;
	color: var(--nat-rosso);
	text-shadow: 0 2px 0 #fff, 0 0 12px rgba(227, 162, 26, .5);
}
.natale-scene__greeting::before,
.natale-scene__greeting::after { content: "\2744"; color: var(--nat-verde); font-size: .6em; margin: 0 .4em; }
.natale-scene__side { flex: 0 1 230px; width: 230px; height: auto; }
.natale-scene__snowman { align-self: flex-end; margin-bottom: 10px; }

@media screen and (max-width: 760px) {
	.natale-scene.is-placed { padding-bottom: 120px; }
	.natale-scene__side { display: none; }
	.natale-scene__greeting { font-size: 46px; }
	.natale-sleigh { width: 200px; top: 14vh; }
}

/* ---------- Footer: decorazioni ---------- */
.tema-natale #footer-wrapper::after {
	content: "";
	position: absolute;
	top: -30px;
	right: 3%;
	width: 200px;
	height: 112px;
	background: url("../img/ornaments.webp") no-repeat center / contain;
	transform: rotate(-6deg);
	pointer-events: none;
	z-index: 10000;
}
.tema-natale .copyright-wrapper .container { border-top-color: rgba(255, 255, 255, .5); }
.tema-natale .copyright-wrapper { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 14px, transparent 14px 28px); }

@media screen and (max-width: 760px) {
	.tema-natale #footer-wrapper::after { width: 120px; height: 68px; top: -10px; }
}

/* ---------- Chi preferisce meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
	.natale-neve, .natale-sleigh { display: none; }
	.tema-natale .site-header::before,
	.tema-natale .site-header::after,
	.tema-natale h2.section_title::before,
	.tema-natale h2.section_title::after,
	.tema-natale h3.section_title::before,
	.tema-natale h3.section_title::after { animation: none; }
}
