body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    overflow-x: hidden;
}

body.lightbox-enabled {
    overflow: hidden;
}

nav{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position:fixed;
    color: white;
    width: 100dvw;
    height: fit-content;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgb(100, 0, 0);
    background-image: url(resources/redTexture.png);
    background-size: 100px;
}
nav>div>a, nav>details>div>a{
    color: white;
    text-decoration:none;
    margin: 0 15px;
}

#navNavigators{
    border-top: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-top: 10px;
}

#navNavigatorsMobile{
    border-top: 1px solid white;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-top: 10px;
}
#navNavigatorsMobile>a{
    margin: 20px;
}

#navMobileMenuOpener{
    display: none;
}

#navMobileMenuOpener>summary{
    color: white;
    border: none;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

@media screen and (max-width: 768px) {
    #navNavigators{
        display: none;
    }
    #navMobileMenuOpener{
        display: block;
    }
    #navMobileMenuOpener>summary{
        background-color: transparent;
    }
}

.subtitle{
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 10px;
    font-style: italic;
}

.card{
    color: white;
    background: 
                linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('resources/cardCover.jpg') no-repeat center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    background-color: rgb(139, 138, 138);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color:white;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

button, details>summary{
    background-color: rgb(100, 0, 0);
    padding: 10px;
    border: none;
    border-radius: 10px;
    color: white;
}

.articleWithPhoto{
    width: 90dvw;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgb(100, 0, 0);
}
/*Mobile view*/
@media screen and (max-width: 768px) {
    .articleWithPhoto{
        width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: none;
    border-radius: 10px;
    border: 1px solid rgb(100, 0, 0);
    }
    .articleWithPhoto>section:nth-child(1){
        width: 50%;
        margin-bottom: 20px;
    }
    .articleWithPhoto>section:nth-child(2){
        width: 100%;
        padding-left: 0;
    }
}

.articlePhoto{
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
}
/*Desktop view*/
@media screen and (min-width: 769px) {
    .articleWithPhoto>section:nth-child(1){
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 100%;
        width: 30%;
    }
    .articleWithPhoto>section:nth-child(2){
        text-align: left;
        height: 100%;
        width: 70%;
        padding-left: 10px;
    }
}

.article{
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgb(100, 0, 0);
}
@media screen and (max-width: 768px) {
    .article{
        width: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: none;
        border-radius: 10px;
        border: 1px solid rgb(100, 0, 0);
    }
}

.articleText{
    text-align: left;
}  

.servizi{
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color:white;
    padding-bottom: 50px;
    text-align: left;
    -webkit-box-shadow: 3px 3px 8.5px 3px #949494;
    -moz-box-shadow: 3px 3px 8.5px 3px #949494;
    box-shadow: 3px 3px 8.5px 3px #949494;
}

#servicesAndGalleyContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 20px;
}
    
#galleryContainer{
    width: 100%;
    max-height: 300px;
    max-width: 1000px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-y: scroll;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
}

.galleryImage{
    width: 70%;
    max-width: 300px;
    border-radius: 10px;
    object-fit: cover;
    margin: 3px;
}

@media screen and (max-width: 768px) {
    #servicesAndGalleyContainer{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    #galleryContainer{
        width: 70dvw;
        height: 200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 10px;
    }

    #galleryContainer a {
        height: 80%;
    }

    .galleryImage{
        height: 100%;
        width: 200px;
        border-radius: 5px;
        object-fit: cover;
    }
}

#bookAndContactsContainer{
    width: 90%;
    max-width: 1500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 50px;
    margin-top: 50px;
}

@media screen and (max-width: 768px) {
    #bookAndContactsContainer{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 50px;
        margin-top: 50px;
    }
    #bookAndContactsContainer>div{
        width: 100%;
        padding: 0;
    }
    #book{
        width: 100%;
        margin-top: 50px;
        background-color: rgb(100, 0, 0);
        background-image: url(resources/redTexture.png);
        border-radius: 10px;
        color: white;
    }
    #book>form>button{
        color: black;
        font-weight: bold;
        background-color: white;
        background-image: url(resources/whiteTexture.png);
    }
}

#book>form>button{
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

@media screen and (min-width: 769px) {
#bookAndContactsContainer>div{
    width: 50%;
    padding: 20px;
}
}

form{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
form>input, form>textarea{
    width: 90%;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgb(100, 0, 0);
}
.whatsapp,.infoContatti>p{
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    border: 2px solid hsl(0, 100%, 20%);
}
.whatsapp,.infoContatti>p>a{
    color: rgb(100, 0, 0);
}
#contatti{
    text-align: center;
    width: 50%;
}
.profileIcon{
    width: 15%;
    aspect-ratio: 1;
    margin: 10px;
    border-radius: 50%;
    border: 2px solid rgb(100, 0, 0);
}
.whatsapp{
    color: green;
    text-decoration: underline;
}

iframe{
    max-width: 100vw;
    padding-bottom: 50px;
}
.contatti>p{
    text-align: justify;
}

footer{
    background-color: rgb(100, 0, 0);
    color: white;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url(resources/redTexture.png);
    background-size:100px;
}

/*Utility Classes*/
.removeBackgroundImage{
    mix-blend-mode:multiply
}
.redTextureBackground{
    color: white;
    background-color: rgb(100, 0, 0);
    background-image: url(resources/redTexture.png);
    background-size: 100px;
}
.whiteTextureBackground{
    color: black;
    background-color: white;
    background-image: url(resources/whiteTexture.png);
    background-size: 100px;
}
.orizzontallyAndVerticallyCentered{
    width: 100vw;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}
.borderRed{
    border: 1px solid rgb(100, 0, 0);
    border-radius: 10px;
}
.borderwhite{
    border: 1px solid white;
    border-radius: 10px;
}
details {
    width: 90dvw;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
@media screen and (max-width: 768px) {
    details {
        width: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}
details summary {
    list-style: none;       /* rimuove il marker */
    cursor: pointer;
    width: 100%;
    padding: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
details summary::-webkit-details-marker {
    display: none;          /* nasconde la freccia su Chrome/Safari */
}
button a{
    color: white;
    text-decoration: none;
}
.sticky{
    position: sticky;
    top: 0;
    z-index: 500;
}

