/* -------------- */
/* Stile generale */
/* -------------- */
*{
    margin: 0px;
    font-family: montserrat;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #FFF6E8;
}

/* ------------ */
/* Inizio Modal */
/* ------------ */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin-top: 5%;
    animation-name: slideIn;
    animation-duration: 0.4s
}

/* --------------------- */
/* Inizio navigation bar */
/* --------------------- */
.navbar {   
    position: sticky;
    top: 0px;
    z-index: 99;
    background-color: rgb(255, 237, 205);
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:center;
    border-bottom: solid 2px #a3a2a29a;
 
}

.navbar-socalLinks{
    position: absolute;
    left: 20px;
}

.navbar-socalLinks img{
    margin: 10px;
}

.navbar-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
    color: #641730;
}

.navbar-navigation a{
    text-decoration: none;
    color: #641730;
}

.navbar-separator {
    width: 2px;
    height: 35px;
    background-color: #1E1E1E;
    margin: 25px;
}

.navbar-logo {
    margin-left: 30px;
    margin-right: 30px;
    margin-top: -15px;
}

.contact {
    position: absolute;
    width: 139px;
    height: 41.62px;
    right: 30px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 0, 0, 0.006) 0%, rgba(255, 0, 0, 0.2) 100%), radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), #480D20;
    border: 0.6px solid #E7E7E7;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
}

.contact:hover{
    background: #480D20;
}

/* -------------- */
/* Hamburger menù */
/* -------------- */
.checkbtn{
    font-size: 1.5rem;
    color: #641730;
    cursor: pointer;
    margin: 25px;
}

#check{
    display: none;
}

#check:checked ~ .nav-mobile{
    display: block;
    position: absolute;
}

/* ------------ */
/* PARTE MOBILE */
/* ------------ */
.navbar-mobile{
    display: none;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 4.5rem;
    right: 0;
    overflow: hidden;
    background: #64172f;
    z-index: 1;
    width: 200px;
}

.nav-mobile a {
    color: #fff;
    padding: 1rem 1.5rem;
    display: block;
}

.w3-animate-opacity {
    position: relative;
    animation: animateopacity 0.4s;
    animation-direction: alternate;
}

/* ----------- */
/* Inizio hero */
/* ----------- */
.hero {
    background: url(img/Immagini/HeroBg.webp);
    height: 100vh;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;  
    display: flex;
    align-items: last baseline;
    justify-content: space-between;
    flex-direction: row;
}

.hero-content {
    color: #E7E7E7;
    margin-left: 100px;
    margin-bottom: 65px;
}

.hero-content h1 {
    font-weight: 1000;
    font-size: 40px;
    width: 350px;
}

.hero-content p {
    font-size: 24px;
    font-weight: 600;
}

.hero-content #p {
    font-size: 15px;
    font-weight: 300;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: left;
    flex-direction: row;
    margin-top: 20px;
}

.hero-btn-programma {
    width: 207px;
    height: 70px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 2px solid #FFF6E8;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin-right: 10px;
}

.hero-btn-programma:hover {
    background: #e9d4b3;
    color: #480D20;
}

.hero-btn-menu {
    width: 207px;
    height: 70px;
    background: #FFF6E8;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 35px;
    margin-left: 10px;
    color: #480D20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.hero-btn-menu:hover {
    background: #e9d4b3;
}

