.product-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1em;
    margin-top: 2em;
}

.feature-item i{
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 5%;
    display: block;
}

.feature-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    font-weight: bold;
}

.no-scroll{
    overflow: hidden;
    height: 100vh;
}

.intro-wrapper {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
}

.color-curtain {
    position: absolute;
    inset: 0;
    background-color: var(--white);
    animation: fadeOutCurtain  5s ease-in forwards;
}

.logo-layer {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

.zoom-img {
    width: 100vw; 
    height: auto;
    will-change: width, height;
    animation: logoGrow  5s ease-in forwards;
    transform-origin: 53.2% 45.57%;
    outline: 5000px solid var(--white);
    outline-offset: -1px;
}

svg {
    transform-box: view-box;
}

@keyframes logoGrow {
    0% {
        transform: scale(1);
        background-color: var(--gold);
    }

    20% {
        transform: scale(1);
        background-color: var(--gold);
    }

    40%{
        background-color: transparent;
    }
    80%{
        opacity: 1;
    }
    100% {
        transform: scale(100);
        opacity: 0;
    }
}

@keyframes fadeOutCurtain {
    0% { opacity: 1;}
    20% {opacity: 1;}
    40% { opacity: 0;}
    100% { opacity: 0;}
}



#hero {
    text-align: center;
    background-image: linear-gradient(#00000032, #00000067), url("../img/index-hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 10%;
}

#hero h1{
    max-width: 800px;
    text-shadow: 1px 1px 10px black;

}

#hero-btn{
    padding: 1rem 2rem;
    border: 1px solid var(--white);
    text-decoration: none;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-block;
    margin: 3rem 0 2.5em;
}

#hero-btn:hover{
    background-color: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}

#icon{
    width: 2.2em;
    stroke-width: 3px;
    overflow: visible;
    animation: chev 1s infinite alternate;
}

@keyframes chev {
   0% {transform: translateY(0);}
    100% {transform: translateY(5px);}
}

main{
    gap: 4rem;
}

#prodotti{
    margin-top: 5rem;
    scroll-margin-top: 10rem;
}

#lines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    gap: 7em 5em;
    margin: 4em 0;
}

#lines-grid img {
    width: 100%;
}

h2{
    font-weight: 200;
    text-align: center !important;
}

.lines-card{
    display: flex;
    flex-direction: column;
    gap: 3em;
    position: relative;
}

.lines-card a{
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.lines-card a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    cursor: pointer;
}

#centenario-line{
    grid-column: span 2;
}

#centenario-photos{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5em;

}

#classic, #collection, #pandoro, #pan-corte, #centenario{
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
    scroll-margin-top: 60px; 
}

#classic.show-section, #collection.show-section, #pandoro.show-section, #pan-corte.show-section, #centenario.show-section{
    max-height: unset;
    opacity: 1;
    visibility: visible;
}

.tittle{
    padding: 5rem 8%;
    color: var(--white);
    margin: 6% 0 2%;
}

#classic-tittle{
    background-color: var(--classic);
}

#collection-tittle{
    background-color: var(--collection);
}

#pandoro-tittle{
    background-color: var(--pandoro);
}

#corte-tittle{
    background-color: var(--corte);
}

.under-tittle{
    border: none;
    height: 1px;
    background-color: var(--white);
    margin-top: 2em;
    width: 50%;
}

#centenario-tittle{
    color: var(--gold)
}

#centenario-under-tittle{
    background-color: var(--gold);
}

.linea-title, p{
    text-transform: none;
}

#back {
    position: fixed;
    left: 2%;
    top: 0;
    z-index: 2;
    color: black;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    background-color: var(--white);
}

#back.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-arrow{
    height: 1em;
    stroke-width: 3px;
    overflow: visible;
}

.contenedor {
    display: flex;
    flex-direction: column;
    justify-self: center;
    width: 80%;
    gap: 3em;
    margin: 0 auto;
}

.card{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    margin: 2% 0;
    min-height: 75vh;
}

.card img{
    width: 100%;
}

.card h3{
    font-size: 2.5rem;
}

.big {
    margin-bottom: 0;
}

.small{
    font-weight: bold;
    text-align: left;
    margin-top: 0.8em;
    margin-bottom: 2em;
    text-transform: uppercase;
}

.card a{
    text-decoration: none;
    color: black;
}

.card a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    cursor: pointer;
}

.card:nth-child(odd) {
    direction: rtl;
}

.card:nth-child(odd) .card-info {
    direction: ltr; 
    text-align: left;
}


.feature-item i{
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 5%;
    display: block;
}

.feature-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    font-weight: bold;
}

#classico, #glassato, #cioccolato, #pere, #albicocca, #senza, #lampone, #pasta-scura, #mandarino, #biologico{
    scroll-margin-top: 150px;
}

.collection-tittle{
    font-family: "BebasNeue Regular";
    font-size: 4rem;
}

.collection-subtittle{
    font-family: "BebasNeue Light";
    font-size: 4rem;
}

h3{
    font-family: "BebasNeue Regular";
    font-size: 3rem;
    font-weight: lighter;
}

.lead {
    margin-top: 4em;
    font-size: 1.1rem;
}

.under-tittle{
    border: none;
    height: 1px;
    background-color: var(--white);
    margin-top: 2em;
    width: 50%;
}

.panettones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    margin-top: 3.5em;
    gap: 1rem;
}

.panettones-names {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    margin-bottom: 3.5em;
}

.panettones-names h4 {
    margin-top: 0;
}

.panettone-card, .pandoro-card {
    text-align: center;
    text-decoration: none;
}

.panettone-card img, .pandoro-card img{
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.panettone-card {
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.panettone-card:hover {
    transform: translateY(-8px);
}

.panettone-card img {
    width: 100%;
    margin: 0 auto 15px auto;
}

.panettone-card h4, .panettones-names h4{
    text-transform: uppercase;
}

@media (max-width: 865px){
    .panettones{
        display: none;
    }
}

@media (max-width: 600px){
    .card{
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 2rem 0;
        justify-content: center;
    }

    .card h3 {
        margin-top: 2rem;
        margin-bottom: 0.4em;
    }

    .tittle{
        margin: 5rem 0 3rem;
    }

    .lead{
        margin-top: 3em;
    }
    
    .collection-tittle, .collection-subtittle{
        font-size: 3rem;
    }

    main{
        width: 85%;
    }

    #lines {
        margin-top: 3rem;
    }

    .lines-card {
        gap: 2em;
    }

    
    #lines-grid {
        gap: 3em 3em;
    }

    .contenedor {
        gap: 0em;
    }
}

@media (max-width: 450px){
    #hero-btn {
        padding: 0.5rem 1rem;
    }

    .lines-card a {
        font-size: 1.1rem;
    }

    #hero-btn{
        background-color: var(--gold);
        color: var(--white);
        border: 1px solid var(--gold);
    }

    .under-tittle {
        height: 2px;
    }

    #lines-grid {
        gap: 4em 2em;
    }

    main {
        gap: 2rem;
    }
}

@media (max-width: 280px){
    #lines-grid {
        gap: 3em 1em;
    }

    .lines-card a {
        font-size: 0.8rem;
    }

    main {
        gap: 0;
    }
}
