:root {
    --bs-brown: #d8bfa4;
    --bs-blue-klein: #1709d8;
    --bs-whitesmoke: whitesmoke;
}

.bg-whitesmoke {
    background-color: var(--bs-whitesmoke)
}

.text-justify {
    text-align: justify;
}

.text-smaller {
    font-size: smaller;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    background-color: var(--bs-whitesmoke)
}

strong {
    font-weight: 700;
}

.text-blue-klein {
    color: var(--bs-blue-klein)
}

.hero-section {
    background-image: url('../assets/homepage.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    color: var(--bs-whitesmoke);
}

/* NAVBAR STYLES */
.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
    background-color: transparent !important;
}

.navbar-transparent {
    background-color: transparent !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-scrolled {
    background-color: var(--bs-whitesmoke) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer {
    background-color: antiquewhite;
    flex-shrink: 0;
    font-size: small;
    padding-bottom: 1rem !important;
    padding-top: 1rem !important;
}

section {
    padding-bottom: 3rem !important;
}

h3 {
    font-size: 1.65rem;
}

main {
    flex: 1;
}

.content {
    flex: 1;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    animation-delay: 0.1s;
}

#navbarContent {
    font-size: 1.2rem;
}

.nav-link.active {
    color: var(--bs-blue-klein) !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 991.98px) {

    /* Forza menu a comparire senza animazione */
    #mainNavbar .navbar-collapse {
        transition: none !important;
    }

    /* Mostra menu fullscreen marrone */
    #mainNavbar .navbar-collapse.show {
        position: fixed;
        inset: 0;
        background-color: var(--bs-whitesmoke);
        z-index: 1040;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Centrare voci */
    #mainNavbar .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #mainNavbar .nav-link {
        font-size: 1.8rem;
        padding: 1rem;
        text-align: center;
        width: 100%;
    }

    .navbar-brand {
        max-width: 120px;
    }

    .image-overlay-wrapper {
        position: relative;
    }

    .image-overlay-wrapper .caption-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        padding: 0.75rem 1.25rem;
        font-size: 1.2rem;
        text-align: center;
        display: none;
        z-index: 2;
    }

    .image-overlay-wrapper .caption-text.show {
        display: block;
        animation: fadeInCaption 0.5s ease-in-out forwards;
    }

}

/* Animazione per il fade-in della caption, su mobile */
@keyframes fadeInCaption {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.gallery-section {
    padding-top: 120px;
    min-height: 100vh;
}

.gallery-item {
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.image-overlay-wrapper {
    position: relative;
    overflow: hidden;
}

.image-overlay-wrapper img {
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: all 1s ease-in-out;
    display: block;
    height: auto !important;
}

body.loaded .image-overlay-wrapper img {
    opacity: 1;
    transform: scale(1);
}

.image-overlay-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding-top: 100px;
    }

    .image-overlay-wrapper img {
        width: 100%;
        height: auto;
        min-height: 0 !important;
        object-fit: unset;
        display: block;
    }
}

.object-fit-cover {
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .object-fit-cover {
        height: auto !important;
    }
}

/* Contenitore immagine con hover effect */

.caption-text {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    color: #000;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
}

.logo {
    height: 30px;
    width: auto;
}

.none-decoration {
    text-decoration: none !important;
}

.squared {
    aspect-ratio: 1/1;
}

.uppercase {
    text-transform: uppercase;
}