/* ----------------------------------------------------
   ICONS — SISTEMA MODULARE
   Varianti: base, filled, gradient, gradient-animated,
   outline, duotone
---------------------------------------------------- */

/* Wrapper icone */
.social-icons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Icona base */
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    cursor: pointer;

    border: 3px solid transparent;
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #ff4fa3, #a000ff);
    background-origin: border-box;
    background-clip: content-box, border-box;

    transition: 0.3s ease;
}

/* SVG base */
.social-icon svg {
    width: 24px;
    height: 24px;
    color: #a0004f;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* 🔥 FIX: forza currentColor su tutti tranne Instagram */
.social-icon svg path {
    fill: currentColor;
}

.social-icon.gradient-animated svg path {
    fill: url(#instaGradient);
}

/* Hover premium */
.social-icon:hover {
    transform: scale(1.12);
    background-image:
        linear-gradient(#a0004f, #a0004f),
        linear-gradient(135deg, #ff4fa3, #a000ff);
}

.social-icon:hover svg {
    color: #fff;
}

/* ----------------------------------------------------
   VARIANTE FILLED (pieno)
---------------------------------------------------- */
.social-icon.filled svg {
    color: var(--rosa-scuro);
}

.social-icon.filled:hover svg {
    color: #fff;
}

/* ----------------------------------------------------
   VARIANTE GRADIENT (sfumata)
---------------------------------------------------- */
.social-icon.gradient svg {
    color: transparent;
    background: linear-gradient(135deg, #ff4fa3, #a000ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover gradient */
.social-icon.gradient:hover svg {
    filter: brightness(1.15);
}

/* ----------------------------------------------------
   VARIANTE GRADIENT ANIMATA (sfumatura in movimento)
---------------------------------------------------- */
.social-icon.gradient-animated svg {
    color: transparent;
    background: linear-gradient(135deg, #ff4fa3, #a000ff, #ffcc00, #ff4fa3);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lr-gradient-move 4s ease-in-out infinite;
}

.social-icon.gradient-animated:hover svg {
    filter: brightness(1.15);
}

@keyframes lr-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ----------------------------------------------------
   VARIANTE OUTLINE (lineare)
---------------------------------------------------- */
.social-icon.outline svg path {
    fill: none !important;
    stroke: var(--rosa-scuro);
    stroke-width: 2;
}

.social-icon.outline:hover svg path {
    stroke: #fff;
}

/* ----------------------------------------------------
   VARIANTE DUOTONE (WhatsApp verde)
---------------------------------------------------- */
.social-icon.duotone svg {
    color: #25D366;
    /* verde ufficiale WhatsApp */
}

.social-icon.duotone:hover svg {
    color: #fff;
}

/* ----------------------------------------------------
   FIX SPECIFICO INSTAGRAM — sfumatura visibile
---------------------------------------------------- */
.social-icon.gradient-animated svg path {
    fill: url(#instaGradient);
}

/* Definizione del gradient interno */
.social-icon.gradient-animated svg defs {
    display: block;
}

.social-icon.gradient-animated svg {
    color: transparent;
}

/* Se vuoi animare la sfumatura */
@keyframes instaGradientMove {
    0% {
        stop-color: #ff4fa3;
    }

    50% {
        stop-color: #a000ff;
    }

    100% {
        stop-color: #ff4fa3;
    }
}

/* ----------------------------------------------------
   FIX DIMENSIONI SVG — uniforma scala visiva
---------------------------------------------------- */
.social-icon svg {
    width: 28px;
    height: 28px;
}

/* Instagram già proporzionato, quindi resta invariato */
.social-icon.gradient-animated svg {
    width: 30px;
    height: 30px;
}

/* Facebook e WhatsApp leggermente più grandi */
.social-icon.filled svg,
.social-icon.duotone svg {
    width: 32px;
    height: 32px;
}

/* ----------------------------------------------------
   HOVER GLOW — effetto bagliore morbido
---------------------------------------------------- */
.social-icon:hover {
    box-shadow: 0 0 12px 4px rgba(255, 79, 163, 0.4),
        0 0 20px 8px rgba(160, 0, 255, 0.3);
    transform: scale(1.15);
}

/* Glow dedicato per WhatsApp (verde) */
.social-icon.duotone:hover {
    box-shadow: 0 0 12px 4px rgba(37, 211, 102, 0.4),
        0 0 20px 8px rgba(37, 211, 102, 0.3);
}

/* Glow dedicato per Instagram (sfumatura animata) */
.social-icon.gradient-animated:hover {
    box-shadow: 0 0 14px 6px rgba(255, 79, 163, 0.5),
        0 0 24px 10px rgba(160, 0, 255, 0.4);
}