:root {
    --primary: #A61B1B;
    --secondary: #0D0D0D;
    --accent: #A61B1B;
    --dark: #400101;
    --light: #F2F2F2;
}

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


        body {
            font-family: 'Host Grotesk', Arial, sans-serif;
            background-color: #f0f0f0;
            min-height: 100vh;
            padding-top: 120px; /* Spazio per navbar fissa */
        }

body, a {

    cursor: none !important;
}


@media (max-width: 768px) {
    body, a {
        cursor: auto !important;
    } 
}

 h1 {
    font-size: 48px;
    font-weight: 800;
        }

h2 {
    font-family: 'Host Grotesk';
    font-size: 24px;
    font-weight: 800;
 }

p {
    font-family: 'Montserrat';
        }

html {
      scroll-behavior: smooth;
        }

a{
    text-decoration: none;
}

/* Bottone 1 */
.btn-primary {
  
  background-color: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 12px 30px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  transform: translateX(8px);
}


/* Bottone 2 */
.btn-secondary {
    margin: 30px;
  background-color: var(--primary);
  color: var(--light);
  border: 1px solid var(--light);
  padding: 12px 30px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
  transform: translateX(8px);
}


/* Bottone 3 */
.btn-tertiary {
  background-color: var(--light);
  color: var(--primary);
  border: 1px solid var(--secondary);
  padding: 12px 30px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-tertiary:hover {
  transform: translateX(8px);
}


/* Responsive */
@media (max-width: 1115px) {
  .btn-primary, .btn-secondary, .btn-tertiary {
    font-size: 16px;
    padding: 10px 16px;
  }
}
@media (max-width: 600px) {
  .btn-primary, .btn-secondary, .btn-tertiary {
    font-size: 14px;
    padding: 14px 18px;
    margin-left: auto;
    margin-right: auto;
  
  }
}



/* Navbar */

 .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    height: 50px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    border-bottom: 1px solid var(--secondary);
    padding: 30px 40px;
    border-radius: 15px;
    
}

        /* Logo */
        .logo {
            display: flex;
            align-items: center;
            width: 200px;
            margin-top: 7px;
        }

        .logo img {
            width: 100px;
            height: auto;
            transition: filter 0.3s ease;
        }

        .logo img:hover {
            filter: invert(100%);
        }

        /* Social */
        .social {
            display: flex;
            gap: 25px;
        }

        .social a {
            color: var(--light);
            font-size: 20px;
            transition: color 0.3s ease;
            text-decoration: none;
        }

        .social a:hover {
            color: var(--secondary);
        }

        /* DESKTOP - 1024px e oltre */
        @media (min-width: 1024px) {
            /* Nascondi hamburger su desktop */
            .hb {
                display: none !important;
            }

            /* Menu desktop */
            .menu {
                position: static;
                background: transparent;
                height: auto;
                width: auto;
                display: flex;
                list-style: none;
                padding: 0;
                margin: 0;
                z-index: 1;
                
            }

            .menu__title {
                display: none;
            }

            .menu__items {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 20px;
                padding: 0;
                margin: 0;
                list-style: none;
            }

            .menu__items li {
                display: inline;
                padding: 9px;
            }

            .menu__items a {
                text-decoration: none;
                font-family: 'Lato', Arial, sans-serif;
                color: var(--light);
                font-size: 16px;
                border-bottom: 1px solid transparent;
                transition: all 0.3s ease;
                opacity: 1;
            }

            .menu__items a:hover {
                color: var(--secondary);
                font-weight: 600;
                border-bottom: 1px solid var(--secondary);
            }

            /* Social visibile su desktop */
            .social {
                display: flex;
            }
        }

        /* MOBILE E TABLET - 1023px e sotto */
        @media (max-width: 1023px) {
      
            .navbar {
                padding: 20px 30px;
            }

            /* Mostra hamburger */
            .hb {
                display: block;
                z-index: 1001;
                position: relative;
                cursor: pointer;
            }

            /* Hamburger icon */
            .icon-hb {
                width: 3em;
                height: 1.5em;
                position: relative;
                right: 40px;
                transform: rotate(0);
                transition: transform 0.5s ease;
            }

            .icon-hb span {
                display: block;
                position: absolute;
                left: 0;
                height: 4px;
                width: 100%;
                background:var(--light);
                transition: all 0.5s ease;
                border-radius: 1px;
          
            }

            .icon-hb span:nth-child(1) { top: 0; }
            .icon-hb span:nth-child(2) { top: 10px; }
            .icon-hb span:nth-child(3) { top: 10px; }
            .icon-hb span:nth-child(4) { top: 20px; }

            /* Hamburger animazione quando aperto */
            body.open .icon-hb {
                transform: rotate(180deg);
            }

            body.open .icon-hb span:nth-child(1) {
                width: 0%;
            }

            body.open .icon-hb span:nth-child(2) {
                transform: rotate(45deg);
            }

            body.open .icon-hb span:nth-child(3) {
                transform: rotate(-45deg);
            }

            body.open .icon-hb span:nth-child(4) {
                width: 0%;
            }

            /* Menu mobile - chiuso di default */
            .menu {
        
                position: fixed;
                top: -100vh;
                left: -20px;
                height: 100vh;
                width: 100vw;
                background: var(--primary);
                z-index: 1000;
                transition: top 0.5s ease;
                list-style: none;
                padding: 0;
                margin: 0;
                overflow: hidden;
                visibility: hidden;
            }

            /* Menu mobile - aperto */
            
            body.open .menu {
                top: 0;
                visibility: visible;
            
            }

            
            .menu__title {
                display: block;
                position: absolute;
                top: 50px;
                left: 50%;
                transform: translateX(-50%);
                font-weight: 600;
                color: var(--light);
                z-index: 1001;
            }

            .menu__title a {
                color: var(--light);
                text-decoration: none;
            }

            .menu__items {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 30px;
                height: 100%;
                padding: 0;
                margin: 0;
                list-style: none;
            }

            .menu__items li {
                list-style: none;
            }

            .menu__items a {
               font-size: 32px;
                color: var(--light);
                text-decoration: none;
                opacity: 0;
                transition: opacity 0.3s ease;
                transform: translateY(20px);
                transition: all 0.3s ease;
            }

            .menu__items a:hover {
                color: var(--secondary);
            }

            body.open .menu__items a {
                opacity: 1;
                transform: translateY(0);
            }
            body.open .menu__items li:nth-child(1) a { transition-delay: 0.1s; }
            body.open .menu__items li:nth-child(2) a { transition-delay: 0.2s; }
            body.open .menu__items li:nth-child(3) a { transition-delay: 0.3s; }
            body.open .menu__items li:nth-child(4) a { transition-delay: 0.4s; }
         
        }

