body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1; 
}

footer {
    background-color: #f8f9fa; 
    padding: 20px;
    text-align: center;
    width: 100%;
}

.navbar {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    border-bottom: 2px solid #b0cb27; 
}
.logo-desktop {
    z-index: 10;
    height: 90px;
    margin-top: -24px;
    margin-left: 0;
    position: absolute;
}
.logo-mobile {
    height: 30px;
    position: relative;
}
.navbar-dark .navbar-nav .nav-link {
    color: #2e3314; 
    font-weight: bold; 
    font-size: 1.2rem; 
    padding: 15px 20px; 
    transition: color 0.3s; 
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff; 
    background-color: #b0cb27; 
    border-radius: 5px; 
}
.dropdown-section {
    background-repeat: repeat; 
    background-size: 50px 50px; 
    background-position: 0 0; 
    padding: 20px; 
    color: #333; 
}

#games-submenu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="rgba(30, 30, 30, 0.1)" d="M592 192H473.3c12.7 29.6 7.1 65.2-17 89.3L320 417.6V464c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V240c0-26.5-21.5-48-48-48zM480 376c-13.3 0-24-10.8-24-24 0-13.3 10.8-24 24-24s24 10.7 24 24c0 13.3-10.8 24-24 24zm-46.4-186.7L258.7 14.4c-19.2-19.2-50.2-19.2-69.4 0L14.4 189.3c-19.2 19.2-19.2 50.2 0 69.4L189.3 433.6c19.2 19.2 50.2 19.2 69.4 0L433.6 258.7c19.2-19.2 19.2-50.2 0-69.4zM96 248c-13.3 0-24-10.8-24-24 0-13.3 10.8-24 24-24s24 10.7 24 24c0 13.3-10.8 24-24 24zm128 128c-13.3 0-24-10.8-24-24 0-13.3 10.8-24 24-24s24 10.7 24 24c0 13.3-10.8 24-24 24zm0-128c-13.3 0-24-10.8-24-24 0-13.3 10.8-24 24-24s24 10.7 24 24c0 13.3-10.8 24-24 24zm0-128c-13.3 0-24-10.8-24-24 0-13.3 10.8-24 24-24s24 10.7 24 24c0 13.3-10.8 24-24 24zm128 128c-13.3 0-24-10.8-24-24 0-13.3 10.8-24 24-24s24 10.7 24 24c0 13.3-10.8 24-24 24z"/></svg>');
}
#presale-submenu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgba(30, 30, 30, 0.1)" d="M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2l0 82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9l0-107.2c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"/></svg>');
}
#future-submenu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="rgba(30, 30, 30, 0.1)" d="M208 64a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM9.8 214.8c5.1-12.2 19.1-18 31.4-12.9L60.7 210l22.9-38.1C99.9 144.6 129.3 128 161 128c51.4 0 97 32.9 113.3 81.7l34.6 103.7 79.3 33.1 34.2-45.6c6.4-8.5 16.6-13.3 27.2-12.8s20.3 6.4 25.8 15.5l96 160c5.9 9.9 6.1 22.2 .4 32.2s-16.3 16.2-27.8 16.2l-256 0c-11.1 0-21.4-5.7-27.2-15.2s-6.4-21.2-1.4-31.1l16-32c5.4-10.8 16.5-17.7 28.6-17.7l32 0 22.5-30L22.8 246.2c-12.2-5.1-18-19.1-12.9-31.4zm82.8 91.8l112 48c11.8 5 19.4 16.6 19.4 29.4l0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-74.9-60.6-26-37 111c-5.6 16.8-23.7 25.8-40.5 20.2S-3.9 486.6 1.6 469.9l48-144 11-33 32 13.7z"/></svg>');
}


.nav-link .icon {
    margin-right: 8px; 
    font-size: 1.2rem; 
}


.section-link {
    position: relative;
    padding: 10px;
    color: #fff;
    font-weight: bold;
    cursor: pointer; 
    border-radius: 1em 1em 0 0;
    margin: 1em 1em 0;
}


.navbar-nav .nav-item {
    position: static;
}

.navbar-nav .dropdown-section {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: inherit;
    display: none;
    padding: 20px 0;
    z-index: 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}


.menu-item {
    display: inline-block;
    width: 200px;
    margin: 10px 5px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform .2s;
    background: #ffffff; 
    transition: background-color 0.3s; 
}

