/* Contenitore anteprime  */
.card-grafica-container{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  align-items:flex-start;
}
/* Card */
.card-grafica-box{ 
  display:flex;
  flex-direction:column;
  border:1px solid #d6b786;
  width: auto;
  height: auto;
  padding: 12px;
  box-sizing:border-box;
  background: #fcf5ec;
  border-radius:6px;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.card-preview {
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.card-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 4px;
}
.copy-box {
  position: relative;
  width: 100%;
}
/* textarea */
.embed-code {
  width: 100%;
  height: 70px;
  font-size: 12px;
  font-family: monospace;
  color : #785c58;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px;
  resize: none;
  transition: 0.2s;
  box-sizing: border-box;
  margin-top: 10px;
}
/* focus elegante */
.embed-code:focus {
  outline: none; /* ok qui, perché lo sostituiamo */
  border-color: #d6b786;
  box-shadow: 0 0 0 2px rgba(214, 183, 134, 0.25);
}
/* bottone */
.copy-btn {
  width: 100%;
  margin-top: 5px;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: #f3f3f3;
  cursor: pointer;
}
/* tooltip */
.tooltip {
  position: absolute;
  top: -25px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  background: #ca757fff;
  color: #fff;
  font-size: 14px;
  padding: 6px 30px;
  border-radius: 4px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}
/* hover sul bottone → mostra tooltip */
.copy-btn:hover + .tooltip {
  opacity: 1;
}
.copy-btn {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #e0d6d6;
  border-radius: 10px;
  background: linear-gradient(to bottom, #f7f3f3, #eee3e3);
  color: #6f5a57;
  font-family: Georgia, serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
/* hover */
.copy-btn:hover {
  background: linear-gradient(to bottom, #f3eaea, #e7dcdc);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
/* click */
.copy-btn:active {
  transform: translateY(0px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
/* focus (accessibilità) */
.copy-btn:focus {
  outline: none;
  border-color: #d6b786;
}