html,
body {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

@font-face {
    font-family: 'ClashDisplay-Medium';
    src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'MANIC-MINER';
    src: url('../fonts/MANIC-MINER.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VT323';
    src: url('../fonts/VT323-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.page {
    width: 100%;
    position: relative;
    display: block;
    min-height: 600px;
    overflow: hidden;
}

.logo-center {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2000px;
    max-width: 100%;
    height: auto;
    z-index: 10;
    user-select: none;
}

.background-strip {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    z-index: 0;
    user-select: none;
}

.bg-logo {
    margin-bottom: 10vw;
}

.bg-libro {
    margin-bottom: 13vw;
}

.bg-sinossi {
    margin-bottom: 66vw;
}

.marquee-container {
    width: 100%;
    background-color: black;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: scroll-infinite 50s linear infinite;
}

.content {
    font-size: 16px;
    padding: 5px 0;
    font-family: 'ClashDisplay-Medium';
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.menu-bar {
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-logo {
    display: none;
}

.mobile-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 24px;
    height: 16px;
    padding: 0;
    z-index: 1000;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger .bar {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: black;
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
    left: 0;
}

.hamburger .bar:nth-child(1) {
    top: 0;
}

.hamburger .bar:nth-child(2) {
    top: 7px;
}

.hamburger .bar:nth-child(3) {
    top: 14px;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.menu-list li a {
    text-decoration: none;
    color: black;
    font-family: 'ClashDisplay-Medium';
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.menu-list li a:hover {
    color: gray;
}

.logo-caption {
    font-family: 'VT323';
    font-size: 5vw;
    font-weight: bold;
    color: white;
    letter-spacing: 4px;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    text-align: center;
}

.level-1 {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
}

.box {
    align-self: center;
    background-color: black;
    border: 0.5vw solid white;
    padding: 2.5vw;
    max-width: 75vw;
    display: block;
    white-space: normal;
    color: white;
    font-family: 'VT323';
    font-size: 2vw;
    line-height: 1.5vw;
}

.box p {
    width: 100%;
    margin: 0 0 1.5em 0;
}

.box p:last-child {
    margin-bottom: 0;
}

.text-red {
    color: red;
}

.text-green {
    color: #00FF00;
}

.retro-title {
    font-family: 'VT323', monospace;
    font-size: 8vw;
    line-height: 1;
    color: white;
    user-select: none;
    z-index: 10;
    font-weight: bold;
    letter-spacing: 0.06em;
    word-spacing: -0.06em;
    margin-top: -2.5vw;
    margin-bottom: -1.5vw;
    display: inline-block;
    transform: translateX(-0.5vw) scaleX(1.15);
    transform-origin: left center;
}

.lvl-number {
    font-size: 0.6em;
}

.retro-title .up {
    display: inline-block;
    transform: translateY(-0.15em);
}

.sinossi {
    margin-left: 5vw;
    margin-bottom: 5vw;
    color: black;
}

.autore {
    margin-left: 5vw;
    position: absolute;
    margin-bottom: 4vh;
}

.level-2 {
    position: absolute;
    top: 63.5%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.sinossi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    margin-left: 5vw;
    margin-right: 5vw;
    width: 90vw;
    max-width: 90vw;
    align-self: flex-start;
}

.sinossi-grid .box {
    max-width: 100%;
    width: 100%;
    align-self: start;
}

.desc-uketsu {
    margin-left: 5vw;
    max-width: 60vw;
    display: block;
    white-space: normal;
    color: white;
    font-family: 'VT323';
    font-size: 1.75vw;
    line-height: 1.6vw;
    margin-top: 15vw;
    min-width: 0;
}

.desc-uketsu p {
    width: 100%;
    margin: 0 0 1.5em 0;
}

.desc-uketsu p:last-child {
    margin-bottom: 0;
}

.uketsu {
    width: 45vw;
    margin-left: auto;
    margin-right: 3vw;
    z-index: 10;
    user-select: none;
    flex-shrink: 0;
    margin-top: 3vw;
}

.button {
    width: 26%;
    max-width: 100%;
    height: auto;
    z-index: 1;
    user-select: none;
    position: absolute;
    top: 87%;
    left: 5%;
}

.btn-text {
    position: absolute;
    top: 90%;
    left: 7%;
    z-index: 2;
    font-family: 'MANIC-MINER';
    font-size: 2vw;
    letter-spacing: 0.1vw;
    white-space: nowrap;
    pointer-events: none;
}

.button-container {
    color: black;
    z-index: 10;
    text-decoration: none;
}

.button-container:hover {
    color: #00FF00;
    transition: color 0.2s ease-in-out;
}

.libro {
    margin-left: 48vw;
    position: absolute;
    margin-bottom: 4vh;
}

.level-3 {
    position: absolute;
    top: 88%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
}

.desc-libro {
    margin-left: 9.5vw;
    max-width: 50vw;
    display: block;
    white-space: normal;
    color: white;
    font-family: 'VT323';
    font-size: 1.8vw;
    line-height: 1.7vw;
    margin-top: 15vw;
    min-width: 0;
}

.desc-libro p {
    width: 100%;
    margin: 0 0 1.5em 0;
}

.desc-libro p:last-child {
    margin-bottom: 0;
}

.book-grid-container {
    position: absolute;
    top: 44.5%;
    left: 10.5vw;
    width: 79vw;
    transform: translateY(-50%);
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
}

.book-grid-box {
    border: 0.3vw solid white;
    background-color: black;
    color: white;
    font-family: 'VT323';
    padding: 1.5vw;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1.35 / 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.book-grid-box:hover {
    background-color: red;
    cursor: pointer;
}

.box-stat {
    font-size: 4.5vw;
    line-height: 1;
    margin-bottom: 0.5vw;
    text-transform: none;
}

.box-label {
    font-size: 2.3vw;
    line-height: 1.1;
    text-transform: none;
}

.quote-char {
    font-size: 1.5vw;
}

.quote-author {
    display: block;
    margin-top: 1.5vw;
}

.book {
    width: 28vw;
    margin-left: 10.5vw;
    z-index: 10;
    user-select: none;
    flex-shrink: 0;
    margin-top: 2vw;
    box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.7);
}

.button2 {
    width: 20%;
    max-width: 100%;
    height: 12%;
    z-index: 1;
    user-select: none;
    position: absolute;
    top: 83%;
    left: 48%;
}

.btn2-text {
    position: absolute;
    top: 86%;
    left: 51%;
    z-index: 2;
    font-family: 'MANIC-MINER';
    font-size: 2vw;
    letter-spacing: 0.1vw;
    white-space: nowrap;
    pointer-events: none;
}

.button2-container {
    color: black;
    z-index: 10;
    text-decoration: none;
}

.button2-container:hover {
    color: red;
    transition: color 0.2s ease-in-out;
}

#libro {
    scroll-margin-top: 8vh;
}

#sinossi {
    scroll-margin-top: 10vh;
}

#autore {
    scroll-margin-top: 3vh;
}

@media (max-width: 768px) {


    html {
        scrollbar-width: none;
    }

    html::-webkit-scrollbar {
        display: none;
    }

    .retro-title {
        font-size: 13vw;
    }

    .menu-bar {
        padding: 10px 20px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
        background-color: transparent;
    }

    .menu-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 1;
        border-bottom: 1px solid #eee;
    }

    .mobile-logo {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .mobile-logo img {
        height: 45px;
        width: auto;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .menu-list {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 35px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: black;
        z-index: -1;
        padding: 25vh 0 0 0;
        border: none;
        box-shadow: none;

        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, visibility 0.5s;
    }

    .menu-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-list li {
        width: 100%;
        text-align: center;
    }

    .menu-list li a {
        font-family: 'ClashDisplay-Medium';
        font-size: 30px;
        color: white;
        display: block;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

    .menu-list li a:hover,
    .menu-list li a:active {
        color: red;
    }

    .hamburger.active .bar:nth-child(1) {
        top: 7px;
        transform: rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        top: 7px;
        transform: rotate(-45deg);
    }

    .sinossi {
        margin-bottom: 2vw;
        transition: margin-bottom 0.2s ease-in-out;
    }

    .logo-center {
        width: 140%;
        max-width: 140%;
        top: 36vw;
    }

    .logo-caption {
        top: 63vw;
        font-size: 8vw;
    }

    .level-1 {
        position: absolute;
        top: 95vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: none;
    }

    .level-1 .book {
        order: 1;
        width: 48vw;
        margin-left: 0;
        margin-top: 0;
        align-self: center;
    }

    .level-1 .libro {
        order: 2;
        position: static;
        margin-left: 6vw;
        margin-top: 30vw;
        align-self: flex-start;
    }

    .level-1 .desc-libro {
        order: 3;
        width: 88vw;
        max-width: 88vw;
        margin-left: 6vw;
        margin-top: 0vw;
        font-size: 4.5vw;
        line-height: 1.2;
        align-self: flex-start;
    }

    .level-1 .desc-libro br {
        content: " ";
        display: inline;
    }

    .level-1 .desc-libro br+br {
        display: block;
        content: "";
        margin-top: 15px;
    }

    .level-1 .button2-container {
        order: 4;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50vw;
        height: auto;
        margin-top: 8vw;
        align-self: center;
    }

    .level-1 .button2 {
        position: static;
        width: 100%;
        height: auto;
    }

    .level-1 .btn2-text {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 5vw;
    }

    .bg-libro {
        margin-top: 35vw;
    }

    .book-grid-container {
        position: absolute;
        top: 350vw;
        left: 0;
        width: 100%;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6vw;
    }

    .book-grid-box {
        width: 60vw;
        height: auto;
        aspect-ratio: 1.3 / 1;
        padding: 4vw 4vw;
        border: 1.5vw solid white;
    }

    .book-grid-box br {
        content: " ";
        display: inline;
    }

    .box-stat {
        font-size: 12vw;
        margin-bottom: 2vw;
        text-transform: none;
    }

    .box-label {
        font-size: 5vw;
        text-transform: none;
    }

    .quote-char {
        font-size: 4vw;
    }

    .quote-author {
        display: block;
        margin-top: 5vw;
    }

    .level-2 {
        position: absolute;
        top: 555vw;
        width: 100%;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .level-2 .sinossi {
        margin-left: 6vw;
        align-self: flex-start;
    }

    .sinossi-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6vw;
        width: 88vw;
        margin-left: 6vw;
        margin-right: 6vw;
        align-self: flex-start;
        margin-top: 5vw;
    }

    .sinossi-grid .box {
        max-width: 100%;
        width: 100%;
        font-size: 4.8vw;
        line-height: 1.2;
        border: 0.8vw solid white;
        padding: 4vw;
        align-self: stretch;
    }

    .sinossi-grid .box br {
        content: " ";
        display: inline;
    }

    .sinossi-grid .box br+br {
        display: block;
        content: "";
        margin-top: 15px;
    }

    .level-3 {
        position: absolute;
        top: 772vw;
        width: 100%;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .level-3 .autore {
        position: static;
        margin-left: 6vw;
        margin-top: 8vw;
        align-self: flex-start;
    }

    .level-3 .desc-uketsu {
        max-width: 88vw;
        width: 88vw;
        margin-left: 6vw;
        margin-top: 0vw;
        font-size: 4.5vw;
        line-height: 1.2;
        align-self: flex-start;
    }

    .level-3 .desc-uketsu br {
        content: " ";
        display: inline;
    }

    .level-3 .desc-uketsu br+br {
        display: block;
        content: "";
        margin-top: 15px;
    }

    .level-3 .button-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50vw;
        height: auto;
        margin-top: 8vw;
        align-self: center;
    }

    .level-3 .button {
        position: static;
        width: 100%;
        height: auto;
    }

    .level-3 .btn-text {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 4vw;
    }

    .level-3 .uketsu {
        width: 70vw;
        margin-left: auto;
        margin-right: auto;
        margin-top: 8vw;
        align-self: center;
    }

    .bg-sinossi {
        margin-top: 325vw;
        margin-bottom: 250vw;
    }
}


.cc-footer-middle-main {
    background-color: #000;
    color: #ffffff;
    font-family: "VT323", monospace;
    font-size: 2vw;
    line-height: 1;
    letter-spacing: 0.08vw;
    padding: 40px 20px;
    border-top: 1px solid red;
}

.cc-footer-middle-main * {
    box-sizing: border-box;
}

.cc-middle-main-row {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.cc-middle-main-col--logo {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cc-content-logo .cc-logo {
    max-width: 100px;
    height: auto;
    display: block;
    user-select: none;
}

.cc-content-social {
    display: flex;
    gap: 15px;
}

.cc-social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    user-select: none;
}

.cc-middle-main-col--menu {
    flex: 1;
}

.cc-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.cc-footer-col {
    flex: 1;
    min-width: 160px;
}

.cc-footer-title {
    display: block;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.cc-content-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-item {
    margin-bottom: 8px;
}

.cc-item-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.cc-item-link:hover {
    color: #fff;
}

@media (max-width: 768px) {

    .cc-footer-middle-main {
        padding: 20px 15px;
    }

    .cc-middle-main-row {
        gap: 25px;
        flex-direction: column;
    }

    .cc-social-icon {
        width: 32px;
        height: 32px;
    }

    .cc-middle-main-col--logo {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid #444;
        padding-bottom: 15px;
    }

    .cc-content-logo .cc-logo {
        max-width: 90px;
    }

    .cc-footer-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
    }

    .cc-footer-col {
        min-width: 0;
        margin-bottom: 0;
    }

    .cc-footer-title {
        font-size: 18px;
        margin-bottom: 10px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cc-item {
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .cc-item-link {
        font-size: 16px;
        color: #bbb;
    }
}