.menu-item:hover {
    background-color: #f1f1f1;
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.menu-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #122f18;
    font-weight: bold;
}

.menu-item p {
    font-size: 0.85rem;
    color: #666;
}


.navbar-dark .navbar-nav .nav-link {
    padding: 0 1.5rem;
    font-size: 1.1rem;
}
.game-info-bar, .game-content, .video-thumbnails, #payment-section, #shop-section {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.game-info-bar:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

.game-cover img {
    max-width: 100%;
    max-height: 100%;
}

.game-details h1 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.game-meta i {
    color: #6c757d;
    font-size: 1.1rem;
    margin-right: 0.25rem;
}
.dropdown-section .menu-item img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}
@media (max-width: 992px) {
    .navbar-nav .nav-item {
        position: relative;
        width: 100%;
    }

    .navbar-nav .dropdown-section {
        position: static;
        width: 100%;
        background-color: #343a40;
        padding: 0;
        margin: 0;
        text-align: left;
        box-shadow: none;
        border-top: 1px solid #6c757d;

        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    }

    .section-link .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .caret {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 2px;
        vertical-align: middle;
        border-top: 4px solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        transition: transform .2s;
    }

    .section-link[aria-expanded="true"] .caret {
        transform: rotate(180deg);
    }

    .menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin: 5px;
        background-color: #1c1c1c; 
        border-radius: 8px;
        transition: transform 0.2s, background-color 0.3s, box-shadow 0.2s;
        cursor: pointer;
        color: #f8f9fa;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .menu-item a {
        text-decoration: none;
    }

    .menu-item:hover {
         transform: translateY(-3px);
         background-color: #343a40; 
         box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
     }

    .menu-item h5 {
        font-size: 0.9rem;
        margin-top: 10px;
        color: #f8f9fa;
        text-align: center;
        line-height: 1.2rem;
        max-height: 2.4rem; 
        overflow: hidden; 
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
    }
    .menu-item p {
        font-size: 0.85rem;
        color: #cccccc; 
        margin-top: 5px;
        text-align: center;
        line-height: 1.1rem;
        max-height: 2.2rem; 
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
    }

    .menu-item img {
        width: 50px;
        height: auto;
        margin-bottom: 10px; 
        border-radius: 5px;
    }


    .navbar-nav .nav-item {
        position: relative;
        width: 100%;
    }

    .navbar-nav .dropdown-section {
        position: static;
        width: 100%;
        background-color: #343a40;
        padding: 0;
        margin: 0;
        text-align: left;
        box-shadow: none;
        border-top: 1px solid #6c757d;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    }

    .section-link .nav-link {
        color: #a5cd41;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-link {
        color: #a5cd41 !important;
    }
    .nav-link:hover {
        color: #fff !important;
    }
    .caret {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 2px;
        vertical-align: middle;
        border-top: 4px solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        transition: transform .2s;
    }

    .section-link[aria-expanded="true"] .caret {
        transform: rotate(180deg);
    }

    .dropdown-section {
        display: none; 
        transition: all 0.3s ease; 
    }

    .dropdown-section.show {
        display: block; 
    }
    .navbar-nav .nav-item {
        position: relative;
        width: 100%;
    }

    .navbar-nav .dropdown-section {
        position: static;
        width: 100%;
        background-color: #343a40; 
        padding: 10px 0; 
        margin: 0;
        text-align: center; 
        box-shadow: none;
        border-top: 1px solid #6c757d;
    }

    .menu-item p {
        display: none; 
    }
    .dropdown-section {
        background-color: #ffffff; 
    }
    .navbar {
        background-color: #343a40; 
    }
    .game-info-bar {
        text-align: center;
        flex-direction: column;
    }

    .game-cover {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .game-details {
        text-align: left;
        width: 100%;
    }
}
.gameSpecs{
    margin-right: 1em;
    display: contents;
}
@media (max-width: 450px) {
    .gameSpecs{
        display: none;
    }

}

@media (min-width: 992px) {
    .logo-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        background-color: #fff;
        border-radius: 20%;
        box-shadow: 7px 4px 20.5px rgba(0, 0, 0, 0.6);
        padding: 10px;
        position: absolute;
        top: -16px;
        z-index: 10;
    }
    .navbar {
        background-color: #f8f9fa; 
    }
    .caret {
        display: none;
    }
    .section-link:hover .dropdown-section,
    .section-link:focus .dropdown-section {
        display: block;
    }
    .caret {
        display: none;
    }
    .dropdown-section .menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #games-section {
        background-color: #b0e57c; 
    }

    #presale-section {
        background-color: #f9c74f; 
    }

    #future-section {
        background-color: #90cbe8; 
    }

    #digital-section {
        background-color: #c9b6f0;
    }

    #cart-section {
        background-color: #55ba64;
    }
    .section-divider {
        position: relative;
        height: 30px; 
        overflow: hidden;
        margin: 0 -15px; 
    }

    .section-divider::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background-color: #b0cb27; 
        z-index: 0;
        transform: skewY(-4deg); 
    }

    .section-divider::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background-color: #ffffff; 
        z-index: 1;
        transform: skewY(4deg); 
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    padding: 15px;
    z-index: 9999;
    display: none; 
}

