/* ─── CSS VARIABLES ─── */
:root {
  --terra: #C4795A;
  --terra-light: #D99478;
  --terra-dark: #A05E42;
  --beige: #F7EDD8;
  --beige-dark: #EDD9B4;
  --bosco: #4A6741;
  --bosco-light: #6B8F61;
  --bosco-dark: #344B2E;
  --avorio: #FFFAF0;
  --testo: #3A2E28;
  --testo-light: #7A6A5A;
  --r: 0.75rem;
  --r-lg: 1.5rem;
  --shadow: 0 8px 40px rgba(58,46,40,0.12);
  --shadow-sm: 0 2px 16px rgba(58,46,40,0.08);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--avorio);
  color: var(--testo);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.15; }

/* ─── KEYFRAME ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(3deg); }
  66%       { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes walkRight {
  from { transform: translateX(-140px); }
  to   { transform: translateX(calc(100vw + 140px)); }
}
@keyframes walkLeft {
  from { transform: translateX(calc(100vw + 140px)); }
  to   { transform: translateX(-140px); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── PROGRESS BAR ─── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--bosco));
  z-index: 200;
  width: 0%;
  transition: width 0.1s;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(255,250,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,121,90,0.15);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-brand {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--terra);
  letter-spacing: 0.02em;
}
/* & calligrafica elegante (Great Vibes), coerente su tutti i dispositivi */
.amp {
  font-family: 'Tangerine', 'Cormorant Garamond', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.7em;
}
/* nel monogramma A & F la & è verde bosco */
.nav-brand .amp { color: var(--bosco); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--testo-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terra); }
/* lista link rapidi: solo mobile */
.nav-quick { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bars span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle-label { display: none; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196,121,90,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,103,65,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 60%, rgba(247,237,216,0.6) 0%, transparent 70%),
    var(--beige);
}
.hero-botanical {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.botanical-float { animation: floatLeaf 6s ease-in-out infinite; }
.botanical-float:nth-child(2) { animation-delay: -2s; }
.botanical-float:nth-child(3) { animation-delay: -4s; }

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease both;
}
.hero-eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--bosco);
  margin-bottom: 0.5rem;
  animation: fadeUp 1.2s 0.2s ease both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--testo);
  letter-spacing: -0.02em;
  margin-bottom: 0.25em;
  animation: fadeUp 1.2s 0.1s ease both;
}
.hero-title em { font-style: italic; color: var(--terra); }
.hero-ampersand {
  font-family: 'Tangerine', 'Cormorant Garamond', serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(4.5rem, 11vw, 8rem);
  color: var(--bosco);
  display: block;
  line-height: 0.8;
}
.hero-date {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--testo-light);
  margin: 1.5rem 0 0.4rem;
  animation: fadeUp 1.2s 0.3s ease both;
}
.hero-location {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--testo-light);
  animation: fadeUp 1.2s 0.4s ease both;
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--terra), transparent);
  margin: 2rem auto;
  animation: fadeIn 1.2s 0.5s ease both;
}

/* ─── COUNTDOWN ─── */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeUp 1.2s 0.6s ease both;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--terra);
  line-height: 1;
  animation: countPulse 2s ease-in-out infinite;
}
.countdown-unit:nth-child(2) .countdown-num { animation-delay: 0.5s; }
.countdown-unit:nth-child(3) .countdown-num { animation-delay: 1s; }
.countdown-unit:nth-child(4) .countdown-num { animation-delay: 1.5s; }
.countdown-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--testo-light);
  margin-top: 0.3rem;
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--terra-light);
  align-self: center;
  padding-bottom: 0.8rem;
  opacity: 0.5;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: fadeIn 2s 1.5s ease both;
}
.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--testo-light);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--terra), transparent);
  animation: fadeIn 1s ease infinite alternate;
}

