/* Social Feed Pro - devsviluppo.com */

/* Sezione FULL WIDTH */
.socialfeed-section { 
    padding: 70px 0; 
    background: #fff; 
}

.socialfeed-section .container { 
    max-width: 100%; 
    width: 100%; 
    padding: 0 40px; 
}

/* Header */
.socialfeed-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 35px; 
    flex-wrap: wrap; 
    gap: 15px; 
    max-width: 1800px; 
    margin-left: auto; 
    margin-right: auto;
    padding: 0 20px;
}

.socialfeed-title { 
    font-size: 32px; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin: 0; 
}

.socialfeed-links { display: flex; gap: 12px; }

.social-link { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    text-decoration: none; 
    transition: transform 0.2s; 
}

.social-link.instagram { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
    color: #fff; 
}

.social-link.tiktok { background: #000; color: #fff; }
.social-link:hover { transform: translateY(-3px); }

/* Wrapper */
.socialfeed-wrapper { 
    position: relative; 
    padding: 0 70px; 
}

/* SWIPER */
.socialfeed-swiper .swiper-slide { 
    height: auto;
}

/* Card */
.socialfeed-card { 
    position: relative; 
    aspect-ratio: 9/16; 
    background: #000; 
    overflow: hidden; 
    cursor: pointer; 
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 390px;
}

.socialfeed-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.25); 
}

/* Thumbnail */
.socialfeed-thumb { 
    position: absolute; 
    inset: 0; 
}

.socialfeed-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s; 
}

.socialfeed-card:hover .socialfeed-thumb img { 
    transform: scale(1.03); 
}

/* Play button */
.socialfeed-play { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(0,0,0,0.2); 
    transition: background 0.3s; 
}

.socialfeed-play svg { 
    width: 80px; 
    height: 80px; 
    color: #fff; 
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4)); 
    transition: transform 0.3s; 
}

.socialfeed-card:hover .socialfeed-play { background: rgba(0,0,0,0.35); }
.socialfeed-card:hover .socialfeed-play svg { transform: scale(1.15); }

/* Badge */
.socialfeed-badge { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 2; 
}

.socialfeed-badge.instagram { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); 
    color: #fff; 
}

.socialfeed-badge.tiktok { background: #000; color: #fff; }

.socialfeed-badge svg { 
    width: 18px; 
    height: 18px; 
}

/* Info overlay */
.socialfeed-info { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    padding: 60px 14px 14px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); 
    color: #fff; 
    transform: translateY(100%); 
    opacity: 0; 
    transition: all 0.35s ease; 
}

.socialfeed-card:hover .socialfeed-info { 
    transform: translateY(0); 
    opacity: 1; 
}

.socialfeed-caption { 
    font-size: 13px; 
    line-height: 1.4; 
    margin: 0 0 10px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.socialfeed-stats { 
    font-size: 12px; 
    opacity: 0.9; 
    margin-bottom: 10px; 
}

.socialfeed-stats span { margin-right: 12px; }

.socialfeed-cta { 
    display: inline-block; 
    padding: 8px 14px; 
    background: rgba(255,255,255,0.15); 
    color: #fff; 
    text-decoration: none; 
    font-size: 12px; 
    border-radius: 4px; 
    transition: background 0.2s; 
}

.socialfeed-cta:hover { 
    background: rgba(255,255,255,0.25); 
    color: #fff; 
}

/* Navigation */
.socialfeed-prev, .socialfeed-next { 
    width: 50px !important; 
    height: 50px !important; 
    background: #fff !important; 
    border-radius: 50%; 
    box-shadow: 0 3px 15px rgba(0,0,0,0.12); 
    transition: all 0.2s; 
}

.socialfeed-prev::after, .socialfeed-next::after { 
    font-size: 18px !important; 
    font-weight: bold; 
    color: #333; 
}

.socialfeed-prev:hover, .socialfeed-next:hover { 
    background: #1a1a1a !important; 
}

.socialfeed-prev:hover::after, .socialfeed-next:hover::after { 
    color: #fff; 
}

/* Pagination */
.socialfeed-dots { margin-top: 25px; text-align: center; }

.socialfeed-dots .swiper-pagination-bullet { 
    width: 10px; 
    height: 10px; 
    background: #ddd; 
    opacity: 1; 
    margin: 0 5px; 
}

.socialfeed-dots .swiper-pagination-bullet-active { 
    width: 24px; 
    border-radius: 5px; 
    background: linear-gradient(90deg, #f09433, #dc2743); 
}

/* Modal */
.socialfeed-modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    z-index: 9999; 
    align-items: center; 
    justify-content: center; 
}

.socialfeed-modal.open { display: flex; }

.socialfeed-modal-bg { 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.9); 
    cursor: pointer; 
}

.socialfeed-modal-box { 
    position: relative; 
    width: 90%; 
    max-width: 400px; 
    aspect-ratio: 9/16; 
    background: #000; 
    z-index: 1; 
}

.socialfeed-modal-video { 
    width: 100%; 
    height: 100%; 
}

.socialfeed-modal-video iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

.socialfeed-modal-x { 
    position: absolute; 
    top: -40px; 
    right: 0; 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 28px; 
    cursor: pointer; 
    padding: 5px 10px; 
}

/* RESPONSIVE */
@media (max-width: 768px) { 
    .socialfeed-wrapper { padding: 0 15px; } 
    .socialfeed-section .container { padding: 0 15px; }
    .socialfeed-prev, .socialfeed-next { display: none !important; } 
    .socialfeed-card { min-height: 300px; }
    .socialfeed-header { justify-content: center; text-align: center; }
    .socialfeed-title { font-size: 24px; }
    .socialfeed-play svg { width: 60px; height: 60px; }
}

@media (max-width: 480px) { 
    .socialfeed-card { min-height: 260px; }
    .socialfeed-play svg { width: 50px; height: 50px; } 
    .socialfeed-badge { width: 28px; height: 28px; top: 8px; left: 8px; }
    .socialfeed-badge svg { width: 14px; height: 14px; }
}

@media (hover: none) { 
    .socialfeed-info { 
        transform: translateY(0); 
        opacity: 1; 
        padding-top: 70px; 
    } 
}
