/**
 * Stile Professionale per Social Share v2.1
 * Correzione contrasto CTA e blindatura stili
 */

/* Contenitore principale: via il box, design più arioso */
.social-share-module {
    margin: 3rem auto;
    padding: 0; /* Rimuoviamo il padding per darlo ai singoli elementi */
    max-width: 700px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Aggiungiamo il border-radius al contenitore principale */
    overflow: hidden; /* Nasconde gli angoli degli elementi interni */
    background: transparent;
    box-shadow: none;
    font-family: 'Poppins', sans-serif;
}

/* --- SEZIONE MODIFICATA ---
Call to Action: stile "blindato" per garantire il contrasto 
*/
.social-share-module .cta {
    background: #0D2146 !important; /* Sfondo scuro, come richiesto */
    padding: 1.5rem 1rem !important;
    margin: 0 0 2.5rem 0 !important; /* Margine inferiore per separarlo dall'immagine */
}

.social-share-module .cta h4 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #ffffff !important; /* Testo bianco per massimo contrasto */
    margin-bottom: 0.5rem !important;
}

.social-share-module .cta p {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important; /* Bianco leggermente trasparente */
    margin: 0 !important;
}
/* --- FINE SEZIONE MODIFICATA --- */


/* Immagine di anteprima: più grande e d'impatto */
.social-share-module .single-image-container {
    width: calc(100% - 3rem); /* Calcoliamo lo spazio per un padding laterale */
    max-width: 100%;
    margin: 0 auto 2.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.social-share-module .single-image-container img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.social-share-module .single-image-container img:hover {
    transform: scale(1.03);
}

/* Pulsanti di condivisione: il cuore del restyling */
.social-share-module .social-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 2rem; /* Aggiunto padding inferiore per distanziare dal bordo */
}

.social-share-module .social-share a.share-button,
.social-share-module .social-share button.share-button {
    width: 48px;
    height: 48px;
    background-color: #f4f6f9;
    color: #333;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.social-share-module .social-share a.share-button i {
    transition: transform 0.2s ease;
}

/* Effetto Hover */
.social-share-module .social-share a.share-button:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.social-share-module .social-share a.share-button:hover i {
    transform: scale(1.1);
}

/* Colori specifici per ogni social (solo su hover) */
.social-share-module .social-share a.facebook-share:hover { background-color: #3b5998; }
.social-share-module .social-share a.twitter-share:hover { background-color: #1da1f2; }
.social-share-module .social-share a.linkedin-share:hover { background-color: #0077b5; }
.social-share-module .social-share a.whatsapp-share:hover { background-color: #25d366; }
.social-share-module .social-share a.telegram-share:hover { background-color: #0088cc; }
.social-share-module .social-share a.pinterest-share:hover { background-color: #bd081c; }
.social-share-module .social-share a.reddit-share:hover { background-color: #ff4500; }
.social-share-module .social-share a.email-share:hover { background-color: #6c757d; }
.social-share-module .social-share a.instagram-share:hover,
.social-share-module .social-share button.instagram-share:hover { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-share-module .social-share button.copy-link-share:hover { background-color: #0D2146; }
.social-share-module .social-share button.share-button.is-copied { background-color: #198754; color: #fff; border-color: #198754; }

.social-share-module .share-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 1.5rem 1.5rem;
    line-height: 1.4;
}

/* Versione Mobile */
@media (max-width: 768px) {
    .social-share-module {
        margin: 2rem auto;
    }
    
    .social-share-module .social-share {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 1rem;
        padding: 0 1rem 1.5rem 1rem;
    }

    .social-share-module .social-share a.share-button,
    .social-share-module .social-share button.share-button {
        width: 100%;
        padding-top: 100%;
        height: 0;
        position: relative;
    }
    
    .social-share-module .social-share a.share-button i,
    .social-share-module .social-share button.share-button i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
