/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 20 2026 | 20:16:20 */
/* ==========================================
   IMAGE OVERLAY - ESPANSIONE DAL BASSO

   DEFAULT:
   - Titolo + linea in basso
   - Descrizione non occupa spazio

   HOVER:
   - Il blocco resta ancorato in basso
   - La descrizione si apre sotto il titolo
   - Titolo + linea salgono automaticamente
     in base all'altezza della descrizione
   ========================================== */


/* ==========================================
   BLOCCO COMPLETO
   ========================================== */

.wdt-rc-template-image-overlay .wdt-content-detail-group {
    position: absolute !important;

    left: 22px !important;
    right: 22px !important;

    /* ANCORA TUTTO AL FONDO */
    bottom: 28px !important;
    top: auto !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;

    transform: none !important;
    translate: none !important;

    z-index: 5 !important;
}


/* ==========================================
   TITOLO
   ========================================== */

.wdt-rc-template-image-overlay .wdt-content-title {
    position: relative !important;

    width: 100% !important;

    /*
     * Area uniforme:
     * permette di allineare la linea
     * anche con titoli di 1, 2 o 3 righe.
     */
    min-height: 82px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 0 16px 0 !important;

    text-align: left !important;

    transform: none !important;
    translate: none !important;
}


/* ==========================================
   TESTO TITOLO
   ========================================== */

.wdt-rc-template-image-overlay .wdt-content-title h5 {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;

    line-height: 1.08 !important;

    transform: none !important;
    translate: none !important;
}


/* ==========================================
   LINEA
   ========================================== */

.wdt-rc-template-image-overlay .wdt-content-title::after {
    content: "" !important;

    position: absolute !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 1px !important;

    background: rgba(255,255,255,0.60) !important;
}


/* ==========================================
   DESCRIZIONE - DEFAULT

   Altezza ZERO:
   quindi non modifica la posizione
   iniziale del titolo.
   ========================================== */

.wdt-rc-template-image-overlay .wdt-content-subtitle {
    position: relative !important;

    width: 100% !important;

    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    overflow: hidden !important;

    text-align: left !important;

    line-height: 1.3 !important;

    transform: translateY(8px) !important;

    transition:
        max-height 0.55s ease,
        margin 0.45s ease,
        opacity 0.30s ease,
        transform 0.40s ease,
        visibility 0.30s ease !important;
}


/* ==========================================
   HOVER

   IMPORTANTISSIMO:
   NON cambiamo top o bottom.

   Il blocco resta ancorato al fondo.
   Aprendosi la descrizione,
   il titolo viene automaticamente
   spinto verso l'alto.
   ========================================== */

.wdt-rc-template-image-overlay
.wdt-content-item:hover
.wdt-content-detail-group {
    bottom: 28px !important;
    top: auto !important;

    transform: none !important;
    translate: none !important;
}


/* ==========================================
   DESCRIZIONE IN HOVER
   ========================================== */

.wdt-rc-template-image-overlay
.wdt-content-item:hover
.wdt-content-subtitle {
    /*
     * Valore sufficientemente grande.
     * La vera altezza sarà determinata
     * dal contenuto.
     */
    max-height: 1000px !important;

    margin: 14px 0 0 0 !important;

    opacity: 1 !important;
    visibility: visible !important;

    overflow: visible !important;

    transform: translateY(0) !important;
}


/* ==========================================
   BLOCCA EVENTUALI MOVIMENTI DEL TEMA
   ========================================== */

.wdt-rc-template-image-overlay
.wdt-content-item:hover
.wdt-content-title,

.wdt-rc-template-image-overlay
.wdt-content-item:hover
.wdt-content-title h5 {
    transform: none !important;
    translate: none !important;
}


/* ==========================================
   ALLINEAMENTO
   ========================================== */

.wdt-rc-template-image-overlay .wdt-content-detail-group,
.wdt-rc-template-image-overlay .wdt-content-title,
.wdt-rc-template-image-overlay .wdt-content-title h5,
.wdt-rc-template-image-overlay .wdt-content-subtitle {
    text-align: left !important;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1024px) {

    .wdt-rc-template-image-overlay
    .wdt-content-detail-group {
        left: 20px !important;
        right: 20px !important;
        bottom: 26px !important;
    }

    .wdt-rc-template-image-overlay
    .wdt-content-title {
        min-height: 76px !important;
    }

    .wdt-rc-template-image-overlay
    .wdt-content-item:hover
    .wdt-content-detail-group {
        bottom: 26px !important;
        top: auto !important;
    }
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {

    .wdt-rc-template-image-overlay
    .wdt-content-detail-group {
        left: 18px !important;
        right: 18px !important;
        bottom: 22px !important;
    }

    .wdt-rc-template-image-overlay
    .wdt-content-title {
        min-height: 70px !important;
    }

    .wdt-rc-template-image-overlay
    .wdt-content-item:hover
    .wdt-content-detail-group {
        bottom: 22px !important;
        top: auto !important;
    }

    .wdt-rc-template-image-overlay
    .wdt-content-subtitle {
        line-height: 1.28 !important;
    }
}

/* ==========================================
   OVERLAY IMMAGINE - HOVER
   ========================================== */

/* Transizione morbida del gradiente */
.wdt-image-box-holder.wdt-rc-template-image-overlay
.wdt-content-item::before {
    transition: background 0.4s ease !important;
}


/* HOVER:
   estende la zona scura verso l'alto */
.wdt-image-box-holder.wdt-rc-template-image-overlay
.wdt-content-item:hover::before {
    background: linear-gradient(
        0deg,
        var(--wdtHeadAltColor) 0%,
        rgba(0, 0, 0, 0.65) 45%,
        rgba(0, 0, 0, 0.35) 75%,
        rgba(0, 0, 0, 0.10) 100%
    ) !important;
}


