.nfs-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.nfs-swiper {
    overflow: visible;
}

.nfs-slider-wrapper .swiper-slide {
    height: auto;
    display: flex;
}

@property --rcs {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --scs {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --xcs {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@property --ycs {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

.nfs-card {
    width: 100%;
    --rcs: 0px;
    --scs: 0px;
    --xcs: 0px;
    --ycs: 0px;
}

.nfs-card-service {
    background: var(--nfs-service-bg, #202020);
    color: var(--nfs-service-color, #73d3e1);
    border-radius: var(--nfs-service-radius, 30px);

    overflow: hidden;
    position: relative;


    --_m: /calc(2 * var(--rcs)) calc(2 * var(--rcs)) radial-gradient(#000 70%, #0000 72%);
    --_g: conic-gradient(from 90deg at calc(100% - var(--rcs)) calc(100% - var(--rcs)), #0000 25%, #000 0);
    --_d: calc(var(--scs) + var(--rcs));
    mask: calc(100% - var(--_d) - var(--xcs)) 100% var(--_m), 100% calc(100% - var(--_d) - var(--ycs)) var(--_m), radial-gradient(var(--scs) at 100% 100%, #0000 99%, #000 calc(100% + 1px)) calc(-1 * var(--rcs) - var(--xcs)) calc(-1 * var(--rcs) - var(--ycs)), var(--_g) calc(-1 * var(--_d) - var(--xcs)) 0, var(--_g) 0 calc(-1 * var(--_d) - var(--ycs));
    mask-repeat: no-repeat;
    transition: --rcs 300ms, --scs 300ms, --xcs 300ms, --ycs 300ms;
    transition-timing-function: ease-in-out;
    transition-delay: 100ms;
}

.nfs-card:hover,
.nfs-card-masked {
    --rcs: 30px;
    --scs: 15px;
    --xcs: 15px;
    --ycs: 15px;
}

.nfs-card-service .service-card-inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    padding: var(--nfs-service-padding, 36px);
    position: relative;
    color: var(--nfs-service-color, #73d3e1);
    overflow: hidden;
}

/* Reset stili ereditati dal tema */
.nfs-card-service .service-card-inner,
.nfs-card-service .service-card-inner * {
    box-sizing: border-box;
}

.nfs-card-service h3,
.nfs-card-service h3 a,
.nfs-card-service h3 a:hover {
    color: inherit;
    text-decoration: none;
}

.nfs-card-service .service-card-inner::after {
    content: '';
    position: absolute;
    bottom: -88px;
    right: -80px;
    width: 0;
    aspect-ratio: 80 / 88;
    border-top-left-radius: 24px;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.nfs-card-service:hover .service-card-inner::after {
    width: 80px;
    bottom: 0;
    right: 0;
}

.nfs-card-service .service-icon {
    width: 100px;
    position: relative;
    margin-bottom: 20px;
}

.nfs-card-service .service-icon svg,
.nfs-card-service .service-icon>div>svg {
    fill: currentColor;
    width: 100%;
    height: auto;
    display: block;
}

.nfs-card-service .icon-base {
    position: relative;
}

.nfs-card-service .icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: filter 300ms;
}

.nfs-card-service:hover .icon-overlay {
    filter: blur(2px);
}

.nfs-card-service .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    padding-top: 50px;
}

.nfs-card-service .service-title {
    font-size: var(--nfs-title-size, 42px);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    position: relative;
    margin: 0;
    padding: 0;
    color: inherit;
    background: none;
    border: none;
}

.nfs-card-service .service-title span {
    display: inline-block;
}

.nfs-card-service .title-blur {
    position: absolute;
    left: 0;
    top: 0;
    transition: filter 300ms;
}

.nfs-card-service:hover .title-blur {
    filter: blur(2px);
}

.nfs-card-service .title-main {
    position: relative;
}

.nfs-card-service .service-title-hidden {
    opacity: 0;
}

.nfs-card-service .service-title-animated {
    position: absolute;
    left: 0;
    width: 100%;
    transition: top 500ms;
}

.nfs-card-service:hover .service-title-animated {
    top: 50px !important;
}

.nfs-card-service .service-link {
    margin-top: auto;
    font-size: 1.375rem;
    font-weight: 500;
}

.nfs-card-service .service-text,
.nfs-card-service .service-link {
    position: relative;
    opacity: 0;
    transition: opacity 500ms;
}

.nfs-card-service:hover .service-text,
.nfs-card-service:hover .service-link {
    opacity: 1;
}

.nfs-card-service .text-blur {
    position: absolute;
    left: 0;
    top: 0;
}

.nfs-card-service .text-main {
    position: relative;
}

.nfs-card-service .plus-icon {
    position: absolute;
    bottom: 36px;
    right: 36px;
    width: 30px;
    height: 30px;
    color: var(--nfs-button-bg, #f1e4b2);
    opacity: 1;
    transition: opacity 300ms;
    z-index: 2;
}

.nfs-card-service:hover .plus-icon {
    opacity: 0;
}

.nfs-card-team .nfs-team-media {
    background: var(--nfs-team-card-bg, #202020);
    border-radius: var(--nfs-team-radius, 30px);
    overflow: hidden;


    --_m: /calc(2 * var(--rcs)) calc(2 * var(--rcs)) radial-gradient(#000 70%, #0000 72%);
    --_g: conic-gradient(from 90deg at calc(100% - var(--rcs)) calc(100% - var(--rcs)), #0000 25%, #000 0);
    --_d: calc(var(--scs) + var(--rcs));
    mask: calc(100% - var(--_d) - var(--xcs)) 100% var(--_m), 100% calc(100% - var(--_d) - var(--ycs)) var(--_m), radial-gradient(var(--scs) at 100% 100%, #0000 99%, #000 calc(100% + 1px)) calc(-1 * var(--rcs) - var(--xcs)) calc(-1 * var(--rcs) - var(--ycs)), var(--_g) calc(-1 * var(--_d) - var(--xcs)) 0, var(--_g) 0 calc(-1 * var(--_d) - var(--ycs));
    mask-repeat: no-repeat;
    transition: --rcs 300ms, --scs 300ms, --xcs 300ms, --ycs 300ms;
    transition-timing-function: ease-in-out;
    transition-delay: 100ms;
}

.nfs-team-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.nfs-team-content {
    padding-top: 20px;
}

/* Reset stili ereditati dal tema per team */
.nfs-card-team,
.nfs-card-team * {
    box-sizing: border-box;
}

.nfs-card-team h3,
.nfs-card-team h3 a,
.nfs-card-team h3 a:hover,
.nfs-card-team .nfs-title,
.nfs-card-team .nfs-title a,
.nfs-card-team .nfs-title a:hover {
    color: inherit;
    text-decoration: none !important;
}

.nfs-title {
    margin: 0 0 10px;
    padding: 0;
    font-size: var(--nfs-title-size, 42px);
    text-transform: uppercase;
    line-height: 1;
    color: inherit;
    background: none;
    border: none;
}

.nfs-subtitle {
    margin: 0;
    padding: 0;
    font-size: var(--nfs-text-size, 18px);
    line-height: 1.4;
    color: inherit;
    background: none;
    border: none;
}

.nfs-description {
    margin: 0;
    padding: 0;
    font-size: var(--nfs-text-size, 18px);
    line-height: 1.4;
    color: inherit;
    background: none;
    border: none;
}

.nfs-subtitle+.nfs-description {
    margin-top: 10px;
}

.nfs-card-service .service-link .nfs-button,
.nfs-button {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 500;
    background: var(--nfs-button-bg, #f1e4b2);
    color: var(--nfs-button-color, #202020);
    position: relative;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: none;
    transition: none;
}

.nfs-card-service .service-link .nfs-button:hover,
.nfs-card-service .service-link .nfs-button:focus,
.nfs-card-service .service-link .nfs-button:active,
.nfs-button:hover,
.nfs-button:focus {
    text-decoration: none !important;
    color: var(--nfs-button-color, #202020);
    background: var(--nfs-button-bg, #f1e4b2);
}

.nfs-card-service .btn-text-blur {
    position: absolute;
    left: 24px;
    transition: filter 300ms;
}

.nfs-card-service .nfs-button:hover .btn-text-blur {
    filter: blur(2px);
}

.nfs-card-service .btn-text {
    position: relative;
}

.nfs-navigation {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nfs-button-prev,
.nfs-button-next {
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    position: relative;
    outline: none;
}

.nfs-button-prev::before,
.nfs-button-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-65%, -50%) rotate(45deg);
}

.nfs-button-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.nfs-pagination {
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .nfs-title {
        font-size: 34px;
    }

    .nfs-card-service {
        border-bottom-right-radius: var(--nfs-service-radius, 30px);
        --rcs: 30px;
        --scs: 15px;
        --xcs: 15px;
        --ycs: 15px;
    }

    .nfs-card-service .service-card-inner {
        min-height: 380px;
        padding: 24px;
    }

    .nfs-card-service .service-content {
        gap: 20px;
        padding-top: 20px;
    }

    .nfs-card-service .service-title-animated,
    .nfs-card-service:hover .service-title-animated {
        top: 20px !important;
    }

    .nfs-card-service .service-text,
    .nfs-card-service .service-link {
        opacity: 1;
    }

    .nfs-card-service .plus-icon {
        display: none;
    }
}

/* ---- Photo slide variant ---- */
.nfs-photo-swiper-slide {
    width: auto !important;
    height: auto;
}

.nfs-photo-slide {
    display: block;
    height: var(--nfs-photo-height, 400px);
    width: auto;
    overflow: hidden;
    border-radius: var(--nfs-photo-radius, 30px);

    --rcs: 0px;
    --scs: 0px;
    --xcs: 0px;
    --ycs: 0px;

    --_m: /calc(2 * var(--rcs)) calc(2 * var(--rcs)) radial-gradient(#000 70%, #0000 72%);
    --_g: conic-gradient(from 90deg at calc(100% - var(--rcs)) calc(100% - var(--rcs)), #0000 25%, #000 0);
    --_d: calc(var(--scs) + var(--rcs));
    mask: calc(100% - var(--_d) - var(--xcs)) 100% var(--_m),
          100% calc(100% - var(--_d) - var(--ycs)) var(--_m),
          radial-gradient(var(--scs) at 100% 100%, #0000 99%, #000 calc(100% + 1px)) calc(-1 * var(--rcs) - var(--xcs)) calc(-1 * var(--rcs) - var(--ycs)),
          var(--_g) calc(-1 * var(--_d) - var(--xcs)) 0,
          var(--_g) 0 calc(-1 * var(--_d) - var(--ycs));
    mask-repeat: no-repeat;
    transition: --rcs 300ms, --scs 300ms, --xcs 300ms, --ycs 300ms;
    transition-timing-function: ease-in-out;
    transition-delay: 100ms;
}

.nfs-photo-slide:hover {
    --rcs: 30px;
    --scs: 15px;
    --xcs: 15px;
    --ycs: 15px;
}

.nfs-photo-slide .nfs-photo-image {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
}