/**
 * Altare del Cuore — dark mode (data-adc-theme="dark" su <html>).
 * Palette: notte calda, bagliori corallo/viola/oro come il logo arcobaleno.
 */

[data-adc-theme='dark'] {
	--adc-cream: #1a1412;
	--adc-cream-deep: #261e1b;
	--adc-ink: #f5ebe6;
	--adc-ink-soft: #d8c8bf;
	--adc-coral: #e8927f;
	--adc-violet: #b8a6d6;
	--adc-gold: #e8c96a;
	--adc-line: rgba(232, 146, 127, 0.22);
	--adc-card-surface: linear-gradient(145deg, #2e2522 0%, #221b18 55%, #1a1412 100%);
	--adc-card-border: rgba(184, 166, 214, 0.18);
	--adc-shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
	--adc-shadow-glow: 0 0 48px rgba(123, 107, 168, 0.12);
}

html {
	color-scheme: light dark;
	transition: background-color 0.45s ease, color 0.45s ease;
}

[data-adc-theme='dark'] body {
	position: relative;
	isolation: isolate;
	background-color: var(--adc-cream);
	background-image:
		radial-gradient(ellipse 90% 55% at 15% -5%, rgba(123, 107, 168, 0.14), transparent 55%),
		radial-gradient(ellipse 70% 45% at 88% 8%, rgba(184, 92, 74, 0.1), transparent 50%),
		radial-gradient(ellipse 80% 50% at 50% 105%, rgba(201, 162, 39, 0.06), transparent 55%);
}

/* Cielo: stelle (tile) + fascia Via Lattea — sotto il contenuto */
[data-adc-theme='dark'] body::before,
[data-adc-theme='dark'] body::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

[data-adc-theme='dark'] body::before {
	background-image: url('cosmic-stars.svg');
	background-repeat: repeat;
	background-size: 480px 360px;
	opacity: 0.58;
}

[data-adc-theme='dark'] body::after {
	background:
		linear-gradient(
			112deg,
			transparent 0%,
			transparent 32%,
			rgba(123, 107, 168, 0.09) 40%,
			rgba(245, 220, 235, 0.11) 46%,
			rgba(232, 146, 127, 0.08) 50%,
			rgba(232, 201, 106, 0.07) 54%,
			rgba(184, 166, 214, 0.1) 62%,
			transparent 72%,
			transparent 100%
		);
	filter: blur(18px);
	opacity: 0.88;
	mix-blend-mode: screen;
}

@media (prefers-reduced-motion: no-preference) {
	[data-adc-theme='dark'] body::before {
		animation: adc-cosmic-drift 120s linear infinite;
	}
}

@keyframes adc-cosmic-drift {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 480px 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-adc-theme='dark'] body::before {
		animation: none;
	}
}

[data-adc-theme='dark'] .wp-site-blocks {
	position: relative;
	z-index: 1;
}

/* Mantienere sticky (come style.css): relative faceva sparire l'header allo scroll */
[data-adc-theme='dark'] header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1001;
}

[data-adc-theme='dark'] .wp-site-blocks,
[data-adc-theme='dark'] .entry-content,
[data-adc-theme='dark'] main {
	background-color: transparent !important;
	color: inherit;
}

[data-adc-theme='dark'] footer.wp-block-template-part {
	position: relative;
	z-index: 1;
}