.cookie-banner a {
    color: #a5cd41;
    text-decoration: underline;
}

.cookie-banner button {
    margin-left: 15px;
}
.accordion-button {
    background-color: #007bff; 
    color: white; 
    transition: background-color 0.3s ease;
}
.accordion-button:not(.collapsed) {
    background-color: #0056b3; 
    color: white; 
}
.accordion-item {
    border: 1px solid #dee2e6; 
    border-radius: 0.5rem; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.accordion-body {
    background-color: white; 
    border-radius: 0 0 0.5rem 0.5rem; 
}
.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em;
    position: relative;
}

/* Tooltip styling */
.card-title:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translateY(5px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.card-title:hover::after {
    opacity: 1;
    transform: translateY(0);
}


/* ===== Nav refresh (proposta approvata) — desktop ===== */
@media (min-width: 992px) {
    .navbar.bg-dark {
        background-color: #212529 !important;
        border-bottom: 3px solid #a5cd41;
        box-shadow: 0 6px 22px -14px rgba(0, 0, 0, .6);
        padding-top: 10px;
    }
    .navbar-nav.mx-auto { gap: 8px; align-items: flex-end; }

    /* Tab "a cartella" */
    .section-link {
        margin: 0 0 0 4px;
        padding: 0;
        top: 1px;
        border-radius: 14px 14px 0 0;
        border: 1px solid transparent;
        border-bottom: none;
        transition: background-color .18s ease;
    }
    .section-link .nav-link {
        font-family: 'Poppins', system-ui, sans-serif;
        font-weight: 600;
        font-size: 1.02rem;
        color: #243016;
        padding: 11px 20px;
        display: flex;
        align-items: center;
        gap: 9px;
        border-radius: 14px 14px 0 0;
    }
    .section-link .nav-link i { transition: color .18s; }

    /* colori per sezione (tab piene sulla barra scura, come prima ma rifinite) */
    #games-section   { background-color: #b0e57c; border-color: #9ed766; }
    #presale-section { background-color: #f9c74f; border-color: #f0b429; }
    #future-section  { background-color: #90cbe8; border-color: #6fbbdf; }
    #digital-section { background-color: #c9b6f0; border-color: #b49fe4; }
    #games-section .nav-link,
    #presale-section .nav-link,
    #future-section .nav-link,
    #digital-section .nav-link { color: #243016; }
    #games-section   .nav-link i { color: #3d6b1e; }
    #presale-section .nav-link i { color: #8a6410; }
    #future-section  .nav-link i { color: #1e6d94; }
    #digital-section .nav-link i { color: #5a3fa0; }
    #games-section:hover,   #games-section:focus-within   { background-color: #9ada5f; }
    #presale-section:hover, #presale-section:focus-within { background-color: #f5bd33; }
    #future-section:hover,  #future-section:focus-within  { background-color: #77c0e2; }
    #digital-section:hover, #digital-section:focus-within { background-color: #bca6ec; }

    /* Cart come pulsante a destra */
    #cart-section { background: transparent; margin-left: 8px; }
    #cart-section .nav-link {
        background: #3fae5a;
        color: #fff;
        border-radius: 12px;
        padding: 10px 18px;
        box-shadow: 0 8px 18px -8px rgba(63, 174, 90, .8);
    }
    #cart-section .nav-link:hover { background: #37a052; border-radius: 12px; color: #fff; }
    #cart-section #cart-count { background: #fff; color: #3fae5a; }

    /* Pannello a tendina — colore della sezione + icone ripetute (richiama la sezione aperta) */
    .navbar-nav .dropdown-section {
        padding: 0 !important;
        box-shadow: 0 22px 40px -24px rgba(30, 45, 15, .55);
        border-top: 4px solid #a5cd41;
    }
    #games-submenu   { background-color: #eef7de; }
    #presale-submenu { background-color: #fdf3d9; }
    #future-submenu  { background-color: #e7f3fa; }
    .navbar-nav .dropdown-section .row {
        max-width: 1600px;
        margin: 0 auto;
        padding: 24px 18px 28px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    /* Card copertina — una sola riga sugli schermi grandi */
    .dropdown-section .menu-item {
        flex: 0 0 auto;
        width: 140px;
        margin: 0;
        padding: 8px;
        border: 1px solid #e8ece2;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 12px -6px rgba(30, 45, 15, .28);
        overflow: hidden;
        transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s;
    }
    .dropdown-section .menu-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 26px -12px rgba(30, 45, 15, .45);
        border-color: #a5cd41;
        background: #fff;
    }
    .dropdown-section .menu-item img {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 9px;
        margin-bottom: 8px;
        transition: transform .3s;
    }
    .dropdown-section .menu-item:hover img { transform: scale(1.04); }
    .dropdown-section .menu-item h5 {
        font-family: 'Poppins', system-ui, sans-serif;
        font-weight: 600;
        font-size: .9rem;
        line-height: 1.25;
        color: #243016;
        height: auto !important;
        min-height: 2.4rem;
        margin: 0;
        padding: 2px 4px 4px;
    }
}


