/* =======================================================================
   Lucciola Theme — main stylesheet
   Dark night hero + warm cream content sections.
   "Eine Utopie, die aus der Nacht ins Licht wächst."
   ======================================================================= */

:root {
	/* Hero palette (night — indigo, warmer & lighter than before) */
	--c-night:        #02004f;
	--c-night-soft:   #24305f;
	--c-navy:         #02004f;

	/* Light palette (content) */
	--c-cream:        #fbf3e2;       /* warm cream — main light background */
	--c-cream-warm:   #f6e6c4;       /* slightly deeper for accents */
	--c-cream-soft:   #fdf8ee;       /* between cream and white */

	/* Accents — original project gold */
	--c-gold:         #efb62f;       /* main brand gold/orange */
	--c-gold-bright:  #f4c85a;       /* lighter, used on dark bg */
	--c-gold-deep:    #c8941d;       /* darker, used on light bg for contrast */
	--c-gold-soft:    rgba(239, 182, 47, 0.15);
	--c-gold-border:  rgba(239, 182, 47, 0.4);

	/* Secondary blue */
	--c-blue:         #476380;

	/* Text colors */
	--c-text-light:   #fdf8ee;       /* on dark backgrounds */
	--c-text-light-2: rgba(253, 248, 238, 0.8);
	--c-text-dark:    #02004f;       /* indigo ink on light bg */
	--c-text-dark-2: rgba(2, 0, 79, 0.68);

	/* Donation green */
	--c-donation:     #5fae6b;
	--c-donation-soft:#8bc994;

	/* Fonts */
	--font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
	--font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

	/* Spacing & radii */
	--radius-sm: 10px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--shadow-card: 0 6px 24px rgba(0, 0, 0, 0.4);
	--shadow-light: 0 6px 20px rgba(27, 42, 74, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	padding: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text-dark);
	background: var(--c-cream);     /* default = light, warm */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-gold); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; margin: 0; color: var(--c-navy); }
p { margin: 0 0 1em; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }

.lucciola-container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.lucciola-skiplink {
	position: absolute; left: -9999px; top: 0;
	background: var(--c-gold); color: var(--c-navy);
	padding: 8px 16px; z-index: 100;
}
.lucciola-skiplink:focus { left: 16px; top: 16px; }

/* When the page has the dark hero at the top, header text needs to be light */
.lucciola-site-header { color: var(--c-text-light); }

/* =======================================================================
   HEADER (always sits on top of dark hero on home; lighter on inner pages)
   ======================================================================= */
.lucciola-site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 20;
	padding: 22px 0;
}
.lucciola-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: nowrap;
}
.lucciola-brand-link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--c-text-light);
	min-width: 0;          /* let it shrink */
}
.lucciola-brand-mark { width: 46px; height: auto; flex-shrink: 0; }
.lucciola-brand-mark--custom { width: 46px; height: 46px; object-fit: contain; }
.lucciola-custom-badge { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; }
.lucciola-custom-avatar { width: 60%; height: 60%; object-fit: contain; opacity: 0.92; }
.lucciola-avatar-mark { width: 54%; height: 54%; opacity: 0.85; }
.lucciola-brand-text { display: flex; flex-direction: column; min-width: 0; }
.lucciola-brand-name {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.1;
}
.lucciola-brand-tag {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--c-gold-bright);
	margin-top: 2px;
}
.lucciola-nav { display: flex; align-items: center; }
.lucciola-menu {
	display: flex;
	list-style: none;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.lucciola-menu a {
	color: var(--c-text-light);
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
}
.lucciola-menu a:hover { color: var(--c-gold-bright); }

.lucciola-donate-btn {
	display: inline-block;
	background: var(--c-gold-bright);
	color: var(--c-navy);
	font-weight: 600;
	padding: 10px 24px;
	border-radius: 999px;
	font-size: 14px;
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}
.lucciola-donate-btn:hover {
	background: #f5d27a;
	color: var(--c-navy);
	transform: translateY(-1px);
}

/* Mobile menu toggle (hidden on desktop) */
.lucciola-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 8px;
	color: var(--c-text-light);
	width: 40px;
	height: 40px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.lucciola-menu-toggle:focus { outline: 2px solid var(--c-gold); outline-offset: 2px; }

/* =======================================================================
   HERO — stays dark; only "magic" moment of the site
   ======================================================================= */
.lucciola-hero {
	position: relative;
	min-height: 620px;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 78% 35%, var(--c-gold-soft) 0%, rgba(0,0,0,0) 45%),
		radial-gradient(ellipse at 70% 50%, var(--c-hero-soft, #24305f) 0%, var(--c-night) 68%),
		var(--c-night);
	padding: 104px 0 56px;
	color: var(--c-text-light);
}
.lucciola-hero-image {
	position: absolute;
	top: 0;
	right: 0;
	width: 74%;
	height: 100%;
	background-image: var(--hero-bg);
	background-size: cover;
	background-position: center center;   /* show a wider view of house & surroundings */
	z-index: 1;
	opacity: 0.95;
	-webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
	mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}
.lucciola-firefly-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}
/* Readability scrim on the left so text stays legible over the photo
   (this hero image has a bright sunset on the left, so the scrim reaches
   a bit further and stays a touch denser than a pure dark image would need) */
.lucciola-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(to right,
		var(--c-night) 0%,
		rgba(2, 0, 79, 0.88) 40%,
		rgba(2, 0, 79, 0.6) 55%,
		rgba(2, 0, 79, 0.2) 70%,
		rgba(2, 0, 79, 0) 82%);
}
/* Hero content sits flush-left (not in the centered container) so the
   text hugs the left edge and the house gets the whole right side. */
