/* Import CSS files in order */
@import url('reset.css');
@import url('base.css');
@import url('color.css');
@import url('typography.css');
@import url('component.css');

:root{
    --header-height: 15rem;
    --header-shrink: 10rem;
}

body{
    background-color: var(--body-color);
    overflow-x: hidden;
}

/* Header */
header.position-fixed{left: 0; top: 0; width: 100%; z-index: 999;}
header{display: flex; align-items: center; height: var(--header-height);}
header .container{display: flex; align-items: center;}
header .logo{margin-right: auto;}
header .logo svg{width: 20.3rem; display: block;}
.header-scrolled .logo svg path{fill: var(--dark-green);}
header.header-scrolled{height: var(--header-shrink);}
@media(width < 992px){
    header{height: var(--header-shrink);}
}

nav{display: flex; align-items: center; gap: var(--md);}
nav a{font-size: var(--fs-lg); color: var(--light-yellow);}
nav .nav-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--light-yellow);
    transition: color 0.3s;
}
nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: #f6f4e7;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
nav .nav-link:hover::after,
nav .nav-link:focus::after {
    transform: scaleX(1);
}
.header-scrolled nav a{color: var(--dark-green);}
header.header-scrolled nav .nav-link::after{background: var(--dark-green);}
header.header-scrolled nav .nav-link:hover::after,
header.header-scrolled nav .nav-link:focus::after{background: var(--dark-green);}
@media (width < 992px){
    nav{gap: var(--gutter);}
    nav{background-color: var(--light-yellow); flex-direction: column; align-items: center; justify-content: center; border-right: 0 !important; 
        position: fixed; left: 0; top: 0; width: 100%; height: 100dvh; z-index: 9999; opacity: 0; visibility: hidden;}
    nav.active{opacity: 1; visibility: visible;}
    nav .nav-link{font-size: clamp(5vw, 2rem, 10vw); color: var(--dark-green);}
}

/* Languages Switcher */
.languages{margin-left: var(--lg); display: flex; align-items: center; gap: 1.2rem;}
.languages a{font-size: var(--fs-sm); color: var(--light-yellow); width: 4.2rem; aspect-ratio: 1; display: grid; place-items: center; 
    border-radius: 50%;
    border: .1rem solid var(--light-yellow);
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.languages a:hover {
    background: var(--light-yellow);
    color: #000;
}
.languages a.active {
    background: var(--light-yellow);
    color: #000;
}
.header-scroll-bg {transition: all 0.2s;}
.header-scrolled {box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: var(--medium-yellow);}
.header-scrolled .languages a{color: #000;}
.header-scrolled .languages a{border-color: var(--dark-green); color: var(--dark-green);}
.header-scrolled .languages a.active, .header-scrolled .languages a:hover{border-color: var(--dark-green); background-color: var(--dark-green); 
color: var(--light-yellow);}
@media (max-width: 992px){
    .languages{margin-left: var(--gutter);}
}
.burger{margin-left: var(--gutter);}
header.header-scrolled .burger::before, header.header-scrolled .burger::after{
    background-color: var(--dark-green);
}


/* Hero Section */
.hero-section {
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.hero-content {
    padding: var(--md) 0;
    flex: 1;
    isolation: isolate;
    position: relative;
    z-index: 2;
}
.hero-section::before{content: ''; height: 50%; position: absolute; left: 0; bottom: 0; width: 100%; background: linear-gradient(to bottom, rgba(25,25,25,0), #191919); z-index: -1; opacity: 80%;}
.hero-content h1{color: var(--light-yellow); font-family: var(--secondary-font);}
.hero-content > :not(:last-child){margin-bottom: var(--md);}

/* Parallax Enhancements */
.parallax-window {
    will-change: transform;
    transform: translateZ(0);
}

/* Page Banner Parallax Specific */
.page-banner.parallax-window {
    will-change: transform;
    transform: translateZ(0);
}
.page-banner.parallax-window .page-banner-content {
    will-change: transform;
    transform: translateZ(0);
}

.section{padding: var(--lg) 0;}
.section .section-header:not(:last-child){margin-bottom: var(--lg);}
@media(width < 992px){
    .section{padding: var(--md) 0;}
    .section .section-header:not(:last-child){margin-bottom: var(--sm);}
}

.section-content > :not(:last-child){margin-bottom: var(--gutter);}
.section-content .grid-item figure{
    width: 100%; 
    overflow: hidden;
    position: relative;
}
.section-content .grid-item figure img{
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.section-content .grid-item figure:hover::before {
    opacity: 1;
}
.section-content .grid-item div{padding: var(--md);}
article h2:not(:last-child){margin-bottom: var(--sm);}
@media(width < 992px){
    .section-content .grid-item div{padding: var(--sm) var(--gutter);}
    article h2:not(:last-child){margin-bottom: var(--gutter);}
}

#vini {
    scroll-margin-top: 80px;
}

#territorio {
    scroll-margin-top: 80px;
}


/* Page Banner */
.page-banner {
    width: 100%;
    aspect-ratio: 2.1/1;
    position: relative;
    overflow: hidden;
    padding: var(--lg) var(--gutter);
}
.page-banner-content{
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}
.page-banner h2{font-size: var(--h2); line-height: 1.2;}

/* Product Slider */
.product-slide{width: 100%; height: auto; padding: var(--sm); background-color: var(--medium-yellow);}
.product-slide figure{padding: var(--sm) 0;}
.product-slide figure img{max-height: 44rem;}
.product-slide h3{margin-top: var(--gutter);}

.section-header .slider-arrows{margin-top: var(--gutter); justify-content: flex-end;}
.article-image{margin-top: var(--2xl);}
@media(width < 1400px){
    .article-image{margin-top: var(--xl);}
}
@media(width < 1200px){
    .article-image{margin-top: var(--md);}
}

footer{margin-top: 25vh;}
.footer-logo img{width: 73.6rem;}
.footer-content{padding: var(--md) 0; display: flex; align-items: center; gap: var(--md);}
.footer-content-block{display: flex; gap:var(--md);}
.footer-content-block > div > :not(:last-child){margin-bottom: var(--gutter);}
.footer-social-media{display: flex; align-items: center; gap: 1.5rem;}
@media(width < 992px){
    .footer-content{flex-direction: column;}
}
@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: var(--md);
    }

    .footer-content-block {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: var(--gutter);
    }

        .footer-content-block > div {
            width: 100%;
        }

            .footer-content-block > div > * {
                margin: 0 auto var(--gutter);
            }

    .footer-social-media {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: var(--gutter);
    }

        .footer-social-media a img {
            display: block;
            width: 2.4rem; /* modifica a piacere */
            height: auto;
        }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--gutter);
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1.2rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
        color: #000;
    }

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

        label a{
                        color: var(--dark-green);
            text-decoration: none;
        }

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.btn {
    background-color: var(--dark-green) !important;
    color: var(--light-yellow) !important;
    border: none !important;
    padding: 0.8rem 1.6rem !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: background 0.3s !important;
}

::-webkit-scrollbar {
    width: 5px;
    background: var(--medium-yellow);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-green);
    border-radius: 0;
}

::-webkit-scrollbar-track {
    box-shadow: none;
}