/* ===== uplay.it edizioni: colori del marchio (rosso #E4322B, blu #1B2A49, giallo #F5C242) ===== */
.navbar { border-bottom-color: #E4322B; }
.navbar-dark .navbar-nav .nav-link:hover { background-color: #E4322B; }
.cookie-banner a { color: #F5C242; }
.logo-desktop { margin-top: -18px; }
@media (max-width: 991.98px) {
    .nav-link { color: #F5C242 !important; }
    .navbar-brand span { color: #fff; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; }
}
@media (min-width: 992px) {
    .navbar.bg-dark { border-bottom: 3px solid #E4322B; }
    #games-section { background-color: #F5C242; border-color: #e0ab2a; }
    #games-section:hover, #games-section:focus-within { background-color: #f0b62a; }
    #games-section .nav-link i { color: #8a5a00; }
    #shop-link { background-color: #9fd3f0; border-color: #7cc1e6; }
    #shop-link .nav-link { color: #243016; }
    #shop-link .nav-link i { color: #1e6d94; }
    #shop-link:hover, #shop-link:focus-within { background-color: #86c8ec; }
    #cart-section .nav-link { background: #E4322B; box-shadow: 0 8px 18px -8px rgba(228, 50, 43, .8); }
    #cart-section .nav-link:hover { background: #c92a24; }
    #cart-section #cart-count { color: #E4322B; }
    .navbar-nav .dropdown-section { border-top-color: #F5C242; }
    #games-submenu { background-color: #fff7e0; }
    .dropdown-section .menu-item:hover { border-color: #E4322B; }
    .section-divider::before { background-color: #E4322B; }
}

/* ===== Navbar: barra piatta con logo libero (niente tab "a cartella") ===== */
@media (min-width: 992px) {
    .logo-circle { background: transparent; box-shadow: none; padding: 0; width: auto; height: auto; top: -22px; }
    .logo-desktop { height: 104px; margin-top: 0; position: static; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
    .navbar.bg-dark { background-color: #1B2A49 !important; border-bottom: 3px solid #E4322B; padding-top: 14px; padding-bottom: 12px; }
    .navbar-nav.mx-auto { gap: 6px; align-items: center; }
    .section-link, #games-section, #presale-section, #future-section, #shop-link { background: transparent !important; border: none !important; border-radius: 8px; top: 0; margin: 0; }
    .section-link .nav-link, #games-section .nav-link, #shop-link .nav-link { color: #fff !important; border-radius: 8px; padding: 10px 16px; }
    .section-link .nav-link i, #games-section .nav-link i, #shop-link .nav-link i { color: #F5C242 !important; }
    .section-link:hover, .section-link:focus-within, #games-section:hover, #shop-link:hover { background: rgba(255,255,255,.08) !important; }
    #cart-section .nav-link { background: #E4322B; padding: 10px 18px; }
    .section-divider { display: none; }
    .navbar-nav .dropdown-section { border-top: 3px solid #F5C242; }
}
@media (max-width: 991.98px) {
    .navbar { background-color: #1B2A49 !important; }
    .logo-mobile { height: 44px; }
}


/* ===== Pannello giochi (menu a click) ===== */
.menu-caret { font-size: .7rem; margin-left: 4px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-caret { transform: rotate(180deg); }
.games-panel { background: #fff; color: #1B2A49; box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); border-bottom: 3px solid #F5C242; }
.games-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e8ebf1; }
.games-panel-head strong { font-family: 'Poppins', system-ui, sans-serif; font-size: 1.1rem; }
.games-panel-head strong span { color: #6b7590; font-weight: 500; }
.games-panel-head a { color: #E4322B; font-weight: 600; text-decoration: none; }
.games-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 18px; }
.games-list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: #1B2A49; }
.games-list a:hover { background: #fff7e0; color: #E4322B; }
.games-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.games-list span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.games-list b { font-weight: 600; font-size: .92rem; }
.games-list small { color: #6b7590; font-size: .75rem; }
@media (min-width: 992px) {
    .navbar { position: relative; }
    .games-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 1040; }
}
@media (max-width: 991.98px) {
    .games-list { grid-template-columns: 1fr; }
    .games-panel { border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-width: 575.98px) { .games-panel .container { padding-top: 12px !important; padding-bottom: 12px !important; } }

/* ===== Scheda gioco: sfondi bianchi e sezione descrizione ===== */
.game-info-bar, .game-content, .video-thumbnails, #shop-section { background-color: #fff !important; }
#shop-section .card { background: #fff; }
.shop-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 1.4rem; color: #1B2A49; margin-bottom: 18px; }
.shop-title::after { content: ""; display: block; width: 56px; height: 3px; background: #E4322B; margin: 8px auto 0; border-radius: 2px; }
#shop-section .btn-primary { background: #E4322B; border-color: #E4322B; }
#shop-section .btn-primary:hover { background: #c92a24; border-color: #c92a24; }
.game-story { background: #fff; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,.3); padding: 36px 32px; text-align: left; }
.story-kicker { display: inline-block; color: #E4322B; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.story-text h2 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #1B2A49; font-size: 1.8rem; margin-bottom: 18px; }
.story-text p { font-size: 1.05rem; line-height: 1.75; color: #2b3345; margin-bottom: 1rem; max-width: 68ch; }
.story-text p:first-of-type { font-size: 1.2rem; color: #1B2A49; font-weight: 500; }
.story-text ul, .story-text ol { line-height: 1.7; color: #2b3345; }
.story-figs figure { margin: 0 0 18px; }
.story-figs img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); cursor: zoom-in; transition: transform .2s; }
.story-figs img:hover { transform: scale(1.02); }
.story-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #e8ebf1; }
.story-facts div { background: #f4f5f9; border-radius: 10px; padding: 12px 14px; }
.story-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7590; font-weight: 700; margin-bottom: 2px; }
.story-facts dd { margin: 0; font-weight: 600; color: #1B2A49; }
.story-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.story-links a { text-decoration: none; color: #1B2A49; font-weight: 600; border: 2px solid #e8ebf1; border-radius: 999px; padding: 8px 16px; transition: all .2s; }
.story-links a:hover { border-color: #E4322B; color: #E4322B; }
.story-links i { color: #E4322B; margin-right: 4px; }
.footer-info i { color: #F5C242; }
@media (max-width: 767.98px) { .game-story { padding: 24px 18px; } .story-text h2 { font-size: 1.4rem; } .story-text p { font-size: 1rem; } }

/* ===== Scheda gioco: layout a due colonne ===== */
.sheet .sheet-gallery { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px -18px rgba(27,42,73,.6); }
.sheet .game-cover { min-height: 320px; }
@media (min-width: 992px) { .sheet .game-cover { min-height: 460px; } .sheet-gallery { position: sticky; top: 24px; } }
.sheet-details { background: #fff; border-radius: 14px; padding: 28px 30px; box-shadow: 0 10px 30px -18px rgba(27,42,73,.6); text-align: left; }
.sheet-kicker { display: inline-block; color: #E4322B; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.sheet-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #1B2A49; font-size: 2.2rem; line-height: 1.1; margin-bottom: 8px; }
.sheet-byline { color: #55607a; margin-bottom: 14px; }
.sheet-byline strong { color: #1B2A49; font-weight: 600; }
.sheet-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-chips li { background: #f4f5f9; border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: #1B2A49; }
.sheet-chips i { color: #E4322B; margin-right: 4px; }
.sheet-lead { font-size: 1.05rem; line-height: 1.65; color: #2b3345; }
.shop-box { margin-top: 22px; border: 2px solid #f1e3b8; background: #fffaf0; border-radius: 12px; padding: 18px 18px 12px; }
.shop-box .shop-title { text-align: left; font-size: 1.2rem; margin-bottom: 12px; }
.shop-box .shop-title::after { margin: 6px 0 0; }
.shop-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #f1e3b8; }
.shop-row:first-of-type { border-top: none; }
.shop-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: zoom-in; box-shadow: 0 4px 10px rgba(0,0,0,.15); flex: none; background: #fff; }
.shop-row-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.shop-row-info b { font-weight: 600; color: #1B2A49; line-height: 1.25; }
.shop-avail { font-size: .8rem; color: #2a9d5c; }
.shop-row.orderable .shop-avail { color: #b8860b; }
.shop-row.unavailable .shop-avail { color: #6b7590; }
.shop-row.unavailable img { filter: grayscale(1); opacity: .7; }
.shop-row-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.shop-row-buy strong { color: #E4322B; font-size: 1.1rem; }
.shop-row-buy .add-to-cart { background: #E4322B; color: #fff; border: none; font-weight: 600; }
.shop-row-buy .add-to-cart:hover { background: #c92a24; color: #fff; }
.shop-note { margin: 10px 0 0; font-size: .8rem; color: #6b7590; }
.shop-note i { color: #E4322B; }
.block-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #1B2A49; font-size: 1.3rem; text-align: left; margin-bottom: 14px; }
.sheet .image-thumbnails { justify-content: center; }
@media (max-width: 767.98px) {
    .sheet-details { padding: 20px 16px; }
    .sheet-title { font-size: 1.6rem; }
    .shop-row { flex-wrap: wrap; }
    .shop-row-buy { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; padding-left: 78px; }
}

/* ===== Footer ===== */
footer.site-footer { background: #1B2A49; color: #d8e0ee; padding: 44px 0 0; border-top: 4px solid #E4322B; text-align: left; }
.site-footer h4 { font-family: 'Poppins', system-ui, sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F5C242; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #F5C242; }
.footer-brand { font-family: 'Poppins', system-ui, sans-serif; font-size: 1.15rem; color: #fff; }
.footer-tag { color: #F5C242; font-size: .9rem; }
.footer-text { font-size: .92rem; line-height: 1.6; color: #b9c3d6; max-width: 360px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.footer-social a:hover { background: #E4322B; border-color: #E4322B; color: #fff; }
.footer-contact i { color: #E4322B; width: 18px; margin-right: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding: 16px 0; font-size: .85rem; color: #b9c3d6; }
.footer-bottom i { color: #F5C242; }
@media (max-width: 767.98px) { .shop-row-info { flex: 1 1 calc(100% - 78px); } }

/* ===== Scheda: contenuto ricco (testo + immagini dal vecchio sito / Mojito) ===== */
.story-text h2:not(:first-of-type), .story-text h3, .story-text h4, .story-text h5 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #1B2A49; margin: 28px 0 10px; }
.story-text h2:not(:first-of-type) { font-size: 1.45rem; padding-left: 12px; border-left: 4px solid #E4322B; }
.story-text h3 { font-size: 1.2rem; } .story-text h4, .story-text h5 { font-size: 1.05rem; }
.story-rich p { max-width: none; }
.story-text img { display: block; max-width: 100%; height: auto; margin: 22px auto; border-radius: 12px; box-shadow: 0 16px 32px -18px rgba(0,0,0,.55); }
.story-text img + img { margin-top: 12px; }
.story-ean { font-size: .78rem !important; color: #6b7590 !important; letter-spacing: .04em; margin: -8px 0 12px !important; }
.story-file { display: inline-block; margin: 6px 6px 6px 0; padding: 8px 14px; border-radius: 999px; background: #fff7e0; border: 1px solid #F5C242; color: #1B2A49; font-weight: 600; text-decoration: none; }
.story-file:hover { background: #F5C242; }
.story-text iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 22px auto; }
.story-text a { color: #E4322B; }