/* ─── SECTIONS COMMON ─── */
section { position: relative; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-tag {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--terra);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--testo);
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--terra); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--testo-light);
  max-width: 520px;
  line-height: 1.7;
}
.section-head { margin-bottom: 3.5rem; }

/* ─── STORIA ─── */
#storia { background: var(--avorio); }
.storia-bg-deco {
  position: absolute;
  top: 0; right: -5%;
  width: 40%;
  opacity: 0.04;
  pointer-events: none;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--terra-light), var(--bosco-light), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 4rem;
  align-items: center;
}
.timeline-item:nth-child(odd)  .timeline-content { grid-column: 1; text-align: right; padding-right: 2.5rem; }
.timeline-item:nth-child(odd)  .timeline-void    { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-void    { grid-column: 1; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; padding-left: 2.5rem; }
.timeline-item:nth-child(odd)  .timeline-dot     { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-dot     { grid-column: 2; }
.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--beige);
  border: 2px solid var(--terra-light);
  font-size: 1.4rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-dot:hover { transform: scale(1.15); box-shadow: var(--shadow); }
.timeline-year {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: var(--terra);
  margin-bottom: 0.3rem;
}
.timeline-content h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.5rem; }
.timeline-content p  { font-size: 0.95rem; color: var(--testo-light); line-height: 1.7; }

/* ─── IL GIORNO ─── */
#giorno { background: var(--beige); }
.giorno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.programma-list { list-style: none; }
.programma-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(196,121,90,0.15);
  transition: transform 0.2s;
}
.programma-item:last-child { border-bottom: none; }
.programma-item:hover { transform: translateX(4px); }
.programma-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--terra);
  min-width: 90px;
  line-height: 1.2;
}
.programma-time small {
  display: block;
  font-size: 0.65rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-light);
}
.programma-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.programma-info p { font-size: 0.9rem; color: var(--testo-light); }

.mappa-card {
  background: var(--avorio);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2.5rem;
}
.spotify-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.spotify-card iframe {
  display: block;
  width: 100%;
}
.mappa-embed {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #e8f5e0 0%, #d4e8c8 100%);
}
.mappa-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.mappa-info { padding: 1.5rem; }
.mappa-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 0.3rem; }
.mappa-info p  { font-size: 0.9rem; color: var(--testo-light); margin-bottom: 1rem; }
.btn-mappa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bosco);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.btn-mappa:hover { background: var(--bosco-dark); transform: translateY(-2px); }

/* ─── INFO PRATICHE ─── */
#info { background: var(--avorio); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--bosco));
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-icon {
  width: 48px; height: 48px;
  background: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.info-card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.8rem; }
.info-card ul { list-style: none; }
.info-card ul li {
  font-size: 0.9rem;
  color: var(--testo-light);
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  line-height: 1.5;
  position: relative;
}
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li::before {
  content: '·';
  color: var(--terra);
  font-weight: 700;
  position: absolute;
  left: 0.3rem;
  top: 0.35rem;
}

/* ─── RSVP ─── */
#rsvp {
  background: linear-gradient(135deg, var(--bosco-dark) 0%, var(--bosco) 50%, #3D5E35 100%);
  position: relative;
  overflow: hidden;
}
#rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 Q35 20 30 30 Q25 20 30 10Z M10 30 Q20 25 30 30 Q20 35 10 30Z M50 30 Q40 25 30 30 Q40 35 50 30Z' fill='white' opacity='0.03'/%3E%3C/svg%3E");
}
#rsvp .section-tag   { color: var(--terra-light); }
#rsvp .section-title { color: white; }
#rsvp .section-subtitle { color: rgba(255,255,255,0.7); }

.rsvp-form {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--terra-light);
  background: rgba(255,255,255,0.15);
}
.form-select { cursor: pointer; }
.form-select option { background: var(--bosco-dark); color: white; }
.form-textarea { resize: vertical; min-height: 90px; }

