/* =============================================
   PRO LOCO BANZANO - PDF VIEWER
   ============================================= */

.bz-pdf-wrap {
  max-width: 700px;
  margin: 0 auto;
  font-family: Georgia, serif;
}

/* Toolbar */
.bz-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #5C2D0A;
  border-radius: 12px 12px 0 0;
  padding: 10px 20px;
  gap: 12px;
}

.bz-pdf-toolbar-left,
.bz-pdf-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bz-pdf-pages {
  color: #E8A830;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}

.bz-pdf-btn {
  background: rgba(255,255,255,0.12);
  color: #E8A830;
  border: 1px solid rgba(232,168,48,0.3);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.bz-pdf-btn:hover {
  background: rgba(232,168,48,0.2);
}

.bz-pdf-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Canvas area */
.bz-pdf-canvas-wrap {
  background: #F5EDD8;
  border-left: 3px solid #5C2D0A;
  border-right: 3px solid #5C2D0A;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

#bz-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(92,45,10,0.2);
  transition: opacity 0.3s;
}

/* Loading */
.bz-pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F5EDD8;
  gap: 16px;
  color: #5C2D0A;
  font-size: 0.9rem;
}

.bz-pdf-loading p { margin: 0; }

.bz-pdf-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(92,45,10,0.2);
  border-top-color: #5C2D0A;
  border-radius: 50%;
  animation: bz-spin 0.8s linear infinite;
}

@keyframes bz-spin {
  to { transform: rotate(360deg); }
}

/* Nav inferiore */
.bz-pdf-nav {
  display: flex;
  gap: 12px;
  background: #5C2D0A;
  border-radius: 0 0 12px 12px;
  padding: 12px 20px;
}

.bz-pdf-nav-btn {
  flex: 1;
  background: rgba(255,255,255,0.1);
  color: #E8A830;
  border: 1px solid rgba(232,168,48,0.3);
  border-radius: 8px;
  padding: 10px;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.bz-pdf-nav-btn:hover { background: rgba(232,168,48,0.2); }
.bz-pdf-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.bz-pdf-nav-primary {
  background: rgba(232,168,48,0.2);
  border-color: #E8A830;
}

/* Fullscreen */
.bz-pdf-wrap.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  max-width: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.bz-pdf-wrap.fullscreen .bz-pdf-canvas-wrap {
  flex: 1;
  border: none;
  background: transparent;
}

.bz-pdf-wrap.fullscreen .bz-pdf-toolbar { border-radius: 0; }
.bz-pdf-wrap.fullscreen .bz-pdf-nav { border-radius: 0; }

/* Swipe hint mobile */
@media (max-width: 600px) {
  .bz-pdf-toolbar { padding: 8px 12px; }
  .bz-pdf-nav { padding: 10px 12px; }
  .bz-pdf-nav-btn { font-size: 0.8rem; padding: 8px 6px; }
}
