@font-face {
    font-family: Felina;
    src: url("Felina.otf");
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

a {
    width: fit-content;
    color: var(--yellow);
}

a:visited {
    color: var(--yellow);
}

html {
    scroll-behavior: smooth;
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    background-image: url("img/BG.jpg");
    background-size: 100%;
    background-color: black;
    font-family: Felina;
    color: var(--yellow);

}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
    10. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

:root {
    --grey: #242323;
    --yellow: #EACE6E;
}

.lowercase {
    text-transform: none;
}





.label-caps {
    text-transform: uppercase;
    height: fit-content;
    text-decoration: none;
}

.label-caps:hover {
    text-decoration: underline;
}

h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
}

h4 {
    font-size: 1.6rem;
    margin: 2rem 0;
}

p {
    font-size: 1.3rem;
}

button {
    width: fit-content;
    background-color: var(--yellow);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    border: 0;
    cursor: pointer;
    color: black;
}

button:hover {
    background-color: white;
}






.hidden {
    display: none !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background-color: var(--grey);
    z-index: 4;
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    height: 3rem;
    top: 1rem;
}

.header-anchors {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    position: absolute;
    right: 5%;
    list-style-type: none;
    /* Remove bullets */
    padding: 0;
    /* Remove padding */
    margin: 0;
    /* Remove margins */
    height: 100%;
    align-items: center;
}

.header-hamburger {
    height: 2rem;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translate(0, -50%);
    display: none;
    cursor: pointer;
}






.splash {
    margin-top: 5rem;
    position: relative;
    width: 100%;
}

.splash-bg {
    width: 100%;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5rem;
}

.splash-icon {
    width: 6rem;
    height: fit-content;
    object-fit: contain;
}

