@import url('../header/header.css?v=website-v3-header-2');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --content-max-width: 1040px;
    --page-gutter: 50px;
}

body, h1, h2, h3, h4, h5, h6, p, a, .title, .hero-text, .navbar, .contact-button, .insta-link {
    font-family: 'Poppins', sans-serif !important;
}
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    padding-top: 80px;
    background-color: #ffffff;
    color: #333;
    font-weight: 300;

}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px max(var(--page-gutter), calc((100% - var(--content-max-width)) / 2));
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.burger-menu {
    display: none; /* Nascondi il bottone hamburger di default */
}

.line {
    width: 25px;
    height: 3px;
    background-color: gray; /* Colore delle linee */
    margin: 4px 0; /* Spazio tra le linee */
    transition: 0.4s; /* Transizione dolce */
}

.navbar a {
    text-decoration: none;
    color: gray;
    font-size: 18px;
    font-weight: 300;
    padding: 10px; /* Padding verticale per i link */
    margin: 0 10px; /* Spazio orizzontale tra i link */
}


/* Testo grande sopra il carosello */
.hero-text {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
    width: min(92vw, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-buttons {
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Distanza tra il pulsante e l'icona */
    transform: translateY(46px);
    pointer-events: auto;
}

.contact-button {
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-style: bold;
    border-radius: 0;
    transition: background 0.3s, color 0.3s;
}

.contact-button:hover {
    background: white;
    color: black;
}

.insta-link {
    display: flex;
    align-items: center; /* Centra l'icona verticalmente */
    justify-content: center;
}

.insta-link .insta-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1); /* Colore bianco per l'icona */
    transition: opacity 0.3s;
}

.insta-link:hover .insta-icon {
    opacity: 0.7;
}
/* Importante: slider deve avere posizione relativa */
.slider {
    position: relative;
}

.slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* ✅ Nuovo overlay sopra le immagini */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(90, 90, 90, 0.48) 0%,
        rgba(90, 90, 90, 0.32) 30%,
        rgba(90, 90, 90, 0.12) 45%,
        rgba(90, 90, 90, 0) 62%
    );
    z-index: 1; /* Sta sopra le immagini ma sotto il testo */
}

/* Immagini sotto l'overlay */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0; /* più basso dell’overlay */
}

.slide.active {
    opacity: 1;
}

/* Testo sopra tutto */
.hero-text {
    z-index: 2;
}
/* Media query per gestire il layout su dispositivi più piccoli */
@media (max-width: 768px) {
    .navbar {
        padding: 5px 20px; /* Mantieni padding orizzontale su schermi piccoli */
    }

    .navbar a {
        display: inline; /* Mostra i link */
        margin: 0 5px; /* Riduci il margine */
    }

    .burger-menu {
        display: flex; /* Mostra il bottone hamburger */
        flex-direction: column;
        margin-left: 10px; /* Distanza dal bordo sinistro */
    }
    /* Testo grande sopra il carosello */
    .hero-text {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        font-weight: 300;
        color: white;
        text-align: center;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 2;
        width: 92vw;
    }
    .contact-button {
        border: 2px solid white;
        background: transparent;
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        font-size: 0.8rem;
        font-style: bold;
        border-radius: 0;
        transition: background 0.3s, color 0.3s;
    }
    .hero-buttons {
        gap: 12px;
        flex-wrap: wrap;
    }
    .hero-buttons {
        margin-top: 46px;
        transform: translateY(30px);
    }
}

/* Stile per quando il menu è aperto */
.burger-menu.open .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.open .line2 {
    opacity: 0;
}

.burger-menu.open .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene le proporzioni dell'immagine */
}

.image-section {
    height: 100vh; /* Ogni sezione occupa l'intera altezza della finestra */
    overflow: hidden;
    position: relative; /* Per posizionare l'immagine */
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene le proporzioni dell'immagine */
}

.title {
    color: white;
    font-size: 36px;
    position: absolute;
    top: 100px;
    left: 50px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06); /* Ombra del testo */
}

.slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}
