/* --- BOX MODEL CONSISTENTE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* --- CONTENITORE ESTERNO SCURO --- */
.links-wrapper {
  background: #1a1a1a;
  border-radius: 24px;
  padding: 32px;
  max-width: 95vw;
  margin: 40px auto;
}

/* --- CONTAINER FLESSIBILE --- */
.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .links-wrapper {
    padding: 24px 16px;
  }
}

/* --- CELLULA (ADATTATA AL CONTENUTO) --- */
.link-cell {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 45px;
}

/* --- NOME DELLA CELLA (in basso centrato) --- */
.cell-label {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #999999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- CARD DEL LINK --- */
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  flex: 0 0 auto;
}

.link-card:hover .link-icon {
  transform: scale(1.1);
}

/* --- ICONA (QUADRATO FISSO 48x48) --- */
.link-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  object-fit: contain;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

/* --- NOME DEL LINK (più scuro/visibile) --- */
.link-name {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  line-height: 1.2;
  word-wrap: break-word;
}