/* =================================================================
   AGENZIA FUNEBRE NAVA — STILE PRINCIPALE
   ================================================================= */

:root {
  --gold: #C9A84C;
  --gold-light: #e2c97e;
  --gold-dark: #8a6e2f;
  --dark: #0d0d0d;
  --dark-2: #161616;
  --dark-3: #1f1f1f;
  --text: #e8e0d0;
  --text-muted: #9e9587;
  --white: #f5f0e8;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── HEADER / NAV ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 5vw, 4rem);
  height: var(--header-h);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.header-logo img {
  height: 66px;
  width: auto;
  display: block;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-logo-text span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}
.header-logo-text span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  list-style: none;
  align-items: center;
}
.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible { color: var(--gold); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover,
.nav-cta:focus-visible { background: var(--gold); color: var(--dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: 2px;
}
.menu-toggle:hover,
.menu-toggle:focus-visible { color: var(--gold); outline: none; }

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: center;
}
.mobile-nav nav a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  transition: color 0.25s;
}
.mobile-nav nav a:hover,
.mobile-nav nav a:focus-visible { color: var(--gold); outline: none; }
.mobile-nav nav .nav-cta {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  padding: 0.7rem 1.6rem;
  align-self: center;
  color: var(--gold) !important;
}
.mobile-nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 8px;
  border-radius: 2px;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus-visible { color: var(--gold-light); outline: none; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 26px) clamp(1.2rem, 6vw, 6rem) 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(#hero-particles) { position: relative; z-index: 1; }

.hero-ornament {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
  transform-origin: top;
  animation: ornamentDrop 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  opacity: 0;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero h1 .letter {
  display: inline-block;
  opacity: 0;
  animation: letterIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: bottom center;
}
.hero h1 em .letter { color: var(--gold-light); }
.hero h1 em.shimmer-active .letter {
  opacity: 1 !important;
  animation: goldShimmer 2.8s ease-in-out infinite !important;
}
.hero h1 em.shimmer-active .letter:nth-child(1) { animation-delay: 0s !important; }
.hero h1 em.shimmer-active .letter:nth-child(2) { animation-delay: 0.12s !important; }
.hero h1 em.shimmer-active .letter:nth-child(3) { animation-delay: 0.24s !important; }
.hero h1 em.shimmer-active .letter:nth-child(4) { animation-delay: 0.36s !important; }
.hero h1 em.shimmer-active { text-shadow: 0 0 40px rgba(201,168,76,0.25); }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
  opacity: 0;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2.4rem;
  opacity: 0;
}
.hero-divider span { color: var(--gold); font-size: 1rem; }
.hero-divider::before, .hero-divider::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark));
}
.hero-divider::after { background: linear-gradient(to left, transparent, var(--gold-dark)); }

.hero-desc {
  max-width: 640px;
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  color: var(--text-muted);
  margin: 0 auto 3.2rem;
  opacity: 0;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.28s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-outline:hover,
.btn-outline:focus-visible { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-wa {
  background: #25D366;
  color: #fff;
}
.btn-wa:hover,
.btn-wa:focus-visible { background: #1ebe5d; transform: translateY(-2px); }
.btn-tel {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--text);
}
.btn-tel:hover,
.btn-tel:focus-visible { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── SECTIONS ─── */
section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6vw, 6rem);
  scroll-margin-top: var(--header-h);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-title em { color: var(--gold-light); font-style: italic; }

.gold-line {
  width: 52px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ─── CHI SIAMO ─── */
.about {
  background: var(--dark-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-frame {
  position: relative;
  width: clamp(200px, 28vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-frame img {
  width: 95%;
  height: auto;
  position: relative;
  z-index: 1;
}

.about-text p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--text); font-weight: 400; }

.about-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── SERVIZI ─── */
.services { background: var(--dark); }
.services-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.services-header .gold-line { margin: 0 auto 2rem; }
.services-intro { font-size: 0.9rem; color: var(--text-muted); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.1);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--dark-2);
  padding: 2.4rem 2rem;
  transition: background 0.28s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { background: var(--dark-3); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 1.4rem;
  color: var(--gold);
}
.service-icon svg { width: 20px; height: 20px; }

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── VALORI ─── */
.values {
  background: linear-gradient(135deg, var(--dark-2) 0%, #111 100%);
  text-align: center;
}
.values-header { margin-bottom: 3.5rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.value-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.18);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.value-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}
.value-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ─── GALLERIA ─── */
.gallery { background: var(--dark-3); }
.gallery-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.gallery-intro { font-size: 0.9rem; color: var(--text-muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-2);
  border: 1px solid rgba(201,168,76,0.08);
}

/* Mosaic layout — desktop */
.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-item:nth-child(5),
.gallery-item:nth-child(6),
.gallery-item:nth-child(7) { grid-column: span 4; }
.gallery-item.gallery-item-banner,
.gallery-item:nth-child(8) { grid-column: span 12; }

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 6; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 3; grid-row: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 3; grid-row: span 1; }
  .gallery-item:nth-child(7) { grid-column: span 3; grid-row: span 1; }
  .gallery-item:nth-child(8) { grid-column: span 6; grid-row: span 1; }
}
@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-row: span 2; }
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: brightness(0.85) grayscale(0.2);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) grayscale(0);
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--dark-2);
  color: rgba(201,168,76,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  cursor: default;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.gallery-placeholder svg { color: rgba(201,168,76,0.3); }
.gallery-placeholder span { line-height: 1.5; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--white);
  font-style: italic;
}

