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

.site-nav a.is-section-active,
.nav a.is-section-active {
  color: var(--gold, #ffd21c);
}

.site-nav a.is-section-active {
  background: rgba(144, 31, 41, 0.1);
}

.top-button,
.festa-quick-link {
  position: fixed;
  z-index: 80;
  border: 0;
  box-shadow: 0 18px 38px rgba(12, 18, 28, 0.2);
  cursor: pointer;
}

.top-button {
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.festa-quick-link {
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, calc(100vw - 96px));
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #901f29 0%, #c99516 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-button {
  border: 1px solid rgba(32, 33, 36, 0.14);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: #202124;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: transparent;
  background: #901f29;
  color: #fff;
}

.is-filter-hidden {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 4, 7, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__dialog {
  width: min(100%, 980px);
  color: #fff;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  margin: 12px 52px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-form-card {
  grid-column: 1 / -1;
}

.static-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.static-contact-form label,
.static-contact-form fieldset {
  display: grid;
  gap: 7px;
  color: #555961;
  font-weight: 800;
}

.static-contact-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.static-contact-form legend {
  margin-bottom: 7px;
  color: #555961;
  font-weight: 800;
}

.static-contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.static-contact-form .form-field--full {
  grid-column: 1 / -1;
}

.form-required {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(156, 30, 30, 0.1);
  color: #9c1e1e;
  padding: 2px 7px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.static-contact-form input,
.static-contact-form select,
.static-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 33, 36, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.static-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: #6a7079;
  font-size: 0.9rem;
  line-height: 1.7;
}

.form-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.form-choice {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  min-height: 44px;
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700 !important;
}

.form-choice input {
  width: auto;
  min-width: 18px;
}

.mailto-preview {
  margin-top: 10px;
  border: 1px solid rgba(161, 119, 20, 0.22);
  border-radius: 16px;
  background: #fffaf0;
  padding: 18px;
}

.mailto-preview h3 {
  margin: 0 0 8px;
  color: #26211a;
}

.mailto-preview p {
  margin: 0 0 12px;
  color: #5f5547;
  line-height: 1.7;
}

.mailto-preview__body {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(32, 33, 36, 0.16);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  white-space: pre-wrap;
}

.mailto-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mailto-preview__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 36, 0.18);
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.mailto-preview__actions .button--primary {
  border-color: #1f1a12;
  background: #1f1a12;
  color: #fff8dc;
}

.mailto-preview__actions .button--ghost {
  background: #fff;
  color: #1f1a12;
}

.mailto-preview__status {
  margin-top: 10px !important;
  font-weight: 700;
}

@media (max-width: 760px) {
  .festa-quick-link {
    left: 12px;
    right: 70px;
    bottom: 14px;
    justify-content: center;
    max-width: none;
    padding: 11px 12px;
    font-size: 0.8rem;
  }

  .top-button {
    right: 12px;
    bottom: 14px;
  }

  .filter-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-button {
    white-space: nowrap;
  }

  .static-contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .form-choice-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
