﻿.wrapper {
    width: 100%;
    height: 300px; /* altezza fissa che vuoi tu */
    overflow: hidden;
    position: relative;
}

    .wrapper img {
        height: 100%;
        width: auto;
        object-fit: cover;
        object-position: right;
        position: absolute;
        right: 0;
        top: 0;
    }

.wrapper-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 10;
    height: 300px;
}



.main-banner {
    height: 300px;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
    padding-left: 3rem;
    padding-right: 3rem;
    transition: background-image 0.8s ease;
    border-bottom: solid 1px #DDDDDD;
}

    .main-banner .content {
        max-width: 500px;
        color: #000000;
        ;
        z-index: 1;
    }

    .main-banner::before {
        content: none;
    }

/* Solo su schermi <= 768px (md e inferiori) */
@media (max-width: 767.98px) {
    .main-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.4) 100% );
    }
}

.main-banner .content {
    position: relative;
    transition: opacity 0.5s ease;
}






.services-bar {
    background: #fff;
    padding-top: 20px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 25px;
    height: 100%;
}

    .service-item.border-end {
        border-color: #e5e5e5 !important;
    }

.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 26px;
}

.icon-green {
    background: #8bc34a;
}

.icon-blue {
    background: #1976d2;
}

.icon-teal {
    background: #4db6ac;
}

.icon-pink {
    background: #ef6c91;
}

.icon-yellow {
    background: #f4c542;
}

.service-title {
    color: #1f4b8f;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.service-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 991px) {
    .service-item {
        padding: 20px 0;
    }

        .service-item.border-end {
            border-right: none !important;
            border-bottom: 1px solid #e5e5e5;
        }
}





.featured-section {
    padding: 20px 0;
}

.featured-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: .3s;
}

    .featured-card:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
    }

.featured-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.card-title-main {
    color: #173f7a;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 25px;
}

.label-green {
    color: #1f8b4d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.event-date {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 20px;
}

.event-title {
    font-size: 24px;
    line-height: 1;
    color: #222;
    font-weight: 500;
    margin-bottom: 15px;
}

.event-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: #1f8b4d;
    font-weight: 600;
    text-decoration: none;
}

    .card-link:hover {
        color: #15663a;
    }

    .card-link i {
        margin-left: 5px;
    }

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laptop-bg {
    background: linear-gradient(rgba(255,255,255,.75),rgba(255,255,255,.75)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1200');
    background-size: cover;
    background-position: center;
}

@media(max-width:991px) {
    .card-title-main {
        font-size: 28px;
    }

    .event-title {
        font-size: 24px;
    }
}


.lp-intro .card {
    border-radius: 24px;
}

.lp-intro h1 {
    line-height: 1.1;
}

.lp-intro .btn-primary {
    background: #0056b3;
    border: none;
}

    .lp-intro .btn-primary:hover {
        background: #004494;
    }