.gallery-upload-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-upload-note strong { color: var(--text); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { background: rgba(201,168,76,0.15); outline: none; }

/* ─── NECROLOGI ─── */
.necrologi { background: var(--dark-2); }
.necrologi-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}
.necrologi-intro { font-size: 0.9rem; color: var(--text-muted); }

.necrologi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.necrologio-card {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.14);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.necrologio-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-3px);
}
.necrologio-card::before {
  content: '✦';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-3);
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.85rem;
}
.necrologio-card.has-foto::before { display: none; }

.necrologio-foto {
  width: 110px;
  height: 110px;
  margin: -1rem auto 0.6rem;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.4);
  box-shadow: 0 0 0 4px var(--dark-3), 0 0 0 5px rgba(201,168,76,0.18);
  align-self: center;
  flex-shrink: 0;
}
.necrologio-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 0.4s ease;
}
.necrologio-card:hover .necrologio-foto img {
  filter: grayscale(0) contrast(1);
}
.necrologio-card.has-foto {
  align-items: center;
  text-align: center;
  padding-top: 2.2rem;
}
.necrologio-card.has-foto .necrologio-text {
  text-align: left;
}

.necrologio-dates {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.necrologio-dates span:nth-child(2) { color: var(--text-muted); }

.necrologio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
}

.necrologio-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.necrologio-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid rgba(201,168,76,0.12);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}

.necrologio-famiglia {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.necrologi-cta-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed rgba(201,168,76,0.25);
  padding: 3rem 2rem;
  position: relative;
}
.necrologi-cta-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.necrologi-cta-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.necrologi-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.necrologi-note {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 1.5rem;
  line-height: 1.8;
}
.necrologi-note strong { color: var(--text); }

/* ─── CONTATTI ─── */
.contact {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.contact-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
}
.contact-list li .ci {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  display: inline-flex;
}
.contact-list li .cl {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-list li .cv {
  color: var(--text);
}
.contact-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-list a:hover,
.contact-list a:focus-visible { color: var(--gold); }

.contact-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── MAP ─── */
.map-frame {
  border: 1px solid rgba(201,168,76,0.2);
  overflow: hidden;
  position: relative;
}
.map-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.map-frame iframe {
  width: 100%;
  height: 320px;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
  border: none;
}
.map-caption {
  background: var(--dark-3);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 0.9rem 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.map-caption svg { color: var(--gold); flex-shrink: 0; }
.map-caption a { color: var(--gold); text-decoration: none; margin-left: 4px; }
.map-caption a:hover,
.map-caption a:focus-visible { color: var(--gold-light); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 3rem clamp(1.2rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  height: 60px;
  width: auto;
  display: block;
}
.footer-brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.footer-brand-text span {
  font-size: 0.78rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.06em;
}

/* ─── FLOATING BUTTONS ─── */
.float-btns {
  position: fixed;
  bottom: 2rem;
  right: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 200;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}
.float-btn:hover,
.float-btn:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,0.7);
  outline: none;
}
.float-btn-wa { background: #25D366; }
.float-btn-tel { background: var(--gold); }
.float-btn svg { width: 22px; height: 22px; color: #fff; }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ANIMATIONS ─── */
@keyframes letterIn {
  from { opacity: 0; transform: translateY(40px) rotateX(-40deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0deg); }
}
@keyframes ornamentDrop {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}
@keyframes goldShimmer {
  0%   { opacity: 1; color: var(--gold-light); }
  30%  { opacity: 1; color: #fff8e0; }
  60%  { opacity: 1; color: var(--gold); }
  100% { opacity: 1; color: var(--gold-light); }
}

/* ─── DYNAMIC DATA STATES ─── */
.data-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.necrologi-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  border: 1px dashed rgba(201,168,76,0.18);
  max-width: 620px;
  margin: 0 auto 3rem;
}
.necrologi-empty p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; }

/* Gallery: items beyond 8 get a default span so layout doesn't break */
.gallery-item:nth-child(n+9) { grid-column: span 4; }
@media (max-width: 900px) {
  .gallery-item:nth-child(n+9) { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 500px) {
  .gallery-item:nth-child(n+9) { grid-column: span 1; grid-row: span 1; }
}

/* ─── MOBILE NAV BREAKPOINT ─── */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  :root { --header-h: 68px; }
  .header-logo img { height: 50px; }
  .header-logo-text span:first-child { font-size: 1rem; }
  .header-logo-text span:last-child { font-size: 0.6rem; }
}
@media (max-width: 480px) {
  .header-logo-text { display: none; }
  .header-logo img { height: 46px; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  #hero-particles { display: none; }
  .hero-label,
  .hero-sub,
  .hero-divider,
  .hero-desc,
  .hero-cta-group { opacity: 1 !important; }
  .hero h1 .letter { opacity: 1 !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
