/* -------------------------------------------------------------------------------- */
/* ! RESET */
/* -------------------------------------------------------------------------------- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

li{
    list-style: none;
}


/* -------------------------------------------------------------------------------- */
/* ! FONTS */
/* -------------------------------------------------------------------------------- */

@font-face {
  font-family: 'Gambarino-Regular';
  src: url('../fonts/Gambarino-Regular.woff2') format('woff2'),
       url('../fonts/Gambarino-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'PPRightGroteskMono-Regular';
  src: url('../fonts/PPRightGroteskMono-Regular.woff2') format('woff2'),
       url('../fonts/PPRightGroteskMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------------- */
/* ! VARIABILI PERSONALI */
/* -------------------------------------------------------------------------------- */
:root{
/* TYPOGRAPHY */
    --font1: 'Gambarino-Regular', sans-serif;
    --font2: 'PPRightGroteskMono-Regular', sans-serif;
/* SPACING */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
/* COLORS */
    --accent: #D5FE00;
    --light: #EDEDED;
    --dark: #000;
}

/* -------------------------------------------------------------------------------- */
/* ! UTILIY */
/* -------------------------------------------------------------------------------- */
    html {
        scroll-behavior: smooth;
    }
    
    .body{
        background-color: var(--light);
    }
    

/* -------------------------------------------------------------------------------- */
/* ! BASE E TIPOGRAFIA */
/* -------------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6{
    font-family: var(--font1);
}

p{
    font-family: var(--font2);
}

a{
    font-family: var(--font2);
    text-decoration: none;
    color: var(--dark);
}

/* -------------------------------------------------------------------------------- */
/* ! CONTAINER */
/* -------------------------------------------------------------------------------- */

 .container-nav {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--spacing-sm);
 }

  .main-content {
    max-width: 1440px;
    margin: 0 auto;
 }

 .footer{   
    max-width: 1440px;
    margin: 0 auto;
 }


/* -------------------------------------------------------------------------------- */
/* ! SITE NAV */
/* -------------------------------------------------------------------------------- */


.site-nav{
    padding: var(--spacing-sm);
    background-color: var(--accent);
    max-height: fit-content;
    position: fixed;
    z-index: 1000;
    width: 100%;
}

.site-nav__logo{
    display: flex;
    justify-content: center;
    grid-column: 1/2;
    align-items: center

}

.site-nav__logo img{
    height: 25px;
}



.site-nav__menu{
    grid-column: 8/13;
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    align-items: center
}



.site-nav__menu a:hover{
    text-decoration: underline;
}

.site-nav__hamburger{
    display: none;
}

/* -------------------------------------------------------------------------------- */
/* ! HAMBURGER */
/* -------------------------------------------------------------------------------- */
.site-nav__hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 20px;
    justify-content: space-between;
    z-index: 1001;
    grid-column: 12/13;
    justify-self: end;
    align-self: center;
}

.site-nav__hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation quando attivo */
.site-nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.site-nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.site-nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Popup */
.site-nav__menu.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--light);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 80px 30px 30px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

.site-nav__menu.mobile-menu.active {
    transform: translateX(0);
}

.site-nav__menu.mobile-menu li {
    width: 100%;
    border-bottom: 2px solid var(--dark);
    padding: 15px 0;
}

.site-nav__menu.mobile-menu li:last-child {
    border-bottom: none;
    margin-top: 20px;
}

.site-nav__menu.mobile-menu a {
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
}

.site-nav__menu.mobile-menu a:hover {
    text-decoration: underline;
}

/* Overlay per chiudere il menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* -------------------------------------------------------------------------------- */
/* ! MAIN CONTENT */
/* -------------------------------------------------------------------------------- */

.main-content{
    background-color: var(--light);
    padding-top: 45px;
}

/* -------------------------------------------------------------------------------- */
/* ! BOOK */
/* -------------------------------------------------------------------------------- */

.book{
    margin: auto;
    background-color: var(--light);
    height: 100vh; 
    overflow: hidden;
}

.book-content{
    background-color: var(--light);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--spacing-md);
}
.book-content__cover{
    grid-column: 1/8;
}