.lucciola-hero-content {
	position: relative;
	z-index: 3;
	display: block;
	max-width: 780 px;
	margin: 0;
	padding-left: clamp(24px, 5vw, 72px);
	padding-right: 24px;
}
.lucciola-hero-text { padding-top: 8px; min-width: 0; }

/* Mobile-only clear photo of the house (hidden on desktop) */
.lucciola-hero-photo-mobile { display: none; margin: 32px 0 0; }
.lucciola-hero-photo-mobile img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	border: 1px solid var(--c-gold-border);
}

.lucciola-hero-headline {
	font-size: clamp(30px, 3.6vw, 50px);
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin-bottom: 18px;
	color: var(--c-text-light);
	text-shadow: 0 2px 20px rgba(2, 0, 79, 0.85), 0 1px 6px rgba(2, 0, 79, 0.7), 0 0 40px rgba(2, 0, 79, 0.5);
}
.lucciola-hero-line { display: block; }
.lucciola-hero-line--white { color: var(--c-text-light); }
.lucciola-hero-line--gold  { color: var(--c-gold-bright); }

.lucciola-hero-sub {
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.5;
	color: var(--c-text-light-2);
	max-width: 100%;
	margin-bottom: 24px;
	text-shadow: 0 1px 8px rgba(2, 0, 79, 0.5);
}

/* Prominent people count above the funding bar */
.lucciola-people-num {
	font-family: var(--font-serif);
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 600;
	line-height: 1;
	color: var(--c-gold-bright);
}
.lucciola-people-label {
	font-size: 15px;
	color: var(--c-text-light);
}