/* Header e footer */
[data-adc-theme='dark'] .adc-header {
	background: linear-gradient(180deg, rgba(36, 29, 26, 0.94) 0%, rgba(26, 20, 18, 0.88) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom-color: var(--adc-line);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

[data-adc-theme='dark'] footer.wp-block-template-part,
[data-adc-theme='dark'] .adc-footer {
	background: rgba(26, 20, 18, 0.92);
}

/* Logo header: glow contenuto (non invade il bordo inferiore) */
[data-adc-theme='dark'] .adc-header .wp-block-site-logo img,
[data-adc-theme='dark'] .adc-header .custom-logo {
	filter: drop-shadow(0 0 10px rgba(184, 166, 214, 0.35))
		drop-shadow(0 0 20px rgba(232, 146, 127, 0.18))
		drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* Logo hero: glow pieno */
[data-adc-theme='dark'] .adc-hero__logo img {
	filter: drop-shadow(0 0 18px rgba(184, 166, 214, 0.45))
		drop-shadow(0 0 36px rgba(232, 146, 127, 0.25))
		drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

[data-adc-theme='dark'] .adc-nidra-player__aura {
	opacity: 1;
	filter: blur(18px);
}

[data-adc-theme='dark'] .adc-nidra-player__flower {
	color: rgba(184, 166, 214, 0.95);
	opacity: 0.88;
}

[data-adc-theme='dark'] .adc-nidra-player__btn {
	box-shadow:
		0 0 0 1px rgba(255, 251, 245, 0.15) inset,
		0 0 48px rgba(155, 143, 196, 0.58),
		0 0 80px rgba(123, 107, 168, 0.32);
}

[data-adc-theme='dark'] .adc-nidra-list__item {
	background: linear-gradient(135deg, rgba(255, 251, 245, 0.04) 0%, rgba(123, 107, 168, 0.08) 100%);
}

[data-adc-theme='dark'] .adc-nidra-list__duration {
	background: rgba(184, 166, 214, 0.12);
	border-color: rgba(184, 166, 214, 0.28);
	color: rgba(214, 200, 240, 0.95);
}

[data-adc-theme='dark'] .adc-poster img {
	filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5))
		drop-shadow(0 0 28px rgba(123, 107, 168, 0.2));
}

/* Card e box */
[data-adc-theme='dark'] .adc-seminar-card,
[data-adc-theme='dark'] .adc-invite-card__inner,
[data-adc-theme='dark'] .adc-highlight {
	background: var(--adc-card-surface);
	border-color: var(--adc-card-border);
	box-shadow: var(--adc-shadow-soft), var(--adc-shadow-glow);
}

[data-adc-theme='dark'] .adc-highlight {
	border-left-color: var(--adc-violet);
	box-shadow: var(--adc-shadow-soft),
		inset 3px 0 12px rgba(123, 107, 168, 0.15);
}

[data-adc-theme='dark'] .adc-invite-card__poster img {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-adc-theme='dark'] .adc-contacts-box {
	background: var(--adc-cream-deep);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Menu mobile */
[data-adc-theme='dark'] .adc-header .wp-block-navigation__responsive-container.is-menu-open,
[data-adc-theme='dark'] html.has-modal-open .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--adc-cream) !important;
}

[data-adc-theme='dark'] button.adc-mobile-menu-close {
	background: var(--adc-cream-deep);
	border-color: var(--adc-line);
	color: var(--adc-coral);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-adc-theme='dark'] button.adc-mobile-menu-close:hover,
[data-adc-theme='dark'] button.adc-mobile-menu-close:focus-visible {
	background: #322824;
}

/* CTA — gradiente più luminoso su scuro */
[data-adc-theme='dark'] .adc-cta .wp-block-button__link {
	background: linear-gradient(
		135deg,
		#d47362 0%,
		#a86b82 42%,
		#8f7bb8 100%
	) !important;
	box-shadow: 0 4px 24px rgba(123, 107, 168, 0.35),
		0 0 20px rgba(232, 146, 127, 0.15);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

[data-adc-theme='dark'] .adc-cta .wp-block-button__link:hover,
[data-adc-theme='dark'] .adc-cta .wp-block-button__link:focus {
	box-shadow: 0 6px 28px rgba(123, 107, 168, 0.45),
		0 0 28px rgba(232, 146, 127, 0.22);
}

/* Ornamento ✦ — linee con bagliore */
[data-adc-theme='dark'] .adc-ornament::before,
[data-adc-theme='dark'] .adc-ornament::after {
	background: linear-gradient(
		90deg,
		transparent,
		var(--adc-coral),
		var(--adc-violet),
		transparent
	);
	opacity: 0.85;
}

/* Pull quote */
[data-adc-theme='dark'] .adc-pullquote {
	border-color: var(--adc-line);
}

/* H1 leggero glow */
[data-adc-theme='dark'] .adc-page h1 {
	text-shadow: 0 0 40px rgba(232, 146, 127, 0.15);
}

/* Link WP generici nel template parent */
[data-adc-theme='dark'] a:where(:not(.wp-element-button)) {
	color: var(--adc-coral);
}

[data-adc-theme='dark'] a:where(:not(.wp-element-button)):hover {
	color: var(--adc-gold);
}
