/* ── DiGesu Home Sections ────────────────────────────────── */

.digesu-home-section {
    margin: 40px 0;
    font-family: inherit;
}

.digesu-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* ── Griglia categorie ───────────────────────────────────── */

.digesu-categorie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.digesu-cat-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.digesu-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.digesu-cat-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digesu-cat-icon {
    width: 72px;
    height: 72px;
    opacity: 0.9;
}

.digesu-cat-icon svg {
    width: 100%;
    height: 100%;
}

.digesu-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}

.digesu-cat-name {
    position: absolute;
    bottom: 14px;
    left: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    max-width: calc(100% - 32px);
}

/* ── Carousel marche ─────────────────────────────────────── */

.digesu-carousel-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.digesu-carousel-wrap::before,
.digesu-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.digesu-carousel-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.digesu-carousel-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.digesu-carousel-track {
    display: flex;
    gap: 0;
    will-change: transform;
    animation: digesu-marquee 10s linear infinite;
}

.digesu-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes digesu-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.digesu-brand-card {
    height: 60px;
    width: 140px;
    margin-right: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.digesu-brand-card:hover {
    border-color: #0082EF;
    box-shadow: 0 4px 12px rgba(0,130,239,0.12);
}

.digesu-brand-card img {
    max-width: 100px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
    display: block;
}

.digesu-brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.digesu-brand-fallback {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
    .digesu-categorie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .digesu-categorie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .digesu-cat-card {
        height: 120px;
    }
    .digesu-cat-name {
        font-size: 12px;
    }
    .digesu-brand-card {
        width: 110px;
        height: 52px;
        padding: 6px 10px;
    }
    .digesu-brand-card img {
        max-width: 80px;
        max-height: 34px;
    }
}
