/* Barra comune a ogni pagina elemento: logo Netawebs a sinistra,
   pulsante per tornare al catalogo a destra. */
.nw-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.1rem;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  mix-blend-mode: difference;
}

.back-pill {
  position: fixed;
  top: 1.75rem;
  right: 2rem;
  z-index: 1000;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 8, 9, 0.85);
  color: #fff;
  font: 500 0.9rem/1 "Space Grotesk", system-ui, sans-serif;
  text-transform: none;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, color 0.3s ease;
}

.back-pill:hover,
.back-pill:focus-visible {
  background: #fff;
  color: #040809;
}

@media (max-width: 768px) {
  .nw-logo {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
  }

  .back-pill {
    top: 1.2rem;
    right: 1.2rem;
  }
}

/* Variante per gli elementi che hanno già un menu in alto */
.nw-bottom .nw-logo {
  top: auto;
  bottom: 2rem;
}

.nw-bottom .back-pill {
  top: auto;
  bottom: 1.75rem;
}

@media (max-width: 768px) {
  .nw-bottom .nw-logo {
    bottom: 1.5rem;
  }

  .nw-bottom .back-pill {
    bottom: 1.2rem;
  }
}

/* Pulsante compatto sul telefono */
.bp-short {
  display: none;
}

@media (max-width: 600px) {
  .bp-full {
    display: none;
  }

  .bp-short {
    display: inline;
  }

  .back-pill {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Negli elementi con menu in alto il logo in basso coprirebbe i contatti */
  .nw-bottom .nw-logo {
    display: none;
  }
}
