/* HERO */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-row {
    min-height: var(--hero-min-h);
}

/* ---- metà verde (testo) ---- */
.hero-text {
    position: relative;
    z-index: 0;
    background-color: var(--green-color);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 3.5rem 3rem 5.5rem .75rem;
}

.hero-text::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -100vw;
    background-color: var(--green-color);
    z-index: -1;
}

/* ---- metà immagine ---- */
.hero-image {
    position: relative;
    z-index: 0;
    padding: 0;
    background: #f2f3f4;
}

.hero-image::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 100%;
    width: 100vw;
    background: #f2f3f4;
    z-index: -1;
}

.hero-image img {
    width: calc(100% / 7 + 50vw);
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-badge {
    align-self: flex-start;
    background-color: rgba(255,255,255,.3);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(1.875rem, 3.2vw, 3rem);
    margin-bottom: 1rem;
    color: #fff;
}

.hero-desc {
    font-size: clamp(1rem, 1rem + 0.5vw, 1.375rem);
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin-bottom: 1.75rem;
}

.hero-controls-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.25rem;
    z-index: 10;
    pointer-events: none;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 3rem 0 .75rem;
}

.hero-controls > * {
    pointer-events: auto;
}

.hero-pagination {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: auto !important;
    position: static !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.4);
    opacity: 1;
    margin: 0 !important;
    transition: background .2s ease, width .2s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 34px;
}

.hero-nav {
    display: flex;
    gap: .5rem;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    transition: background .2s ease, border-color .2s ease;
}

.hero-arrow:hover, .hero-arrow:focus-visible {
    background: rgba(255,255,255,.15);
    outline: none;
}

.hero-arrow.swiper-button-disabled {
    opacity: .4;
    cursor: default;
}

/* Promo Banner */
.promo-banner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem 3rem;
    overflow: hidden;
    border-radius: 12px;
    padding: 2.25rem 10rem;
    background: linear-gradient(90deg, var(--main-color) 50%, var(--green-color) 100%);
    color: #fff;
}

.promo-banner__card {
    justify-self: end;
    max-width: 34rem;
}

/* ---- Blocco LEAD (solo desktop) ---- */
.promo-banner__lead {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.promo-banner__lead-title {
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 800;
    line-height: .92;
    text-transform: uppercase;
}

.promo-banner__lead-dates {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
}

/* ---- CARD (contenuto "Spacca prezzo") ---- */
.promo-banner__badge {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.promo-banner__title {
    font-size: clamp(1.75rem, 2.2vw, 2.5rem);
    color: #fff;
}

.promo-banner__text {
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, .92);
}

.promo-banner__btn {
    display: inline-block;
    margin-top: .35rem;
    padding: .7rem 1.6rem;
    border-radius: .4rem;
    background: var(--cf-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.promo-banner__btn:hover,
.promo-banner__btn:focus-visible {
    background: var(--cf-green-hover);
    color: #fff;
}

.promo-banner__btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .6);
    outline-offset: 2px;
}


/* Boost Bar */
.boost-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.boost-item__icon {
    color: #03824A;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #ECF5F1;
    background-color: #F4FDF8;
}

.boost-item__icon img {
    width: 30px;
    height: 30px;
}

.boost-item__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--main-color);
}

.boost-item__sub {
    display: flex;
    align-items: center;
    column-gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--main-color);
}

.boost-item__link {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.boost-item__link:hover,
.boost-item__link:focus-visible {
    color: var(--black-color);
}

/* Categorie estese */
.cat-card {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
}

.cat-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
    transition: background-color .25s ease;
}

.cat-card:hover .cat-card__overlay,
.cat-card:focus-visible .cat-card__overlay {
    background-color: var(--main-color);
}

.cat-card__title {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: .5rem 1rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    font-size: clamp(1.375rem, 1.09rem + 1vw, 2rem);
}

.cat-card--all {
    background-color: var(--green-color);
}
.cat-card--all .cat-card__overlay {
    background-color: transparent;
}
.cat-card--all:hover .cat-card__overlay,
.cat-card--all:focus-visible .cat-card__overlay {
    background-color: var(--main-color);
}

.cat-card:focus-visible {
    outline: 3px solid var(--main-color);
    outline-offset: 3px;
}

/* Category light */
.cat-swiper {
    padding-left: 20px;
}

