/* buttons-specific.css */

/* ======= PULSANTI SPECIALI ======= */

/* Pulsante "Leggi di più" */
.read-more-btn {
  background-color: #d4af37;
  color: #121212;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 2rem;
  margin-top: 1.6rem;
  cursor: pointer;
  box-shadow: 0 0 18px #d4af37bb;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.read-more-btn:hover {
  background-color: #f0e68c;
  box-shadow: 0 0 28px #f9f4b5;
}

/* Pulsante "Torna su" */
.back-to-top {
  margin-top: 1.8rem;
  background: #d4af37;
  color: #121212;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top.visible {
  display: inline-block;
  opacity: 1;
}

.back-to-top:focus {
  outline: 3px solid #d4af37;
}

/* ======= PULSANTI LINKTREE ======= */

.linktree-btn {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2.2rem !important; /* spazio icona-testo */
  padding: 1rem 1.4rem 1rem 3rem !important; /* più padding a sinistra */
  font-weight: 600 !important;
  border: 1.5px solid var(--accent-color) !important;
  border-radius: 12px !important;
  color: var(--accent-color) !important;
  background: transparent !important;
  text-decoration: none !important;
  font-family: var(--font-ui) !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
  user-select: none !important;
  box-sizing: border-box !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

.linktree-btn:hover {
  background-color: var(--accent-color) !important;
  color: #181818 !important;
  box-shadow: none !important;
}

/* Icone nei pulsanti Linktree */
.linktree-btn img.icon {
  position: absolute !important;
  left: 1rem !important;
  width: 1.6rem !important;
  height: 1.6rem !important;
  object-fit: contain !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: content-box !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  transition: opacity 0.3s ease !important;
  user-select: none !important;
}

/* Opacità icone Linktree */
.linktree-btn img.icon.gold {
  opacity: 1 !important;
  z-index: 2 !important;
}

.linktree-btn img.icon.black {
  opacity: 0 !important;
  z-index: 1 !important;
}

.linktree-btn:hover img.icon.gold {
  opacity: 0 !important;
  z-index: 1 !important;
}

.linktree-btn:hover img.icon.black {
  opacity: 1 !important;
  z-index: 2 !important;
}

/* Pulsanti Linktree "Extra" (colore più chiaro) */
.section-extra-links .linktree-btn {
  color: #cbb970cc !important;
  border-color: #cbb970cc !important;
  background: transparent !important;
}

.section-extra-links .linktree-btn:hover {
  background-color: var(--accent-color) !important;
  color: #181818 !important;
  box-shadow: none !important;
}