/* ---- Combined total-goal progress (loans + donations) ---- */
.lucciola-total {
	background: rgba(13, 27, 53, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(244, 237, 224, 0.12);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	margin-bottom: 22px;
	max-width: 520px;
}
.lucciola-people {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(244, 237, 224, 0.12);
	flex-wrap: wrap;
}
.lucciola-total-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.lucciola-total-title {
	font-family: var(--font-serif);
	font-size: 18px;
	color: var(--c-text-light);
}
.lucciola-total-sum {
	font-size: 13px;
	color: var(--c-text-light-2);
}
.lucciola-total-sum strong {
	color: var(--c-gold-bright);
	font-size: 15px;
	font-weight: 600;
}
.lucciola-total-bar {
	display: flex;
	height: 14px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(244, 237, 224, 0.12);
	margin-bottom: 12px;
}
.lucciola-total-seg {
	height: 100%;
	transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lucciola-total-seg--loans {
	background: linear-gradient(90deg, var(--c-gold-deep), var(--c-gold-bright));   /* gold = loans */
}
.lucciola-total-seg--dons {
	background: linear-gradient(90deg, var(--c-donation, #5fae6b), var(--c-donation-soft, #7cc488));  /* green = donations */
}
.lucciola-total-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 10px;
}
.lucciola-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--c-text-light-2);
}
.lucciola-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.lucciola-legend-dot--loans { background: var(--c-gold-bright); }
.lucciola-legend-dot--dons  { background: var(--c-donation-soft, #7cc488); }
.lucciola-legend-dot--open  { background: rgba(244, 237, 224, 0.25); }
.lucciola-legend-val {
	color: var(--c-text-light);
	font-weight: 600;
}
.lucciola-total-note {
	font-size: 11.5px;
	color: var(--c-text-light-2);
	margin: 0;
	line-height: 1.5;
	opacity: 0.85;
}

.lucciola-cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.lucciola-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--font-sans);
	transition: all 0.2s;
	cursor: pointer;
	border: 1.5px solid transparent;
	white-space: nowrap;
}
.lucciola-cta--primary {
	background: var(--c-gold-bright);
	color: var(--c-navy);
}
.lucciola-cta--primary:hover {
	background: #f5d27a;
	color: var(--c-navy);
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(240, 192, 96, 0.3);
}
.lucciola-cta--secondary {
	background: transparent;
	color: var(--c-gold-bright);
	border-color: var(--c-gold-bright);
}
.lucciola-cta--secondary:hover {
	background: var(--c-gold-soft);
	color: #f5d27a;
}
/* Green direct-loans info button */
.lucciola-cta--loans {
	background: transparent;
	color: #8fd49b;
	border-color: #6fbf7e;
}
.lucciola-cta--loans:hover {
	background: rgba(111, 191, 126, 0.15);
	color: #b0e6ba;
	border-color: #8fd49b;
}

/* ---- Modal (direct-loans info) ---- */
.lucciola-modal {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lucciola-modal[hidden] { display: none; }
.lucciola-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 40, 0.7);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	cursor: pointer;
}
.lucciola-modal-box {
	position: relative;
	background: var(--c-cream);
	color: var(--c-text-dark);
	border-radius: var(--radius-lg);
	padding: 36px clamp(24px, 4vw, 44px);
	max-width: 540px;
	width: 100%;
	box-shadow: 0 24px 60px rgba(0,0,0,0.4);
	border-top: 4px solid #6fbf7e;
	animation: lucciola-modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lucciola-modal-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lucciola-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--c-text-dark-2);
	cursor: pointer;
	padding: 4px 8px;
}
.lucciola-modal-close:hover { color: var(--c-navy); }
.lucciola-modal-title {
	font-size: 26px;
	color: var(--c-navy);
	margin-bottom: 14px;
	padding-right: 28px;
}
.lucciola-modal-body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--c-text-dark);
}
.lucciola-modal-body p { margin-bottom: 0.8em; }
.lucciola-modal-body p:last-child { margin-bottom: 0; }

/* Welcome card */
/* =======================================================================
   DONOR GALLERY — light, warm section (transition out of the night)
   ======================================================================= */
.lucciola-donors-section {
	background: var(--c-cream);
	padding: 80px 0 100px;
	position: relative;
}
/* Subtle gradient from dark hero to cream */
.lucciola-donors-section::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, var(--c-night) 0%, transparent 100%);
	pointer-events: none;
}
.lucciola-donors-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	position: relative;
	z-index: 1;
}
.lucciola-section-title {
	font-size: clamp(26px, 3vw, 34px);
	color: var(--c-navy);
	margin-bottom: 6px;
}
.lucciola-section-sub {
	color: var(--c-text-dark-2);
	font-size: 15px;
	margin-bottom: 36px;
}

.lucciola-donor-row {
	display: flex;
	gap: 24px 20px;
	flex-wrap: wrap;
}
.lucciola-donor-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 112px;
	text-align: center;
}
/* Video cards are links — keep them looking like cards, not links */
a.lucciola-donor-card { text-decoration: none; color: inherit; cursor: pointer; }
.lucciola-donor-avatar {
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: visible;       /* allow play badge & ring to sit on the edge */
	border: 2px solid var(--c-gold);
	box-shadow: 0 0 0 4px var(--c-gold-soft), 0 4px 16px rgba(2, 0, 79, 0.12);
	background: var(--c-cream-warm);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s, box-shadow 0.25s;
}
.lucciola-donor-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.lucciola-donor-card:hover .lucciola-donor-avatar {
	transform: translateY(-2px);
	box-shadow: 0 0 0 4px var(--c-accent-soft, rgba(239,182,47,0.2)), 0 8px 22px rgba(2, 0, 79, 0.18);
}
.lucciola-donor-initial {
	font-family: var(--font-serif);
	font-size: 32px;
	color: var(--c-gold-deep);
}

