/*
  site-extra.css
  Stili aggiuntivi scritti a mano (non generati da Tailwind), per:
  - il menu mobile (hamburger) del sito
  - i messaggi di stato del modulo di contatto (invio in corso / successo / errore)

  Vengono tenuti in un file separato da css/style.css perché quel file è
  generato automaticamente dalla build di Tailwind (vedi BUILD.md) e verrebbe
  sovrascritto alla prossima ricompilazione.
*/

/* ---------- Bottone hamburger ---------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 110;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1512;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Pannello menu mobile ---------- */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 104;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.is-open {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: #faf8f4;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 105;
  padding: 6.5rem 2.2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a3f35;
  text-decoration: none;
}

.mobile-menu a.mobile-cta {
  display: inline-block;
  background: #d86b46;
  color: #fff;
  padding: 0.85rem 1.5rem;
  margin-top: 0.4rem;
}

@media (min-width: 640px) {
  .mobile-menu-btn,
  .mobile-menu-backdrop,
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ---------- Stato invio modulo di contatto ---------- */
.form-status {
  margin-top: 1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  min-height: 1.2em;
}
.form-status.is-success {
  color: #4caf7d;
}
.form-status.is-error {
  color: #e2574c;
}
