/* DGS Footer v2 — stesso campo della home v2, non il bento navy. */

.dgs-ftv2 {
    --ftv2-max: 1320px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: #070b14;
    color: #f4f7fb;
    margin-top: 0;
}
.dgs-ftv2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 70% at 8% 0%, rgba(82,176,67,.14) 0%, transparent 58%),
        radial-gradient(ellipse 46% 64% at 94% 12%, rgba(0,112,209,.16) 0%, transparent 56%),
        radial-gradient(ellipse 40% 50% at 50% 100%, rgba(14,165,233,.1) 0%, transparent 55%);
}
.dgs-ftv2__sep {
    position: relative;
    z-index: 1;
    height: 3px;
    background: linear-gradient(90deg,
        var(--dgs-xbox, #52b043) 0%,
        var(--dgs-playstation, #5ba3f5) 40%,
        var(--dgs-primary, #0ea5e9) 70%,
        var(--dgs-gamepass, #9b8ef7) 100%
    );
}
.dgs-ftv2__inner {
    position: relative;
    z-index: 1;
    max-width: var(--ftv2-max);
    margin: 0 auto;
    padding: 2.4rem .75rem 5.6rem;
    overflow: visible;
}
@media (min-width: 768px) {
    .dgs-ftv2__inner { padding: 2.8rem 1rem 2rem; }
}

.dgs-ftv2__grid {
    display: grid;
    gap: 1.6rem 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .dgs-ftv2__grid { grid-template-columns: 1fr 1fr; }
    .dgs-ftv2__brand { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
    .dgs-ftv2__grid {
        grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr));
        gap: 2rem 1.75rem;
        align-items: start;
    }
    .dgs-ftv2__brand { grid-column: auto; }
}

.dgs-ftv2__logo {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    line-height: 0;
}
.dgs-ftv2__logo svg,
.dgs-ftv2__logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 210px;
}
.dgs-ftv2__logo .dgs-logo-part { stroke: #fff !important; }
.dgs-ftv2__tag {
    margin: .7rem 0 .85rem;
    max-width: 28rem;
    font-size: .92rem;
    line-height: 1.45;
    color: rgba(255,255,255,.72);
}
.dgs-ftv2__tp {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    background: rgba(0,182,122,.18);
    border: 1px solid rgba(0,182,122,.45);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.dgs-ftv2__tp:hover { color: #fff; filter: brightness(1.08); }
.dgs-ftv2__stars { color: #00b67a; letter-spacing: .04em; }
.dgs-ftv2__social {
    display: flex;
    gap: .45rem;
    margin-top: .9rem;
}
.dgs-ftv2__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    color: #fff;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.dgs-ftv2__social a:hover {
    background: var(--dgs-primary, #0ea5e9);
    border-color: transparent;
    color: #fff;
}
.dgs-ftv2__social svg { width: 16px; height: 16px; }

.dgs-ftv2__col { min-width: 0; }
.dgs-ftv2__col > summary {
    list-style: none;
    cursor: default;
}
.dgs-ftv2__col > summary::-webkit-details-marker,
.dgs-ftv2__col > summary::marker {
    display: none;
    content: none;
}
.dgs-ftv2__col h4 {
    margin: 0 0 .7rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.48);
}
.dgs-ftv2__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .38rem;
}
.dgs-ftv2__col a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 550;
    line-height: 1.35;
    word-break: break-word;
}
.dgs-ftv2__col a:hover { color: #fff; }
.dgs-ftv2__col a[data-plat="xbox"]:hover { color: var(--dgs-xbox, #52b043); }
.dgs-ftv2__col a[data-plat="ps"]:hover { color: var(--dgs-playstation, #5ba3f5); }

.dgs-ftv2__bottom {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .85rem 1.25rem;
}
.dgs-ftv2__legal {
    margin: 0;
    font-size: .72rem;
    line-height: 1.45;
    color: rgba(255,255,255,.48);
}
.dgs-ftv2__legal b { color: rgba(255,255,255,.62); font-weight: 650; }
.dgs-ftv2__pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}
.dgs-ftv2__pm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: .2rem .42rem;
    border-radius: 6px;
    background: #fff;
}
.dgs-ftv2__pm svg { height: 16px; width: auto; display: block; }
.dgs-ftv2__ssl {
    width: 100%;
    margin: 0;
    font-size: .7rem;
    color: rgba(255,255,255,.42);
}

/* Suggerimenti live search v2 (header) */
.dgs-sv2__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    padding: .6rem .85rem;
    text-decoration: none;
    color: inherit;
}
.dgs-sv2__item:hover,
.dgs-sv2__item:focus {
    background: rgba(255,255,255,.06);
    outline: none;
}
.dgs-sv2__item img {
    width: 40px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
}
.dgs-sv2__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .12rem;
}
.dgs-sv2__meta strong {
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dgs-sv2__meta small {
    font-size: .72rem;
    opacity: .72;
}
.dgs-sv2__tag {
    display: inline-block;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .05em;
    padding: .05rem .35rem;
    border-radius: 4px;
    color: #fff;
    background: #64748b;
}
.dgs-sv2__tag--xbox { background: var(--dgs-xbox, #52b043); }
.dgs-sv2__tag--ps { background: var(--dgs-playstation, #0070d1); }
.dgs-sv2__price {
    font-weight: 800;
    font-size: .85rem;
    white-space: nowrap;
}
.dgs-sv2__more,
.dgs-sv2__empty {
    display: block;
    padding: .75rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}
.dgs-sv2__more {
    color: var(--dgs-primary, #0ea5e9);
    border-top: 1px solid rgba(255,255,255,.08);
}
.dgs-sv2__empty { opacity: .7; font-weight: 500; }

@media (min-width: 640px) {
    .dgs-ftv2__col > ul,
    .dgs-ftv2__col:not([open]) > ul {
        display: flex !important;
    }
    .dgs-ftv2__col > summary { pointer-events: none; }
}

@media (max-width: 639px) {
    .dgs-ftv2__logo svg,
    .dgs-ftv2__logo img { height: 24px; max-width: 180px; }
    .dgs-ftv2__tag { margin: .5rem 0 .65rem; font-size: .84rem; }
    .dgs-ftv2__grid { gap: 0; }
    .dgs-ftv2__brand { padding-bottom: .85rem; }
    .dgs-ftv2__col {
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .dgs-ftv2__col > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        min-height: 48px;
        padding: .2rem 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .dgs-ftv2__col > summary h4 {
        margin: 0;
        font-size: .78rem;
        color: rgba(255,255,255,.78);
    }
    .dgs-ftv2__col > summary::after {
        content: '';
        flex: 0 0 10px;
        width: 10px;
        height: 10px;
        margin-right: .2rem;
        border-right: 2px solid rgba(255,255,255,.55);
        border-bottom: 2px solid rgba(255,255,255,.55);
        transform: rotate(45deg);
        transition: transform .18s ease;
    }
    .dgs-ftv2__col[open] > summary::after {
        transform: rotate(-135deg);
        margin-top: 6px;
    }
    .dgs-ftv2__col > ul {
        padding: 0 0 .55rem;
        gap: 0;
    }
    .dgs-ftv2__col a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: .35rem 0;
        font-size: .95rem;
    }
    .dgs-ftv2__bottom { align-items: flex-start; }
}