.menu-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
#menuChoices { display: flex; flex-direction: column; gap: 0.8rem; }
.menu-choice { display: flex; flex-direction: column; gap: 0.4rem; }
.menu-choice-label { color: rgba(255,255,255,0.45); font-weight: 600; }

.btn-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--terra);
  color: white;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(196,121,90,0.4);
  margin-top: 0.8rem;
}
.btn-rsvp:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(196,121,90,0.5); }

.rsvp-success {
  display: none;
  text-align: center;
  padding: 3rem;
  color: white;
}
.rsvp-success .success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.rsvp-success h3 { font-size: 2rem; margin-bottom: 0.5rem; color: white; }
.rsvp-success p  { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ─── DONAZIONI ─── */
#donazioni { background: var(--beige); text-align: center; }
.donazioni-wrap { max-width: 800px; margin: 0 auto; }
#donazioni .section-subtitle { margin: 0 auto; }
.iban-box {
  background: var(--avorio);
  border: 1px solid rgba(196,121,90,0.25);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}
.iban-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--testo-light);
  margin-bottom: 0.3rem;
}
.iban-number {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--testo);
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--terra);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--terra-dark); }

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.qr-card {
  background: var(--avorio);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.1);
  transition: transform 0.3s;
}
.qr-card:hover { transform: translateY(-4px); }
.qr-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 1.2rem; }
.qr-placeholder { width: 140px; height: 140px; margin: 0 auto 1rem; border-radius: var(--r); overflow: hidden; }
.qr-placeholder--lg { width: 180px; height: 180px; }
.qr-caption { font-size: 0.85rem; color: var(--testo-light); }

/* Satispay featured */
.qr-card--featured {
  border: 2px solid #FF3C00;
  box-shadow: 0 8px 32px rgba(255,60,0,0.15);
  position: relative;
  background: white;
}
.qr-card--featured:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(255,60,0,0.22); }
.qr-card--featured h4 { font-size: 1.5rem; }
.qr-badge {
  display: inline-block;
  background: #FF3C00;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}

/* ═══════════════════════════════════════
   WALL AUGURI
   ═══════════════════════════════════════ */
#wall { background: var(--beige); }

.wall-admin-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s;
  padding: 4px;
  margin-top: 0.5rem;
}
.wall-admin-btn:hover { opacity: 0.7; }
.wall-admin-btn.active { opacity: 1; }

.wall-form {
  background: var(--avorio);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.12);
}
.wall-form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.wall-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--testo-light);
  margin-bottom: 0.4rem;
}
.wall-input {
  width: 100%;
  background: white;
  border: 1px solid rgba(196,121,90,0.2);
  border-radius: var(--r);
  padding: 0.7rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--testo);
  outline: none;
  transition: border-color 0.2s;
}
.wall-input:focus { border-color: var(--terra); }
.wall-textarea { resize: vertical; min-height: 90px; }
.wall-counter {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--testo-light);
  margin-top: 0.3rem;
}
.btn-wall {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terra);
  color: white;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(196,121,90,0.35);
}
.btn-wall:hover { background: var(--terra-dark); transform: translateY(-2px); }