.cat-slider {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cat-slider__head {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.cat-slider__title {
    font-size: 1.5rem;
    font-weight: 400;
}

.cat-slider__track {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---- Frecce ---- */
.cat-nav {
    display: flex;
    gap: .5rem;
}

.cat-nav__btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: var(--main-color);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity .2s ease;
}

.cat-nav__btn:hover {
    opacity: 0.7;
}

.cat-nav__btn svg {
    width: auto;
    height: 30px;
}

.cat-nav__btn.swiper-button-disabled {
    background: #EFEFEF;
    color: #7E7E7E;
    cursor: default;
}

/* ---- Slide ---- */
.cat-swiper .swiper-slide {
    width: 155px;
}

.cat-slide {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
}

.cat-slide__thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: .75rem;
    border-radius: 9px;
    background: var(--green-color);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.cat-slide:hover .cat-slide__thumb,
.cat-slide:focus-visible .cat-slide__thumb {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
}

.cat-slide__thumb img {
    width: 120px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cat-slide__label {
    text-align: center;
    color: var(--main-color);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cat-slide:focus-visible {
    outline: none;
}

.cat-slide:focus-visible .cat-slide__label {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}


/* Categorie link estesi */
.category-showcase__card {
    position: relative;
}

.category-showcase__media {
    height: 100%;
}

.category-showcase__img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.category-showcase__body {
    height: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
}

.category-showcase__body .col-6:only-child .category-showcase__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-showcase__title {
    color: var(--main-color);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    margin: 0 0 1.5rem;
}

.category-showcase__pill {
    display: inline-block;
    font-style: italic;
    font-size: .9rem;
    color: #3a4652;
    background: #fff;
    border: 1px solid var(--gray-color-20);
    border-radius: 999px;
    padding: .3rem 1.25rem;
    margin-bottom: 1.25rem;
}

.category-showcase__links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: .3rem 2rem;
}

.category-showcase__link {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--main-color);
    min-height: 2lh;
}

.category-showcase__label {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: .9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.category-showcase__link:hover .category-showcase__label {
    color: var(--main-color-dark);
}

.category-showcase__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ECF5F1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-showcase__icon .category-showcase__icon-img {
    width: 18px;
    height: 18px;
    background-color: var(--green-color);
    -webkit-mask: var(--icon-category) center / contain no-repeat;
    mask: var(--icon-category) center / contain no-repeat;
}

/* Categorie slider con link */
.cat-slide-link {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cat-slider-link__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.25rem;
}

.cat-slider-link__track {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---- Frecce ---- */
.cat-slider-nav{
    display: flex;
    gap: .5rem;
}

.cat-slider-nav__btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: var(--main-color);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity .2s ease;
}

.cat-slider-nav__btn:hover {
    opacity: 0.7;
}

.cat-slider-nav__btn svg {
    width: auto;
    height: 30px;
}

.cat-slider-nav__btn.swiper-button-disabled {
    background: #EFEFEF;
    color: #7E7E7E;
    cursor: default;
    border: 1px solid #CFCFCF;
}

/* ---- Slide ---- */
.cat-swiper-link .swiper-slide {
    width: 250px;
    height: auto;
}

.cat-swiper-link-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    background-color: #fff;
}

.cat-swiper-link-card__links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.cat-swiper-link-card__link {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--main-color);
}

.cat-swiper-link-card__label {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: .9rem;
    font-weight: 500;
}

.cat-swiper-link-card__link:hover .cat-swiper-link-card__label {
    color: var(--main-color-dark);
}

.cat-swiper-link-card__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ECF5F1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cat-swiper-link-card__icon .cat-swiper-link-card__icon-img{
    width: 18px;
    height: 18px;
    background-color: var(--green-color);
    -webkit-mask: var(--icon-category) center / contain no-repeat;
    mask: var(--icon-category) center / contain no-repeat;
}

/* Recensioni Feedaty */
.feedaty-swiper-container {
    padding-inline: 35px;
}

.feedaty-swiper .swiper-slide {
    height: auto;
}

.feedaty-stars-container {
    position: relative;
    width: 80px;
    height: 15px;
    background-color: #b9b9b9;
    display: inline-grid;
}

.feedaty-stars-container .feedaty-stars-background {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background-color: #f0ac01;
}

.feedaty-stars-container .feedaty-stars-icons {
    position: relative;
    background-image: url(https://www.cfadda.com/images/rating-background.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.feedaty-slide-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 157px;
    border-radius: 20px;
    padding: 20px 25px 10px 25px;
    background: #f9f9f9;
}

.feedaty-slide-box_header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.feedaty-nav__btn-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.feedaty-nav__btn {
    width: 25px;
    height: 25px;
    border: solid 2px #777777;
    border-radius: 100px;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity .2s ease;
}

.feedaty-nav__btn:hover {
    opacity: 0.7;
}

.feedaty-nav__btn svg {
    width: auto;
    height: 20px;
}

.feedaty-nav__btn.swiper-button-disabled {
    opacity: .5;
    color: #7E7E7E;
    cursor: default;
}


/* Brand */
.brands-slider {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brands-viewport {
    flex: 1 1 auto;
    min-width: 0;
}

.brands-item {
    display: inline-flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
    line-height: 1;
    font-size: .85rem;
}

.brands-item::after {
    content: "|";
    margin-inline: 0.75rem;
    color: var(--green-color);
    font-weight: 400;
}

.brands-item:last-child::after {
    content: none;
}

.brands-link {
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
    color: var(--gray-color-90);
    transition: color .2s;
}

.brands-link:hover {
    color: var(--main-color);
}

.brands-nav {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 2px solid var(--green-color);
    border-radius: 50%;
    background: #fff;
    color: var(--green-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s;
}

.brands-nav:hover {
    background: var(--green-color);
    color: #fff;
}

.brands-nav.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

.brands-nav svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* ---- Card chi siamo ---- */
.about-card {
    height: 100%;
    padding: 28px;
    background: #fff;
    border-radius: 10px;
}

.about-card__badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 14px;
    background: var(--green-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
}

.about-card__title {
    font-size: clamp(2rem, 1.893rem + 0.476vw, 2.25rem);
}

.about-card a {
    font-weight: 600;
}

.about-card a:hover {
    color: var(--main-color-dark);
}

.about-card__subtitle {
    font-size: clamp(1.5rem, 1.393rem + 0.476vw, 1.75rem);
}

/* ---- Store finder ---- */
.store-finder__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-finder__icon {
    color: var(--green-color);
    line-height: 1;
}

.store-finder__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
}

.store-finder__name {
    display: block;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 0;
}

.store-finder__link {
    color: var(--main-color);
    font-size: 14px;
    text-underline-offset: 2px;
}

.store-finder__link:hover {
    color: var(--main-color-dark);
}

.store-finder__cta {
    grid-column: 1 / -1;
    padding-block: 10px;
}


/* Responsive */
@media (min-width: 768px) {
    .brands-slider {
        display: block;
    }

    .brands-viewport.swiper {
        overflow: visible;
    }

    .brands-list.swiper-wrapper {
        display: flex;
        flex-wrap: wrap;
        transform: none !important;
        row-gap: .75rem;
    }

    .brands-item.swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
    }

    .brands-nav {
        display: none;
    }
}

@media (min-width: 992px) {
    .cat-card {
        aspect-ratio: 16 / 10;
    }

    .about-card {
        padding: 40px 45px;
    }

    .store-finder__cta {
        grid-column: 2 / 3;
        align-self: end;
        margin-top: 0;
        max-width: 250px;
    }
}

@media (max-width: 1198.98px) {
    .promo-banner {
        padding: 2.25rem 6rem;
    }
}

@media (max-width: 1098.98px) {
    .promo-banner {
        padding: 2.25rem 3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-slider .container {
        padding: 0;
        height: 100%;
    }

    .hero-slider .swiper-slide {
        height: auto;
    }

    .hero-row {
        min-height: 0;
        height: 100%;
    }

    .hero-text {
        justify-content: flex-start;
        flex-grow: 1;
        padding: 1.25rem 1rem .75rem;
    }

    .hero-text .btn {
        margin-top: auto;
    }

    .hero-badge {
        margin-bottom: .75rem
    }

    .hero-title {
        margin-bottom: .5rem
    }

    .hero-desc {
        margin-bottom: 1rem;
    }

    .hero-image img {
        width: 100%;
        min-height: 240px;
    }

    .hero-controls {
        padding: 0 1.5rem 1.5rem;
    }

    .hero-text::before, .hero-image::after {
        display: none;
    }

    .hero-controls-wrap {
        position: relative;
        inset: initial;
        background: #249556;
        z-index: 0;
    }

    .promo-banner {
        grid-template-columns: 1fr;
        padding: 1rem;
        background: var(--main-color);
    }

    .promo-banner__card {
        max-width: 100%;
    }

    .promo-banner__card-flyer {
        align-self: end;
        justify-self: end;
        flex-shrink: 0;
        margin-top: -2rem;
    }

    .flyer-img {
        width: 160px;
    }

    .cat-slider {
        flex-direction: column;
    }

    .cat-slider__head {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .cat-slider__track {
        width: 100%;
        max-width: 100%;
    }

    .cat-swiper {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .category-showcase__img {
        min-height: 190px;
    }

    .category-showcase__body {
        height: auto;
        box-shadow: 0 4px 20px 0 #00000017;
        margin: -3rem 0 0;
        padding: 1.5rem 1.15rem;
        text-align: center;
    }

    .category-showcase__pill {
        display: block;
        width: 100%;
        padding: .3rem;
    }

    .category-showcase__links {
        gap: .5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .category-showcase__link {
        flex-direction: column;
        gap: .5rem;
        min-height: 0;
    }

    .category-showcase__label {
        min-height: 2lh;
    }

    .category-showcase__icon {
        width: 40px;
        height: 40px;
    }

    .category-showcase__icon .category-showcase__icon-img {
        width: 22px;
        height: 22px;
    }
}

@media only screen and (max-width: 575.98px) {
    .flyer-img {
        width: 130px;
    }

    .cf_feedaty_slider .slick-next {
        right: -20px;
    }

    .cf_feedaty_slider .slick-prev {
        left: 10px;
    }

    .feedaty-slide-box_header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .feedaty-slide-box {
        padding: 20px 15px 10px;
    }

    .about-card {
        padding: 20px 16px;
    }
}

/* ---- Accessibilità: niente scorrimento se l'utente lo chiede ---- */
@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper {
        transition-duration: 0ms !important;
    }

    .cat-card__overlay {
        transition: none;
    }

    .cat-slide__thumb, .cat-nav__btn {
        transition: none;
    }
}