/* --- Video donors: coloured ring + always-visible play badge + label --- */
.lucciola-donor-card.has-video .lucciola-donor-avatar {
	border-color: var(--c-accent, #efb62f);
	box-shadow: 0 0 0 4px var(--c-accent-soft, rgba(239,182,47,0.28)), 0 4px 18px rgba(2, 0, 79, 0.18);
}
.lucciola-donor-card.has-video .lucciola-donor-avatar img { filter: brightness(0.94); }
.lucciola-donor-play {
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	background: var(--c-accent, #efb62f);
	border: 2px solid var(--c-cream, #fbf3e2);
	box-shadow: 0 2px 8px rgba(2, 0, 79, 0.3);
	padding-left: 2px;       /* optically centre the triangle */
	transition: transform 0.25s, background 0.25s;
}
.lucciola-donor-card.has-video:hover .lucciola-donor-play {
	transform: scale(1.12);
	background: var(--c-accent-deep, #c8941d);
}
/* Subtle attention pulse so the badge reads as "clickable" */
.lucciola-donor-card.has-video .lucciola-donor-avatar::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid var(--c-accent, #efb62f);
	opacity: 0;
	animation: lucciola-ring-pulse 2.8s ease-out infinite;
	pointer-events: none;
}
@keyframes lucciola-ring-pulse {
	0%   { transform: scale(1);    opacity: 0.55; }
	70%  { transform: scale(1.18); opacity: 0; }
	100% { transform: scale(1.18); opacity: 0; }
}
.lucciola-donor-videotag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--c-accent-deep, #c8941d);
	background: var(--c-accent-soft, rgba(239,182,47,0.15));
	padding: 2px 8px;
	border-radius: 999px;
	margin-top: 2px;
}

/* Small firefly badge bottom-right (non-video donors) */
.lucciola-donor-firefly {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--c-cream);
	padding: 1px;
	box-shadow: 0 2px 6px rgba(2, 0, 79, 0.15);
}
.lucciola-donor-card.is-anonymous .lucciola-donor-avatar {
	background: transparent;
	border-color: var(--c-gold-border);
}
.lucciola-donor-name {
	font-weight: 600;
	font-size: 14px;
	color: var(--c-navy);
	margin: 0 0 2px;
}
.lucciola-donor-loc {
	font-size: 12px;
	color: var(--c-text-dark-2);
	margin: 0;
}
.lucciola-donor-msg {
	font-style: italic;
	color: var(--c-gold-deep);
}

/* Info card — light variant */
.lucciola-info-card {
	background: var(--c-cream-warm);
	border: 1px solid var(--c-gold-border);
	border-radius: var(--radius-md);
	padding: 28px 28px 24px;
	box-shadow: var(--shadow-light);
}
.lucciola-info-title {
	font-size: clamp(20px, 2vw, 22px);
	color: var(--c-navy);
	margin-bottom: 12px;
}
.lucciola-info-text {
	color: var(--c-text-dark);
	font-size: 14px;
	line-height: 1.65;
	margin-bottom: 18px;
}
.lucciola-info-pill {
	background: rgba(212, 160, 23, 0.18);
	border: 1px solid var(--c-gold-border);
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--c-navy);
}
.lucciola-info-heart { color: var(--c-gold-deep); font-size: 16px; line-height: 1.2; }

.lucciola-empty {
	color: var(--c-text-dark-2);
	font-style: italic;
	max-width: 480px;
}

/* =======================================================================
   LIGHT SECTIONS — inner pages, galleries, content
   ======================================================================= */
.lucciola-light-section {
	background: var(--c-cream);
	padding: 60px 0;
	color: var(--c-text-dark);
}

.lucciola-content-page {
	background: var(--c-cream);
	padding: 60px 0 100px;
	min-height: 70vh;
	position: relative;
}
/* Light pages get a dark band at top so the header (light text) stays readable */
.lucciola-content-page::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 320px;
	background: linear-gradient(to bottom, var(--c-night) 0%, var(--c-night) 45%, rgba(10, 20, 40, 0.9) 70%, var(--c-cream) 100%);
	z-index: 0;
}
.lucciola-content-page > * { position: relative; z-index: 1; }
.lucciola-content-page .lucciola-container { padding-top: 130px; }

