/* === STILI PER LINK SOCIAL E EXTERNAL NEL POPUP === */
.tamg-external-link,
.tamg-social-link {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    margin: 2px 0;
    color: #fff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Desktop: dimensioni uniformi per tutti i pulsanti */
@media (min-width: 768px) {
    .tamg-external-link,
    .tamg-social-link {
        width: 120px;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
        box-sizing: border-box;
    }
}

/* Link sito web generico */
.tamg-external-link {
    background: #0073aa;
    border: 2px solid #0073aa;
}

.tamg-external-link:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

/* Link social specifici */
.tamg-facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.tamg-facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.tamg-instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: 2px solid #e6683c;
}

.tamg-instagram-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 104, 60, 0.4);
    filter: brightness(1.1);
}

.tamg-linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.tamg-linkedin-link:hover {
    background: #084c94;
    border-color: #084c94;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}

/* Responsive: su mobile i link social occupano più spazio */
@media (max-width: 767px) {
    .tamg-social-link,
    .tamg-external-link {
        display: block;
        text-align: center;
        margin: 8px 0;
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
}