/* Alessandro & Roberta — CSS custom esterno (v5.5)
   Tenuto fuori dall'HTML per consentire una CSP senza 'unsafe-inline'. */

/* Font script locale: il carattere originale del sito per i nomi degli
   sposi. Tenuto in locale (non da Google) per non snaturare la grafica
   e per non aggiungere una dipendenza esterna. */
@font-face {
  font-family: 'Citadel Script';
  src: url('CitadelScriptStd.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }

.tracking-luxury { letter-spacing: 0.2em; }

/* Font: Montserrat e Playfair via Google Fonts; lo script e locale. */
.font-sans { font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-serif { font-family: 'Playfair Display', Georgia, "Times New Roman", serif; }
.font-script { font-family: 'Citadel Script', 'Brush Script MT', 'Segoe Script', cursive; }

/* Animazioni fade-in */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-in-up { animation: fade-in-up 0.9s ease-out both; }
.animate-fade-in    { animation: fade-in 0.4s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up, .animate-fade-in, html { animation: none; scroll-behavior: auto; }
}

/* Radio button custom su sfondo sage */
input[type="radio"].rsvp-radio {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid rgba(249,247,242,0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
input[type="radio"].rsvp-radio:checked { border-color: #C5A065; }
input[type="radio"].rsvp-radio:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #C5A065;
}
input[type="radio"].rsvp-radio:focus-visible {
  outline: 2px solid #C5A065;
  outline-offset: 2px;
}

/* Select su sfondo sage: dropdown leggibile */
select.rsvp-select {
  background-color: #F9F7F2;
  color: #2A2A2A;
  border: 1px solid rgba(249,247,242,0.4);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
}
select.rsvp-select:focus {
  outline: 2px solid #C5A065;
  outline-offset: 1px;
}

/* Honeypot anti-bot: invisibile agli umani, fuori dal layout. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp-privacy-box {
  border: 1px solid rgba(249,247,242,0.22);
  background: rgba(249,247,242,0.05);
  padding: 1rem;
  border-radius: 2px;
}
.rsvp-privacy-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  cursor: pointer;
}
.rsvp-privacy-checkbox {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: #C5A065;
  flex-shrink: 0;
}

/* Pagina export_login.html */
.export-login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f3b30;
  color: #f9f7f2;
  font-family: Georgia, 'Times New Roman', serif;
}
.export-card {
  background: rgba(249,247,242,0.06);
  border: 1px solid rgba(249,247,242,0.25);
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  border-radius: 2px;
}
.export-card h1 {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.export-card .sub {
  font-style: italic;
  opacity: 0.7;
  margin: 0 0 28px;
  font-size: 0.9rem;
}
.export-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(249,247,242,0.4);
  color: #f9f7f2;
  font-size: 1rem;
  padding: 10px 2px;
  margin-bottom: 28px;
  font-family: inherit;
}
.export-card input[type="password"]:focus {
  outline: none;
  border-bottom-color: #c8a45c;
}
.export-card button {
  background: #f9f7f2;
  color: #2f3b30;
  border: none;
  padding: 14px 32px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.export-card button:hover {
  background: #c8a45c;
  color: #2A2A2A;
}
.export-card .note {
  margin-top: 24px;
  font-size: 0.72rem;
  opacity: 0.65;
  line-height: 1.5;
}

/* Stati JS senza style inline: compatibile con CSP senza unsafe-inline. */
.clipboard-fallback {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.copied-visible,
.rsvp-error-visible {
  opacity: 1 !important;
}
