/* Component: Hover Card */

/* Contenitore delle card - assicura altezze uguali */
.grid-card-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.grid-card-container > .wpb_column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
}

.grid-card-container .vc_column-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-card-container .wpb_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.custom-hover-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
    cursor: pointer;
    background: #fff
}

.custom-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    position: relative
}

.custom-card-image-wrapper {
    position: relative;
    width: calc(100% - 30px);
    margin: 15px 15px 0 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    aspect-ratio: 16/9;
    flex-shrink: 0
}

.custom-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all .5s cubic-bezier(.4, 0, .2, 1)
}

.custom-card-content {
    background: transparent;
    padding: 0 20px 25px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1
}

.custom-card-title {
    color: #003D6B;
    font-size: 20px !important;
    font-weight: 600;
    margin: 5px 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.custom-card-description {
    color: #333;
    font-size: 16px;
    margin: 0 0 25px;
    flex: 1
}

.custom-card-button {
    display: flex;
        background: #003D6B;
        color: #fff;
        padding: 6px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 400;
        width: auto;
        max-width: fit-content;
        text-transform: uppercase;
        letter-spacing: .5px;
        transition: all .5s  ease;
        border: 2px solid #003D6B;
}

.custom-hover-card:hover {
    transform: translateY(-8px) scaleY(1.08);
    box-shadow: 0 30px 60px rgba(0, 61, 107, .5);
    background: linear-gradient(135deg, #003D6B 0%, #00263D 100%)
}

.custom-hover-card:hover .custom-card-image {
    transform: scale(1.05)
}

.custom-hover-card:hover .custom-card-title {
    color: #fff
}

.custom-hover-card:hover .custom-card-description {
    color: rgba(255, 255, 255, .9)
}

.custom-hover-card:hover .custom-card-button {
    background: #fff;
    color: #003D6B;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2)
}

@media (max-width:768px) {
    .custom-card-image-wrapper {
        margin: 12px;
        width: calc(100% - 24px)
    }
	
	.custom-card-image-wrapper img{
		width: 100% !important;
	}

    .custom-card-content {
        padding: 0 15px 20px
    }

    .custom-card-title {
        font-size: 18px
    }

    .custom-card-description {
        font-size: 14px;
        margin-bottom: 20px
    }
}