:root {
  --bg: #faf7f2;
  --ink: #3d3a35;
  --muted: #8a857c;
  --accent: #8a9b7c;
  --accent-dark: #5f6f52;
  --line: #e8e2d8;
  --cream: #f3eee5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 70px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin: 20px auto 0;
}

.section-date {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  margin-top: 8px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(25, 22, 20, 0.55), rgba(25, 22, 20, 0.68)),
    url("img/IMG-20260829-WA0005.jpg") 60% center / cover no-repeat;
  color: #fff;
  padding: 48px 24px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.hero-names,
.hero-date {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
}

.hero-names .amp {
  font-style: italic;
  color: #e4ddc9;
}

.hero-date {
  margin-top: 20px;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Welcome */
.welcome {
  text-align: center;
}

.welcome-text {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.sposi-illo {
  display: block;
  width: 220px;
  max-width: 70%;
  height: auto;
  margin: 16px auto 0;
}

/* Location */
.location {
  background: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0 0;
}

.location-group {
  margin-top: 40px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.location-group-date {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}

.location-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  text-align: center;
}

.card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  color: var(--accent-dark);
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.location-time {
  color: var(--accent-dark);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.location-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.location-address {
  color: var(--muted);
  font-size: 0.9rem;
}

.maps-btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  padding: 9px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.maps-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.map {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(61, 58, 53, 0.12);
}

.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.map-tabs {
  display: flex;
  margin: 28px 0 0;
  border: 1px solid var(--accent-dark);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.map-tab {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border: none;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.map-tab + .map-tab {
  border-left: 1px solid var(--accent-dark);
}

.map-tab.active {
  background: var(--accent-dark);
  color: #fff;
}

/* Program */
.route {
  position: relative;
  max-width: 900px;
  height: 460px;
  margin: 40px auto 0;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.route-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-stop {
  position: absolute;
  width: 240px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.stop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 24px rgba(61, 58, 53, 0.1);
}

.stop-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 6px;
  color: var(--accent-dark);
}

.stop-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stop-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.stop-info {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.stop-info span {
  display: block;
}

.stop-1 {
  left: 15%;
  top: 18%;
}

.stop-2 {
  left: 58%;
  top: 50%;
}

.stop-3 {
  left: 88%;
  top: 82%;
}

/* Gallery */
.carousel {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  padding: 12px 0 8px;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 55%;
  padding: 0 10px;
  transform: scale(0.82);
  opacity: 0.45;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-slide.active {
  transform: scale(1);
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(61, 58, 53, 0.18);
}

.carousel-slide img[src$="IMG-20260829-WA0009.jpg"] {
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 58, 53, 0.15);
  z-index: 2;
}

.carousel-arrow:hover {
  background: #fff;
}

.carousel-arrow.prev {
  left: 6px;
}

.carousel-arrow.next {
  right: 6px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--accent-dark);
  opacity: 0.3;
  cursor: pointer;
}

.carousel-dot.active {
  opacity: 1;
}

/* Gift */
.gift {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.gift-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
}

.gift-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gift .wrap {
  position: relative;
}

.gift-text {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--muted);
}

.gift-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
  text-align: center;
}

.gift-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.gift-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 20px;
  word-break: break-all;
}

#iban {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: clamp(0.72rem, 2.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.4;
}

.copy-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--accent-dark);
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent);
}

/* Footer */
.footer {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .footer-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 8px;
}

@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }

  .hero-names .amp {
    display: block;
  }

  .route {
    height: 520px;
  }

  .route-stop {
    width: 170px;
  }

  .stop-title {
    font-size: 1.1rem;
  }

  .stop-info {
    font-size: 0.8rem;
  }

  .stop-1 {
    left: 20%;
    top: 15%;
  }

  .stop-2 {
    left: 56%;
    top: 50%;
  }

  .stop-3 {
    left: 82%;
    top: 85%;
  }
}