.lucciola-page-header {
	margin-bottom: 32px;
	text-align: center;
}
.lucciola-page-title {
	font-size: clamp(36px, 5vw, 56px);
	color: var(--c-text-light);
	margin-bottom: 6px;
	text-shadow: 0 2px 12px rgba(10, 20, 40, 0.5);
}
.lucciola-page-subtitle {
	color: var(--c-gold-bright);
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.lucciola-article {
	background: var(--c-cream);
	border-radius: var(--radius-lg);
	padding: 40px clamp(20px, 4vw, 60px);
	box-shadow: var(--shadow-light);
	max-width: 880px;
	margin: 0 auto;
}
.lucciola-article-header { margin-bottom: 24px; }
.lucciola-article-title {
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--c-navy);
	margin-bottom: 12px;
	line-height: 1.15;
}
.lucciola-article-title a { color: inherit; }
.lucciola-article-thumb { margin: 20px 0; border-radius: var(--radius-md); overflow: hidden; }

.lucciola-article-content,
.lucciola-prose {
	font-size: 17px;
	line-height: 1.75;
	color: var(--c-text-dark);
}
.lucciola-prose h2,
.lucciola-article-content h2 {
	font-size: clamp(28px, 3.2vw, 34px);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--c-navy);
	margin: 1.9em 0 0.5em;
	padding-bottom: 0.3em;
	border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}
.lucciola-prose h2::after,
.lucciola-article-content h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: var(--c-gold);
	margin-top: 0.3em;
	margin-bottom: -0.3em;   /* sit on top of the border line */
}
.lucciola-prose h3,
.lucciola-article-content h3 {
	font-size: clamp(21px, 2.4vw, 25px);
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--c-navy);
	margin: 1.6em 0 0.4em;
}
.lucciola-prose h4,
.lucciola-article-content h4 {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-gold-deep);
	font-family: var(--font-sans);
	margin: 1.5em 0 0.4em;
}
.lucciola-prose p,
.lucciola-article-content p { margin-bottom: 1.2em; }
.lucciola-prose > *:first-child,
.lucciola-article-content > *:first-child { margin-top: 0; }
.lucciola-prose a,
.lucciola-article-content a {
	color: var(--c-gold-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.lucciola-prose blockquote,
.lucciola-article-content blockquote {
	border-left: 3px solid var(--c-gold);
	padding: 0.4em 0 0.4em 1.2em;
	margin: 1.5em 0;
	font-family: var(--font-serif);
	font-size: 22px;
	font-style: italic;
	color: var(--c-navy);
}
.lucciola-article + .lucciola-article {
	margin-top: 40px;
	padding-top: 40px;
}
.lucciola-pagination { margin-top: 60px; text-align: center; }
.lucciola-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 2px;
	border-radius: 6px;
	color: var(--c-navy);
	background: var(--c-cream-warm);
}
.lucciola-pagination .current { background: var(--c-gold); color: var(--c-navy); }

/* =======================================================================
   GALLERY — for page-gallery.php template AND core gallery block
   ======================================================================= */
.lucciola-gallery-intro {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
	font-size: 16px;
	color: var(--c-text-dark);
}
.lucciola-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
}
.lucciola-gallery-item {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
	box-shadow: var(--shadow-light);
	background: var(--c-cream-warm);
	transition: transform 0.3s, box-shadow 0.3s;
}
.lucciola-gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(27, 42, 74, 0.15);
}
.lucciola-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lucciola-gallery-item figcaption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 10px 14px;
	background: linear-gradient(to top, rgba(27, 42, 74, 0.85), transparent);
	color: #fff;
	font-size: 13px;
	opacity: 0;
	transition: opacity 0.25s;
}
.lucciola-gallery-item:hover figcaption { opacity: 1; }

/* Also style the core WordPress gallery block when used in editor */
.wp-block-gallery,
.lucciola-prose .wp-block-gallery {
	gap: 18px !important;
}
.wp-block-gallery .wp-block-image img {
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-light);
}

/* Lightbox */
.lucciola-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 40, 0.92);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	cursor: zoom-out;
}
.lucciola-lightbox.is-open { display: flex; }
.lucciola-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--radius-md);
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lucciola-lightbox-close {
	position: absolute;
	top: 24px;
	right: 28px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	padding: 4px 12px;
}

/* =======================================================================
   FOOTER — softer dark with cream-text transition
   ======================================================================= */