/* griglia post */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.wall-post {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.08);
  position: relative;
  animation: fadeUp 0.5s ease both;
}
.wall-post-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--terra);
  margin-bottom: 0.4rem;
}
.wall-post-text {
  font-size: 0.92rem;
  color: var(--testo);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.wall-post-date {
  font-size: 0.72rem;
  color: var(--testo-light);
  margin-top: 0.8rem;
}
/* azioni sulla card (edit / delete) */
.wall-post-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.wall-post:hover .wall-post-actions,
.wall-admin-mode .wall-post-actions { opacity: 1; }
.wall-post-btn {
  background: none;
  border: 1px solid rgba(160,94,66,0.25);
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--terra-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.wall-post-btn:hover { background: rgba(196,121,90,0.12); }

/* edit inline */
.wall-post-edit-area {
  width: 100%;
  background: var(--beige);
  border: 1px solid var(--terra-light);
  border-radius: var(--r);
  padding: 0.5rem 0.7rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  color: var(--testo);
  resize: vertical;
  min-height: 70px;
  outline: none;
  margin: 0.4rem 0 0;
}
.wall-post-edit-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.btn-wall-sm {
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-wall-sm--save   { background: var(--terra); color: white; }
.btn-wall-sm--save:hover  { background: var(--terra-dark); }
.btn-wall-sm--cancel { background: var(--beige-dark); color: var(--testo); }
.btn-wall-sm--cancel:hover { background: #D4C49A; }

/* badge messaggio privato */
.wall-post-private-badge {
  display: inline-block;
  background: rgba(74,103,65,0.1);
  color: var(--bosco-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 0.4rem;
}

/* conferma messaggio privato inviato */
.wall-private-confirm {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(74,103,65,0.1);
  border-left: 3px solid var(--bosco);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--bosco-dark);
  font-size: 0.88rem;
  animation: fadeUp 0.4s ease;
}

/* scelta visibilità */
.wall-vis-group { margin-bottom: 1.2rem; }
.wall-vis-opts  { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.wall-vis-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border: 2px solid rgba(196,121,90,0.18);
  border-radius: var(--r);
  cursor: pointer;
  background: white;
  transition: border-color 0.2s, background 0.2s;
}
.wall-vis-opt:has(input:checked) {
  border-color: var(--terra);
  background: #FDF3EA;
}
.wall-vis-opt input[type="radio"] { display: none; }
.wall-vis-icon { font-size: 1.1rem; flex-shrink: 0; }
.wall-vis-text strong { display: block; font-size: 0.88rem; color: var(--testo); font-weight: 700; }
.wall-vis-text small  { display: block; font-size: 0.74rem; color: var(--testo-light); }

.wall-empty {
  text-align: center;
  color: var(--testo-light);
  font-style: italic;
  padding: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════
   QUIZ
   ═══════════════════════════════════════ */
#quiz { background: var(--avorio); }

.quiz-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 2.5rem;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196,121,90,0.1);
}
.quiz-progress-wrap {
  height: 6px;
  background: var(--beige);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--terra), var(--bosco));
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}
.quiz-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--testo-light);
  margin-bottom: 0.8rem;
}
.quiz-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--testo);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.quiz-opt {
  background: var(--avorio);
  border: 2px solid rgba(196,121,90,0.15);
  border-radius: var(--r);
  padding: 0.8rem 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  color: var(--testo);
}
.quiz-opt:hover:not(:disabled) { border-color: var(--terra-light); background: #FDF3EA; transform: translateX(4px); }
.quiz-opt.correct  { border-color: var(--bosco); background: #EDF5EB; color: var(--bosco-dark); }
.quiz-opt.wrong    { border-color: var(--terra-dark); background: #FDE8E0; color: var(--terra-dark); }
.quiz-opt:disabled { cursor: default; }

/* risultato */
#quizResult { text-align: center; padding: 1rem 0; }
.quiz-result-icon  { font-size: 3.5rem; margin-bottom: 0.8rem; }
.quiz-result-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--terra);
  margin-bottom: 0.5rem;
}
.quiz-result-msg {
  font-size: 1rem;
  color: var(--testo-light);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 1.5rem;
}
.btn-quiz-retry {
  background: var(--bosco);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-quiz-retry:hover { background: var(--bosco-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════
   SUBPAGE HERO (info.html, auguri.html)
   ═══════════════════════════════════════ */
.subpage-hero {
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 3rem;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(196,121,90,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(74,103,65,0.12) 0%, transparent 55%),
    var(--beige);
}
.subpage-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--testo);
  line-height: 1.1;
  margin: 0.3rem 0 0.8rem;
}
.subpage-hero-title em { font-style: italic; color: var(--terra); }
.subpage-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--testo-light);
  max-width: 520px;
}