.splash-center {
    position: relative;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    width: 36%;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.splash-center h2 {
    width: 85%;
}

.splash-arrow-container {
    width: 5rem;
    height: 5rem;
    border: 1px solid var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100rem;
}

.splash-arrow {
    width: 2rem;
    animation-name: arrowMove;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.splash-title {
    position: absolute;
    top: 50%;
    transform: translate(0, -80%);
    width: 75%;
}

@keyframes arrowMove {
    0% {
        transform: translate(0px, 0px);
    }

    50% {
        transform: translate(0px, 5px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}




.sentences {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.sentence {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5rem 12rem;
    gap: 4rem;
}

.sentence-image {
    max-width: 80%;
}

.text-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sentence-cornice {
    max-width: 70%;
    margin-top: 1rem;
}

.separator-A {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.separator-A>img {
    max-width: 30%;
}

.separator-B {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.separator-B>img {
    max-width: 40%;
}






.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10rem 5rem;
    gap: 5rem;
}

.cards-container {
    display: flex;
    flex-direction: row;
}

.cards>.text-column {
    margin-left: 7rem;
}

.card {
    width: 30%;
    border-radius: 1rem;
    box-shadow: 0px 5px 16px rgb(0, 0, 0);
}

.card:nth-child(1) {
    transform: rotate(-5deg);
}

.card:nth-child(2) {
    transform: rotate(3deg) translate(-3rem, 1.5rem);
}

.card:nth-child(3) {
    transform: rotate(-1deg) translate(-8rem);
}

.card:nth-child(4) {
    transform: rotate(5deg) translate(-12rem);
}





.test {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    padding: 5rem 0;
}

.test-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.test-cornice {
    width: 80%;
}

.test-cornice:last-child {
    transform: rotate(180deg);
}

.test-window {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-embed {
    width: 70%;
}




.infinite-scroller {
    width: 100%;
    overflow: hidden;
    height: 3rem;
    padding: 5rem 0;
}

.scroller-middle {
    width: max-content;
}

.scroller-container {
    display: inline-flex;
    flex-direction: row;
    gap: 2rem;
    animation: scrollText 20s infinite linear;
    flex-shrink: 0;
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }

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

.scroller-label {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.scroller-image {
    height: 2.2rem;
}





.circles {
    padding: 2.5rem;
    position: relative;
}

.circles-text {
    position: absolute;
    width: 30%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -38%);
    text-align: center;
}

.circles-text>.text-column {
    align-items: center;
}




.evento {
    padding: 5rem 12rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.evento-title {
    width: 100%;
    text-align: center;
}

.evento-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.evento-info>.text-column {
    margin-top: 5rem;
}




.libro {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.libro-info {
    padding: 0 20%;
    text-align: center;
}


.libro-info>.text-column {
    align-items: center;
}

.libro-mockups {
    position: relative;
    overflow: hidden;
}

.mockups-container {
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease-in-out;
    align-items: stretch;
}

.mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    flex-shrink: 0;
    justify-content: end;
    text-align: center;
}

.mockup-double {
    width: 100%;
    display: flex;
    flex-shrink: 0;
}

.mockup-sidenote {
    width: 50%;
    flex-shrink: 0;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.mockup-sidenote>p {
    font-size: 0.9rem;
}

.mockup.double {
    width: 100%;
}

.mockup-image {
    max-height: 500px;
    padding: 0 4rem;
}

.carousel-btn {
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border: 0;
    width: 2rem;
    cursor: pointer;
}

.carousel-btn.disabled {
    opacity: 0.4;
    cursor: default;
}

.carousel-btn:hover {
    background-color: #24232300;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0rem;
    transform-origin: center;
    transform: translate(0, -50%) rotate(180deg);
}




footer {
    background-image: url(img/Footer_BG.png);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 5rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 3rem;
}

.footer-legal {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footer-sitemap>.header-anchors {
    align-items: end;
}

.legal-rizzoli {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rizzoli-logo {
    width: 10rem;
}

.legal-text {
    color: white;
    font-size: 0.9rem;
}

.legal-text>a {
    margin-left: 1rem;
    color: white;
}



.cookie {
    position: fixed;
    bottom: 5rem;
    left: 5rem;
    width: 50%;
    background-color: #3d1818;
    border: 1px solid var(--yellow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 25px;
    z-index: 2;
}

.cookie-text {
    font-size: 1rem;
}

.cookie-title {
    font-size: 1.6rem;
}

.cookie-buttons {
    margin-top: 1rem;
}




.mainmenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}



.mainmenu-anchors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style-type: none;
    align-items: center;
    padding: 0;
}






.privacy-container {
    padding: 5rem 25rem;
}


.wall {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #242323;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}


@media screen and (min-width: 1900px) {

    .splash-title {
        width: 65%;
        top: 55%;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 2rem;
    }

    p {
        font-size: 1.5rem;
    }

    .scroller-label {
        font-size: 2rem;
    }

    button {
        font-size: 1.5rem;
    }

    .cards>.text-column {
        padding-right: 7rem;
    }

    .evento-info>.text-column {
        width: 650px;
    }
}


@media screen and (max-width: 1500px) {
    .splash-title {
        font-size: 1.3rem;
        width: 65%;
        ;
    }
}



@media screen and (max-width: 1200px) {
    header>.header-anchors {
        display: none;
    }

    .header-hamburger {
        display: block;
    }

    .splash-center {
        width: 44%;
    }

    .splash-overlay {
        padding: 1rem 5rem;
    }

    .circles-text {
        transform: translate(-50%, -42%);
    }

    .circles-text>.text-column {
        transform-origin: center;
        transform: scale(0.8);
    }

    .card {
        width: 35%;
    }

    .evento-info>.text-column {
        margin-top: 1rem;
    }

    .circles-text {
        width: 35%;
    }
}


@media screen and (max-width: 1000px) {
    h4 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .splash-title {
        margin-top: 3rem;
    }

    .splash-arrow-container {
        width: 3.5rem;
        height: 3.5rem;
    }

    .splash-arrow {
        width: 1.5rem;
    }

    .sentences {
        gap: 1rem;
    }

    .sentence {
        padding: 5rem;
        gap: 3rem;
    }

    .separator-A>img {
        max-width: 50%;
    }

    .separator-B>img {
        max-width: 60%;
    }

    .cards {
        padding: 5rem;
    }

    .cards>.text-column {
        margin-left: 0;
    }

    .card {
        width: 40%;
    }

    .circles {
        padding: 6rem 0;
        overflow: hidden;
    }

    .circles-image {
        transform: scale(1.25);
    }

    .circles-text>.text-column {
        transform: scale(0.9);
    }

    .circles-text {
        width: 35%;
    }

    .test-text {
        width: 70%;
    }

    .test-cornice {
        width: 90%;
    }

    .test-embed {
        width: 90%;
    }

    .evento {
        padding: 2.5rem 5rem;
    }

    .libro-info {
        padding: 0 7.5%;
    }

    footer {
        gap: 5rem;
    }

    .footer-sitemap>.header-anchors {
        flex-direction: column;
        gap: 0.5rem;
        right: 0;
    }

    .carousel-btn {
        width: 1.4rem;
    }

}



@media screen and (max-width: 850px) {

    .circles-image {
        transform: scale(1.5);
    }

    .circles-text {
        width: 45%;
    }

    .sentence {
        padding: 5rem 2.5rem;
        gap: 2rem;
    }

    .splash-icon {
        width: 4rem;
    }

    .splash-center {
        width: 65%;
    }

    .splash {
        height: 600px;
    }

    .mockup-image {
        padding: 0 2rem;
    }

    .mockup {
        width: 100%;
        justify-content: center;
    }

    .mockup-double {
        flex-direction: column;
    }


    .mockup-sidenote {
        width: 100%;
        padding: 2.5rem;
        gap: 1rem;
        text-align: center;
    }


}




@media screen and (max-width: 600px) {

    .splash-icon {
        display: none;
    }

    .splash-center {
        width: 100%;
        gap: 8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    .splash {
        height: fit-content;
    }

    .splash-bg {
        height: 600px;
        object-fit: cover;
    }

    .header-logo {
        height: 2rem;
    }

    header {
        height: 4rem;
    }

    .header-hamburger {
        height: 1.5rem;
    }

    .splash {
        margin-top: 4rem;
    }

    .splash-overlay {
        padding: 1rem 2.5rem;
    }

    .sentence {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .sentence:nth-of-type(2) {
        flex-direction: column-reverse;
    }

    .sentence-cornice {
        display: none;
    }

    .separator-A>img {
        max-width: 80%;
    }

    .separator-B>img {
        max-width: 95%;
    }

    .cards {
        display: flex;
        flex-direction: column-reverse;
        padding: 5rem 2.5rem;
        text-align: center;
        overflow: hidden;
    }

    .cards-container {
        transform: translate(-4rem);
    }

    .card {
        width: 50%;
    }

    .cards>.text-column {
        align-items: center;
    }

    .circles {
        height: 550px;
        padding: 0;
    }

    .circles-image {
        transform-origin: center top;
        transform: scale(2.8) translate(-2px, 13px);
    }

    .circles-text {
        transform: translate(-50%, -48%);
        width: 76%;
    }

    .test-text {
        width: 85%;
    }


    .test-cornice {
        width: 100%;
        height: 110px;
        object-fit: cover;
    }

    .evento {
        padding: 2.5rem;
    }

    .evento-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .evento-info>.text-column {
        align-items: center;
    }

    .libro {
        padding: 5rem 2.5rem;
    }

    .libro-info {
        padding: 0;
    }

    .footer-social {
        align-items: start;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

    .rizzoli-logo {
        width: 6rem;
    }

    .footer-sitemap>.header-anchors {
        position: relative;
        align-items: start;
    }

    footer {
        background-size: cover;
        padding: 5rem 2rem;
    }

    .cookie {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translate(-50%, 0);
        width: 90%;
        padding: 1rem;
        gap: 0.5rem;
        text-align: center;
    }

    .cookie-text {
        font-size: 1rem;
    }

    .cookie-title {
        font-size: 1.5rem;
    }

    .cookie-buttons {
        margin-top: 0.5rem;
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .privacy-container {
        width: 100vw;
        padding: 2.5rem;
    }

    .splash-title {
        margin-top: 1rem;
    }

    .splash-arrow-container {
        margin-top: -7rem;
    }
    body {
        background-size: 200%;
        background-position: center;
    }
}