.item-service,
.item-service * {
    box-sizing: border-box;
}

.item-service {
    position: relative;
    width: 100%;
    max-width: 322px;
    height: 420px;
    overflow: hidden;
    background: #0b0e19;
    color: #ffffff;
}

.item-service__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.item-service__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #e9e9e9;
}

.item-service__image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.7s ease;
}

.item-service:hover .item-service__image-bg {
    transform: scale(1.1);
}

.item-service__image-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0));
}

.item-service__infos {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
}

.item-service__title {
    --line-clamp: 2;
    overflow: hidden;
    margin: 0 !important;
    color: #ffffff;
    font-family: var(--font-heading, "Lato", sans-serif);
    font-size: 1.5625rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--line-clamp);
}

.item-service__description {
    --line-clamp: 2;
    overflow: hidden;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--line-clamp);
}

.item-service__cta {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.75rem;
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0b0e19;
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.item-service__link:hover .item-service__cta,
.item-service__link:focus-visible .item-service__cta {
    background: #f47a34;
    color: #ffffff;
}

.item-service__cta-icon {
    display: inline-flex;
    width: 0.75rem;
    height: 0.75rem;
    background: currentColor;
    -webkit-mask-image: url("../item-wine-tour/assets/icon-chevron-right.svg");
    mask-image: url("../item-wine-tour/assets/icon-chevron-right.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/*RESPONSIVE*/

/*phone*/
@media (max-width: 767px) {

    .item-service {
        height: 380px;
    }

    .item-service__infos {
        padding: 1rem;
    }

    .item-service__title {
        font-size: 1.35rem;
    }

}

/*tablet*/
@media (min-width: 768px) and (max-width: 1023px) {

    .item-service {
        height: 400px;
    }

    .item-service__title {
        font-size: 1.125rem;
    }

}

/*desktop*/
@media (min-width: 1025px) {

}

/*laptop 1*/
@media (min-width: 1024px) and (max-width: 1439px) {

    .item-service {
        height: 340px;
    }

    .item-service__title {
        font-size: 1.125rem;
    }

}

/*laptop 2*/
@media (min-width: 1440px) and (max-width: 1700px) {

    .item-service__title {
        font-size: 1.125rem;
    }

}

/*RESPONSIVE*/

/* mobile paragraph minimum */
@media (max-width: 767px) {
    .item-service p {
        font-size: max(0.9375rem, 1em);
    }
}