/* ═══════════════════════════════════════
   WEEKEND TORINO (info.html)
   ═══════════════════════════════════════ */
.weekend-day {
  margin-bottom: 3.5rem;
}
.weekend-day-header {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(196,121,90,0.2);
}
.weekend-date {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: var(--terra);
  white-space: nowrap;
}
.weekend-day-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--testo);
}
.weekend-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.weekend-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.weekend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.weekend-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  margin-top: 2px;
}
.weekend-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.weekend-time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.5rem;
}
.weekend-card p:last-child {
  font-size: 0.88rem;
  color: var(--testo-light);
  line-height: 1.6;
}
.weekend-tip {
  background: rgba(74,103,65,0.08);
  border-left: 3px solid var(--bosco);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
}
.weekend-tip-icon { font-size: 1.2rem; flex-shrink: 0; }
.weekend-tip p { font-size: 0.88rem; color: var(--testo-light); line-height: 1.6; }

@media (max-width: 768px) {
  .weekend-cards { grid-template-columns: 1fr; }
  .weekend-day-header { flex-direction: column; gap: 0.3rem; }
}

/* ─── FOOTER ─── */
footer {
  background: var(--testo);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 3rem 2rem;
}
.footer-names {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: var(--terra-light);
  margin-bottom: 0.5rem;
}
.footer-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.3);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.footer-tiny { font-size: 0.7rem; opacity: 0.3; }

/* ═══════════════════════════════════════
   CATS EASTER EGG
   ═══════════════════════════════════════ */
@keyframes catSitPop {
  0%   { transform: scale(0.75) translateY(12px); opacity: 0; }
  70%  { transform: scale(1.08) translateY(-3px); opacity: 1; }
  100% { transform: scale(1)    translateY(0);    opacity: 1; }
}
@keyframes catFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.cat-walker {
  position: fixed;
  bottom: 16px;
  z-index: 999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.5s;
}
.cat-walker.active { opacity: 1; }
/* gatte "in braccio a Ludo" durante l'azione ludo-cats */
.cat-walker.kidnapped { visibility: hidden !important; }

/* Pausa quando seduta */
.cat-walker.sitting { animation-play-state: paused !important; }

.cat-label {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: var(--terra);
  background: rgba(255,250,240,0.92);
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  pointer-events: none;
}

/* Il corpo: gestisce direzione */
.cat-body {
  pointer-events: auto;
  cursor: pointer;
}

/* Tilde → destra (immagine già orientata a destra) */
#cat-tilde   .cat-body { transform: scaleX(1); }
/* Sibilla → sinistra (specchiata) */
#cat-sibilla .cat-body { transform: scaleX(-1); }

/* Immagini gatta */
.cat-img {
  display: block;
  height: 120px;
  width: auto;
}
.cat-img--jump { display: none; }
.cat-img--sit  { display: none; }

/* Hover → salto
.cat-body:hover .cat-img--walk { display: none; }
.cat-body:hover .cat-img--jump {
  display: block;
  animation: catFloat 0.7s ease-in-out infinite;
} */

