/* Photom — tema chiaro caldo, in linea con il brand IG (bianco/nero + fotografia crema) */

:root {
  --bg: #faf8f4;
  --bg-soft: #f4efe6;
  --fg: #1c1b18;
  --muted: #8a8375;
  --accent: #b08d57;
  --border: #e7e0d2;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 32px 80px;
}

/* ---------- Homepage (solo brand) ---------- */
.home-hero {
  text-align: center;
  padding: 18vh 0 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.home-hero h1 {
  font-size: clamp(44px, 12vw, 96px);
  letter-spacing: 0.01em;
}

.home-hero .event-desc {
  margin: 18px auto 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Contatti ---------- */
.contact-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Hero evento ---------- */
.event-hero {
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.event-head {
  flex: 1;
  min-width: 300px;
}

.event-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.event-meta {
  color: var(--muted);
  margin-bottom: 14px;
}

.event-desc {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.event-desc strong {
  color: var(--fg);
  font-weight: 500;
}

.event-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #c3a06b;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.event-note {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Istruzioni download Amazon ---------- */
.dl-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.dl-steps li {
  margin-bottom: 4px;
}

.dl-steps strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- Galleria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3 / 2;
}

.photo a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.photo a:first-child:hover img {
  transform: scale(1.035);
}

.photo-download {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 27, 24, 0.55);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.photo:hover .photo-download,
.photo:focus-within .photo-download {
  opacity: 1;
}

.photo-download:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- PhotoSwipe: barra di avanzamento ---------- */
.pswp__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 100;
}

.pswp__progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.pswp__counter {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------- CTA finale ---------- */
.cta {
  margin-top: 64px;
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 22px;
}

.cta .event-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .contact-links {
  margin-top: 10px;
  gap: 18px;
}

/* ---------- Mobile / touch ---------- */
/* Su touch non esiste hover: il download deve essere sempre visibile */
@media (hover: none) {
  .photo-download {
    opacity: 1;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px 20px;
    gap: 10px;
  }

  .brand {
    font-size: 20px;
  }

  main {
    padding: 24px 16px 60px;
  }

  .home-hero {
    padding: 14vh 0 10vh;
    min-height: 60vh;
  }

  .event-hero {
    gap: 24px;
    margin-bottom: 32px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  .gallery {
    gap: 8px;
  }

  .cta {
    margin-top: 40px;
    padding: 32px 20px;
  }

  .photo {
    border-radius: 8px;
  }

  .photo-download {
    right: 10px;
    bottom: 10px;
  }
}