.book-content__cover img{
    height: 100vh; 
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.book-content__text{
    grid-column: 8/13;
    gap: var(--spacing-lg);
    justify-content: space-between;
    padding-right: var(--spacing-md);
}


.book-content__text h1{
    font-size: 50px;
    font-weight: 100;
        text-transform: uppercase;

}

.book-content__text h3{
    font-family: var(--font2);
    font-size: 22px;
    font-weight: 100;
    margin-bottom: var(--spacing-md);
}

.book-content__main p{
    font-size: 14px;
    line-height: 1;
    font-weight: 100;
    margin-bottom: var(--spacing-md);
}

.book-content__buttons {
    padding-top: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
}

.book-content__buttons a{
  border: 2px solid var(--dark); 
  border-radius: 20px; 
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  display: inline-block;
  text-decoration: none; 
}

.button-one  a{
    background-color: var(--dark);
    color: var(--light);
}

.button-one :hover,
.button-two :hover{
text-decoration: underline;
}

.book-content__dettagli{
    grid-column: 6/13;
    gap: var(--spacing-lg);
    justify-content: space-between
}

.book-content__dettagli p{
    font-size: 12px;
    font-weight: 100;
}

.book-content__price p{
    font-size: 20px;
    font-weight: 400;
    margin-top: var(--spacing-md);
    }


/* -------------------------------------------------------------------------------- */
/* ! AUTORE */
/* -------------------------------------------------------------------------------- */
.book__autore{
    margin: auto;
    background-color: var(--light);
    width: 100%;    
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--spacing-md);
}

.autore-content{
    grid-column: 1/6;
    padding-left: var(--spacing-md);
}

.autore-content h1{
    font-size: 30px;
    font-weight: 100;
    padding-top: var(--spacing-sm);
}

.autore-content p{
    font-size: 14px;
    font-weight: 100;
    padding-bottom: var(--spacing-md);
}

.autore-cover{
   grid-column: 6/13;
}

.autore-cover img{
    width: 100%;
    object-position: center;
        width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

}

/* -------------------------------------------------------------------------------- */
/* ! BANNER */
/* -------------------------------------------------------------------------------- */

.scrolling-banner {
    background-color: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: var(--spacing-sm);
    margin-top: -10px;
}

.banner-content {
    display: flex;
    animation: scroll-infinite 10s linear infinite;
}

.banner-item {
    flex-shrink: 0;
    padding-right: 100px; 
}

.banner-item p {
    font-family: var(--font2);
    font-size: 16px;
    font-weight: 400;
    color: var(--dark);
    margin: 0;
}

/* Animazione infinita senza interruzioni */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* -------------------------------------------------------------------------------- */
/* ! CATALOGO */
/* -------------------------------------------------------------------------------- */

#catalogo {
    scroll-margin-top: 120px;
}

.catalogo {
    padding: var(--spacing-sm);
    background-color: var(--light);
    height: 100%;

}

.catalogo__header {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-self: center;
    justify-content: center;
}

.catalogo__header h1 {
    font-size: 40px;
    font-weight: 100;

}

.catalogo-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.catalogo__item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.catalogo__item:hover {
    z-index: 10;
}

.catalogo__cover {
    aspect-ratio: 1 / 1; 
    width: 100%;
    overflow: hidden;
}

.catalogo__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* POP UP */
.catalogo__popup {
    aspect-ratio: 1 / 1; 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--dark);
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    transform: translateY(-10px);
}