.lucciola-site-footer {
	background: var(--c-navy);
	color: var(--c-text-light);
	padding: 50px 0 32px;
}
.lucciola-footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.lucciola-footer-brand {
	font-family: var(--font-serif);
	font-size: 22px;
	color: var(--c-gold-bright);
	margin-bottom: 8px;
}
.lucciola-footer-text {
	color: var(--c-text-light-2);
	font-size: 13px;
	margin: 0;
	line-height: 1.6;
}
.lucciola-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lucciola-footer-menu a { color: var(--c-text-light-2); font-size: 13px; }
.lucciola-footer-menu a:hover { color: var(--c-gold-bright); }

/* =======================================================================
   RESPONSIVE — careful, tested at 360/480/768/1024
   ======================================================================= */
@media (max-width: 1100px) {
	/* Single column → show the house as a real photo under the text
	   (crisp, not a washed-out backdrop) so it's always fully visible */
	.lucciola-hero-image { display: none; }
	.lucciola-hero::before { display: none; }
	.lucciola-hero-photo-mobile { display: block; max-width: 560px; }
	/* Content returns to a normal readable width, aligned to the container edge */
	.lucciola-hero-content {
		max-width: 720px;
		padding-left: clamp(22px, 5vw, 48px);
		padding-right: clamp(22px, 5vw, 48px);
	}
}

@media (max-width: 820px) {
	.lucciola-container { padding: 0 22px; }
	.lucciola-site-header { padding: 14px 0; }
	.lucciola-header-inner { gap: 12px; }

	/* Hide desktop menu, show toggle */
	.lucciola-menu-toggle { display: inline-flex; }
	.lucciola-nav { display: none; }
	.lucciola-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(10, 20, 40, 0.97);
		backdrop-filter: blur(10px);
		padding: 18px 24px;
		border-top: 1px solid rgba(255,255,255,0.1);
	}
	.lucciola-nav.is-open .lucciola-menu {
		flex-direction: column;
		gap: 14px;
	}

	.lucciola-brand-name { font-size: 22px; }
	.lucciola-brand-tag { font-size: 9px; letter-spacing: 0.1em; }
	.lucciola-donate-btn { padding: 9px 16px; font-size: 13px; }

	.lucciola-hero { padding: 110px 0 60px; min-height: auto; }
	/* On mobile the house shows as a real, crisp photo UNDER the text
	   instead of a washed-out backdrop that cut the house off. */
	.lucciola-hero-image { display: none; }
	.lucciola-hero-photo-mobile { display: block; }
	.lucciola-hero-text { padding-top: 8px; }

	.lucciola-people-num { font-size: 40px; }

	.lucciola-cta-row { gap: 10px; }
	.lucciola-cta { padding: 12px 18px; font-size: 13px; flex: 1 1 auto; justify-content: center; }

	.lucciola-donors-section { padding: 60px 0 70px; }
	.lucciola-donors-grid { grid-template-columns: 1fr; gap: 36px; }
	.lucciola-donor-row { justify-content: center; gap: 22px 16px; }

	.lucciola-content-page .lucciola-container { padding-top: 110px; }
	.lucciola-footer-grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 24px;
	}
	.lucciola-footer-menu { align-items: center; }
}

@media (max-width: 480px) {
	.lucciola-container { padding: 0 18px; }
	.lucciola-brand-text { display: flex; }       /* keep the name visible */
	.lucciola-brand-tag { display: none; }         /* hide only the subtitle */
	.lucciola-brand-name { font-size: 19px; }
	.lucciola-brand-link { gap: 8px; }
	.lucciola-brand-mark { width: 38px; }
	.lucciola-donate-btn { padding: 8px 12px; font-size: 12px; }
	.lucciola-header-inner { gap: 8px; }

	.lucciola-hero-headline { font-size: 28px; line-height: 1.1; }
	.lucciola-hero-sub { font-size: 14px; max-width: 100%; }
	.lucciola-people-num { font-size: 36px; }

	.lucciola-cta { padding: 11px 14px; font-size: 13px; }

	.lucciola-donor-card { width: 96px; }
	.lucciola-donor-avatar { width: 80px; height: 80px; }

	.lucciola-info-card { padding: 22px; }
	.lucciola-article { padding: 28px 20px; }
	.lucciola-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.lucciola-firefly-canvas { display: none; }
}
