/* =========================================================
   Sito Matrimonio — stile placeholder neutro elegante
   Tutte le variabili sono in :root, cambiarle qui per ridisegnare.
   ========================================================= */

:root {
  /* Palette */
  --c-bg:        #FAF7F2;
  --c-bg-alt:    #F1ECE3;
  --c-text:      #2A2522;
  --c-text-soft: #5A524C;
  --c-accent:    #B8985A;
  --c-accent-dk: #8E7340;
  --c-border:    #E3DCCE;

  /* Font */
  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:    1100px;
  --container-sm: 720px;
  --radius:       4px;
  --shadow:       0 4px 20px rgba(42, 37, 34, 0.08);

  /* Spaziatura */
  --space-section: clamp(4rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent-dk); text-decoration: none; }
a:hover { color: var(--c-accent); }

.link-underline {
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 1px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: var(--container-sm); }

/* ---------- Tipografia ---------- */
.section-eyebrow {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-dk);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 2.5rem;
  letter-spacing: 0.01em;
}

.lead { font-size: 1.1rem; color: var(--c-text-soft); margin-bottom: 1.25rem; }

/* ---------- Navigazione ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(250, 247, 242, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: 0.08em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--c-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-links a:hover { color: var(--c-accent-dk); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* TODO: sostituire con foto sposi reale (assets/images/hero/hero-sposi.jpg) */
  background:
    linear-gradient(rgba(42,37,34,0.35), rgba(42,37,34,0.45)),
    url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=1920') center/cover no-repeat;
}

.hero-content { padding: 0 1.5rem; max-width: 900px; }

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.hero-names {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}
.hero-names span {
  font-style: italic;
  font-weight: 300;
  color: var(--c-accent);
  margin: 0 0.3rem;
}

.hero-date {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.95;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: #fff;
  margin-top: 8px;
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}

/* ---------- Sezioni generiche ---------- */
.section {
  padding: var(--space-section) 0;
  text-align: center;
}
.section--alt { background: var(--c-bg-alt); }
.section--intro { text-align: center; }

/* ---------- Info grid (cerimonia / ricevimento) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 900px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.info-card h3 {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-accent-dk);
  margin: 0 0 0.75rem;
}
.info-card p {
  font-family: var(--f-display);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
  color: var(--c-text);
}

/* ---------- Mappe ---------- */
.map-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ---------- Galleria (Swiper) ---------- */
.gallery-swiper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  --swiper-theme-color: var(--c-accent);
  --swiper-navigation-size: 28px;
}
.gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt);
  aspect-ratio: 4 / 3;
}
.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  background: rgba(255,255,255,0.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---------- Lista nozze ---------- */
.iban-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 2.5rem auto;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow);
}
.iban-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-accent-dk);
  margin: 0 0 0.5rem;
}
.iban-value {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  word-break: break-all;
}
.iban-holder {
  font-size: 0.9rem;
  color: var(--c-text-soft);
  margin: 0 0 1.5rem;
}
.btn {
  display: inline-block;
  border: none;
  padding: 0.75rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.btn--gold {
  background: var(--c-accent);
  color: #fff;
}
.btn--gold:hover { background: var(--c-accent-dk); }
.btn.is-copied {
  background: #4a7c59;
  pointer-events: none;
}
.lista-online {
  margin-top: 1.5rem;
  color: var(--c-text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-text);
  color: #DAD3C8;
  padding: 4rem 0 3rem;
  text-align: center;
}
.footer-names {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  color: #fff;
}
.footer-date {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  opacity: 0.7;
}
.footer-contacts {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.footer-contacts a { color: var(--c-accent); }
.footer-invito {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}
.footer-invito a { color: #fff; border-bottom: 1px solid var(--c-accent); padding-bottom: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links li { border-bottom: 1px solid var(--c-border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .map-wrap iframe { height: 300px; }
  .iban-value { font-size: 0.95rem; }
}