.hero-img {
    background: url(img/Loghi/LogoHero.png);
    width: 299px;
    height: 356.38px;
    filter: drop-shadow(2px 2px 0.5px rgba(255, 255, 255, 0.541));
    margin-right: 100px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* ---------------------- */
/* Inizio Content Section */
/* ---------------------- */
.content-section {
    height: 986px;
    background-color: #FFF6E8;
}

.content-section-desc {
    height: 486px;
}

.content-section-desc-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.content-section-desc-content-text {
    color: #641730;
    width: 460px;
    text-align: right;
    font-weight: bolder;
}

.content-section-desc-content-text p {
    margin-top: 10px;
    font-weight: 500;
}

.content-divisor {
    width: 8px;
    height: 298.16px;
    background: #641730;
    margin-left: 60px;
    margin-right: 60px;
}

.content-section-desc-img {
    background: url(img/Immagini/ContentSectionSapori.webp);
    background-size: cover;
    width: 454px;
    height: 364.75px;
    border-radius: 43px;
}

.content-section-info {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%), url(img/Immagini/ContentSectionBg.webp) lightgray 50%;
    height: 501px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.content-section-info-img {
    background: url(img/Immagini/ContentSectionVisita.webp);
    background-size: cover;
    width: 454px;
    height: 364.75px;
    border-radius: 43px;
    margin-right: 70px;
}

.content-section-info-content-text {
    color: #FFFFFF;
    width: 460px;
    text-align: left;
    margin-left: 70px;
}

.content-section-info-content-text p {
    color: #d9d9d9bb;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.content-section-info-content-text p a {
    color: #d9d9d9bb;
    text-decoration: none;
}

.content-section-info-content-text p a:hover{
    text-decoration: underline;
}

.content-divisor-info {
    width: 347px;
    height: 2px;
    background-color: #d9d9d94e;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ---------------- */
/* Inizio Programma */
/* ---------------- */
.programma {
    background-color: #fdd38c67;
    width: 100%;
    min-height: 854px;
    display: flex;
    justify-content: center;
}

.programma-textarea {
    width: 90%;
    color: #641730;
    background-image: url(img/Loghi/LogoFiligrana.svg);
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    align-items: center;
    flex-direction: column;
}

.programma-title {
    font-size: 48px;
    font-weight: 1000;
}

.programma-colonne {
    display: flex;
    align-items: start;
    justify-content: space-evenly;
    flex-direction: row;
}

.programma-colonna {
    margin: 100px;
    width: 500px;
}

.programma-colonna p {
    color: black;
}

.red {
    color: #922229;
    display: flex;
    align-items: center;
    justify-content: left;
    flex-direction: row;
    font-weight: bolder;
    font-size: 18px;
}

.colonna-title {
    font-size: 18px;
    color: black;
}

.svg-time {
    list-style-image: url('img/Icone/TimeIcon.svg');
}

.svg-calendar {
    list-style-image: url('img/Icone/CalenderIcon.svg');
}

/* --------------- */
/* Inizio Galleria */
/* --------------- */
.galleria {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #FFF6E8;
}

.galleria-title {
    width: 100%;
    max-width: 1064px;
    text-align: center;
}

.galleria-title h1 {
    color: #641730;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 800;
}

.galleria-title p {
    color: #641730;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 20%;
    max-width: 1200px;
    max-height: 1300px;
}

.item {
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* --------------- */
/* Inizio Contatti */
/* --------------- */
.contact-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/Immagini/ContactBg.webp') no-repeat center center;
    background-size: cover;
    filter: grayscale(100%);
    z-index: 1;
}

.contact-form-wrapper {
    position: relative;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    filter: none;
    left: -300px;
    color: #641730;
    font-weight: 500;
}

.contact-form-field input,
.contact-form-text textarea {
    width: 100%;
    box-sizing: border-box;
    border: solid 2px #BABABA;
    border-radius: 15px;
    padding: 10px 20px;
    background-color: #FFF6E8;
    color: #5A2121;
    font-size: 1em;
    margin-bottom: 15px;
    resize: none;
}

.form-invia:hover {
    background-color: #480D20;
}

/* -------------- */
/* Mobile Section */
/* -------------- */
@media screen and (max-width: 800px) {

    /* -------------- */
    /* Navigation Bar */
    /* -------------- */
    .navbar {
        display: none;
    }

    .navbar-mobile {
        position: sticky;
        top: 0px;
        z-index: 99;
        background-color: rgb(255, 237, 205);
        height: 70px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-bottom: solid 2px #a3a2a29a;
    }

    .checkbtn {
        font-size: 2rem;
        cursor: pointer;
    }

    #check:checked ~ .nav-mobile {
        display: flex;
    }

    .nav-mobile {
        display: none;
        flex-direction: column;
        background: #64172f;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
        animation: slideIn 0.3s forwards;
    }

    .w3-animate-opacity {
        transition: opacity 0.4s ease-in-out;
    }

    .nav-mobile a {
        padding: 15px;
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
    }

    /* ------------ */
    /* Hero Section */
    /* ------------ */
    .hero {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 100%, rgba(0, 0, 0, 0.35) 100%), url(img/Immagini/HeroBgMobile.webp) no-repeat center center;
        background-size: cover;
        padding: auto;
        display: flex;
        align-items: last baseline;
        justify-content: center;
        flex-direction: column;
    }

    .hero-content {
        margin: 10%;
        margin-bottom: 0;
        font-size: 1rem;
    }

    .hero-btn{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* --------------- */
    /* Content Section */
    /* --------------- */
    .content-section{
        height: 100%;
    }

    .content-section-desc-content{
        padding: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .content-section-desc-content-text{
        width: 90%;
        margin: 20px;
        padding: 0;
        text-align: left;
    }

    .content-divisor{
        display: none;
    }

    .content-section-desc-img{
        max-width: 100%;
        border-radius: 0;
        background-image: cover;
    }

    #info{
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        height: 100%;
    }

    .content-section-info-img{
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .content-section-info-content-text{
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
        margin: 20px 0;
    }

    .content-section-info-content-text h2{
        margin: 10px;
    }

    .content-section-info-content-text p{
        display: block;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .content-divisor-info {
        width: 100px;
        display: flex;
        align-items: center;
    }
    
    /* --------- */
    /* Programma */
    /* --------- */
    .programma{
        max-width: 100%;
        padding: 0;
    }

    .programma-colonne {
        flex-direction: column;
        margin: 0;
    }

    .programma-colonna {
        margin: 10px;
        width: auto;
        height: 100%;
    }

    .red{
        display: inline;
    }

    /* -------- */
    /* Galleria */
    /* -------- */
    .galleria {
        gap: 10px;
        height: 100%;
        padding: 20px 0 0 0;
        z-index: 3; /* Imposta un valore più alto per la galleria per mostrarla sopra */
    }
    .galleria-title h1{
        width: 100%;
        height: 100%;
    }

    .galleria-title p{
        font-size: 20px;
    }

    .grid{
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0;
        max-height: fit-content;
    }

    .item img{
        border-radius: 0;
    }

    /* -------- */
    /* Contatti */
    /* -------- */
    .form, .form-bg {
        width: 100%;
    }

    .form-input input {
        height: 40px;
        font-size: 1rem;
        margin-top: 5px;
    }

    .form-checkboxes {
        font-size: 1rem;
        padding: 5px;
    }

    .form-invia {
        font-size: 1rem;
        padding: 10px 0;
        height: 50px;
    }

    .contact-form-field input, .contact-form-text textarea {
        font-size: 1rem;
        padding: 10px;
    }

    .form-invia-mes {
        font-size: 1rem;
        padding: 10px;
    }

    .contact-section {
        position: relative; /* Cambia da absolute a relative */
        z-index: 1; /* Assicurati che la sezione contatti sia sotto altri elementi */
        height: auto; /* Ridimensiona l'altezza per adattarla meglio */
    }

    .contact-form-wrapper {
        left: 0; /* Correggi la posizione laterale */
        width: 100%; /* Adatta la larghezza per schermi piccoli */
        z-index: 2; /* Mantenere la priorità della form ma sotto la galleria */
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes animateopacity {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 100;
        opacity: 1;
    }
}