/* Click → seduta (ha priorità sull'hover) */
.cat-walker.sitting .cat-img--walk              { display: none; }
.cat-walker.sitting .cat-body:hover .cat-img--jump { display: none; }
.cat-walker.sitting .cat-img--sit {
  display: block;
  animation: catSitPop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ─── TODDLER EASTER EGG ─── */
.toddler-walker {
  position: fixed;
  bottom: 8px;
  z-index: 998;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.5s;
}
.toddler-walker.active { opacity: 1; }

.ludo-body {
  pointer-events: auto;
  cursor: pointer;
}
.ludo-img {
  height: 200px;
  width: auto;
  display: block;
}
/* quando cammina a sinistra, solo la walking è specchiata */
.toddler-walker.walk-left .ludo-img--walk { transform: scaleX(-1); }

/* swap walk ↔ action al click */
.ludo-img--action { display: none; }
.toddler-walker.showing .ludo-img--walk { display: none; }
.toddler-walker.showing .ludo-img--action {
  display: block;
  animation: catSitPop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ═══════════════════════════════════════
   FOTO WALL (foto.html)
   ═══════════════════════════════════════ */

/* Upload form */
.foto-form {
  background: var(--avorio);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.12);
}
.foto-form-fields { display: flex; flex-direction: column; gap: 1rem; }

/* Dropzone */
.foto-dropzone {
  border: 2px dashed rgba(196,121,90,0.35);
  border-radius: var(--r-lg);
  background: white;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.foto-dropzone:hover,
.foto-dropzone.drag-over { border-color: var(--terra); background: #FDF3EA; }
.foto-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.foto-dropzone-idle {
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}
.foto-dropzone-icon { font-size: 2.5rem; margin-bottom: 0.6rem; }
.foto-dropzone-text { font-size: 0.95rem; color: var(--testo-light); line-height: 1.6; }
.foto-dropzone-text small { font-size: 0.78rem; opacity: 0.7; display: block; margin-top: 0.2rem; }
.foto-dropzone-preview { position: relative; width: 100%; }
.foto-dropzone-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
/* Preview grid (multi-file) */
.foto-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
  width: 100%;
  align-items: flex-start;
}
.foto-preview-thumb {
  position: relative;
  width: 80px; height: 80px;
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.foto-preview-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.foto-preview-thumb-del {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(40,30,20,0.75);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.foto-preview-thumb-del:hover { background: rgba(160,94,66,0.9); }
.foto-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border: 2px dashed rgba(196,121,90,0.4);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--terra-light);
  font-size: 2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.foto-add-btn:hover { border-color: var(--terra); color: var(--terra); }

/* Avviso moderazione galleria foto */
.foto-moderation-notice {
  background: rgba(196,121,90,0.08);
  border: 1px solid rgba(196,121,90,0.18);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--testo);
  margin: 0.8rem 0;
}
.foto-moderation-notice-own {
  background: rgba(74,103,65,0.08);
  border-color: rgba(74,103,65,0.2);
}

/* Barra contatore foto */
.foto-count-bar {
  font-size: 0.8rem;
  color: var(--testo-light);
  padding: 0.2rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.foto-count-bar.at-limit  { color: var(--terra-dark); font-weight: 700; }
.foto-count-bar.admin-mode { color: var(--bosco-dark); font-weight: 700; }
.foto-count-track {
  flex: 1;
  min-width: 60px;
  height: 4px;
  background: var(--beige-dark);
  border-radius: 2px;
  overflow: hidden;
}
.foto-count-fill {
  height: 100%;
  background: var(--terra);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.foto-count-fill.at-limit { background: var(--terra-dark); }

.foto-preview-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(40,30,20,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  pointer-events: auto;
}
.foto-preview-remove:hover { background: rgba(40,30,20,0.92); }

/* Gallery: griglia di quadrati 1:1 */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.foto-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,121,90,0.08);
  position: relative;
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
  transition: transform 0.3s, box-shadow 0.3s;
}
.foto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Effetto "mazzetto": bordi di finte card sfalsate dietro (ombre piene,
   non pseudo-elementi: la card ha overflow:hidden che li taglierebbe) */
.foto-card.foto-stack,
.foto-card.foto-stack:hover {
  box-shadow:
    5px 5px 0 -1px #fdfaf7, 5px 5px 0 0 rgba(196,121,90,0.35),
    10px 10px 0 -1px #fdfaf7, 10px 10px 0 0 rgba(196,121,90,0.22),
    var(--shadow-sm);
}
.foto-stack-badge {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: rgba(20,15,10,0.55);
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.foto-card-img-wrap { position: relative; overflow: hidden; background: var(--beige); aspect-ratio: 1; }
.foto-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.foto-card:hover .foto-card-img { transform: scale(1.04); }

.foto-card-body { padding: 1rem 1.1rem; }
.foto-card-dedica {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--testo);
  line-height: 1.5;
  margin-bottom: 0.4rem;
  word-break: break-word;
}
.foto-card-nome { font-family: 'Dancing Script', cursive; font-size: 0.95rem; color: var(--terra); }
.foto-card-date { font-size: 0.68rem; color: var(--testo-light); margin-top: 0.2rem; }

.foto-card-pending {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(74,103,65,0.85);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
}
.foto-card-awaiting { background: rgba(196,121,90,0.85); }

.foto-card-approve {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  background: var(--bosco-dark, #4a6741);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.foto-card-approve:hover { opacity: 0.85; }

.foto-card-del {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(40,30,20,0.65);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 1;
}
.foto-card:hover .foto-card-del { opacity: 1; }
.foto-card-del:hover { background: rgba(160,94,66,0.9); }

/* Refresh button */
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(196,121,90,0.3);
  color: var(--testo-light);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.btn-refresh:hover { border-color: var(--terra); color: var(--terra); }
.btn-refresh.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Loading */
.foto-loading { text-align: center; padding: 3rem 0; color: var(--testo-light); }
.foto-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--beige-dark);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
.foto-loading p { font-size: 0.9rem; font-style: italic; }

/* Lightbox */
.foto-lightbox {
  position: fixed; inset: 0;
  background: rgba(20,15,10,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
.foto-lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.foto-lightbox-close:hover { background: rgba(255,255,255,0.28); }
.foto-lightbox-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.foto-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.foto-lightbox-caption { text-align: center; }
.foto-lightbox-dedica {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.4rem;
}
.foto-lightbox-nome {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--terra-light);
}
.foto-lightbox-counter {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  margin-top: 0.4rem;
}
.foto-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.foto-lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.foto-lightbox-prev { left: 1rem; }
.foto-lightbox-next { right: 1rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-brand { display: none; }
  .nav-quick {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style: none;
    margin-left: auto;
    margin-right: 0.8rem;
  }
  .nav-quick a {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--testo-light);
    line-height: 16px;
    display: flex;
    align-items: center;
  }
  .nav-quick a:hover { color: var(--terra); }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--avorio);
    padding: 1rem 2rem 2rem;
    border-bottom: 1px solid rgba(196,121,90,0.15);
    box-shadow: var(--shadow);
  }
  .nav-links.open  { display: flex; }
  .nav-links.open .nav-dup { display: none; }
  .nav-toggle      { display: flex; line-height: 1; }
  .nav-toggle-label {
    display: flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--terra);
    line-height: 16px;
  }
  .cat-img  { height: 70px; }
  .ludo-img { height: 110px; }
  .countdown       { gap: 0.8rem; }
  .countdown-num   { font-size: 2.5rem; }
  .countdown-unit  { min-width: 55px; }
  .timeline::before { left: 24px; }
  .timeline-item    { grid-template-columns: 48px 1fr; }
  .timeline-item:nth-child(odd)  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; text-align: left; padding-left: 1.5rem; padding-right: 0; }
  .timeline-item:nth-child(odd)  .timeline-void,
  .timeline-item:nth-child(even) .timeline-void    { display: none; }
  .timeline-dot    { grid-column: 1; }
  .giorno-grid     { grid-template-columns: 1fr; }
  .info-grid       { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .qr-grid         { grid-template-columns: 1fr; }
  .iban-box        { flex-direction: column; align-items: flex-start; }
  .foto-grid       { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .foto-card-del   { opacity: 1; }
  .foto-lightbox-nav { width: 38px; height: 38px; }
  .foto-lightbox-prev { left: 0.4rem; }
  .foto-lightbox-next { right: 0.4rem; }
}
@media (max-width: 480px) {
  .foto-grid { grid-template-columns: repeat(2, 1fr); }
}