.catalogo__item:hover .catalogo__popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalogo__popup h3 {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.popup-subtitle h5{
    font-family: var(--font2);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.popup-description p{
    font-family: var(--font2);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.popup-price p{
    font-family: var(--font2);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.popup-button {
    font-family: var(--font2);
    font-size: 15px;
    color: var(--dark);
    text-decoration: underline;
    cursor: pointer;
}

.popup-button:hover {
    text-decoration: none;
}


.catalogo__button {
    padding: var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.catalogo__button a{
  padding: 8px 16px;
    border: 2px solid var(--dark); 
    border-radius: 20px; 
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    display: inline-block;
    text-decoration: none; 
    background-color: var(--light);
}

.catalogo__button a:hover{
    background-color: var(--dark);
    color: var(--light);
    text-decoration: underline;
}


/* -------------------------------------------------------------------------------- */
/* ! FOOTER */
/* -------------------------------------------------------------------------------- */

.footer {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: var(--spacing-sm);
    background-color: var(--dark);
    color: var(--dark);
}

.footer__text {
    display: flex;
    flex-direction: column;
    grid-column: 1/6;
    background-color: var(--accent);
    margin: -10px;
    padding-top: var(--spacing-md);
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.footer__text p.leading{
    font-size: 13px;
    font-weight: 100;
    padding-bottom: var(--spacing-md);
}

.footer__text-altro {
    padding-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.footer__text-altro a{
    font-size: 16px;
    color: var(--dark);
}

.footer__text-altro a:hover{
    text-decoration: underline;
}


.footer__text-altro p{
    font-size: 16px;
    font-weight: 100;
    padding-top: var(--spacing-md);
     padding-bottom: var(--spacing-sm);
}

.footer__contatti {
    gap: var(--spacing-lg);
    justify-content: space-between;
    color: var(--light);
}

.footer__contatti p{
    font-size: 16px;
    font-weight: 100;
    padding-top: 5px;}

    .footer__contatti a{
    color: var(--light);
    font-size: 16px;
    font-weight: 100;
    padding-top: 5px;}

.footer__contatti h3{
    font-family: var(--font2);
    font-size: 24px;
    font-weight: 100;
    padding-bottom: 5px;
}

.footer__contatti-social {
    padding-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
}


.footer__contatti-social a{
    font-size: 25px;
    cursor: pointer;
    color: var(--light);
}

.footer__contatti-social a:hover{
    color: var(--accent);
}

 .footer__newsletter {
            grid-column: 6/13;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
            padding-left: var(--spacing-md);
        }

        .newsletter-content {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }

        .newsletter-text h3 {
            font-family: var(--font2);
            font-size: 23px;
            font-weight: 100;
            color: var(--light);
        }

        .newsletter-text p {
            font-family: var(--font2);
            font-size: 14px;
            color: var(--light);
            line-height: 1.5;
        }

        .newsletter-signup {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .form-row {
            display: flex;
            gap: var(--spacing-sm);
        }

        .newsletter-signup input {
            flex: 1;
            padding: 8px 16px;
            border-radius: 20px;
            font-family: var(--font2);
            font-size: 14px;
            background-color: var(--light);
            color: var(--dark);
        }

        .newsletter-signup input::placeholder {
            color: rgba(0, 0, 0, 0.6);
        }

        .newsletter-signup input:focus {
            outline: none;
            border-color: var(--dark);
            background-color: var(--light);
        }

        .newsletter-signup button {
            padding: 12px 24px;
            border-radius: 20px;
            background-color: var(--accent);
            color: var(--dark);
            font-family: var(--font2);
            font-size: 14px;
            cursor: pointer;
        }

        .newsletter-signup button:hover {
            text-decoration: underline;
        }


/* Privacy checkbox row */
.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.privacy-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex: none;
    margin-top: 2px;
    background-color: var(--light);
    border: 1px solid var(--light);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.privacy-row input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.privacy-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--dark);
    font-size: 10px;
    font-weight: bold;
}

.privacy-row label {
    font-family: var(--font2);
    font-size: 12px;
    color: var(--light);
    line-height: 1.4;
    flex: 1;
}

.privacy-row label a {
    color: var(--accent);
    text-decoration: underline;
}

.privacy-row label a:hover {
    text-decoration: none;
}


/* -------------------------------------------------------------------------------- */
/* ! MEDIA QUERIES */
/* -------------------------------------------------------------------------------- */

/* MEDIUM */
@media screen and (max-width: 992px) {

 /* -------------------------------------------------------------------------------- */
 /* ! BOOK */
 /* -------------------------------------------------------------------------------- */


.book-content__text h1{
    font-size: 40px;
}

.book-content__text h3{
    font-size: 20px;
}

.book-content__main p{
    font-size: 13px;
    line-height: 1.18em;
}



.book-content__dettagli p{
    font-size: 11px;
}

.book-content__price p{
    font-size: 18px;
    }

/* -------------------------------------------------------------------------------- */
/* ! AUTORE */
/* -------------------------------------------------------------------------------- */


.autore-content h1{
    font-size: 25px;
}

.autore-content p{
    font-size: 13px;
    line-height: 1em;
}


/* -------------------------------------------------------------------------------- */
/* ! CATALOGO */
/* -------------------------------------------------------------------------------- */


.catalogo__header h1 {
    font-size: 30px;
    font-weight: 100;

}

.catalogo-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.catalogo__item:hover {
    z-index: 10;
    overflow: hidden;
}



/* POP UP */



.catalogo__popup h3 {
    font-size: 18px;
}

.popup-description {
    display: none;
}

.popup-price p{
    font-size: 14px;
}

.popup-button:hover {
    text-decoration: none;
}




/* -------------------------------------------------------------------------------- */
/* ! FOOTER */
/* -------------------------------------------------------------------------------- */


.footer {
    display: flex;
    flex-direction: column;
    padding: 0; /* Rimuovi il padding del footer */
    background-color: var(--accent); /* Cambia lo sfondo del footer in verde */
}

.footer__text {
    display: flex;
    flex-direction: column;
    background-color: var(--accent);
    margin: 0; /* Rimuovi tutti i margini negativi */
    padding: var(--spacing-md) var(--spacing-sm);
    width: 100%;
}

.footer__newsletter {
    order: 1;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-sm);
    background-color: var(--dark); /* Mantieni lo sfondo nero per la newsletter */
}

.footer__text {
    order: 2;
    width: 100%;
}

}



    


/* SMALL */

@media screen and (max-width: 576px) {
    
/* -------------------------------------------------------------------------------- */
/* ! BOOK */
/* -------------------------------------------------------------------------------- */

.book{
    background-color: var(--light);
    height: 100%; 
    overflow: hidden;
}

.book-content__cover{
    grid-column: 1/13;
}

.book-content__cover img{
    height: 100%; 
}

.book-content__text{
    grid-column: 1/13;
    padding: var(--spacing-sm);
}


.book-content__text h1{
    font-size: 45px;

}

.book-content__text h3{
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
}

.book-content__main p{
    font-size: 13px;
    line-height: 1.1em;
}

.book-content__buttons {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.book-content__dettagli p{
    font-size: 11px;
}

/* -------------------------------------------------------------------------------- */
/* ! AUTORE */
/* -------------------------------------------------------------------------------- */


.autore-content{
    grid-column: 1/13;
    order: 2;
    padding: 0;
    padding: var(--spacing-sm);
}

.autore-content h1{
    font-size: 25px;
    padding-bottom: var(--spacing-sm);
    padding-top: 0;
}

.autore-content p{
    font-size: 13px;
    line-height: 1.1em;

}

.autore-cover{
   grid-column: 1/13;
   order: 1;
}

/* -------------------------------------------------------------------------------- */
/* ! CATALOGO */
/* -------------------------------------------------------------------------------- */

.catalogo__header h1 {
    font-size: 25px;
}

.catalogo-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* POP UP */

.catalogo__popup h3 {
    font-size: 18px;
}

.popup-description {
    display: none;
}

.popup-subtitle h5{
    font-size: 13px;
}

.popup-price p{
    font-size: 14px;
}

.popup-button a{
    font-size: 13px;
}

.catalogo__button{
    padding:0;
    font-size: 13px;
}


/* -------------------------------------------------------------------------------- */
/* ! FOOTER */
/* -------------------------------------------------------------------------------- */  

 .footer {
        display: flex;
        flex-direction: column;
        padding: 0;
        background-color: var(--dark);
    }

    .footer__text {
        background-color: var(--accent);
        margin: 0;
        padding: var(--spacing-md) var(--spacing-sm);
        width: 100%;
        order: 2;
    }

    .footer__text p.leading {
        font-size: 12px;
        line-height: 1.4;
        padding-bottom: var(--spacing-sm);
    }

    .footer__text-altro {
        padding-top: var(--spacing-md);
        gap: 8px;
    }

    .footer__text-altro a {
        font-size: 14px;
    }

    .footer__text-altro p {
        font-size: 14px;
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }

    .footer__newsletter {
        order: 1;
        width: 100%;
        padding: var(--spacing-md) var(--spacing-sm);
        background-color: var(--dark);
        gap: var(--spacing-sm);
    }

    .newsletter-content {
        gap: var(--spacing-sm);
    }

    .newsletter-text h3 {
        font-size: 20px;
    }

    .newsletter-text p {
        font-size: 13px;
        line-height: 1.4;
    }

    .newsletter-signup {
        gap: var(--spacing-sm);
    }

    .form-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .newsletter-signup input {
        padding: 10px 16px;
        font-size: 13px;
    }

    .newsletter-signup button {
        padding: 12px 20px;
        font-size: 13px;
        align-self: flex-start;
    }

        .privacy-row {
        gap: 8px;
        margin-top: var(--spacing-sm);
    }
    
    .privacy-row input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .privacy-row label {
        font-size: 11px;
        line-height: 1.3;
    }    .privacy-row {
        gap: 8px;
        margin-top: var(--spacing-sm);
    }
    
    .privacy-row input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .privacy-row label {
        font-size: 11px;
        line-height: 1.3;
    }

    .footer__contatti {
        padding-top: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .footer__contatti h3 {
        font-size: 20px;
        padding-bottom: 8px;
    }

    .footer__contatti p {
        font-size: 14px;
        padding-top: 3px;
    }

    .footer__contatti-social {
        padding-top: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .footer__contatti-social a {
        font-size: 22px;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! HAMBURGER */
    /* -------------------------------------------------------------------------------- */

    @media screen and (max-width: 768px) {
    .site-nav__hamburger {
        display: flex;
    }
    
    .site-nav__menu:not(.mobile-menu) {
        display: none;
    }
}
}