/*
Theme Name: ferpansindacat-theme
Theme URI: https://faisa-confail.it
Author: Ferdinando Panico
Description: Tema personalizzato FAISA-CONFAIL
Version: 1.0
Text Domain: ferpansindacat
*/

/* ======================================
   SIDEBAR - VERSIONE HOMEPAGE (affiancata al banner)
====================================== */

.fc-sidebar-home {
    gap: 18px;
    margin-top: 0;
}

/* Pulsanti identici alla sidebar pagina */
.fc-sidebar-home .fc-sidebox {
	width: 260px;
    border: 2px solid #1d4d97;
    border-radius: 40px;
    padding: 12px 18px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s ease;
}

/* Immagini tonde */
.fc-sidebar-home .fc-sidebox-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* Titolo */
.fc-sidebar-home .fc-sidebox-title {
    font-size: 14px;
    color: #1d4d97;
    font-weight: 700;
    line-height: 1.2;
}

/* Hover elegante */
.fc-sidebar-home .fc-sidebox:hover {
    background: #eaf1ff;
    border-color: #143a77;
    transform: translateX(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.join-section {
    width: 100%;
}
.join-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   ANIMAZIONI GLOBALI HOMEPAGE – SAFE EDITION
   (NON modifica elementi esistenti — aggiunge solo animazioni)
============================================================ */

/* ---- FadeDown (titoli) ---- */
.home-anim-title {
    opacity: 0;
    transform: translateY(-25px);
    animation: animFadeDown 0.7s ease-out forwards;
}
@keyframes animFadeDown {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- FadeUp (testi, paragrafi) ---- */
.home-anim-text {
    opacity: 0;
    transform: translateY(25px);
    animation: animFadeUp 0.7s ease-out forwards;
}
@keyframes animFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- SlideUp (card, box, dipartimenti, eventi) ---- */
.home-anim-box {
    opacity: 0;
    transform: translateY(35px);
    animation: animSlideUp 0.65s ease-out forwards;
}
@keyframes animSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Ritardi progressivi per gli elementi ripetuti */
.home-anim-box:nth-child(1) { animation-delay: 0.10s; }
.home-anim-box:nth-child(2) { animation-delay: 0.22s; }
.home-anim-box:nth-child(3) { animation-delay: 0.34s; }
.home-anim-box:nth-child(4) { animation-delay: 0.46s; }
.home-anim-box:nth-child(5) { animation-delay: 0.58s; }

/* ---- SlideRight (sidebar destra homepage) ---- */
.home-anim-side {
    opacity: 0;
    transform: translateX(40px);
    animation: animSlideRight 0.7s ease-out forwards;
}
@keyframes animSlideRight {
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Effetto immagine pulsanti homepage (zoom) ---- */
.fc-sidebar-home .fc-sidebox-img {
    transition: .35s ease;
}
.fc-sidebar-home .fc-sidebox:hover .fc-sidebox-img {
    transform: scale(1.08);
    filter: brightness(1.10);
}

/* ============================================
   SCROLL REVEAL – Effetto iniziale
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

/* Quando l'elemento diventa visibile */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE — sidebar sotto il banner, centrata */
@media (max-width: 991px) {
    .fc-sidebar-home {
        display: flex !important;
        margin-top: 25px;
        align-items: center;
    }

    .fc-sidebar-home .fc-sidebox {
        width: 300px;
        margin: 0 auto;
        justify-content: space-between;
    }

    .fc-sidebar-home .fc-sidebox-img {
        width: 40px;
        height: 40px;
    }

    .fc-sidebar-home .fc-sidebox-title {
        font-size: 13px;
    }
    
	.fc-sidebar-home {
        padding-top: 15px !important;
        padding-bottom: 0px !important;
    }	
}