/* sezione hero */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 0px;
    background-color: var(--light);
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    margin-bottom: 10px;
}

.hero-text h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.hero-text p {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 20px;
}


.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h2 {
    text-align: center;
    
}
    .hero-text {
        max-width: 100%;
    }

    .hero-image img {
        margin-top: 20px;
    }
    
}

/* svg del libro */

.gallery {
    background-color: var(--light);
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(6, 1fr);
    gap: 100px;
    padding: 20px;
}

.gallery img {
    width: 40%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery:hover{
    background-color: var(--accent);
}
.gallery img:hover {
    transform: scale(1.05);
    filter: invert(3);
    
}

@media (max-width: 980px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 colonne su tablet */
        gap: 50px;
    }

    .seconda-riga {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 colonne anche su mobile */
        gap: 10px; /* Riduci il gap per mobile */
    }
    
    .gallery img {
        width: 60%; /* Ogni immagine occupa tutta la sua colonna */
        height: auto; /* Mantiene le proporzioni */
    }
}


/* autore */
.autore {
   
    padding: 50px;
    background-color: var(--secondary);
}
.autore-header {
     max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.autore-header .image {
    flex: 1;

}

.autore-header .image img {
    width: 100%;
    max-width: 400px;
}

.autore-header .text {
    flex: 2;
}

.autore-header .text h1 {
    color: var(--light);
    margin-bottom: 10px;
}

.autore-header .text p {
    color: var(--light);
    font-size: 16px;
    margin-bottom: 20px;
}



.autore-content {
     max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.autore-content .text-left {
    flex: 2;
    
}

.autore-content .text-left p {
    color: var(--light);
    font-size: 16px;
}

.autore-content .images-right {

    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.autore-content .images-right img {
    width: 100%;
    max-width: 250px;
   
}

@media (max-width: 960px) {
    .autore-header {
        flex-direction: column;
        text-align: center;
    }

    .autore-content {
        flex-direction: column;
        text-align: center;
    }

    .autore-content .images-right {
        flex-direction: column;
        align-items: center;
    }

    .autore-content .images-right img {
        max-width: 100%;
    }
}


/* Sezione Dettagli */

.dettagli {
   max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 50px;
}

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

.colonna img {
    
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.colonna h1 {
    margin: 20px;
}

@media (max-width: 768px) {
    .dettagli {
        grid-template-columns: repeat(1, 1fr); 
    }
}

.dettagli {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    padding: 50px;
}

.card {
    background-color: var(--secondary);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card h1 {
    color: var(--light);
    font-size: 22px;
    margin-top: 20px;
}

.card h2 {
    font-size: 18px;
    margin-top: 10px;
    color: var(--primary);
}

.card p {
    font-size: 14px;
    color: var(--light);
    margin-top: 15px;
    padding: 15px;
}

@media (max-width: 900px) {
    .dettagli {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* Acquisto */
.sezione-foto-testo {
    max-width: 1400px;
    margin: 0 auto;
   
    padding: 50px 20px;
}
.section-sx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.testo {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}




.immagine img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

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

.section-dx .correlati {
    display: flex;
    gap: 10px;
    flex: 2;
}

.section-dx .correlati img {
    width: 100%;
    max-width: 150px;
    height: 100%;
    border-radius: 5px;
}

.section-dx .testo {
    padding-top: 30px;
    flex: 1;
    text-align: left;
}

.testo a {
    text-decoration: none;
    font-family: 'Host Grotesk';
    color: var(--secondary);
}

.testo a:hover {
    text-decoration: none;
    color: var(--primary);
}

@media (max-width: 1025px) {

    .section-sx {
        flex-direction: column;
        text-align: center;
    }

    .section-dx {
        flex-direction: column;
        text-align: center;
    }

    .section-dx .correlati {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }

    .section-dx .correlati img {
        margin: 5px;
    }

}



/* Titolo pre-footer */
.titolo-prefooter h1 {
    background-color: var(--secondary);
    color: var(--light);
    font-size: 100px;
    display: flex;
    justify-content: center;
    padding: 30px;

}

@media (max-width: 1025px) {
    .titolo-prefooter h1 {
        font-size: 80px;
        display: flex;
        justify-content: center;
        padding: 30px;
    
    }
}

@media (max-width: 830px) {
    .titolo-prefooter h1 {
        font-size: 60px;
        display: flex;
        justify-content: center;
        padding: 30px;
    
    }
}

@media (max-width: 641px) {
    .titolo-prefooter h1 {
        font-size: 40px;
        display: flex;
        justify-content: center;
        padding: 30px;
    
    }
}

@media (max-width: 454px) {
    .titolo-prefooter h1 {
        font-size: 30px;
        display: flex;
        justify-content: center;
        padding: 30px;
    
    }
}


/* form contatti */

/* Stile del Modulo Contatti */
.container {
    max-width: 800px;
    margin: 100px auto;
    padding: 30px;
    background-color: var(--light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--light);
    color: var(--secondary);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--dark);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-container label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}



/* Responsività */
@media (max-width: 768px) {
    .container {
        width: 90%;
        margin: 80px auto;
    }
}


/* Stile del Footer */

/* Stile del Footer */
.footer {
  background-color: var(--primary);
  color: var(--light);
  padding: 50px 20px;
}

.footer-container {
        max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-left {
  text-align: left;
}

.footer-logo {
  width: 220px;
  margin-bottom: 20px;
}

.footer-center ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-center li {
  display: inline;
}

.footer-center a {
  color: var(--light);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-center a:hover {
  color: var(--secondary);
}

.footer-right .socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
}

.footer-right .socials li {
  display: inline;
}

.footer-right .socials a {
  color: var(--light);
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-right .socials a:hover {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    margin-bottom: 20px;
  }
}

/*cursor*/

.follow{
    height: 30px;
    width: 30px;
    background-color: var(--secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%,-50%);
    z-index: 9999999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
	animation: liquid 4s linear infinite alternate;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events:none;
    filter: invert(100%);
    mix-blend-mode: difference;
    
}

.hover-cursor{
    height: 42px;
    width: 42px;
    opacity: 0.5;
    background-color: var(--accent);
   
}


@media (max-width: 768px) {
    .follow,
    .hover-cursor {
        display: none !important;
    }
}


