.home-main { padding-top: 1.5rem; }
.home-offers { overflow: hidden; padding: 1.2rem 0 2.8rem; }

.home-offer-shell { position: relative; }
.home-offer-swiper { overflow: hidden; padding: 4px 3px 48px; }
.home-offer-swiper .swiper-wrapper { align-items: stretch; }
.home-offer-swiper .swiper-slide { display: flex; height: auto; }

.home-offer-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--trave-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--trave-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-offer-card:hover {
    transform: translateY(-4px);
    border-color: #cbd8cb;
    box-shadow: var(--trave-shadow);
}

.home-offer-media {
    position: relative;
    display: flex;
    width: 100%;
    height: 245px;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    border-bottom: 1px solid #edf0ed;
    background: linear-gradient(180deg,#fff 0%,#fff 60%,#f7f9f7 100%);
}
.home-offer-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
}
.home-offer-card:hover .home-offer-media img { transform: scale(1.035); }

.home-offer-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #fff;
    background: var(--trave-red);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-offer-category {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 17px;
    color: #fff;
    background: linear-gradient(135deg,var(--trave-green-800),var(--trave-green-700));
}
.home-offer-category span {
    overflow: hidden;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-offer-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 17px 17px;
}
.home-offer-meta {
    display: flex;
    min-height: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}
.home-offer-brand {
    overflow: hidden;
    color: var(--trave-green-700);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.home-offer-code {
    flex: 0 0 auto;
    color: #89918b;
    font-size: .68rem;
    font-weight: 700;
}
.home-offer-title {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 15px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-offer-title a { color: inherit; text-decoration: none; }
.home-offer-title a:hover { color: var(--trave-green-700); }

.home-offer-price {
    display: flex;
    min-height: 52px;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}
.home-offer-price del { color: #949b95; font-size: .8rem; }
.home-offer-price strong { color: var(--trave-red); font-size: 1.25rem; font-weight: 900; }
.home-offer-price small { width: 100%; color: var(--trave-muted); font-size: .68rem; }
.home-offer-price--request strong { color: var(--trave-green-800); font-size: .92rem; }

.home-offer-actions { margin-top: 13px; }
.home-offer-actions .btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
}

.home-offer-nav {
    position: absolute;
    z-index: 10;
    top: calc(50% - 34px);
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d7dfd8;
    border-radius: 50%;
    color: var(--trave-green-800);
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(20,38,23,.12);
}
.home-offer-prev { left: -18px; }
.home-offer-next { right: -18px; }
.home-offer-nav:hover { color: #fff; background: var(--trave-green-800); }
.home-offer-nav.swiper-button-disabled { opacity: .25; pointer-events: none; }

.home-offer-pagination { bottom: 8px !important; }
.home-offer-pagination .swiper-pagination-bullet { background: #aeb8af; opacity: .55; display:none; }
.home-offer-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: var(--trave-green-700);
    opacity: 1;
}

/* fallback: anche senza Swiper le offerte restano visibili */
.home-offer-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}
.home-offer-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 min(310px,82vw);
}

.home-category-section {
    padding: 2.6rem 0;
    border-top: 1px solid #e8ece8;
    border-bottom: 1px solid #e8ece8;
    background: var(--trave-soft);
}
.home-service-strip {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .8rem;
    padding: 2rem 0 0;
}
.home-service {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--trave-border);
    border-radius: 14px;
    background: #fff;
}
.home-service i { color: var(--trave-green-700); font-size: 1.45rem; }
.home-service strong { display: block; font-size: .88rem; }
.home-service span { display: block; color: var(--trave-muted); font-size: .74rem; }
.home-loading { display: grid; width: 100%; min-height: 260px; place-items: center; }

@media (max-width: 1199.98px) {
    .home-service-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-offer-prev { left: -8px; }
    .home-offer-next { right: -8px; }
}

@media (max-width: 767.98px) {
    .home-main { padding-top: .75rem; }
    .home-offer-swiper { overflow: visible; padding-bottom: 42px; }
    .home-offer-media { height: 205px; padding: 14px; }
    .home-offer-body { padding: 14px; }
    .home-offer-title { font-size: .92rem; }
    .home-offer-nav { display: none; }
    .home-service-strip { grid-template-columns: 1fr; }
}

/* ==========================================================
   CATEGORIE HOME - immagine sempre separata dalla fascia testo
   ========================================================== */
.home-category-section .category-grid {
    align-items: stretch;
}

.home-category-section .category-card {
    display: flex;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dbe3dc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 38, 23, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-category-section .category-card > a {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: 220px minmax(76px, auto);
    color: inherit;
    text-decoration: none;
}

.home-category-section .category-card-media {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 220px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 14px;
    border: 0;
    background: #fff;
}

.home-category-section .category-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.home-category-section .category-card-body {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-top: 1px solid #dce5dc;
    background: linear-gradient(180deg, #f3f7f3 0%, #edf3ed 100%);
}

.home-category-section .category-card-title {
    margin: 0;
    color: var(--trave-green-950);
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.home-category-section .category-card-count {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid #d6e0d6;
    border-radius: 999px;
    color: var(--trave-green-800);
    background: rgba(255,255,255,.88);
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-category-section .category-card:hover {
    transform: translateY(-3px);
    border-color: #becfbe;
    box-shadow: 0 13px 32px rgba(20, 38, 23, .11);
}

.home-category-section .category-card:hover .category-card-media img {
    transform: scale(1.02);
}

@media (max-width: 1199.98px) {
    .home-category-section .category-card > a {
        grid-template-rows: 200px minmax(74px, auto);
    }
    .home-category-section .category-card-media {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .home-category-section .category-card {
        border-radius: 14px;
    }
    .home-category-section .category-card > a {
        grid-template-rows: 145px minmax(78px, auto);
    }
    .home-category-section .category-card-media {
        height: 145px;
        padding: 10px;
    }
    .home-category-section .category-card-body {
        min-height: 78px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 6px;
        padding: 10px 11px;
    }
    .home-category-section .category-card-title {
        font-size: .78rem;
    }
    .home-category-section .category-card-count {
        width: max-content;
        min-height: 24px;
        padding: 3px 7px;
        font-size: .62rem;
    }
}
