/* ============================================================
   FOOTER — Barra fissa in basso con fade-in
============================================================ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  padding-bottom: 10px;

  width: 100%;
  height: 35px;

  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;

  opacity: 0;
  animation: fadeInFooter 1s ease forwards;
  animation-delay: 0.8s;

  transition: transform 0.45s ease, opacity 0.3s ease;
}

footer.hide-footer {
  transform: translateY(100%);
}

@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   BOTTONE “PRENOTA” — RIBILANCIATO (CORRETTO)
============================================================ */
footer a {
  text-decoration: none;
}

.reservation-btn {
  position: absolute;
  top: -34px; /* ⬅️ spazio reale per la linea inferiore */
  left: 50%;
  transform: translateX(-50%);

  background: var(--secondary);
  color: var(--primary);

  border: none;
  font-family: 'Chopard', serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.1rem; /* NON TOCCATO */

  padding: 4px 22px; /* ⬅️ respiro verticale corretto */

  transition: color 0.6s ease, transform 0.6s ease;
}

/* Linee decorative */
.reservation-btn::before,
.reservation-btn::after {
  content: '';
  display: block;
  height: 1px;

  width: 55%;
  margin: 6px auto; /* ⬅️ linee più vicine al testo */

  background-color: var(--primary);
  opacity: .65;

  transition: width .6s ease, background-color .6s ease, opacity .6s ease;
}

/* Hover raffinato */
.reservation-btn:hover {
  color: var(--hover-light);
  transform: translateX(-50%) translateY(-1px);
}

.reservation-btn:hover::before,
.reservation-btn:hover::after {
  width: 80%;
  background-color: var(--hover-light);
  opacity: .9;
}


/* ============================================================
   ICONE FOOTER — Cookie / Hub / Login
============================================================ */
.footer-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  bottom: 5px;

  transition: fill .8s ease, transform .8s ease;
}

/* Colore gestito SOLO dal CSS */
.footer-icon * {
  fill: var(--primary);
  transition: fill .8s ease;
}

.footer-icon:hover * {
  fill: var(--hover-light);
}

.footer-icon:hover {
  transform: translateY(-1px);
}

/* Posizionamenti */
.cookie-icon { left: 20px; }
.hub-icon    { left: 60px; }
.lock-icon   { right: 20px; }


/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 768px) {

  header {
    height: 45px;
    padding-bottom: 4px;
  }

  .nav-center {
    flex-direction: column;
  }

  .menu-left,
  .menu-right {
    display: none;
  }

  .logo-center {
    height: 42px;
    margin-top: 2px;
    margin-bottom: 4px;
  }

  .mobile-menu {
    display: flex;
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: var(--secondary);

    flex-direction: column;
    align-items: center;

    overflow: hidden;
    max-height: 0;
    opacity: 0;

    transition: all .6s ease;
  }

  .mobile-menu.open {
    max-height: 260px;
    opacity: 1;
  }

  .mobile-menu a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 0;
    font-weight: 400;
    transition: color .6s ease;
  }

  .mobile-menu a:hover {
    color: var(--hover-light);
  }
}