body {
    font-family: 'Fjalla One', sans-serif;
}

.carousel-item {
    height: 600px;
}

.logo {
    width: 100px;
    height: 50px;
}

.banner {
    max-width: 650px;
}

.img-media {
    max-width: 6rem;
}

#masonry {
    column-count: 2;
    column-gap: 1em;
}

@media(min-width: 30em) {
    #masonry {
        column-count: 3;
        column-gap: 1em;
    }
}

@media(min-width: 40em) {
    #masonry {
        column-count: 4;
        column-gap: 1em;
    }
}

@media(min-width: 60em) {
    #masonry {
        column-count: 5;
        column-gap: 1em;
    }
}

@media(min-width: 75em) {
    #masonry {
        column-count: 6;
        column-gap: 1em;
    }
}

.item {
    display: inline-block;
    margin: 0 0 1em 0;
    width: 100%;
    cursor: pointer;
}

.item img {
    max-width: 100%;
    height: auto;
    width: 100%;
    margin-bottom: -4px;
    /*idk why but this fix stuff*/
}

.item.active {
    animation-name: active-in;
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
    animation-direction: alternate;
}

.item.active:before {
    content: "+";
    transform: rotate(45deg);
    font-size: 48px;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    text-align: center;
    line-height: 48px;
    z-index: 12;
}

.item.active img {
    animation-name: active-in-img;
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
    animation-direction: alternate;
}

@keyframes active-in {
    0% {
        opacity: 1;
        background-color: white;
    }
    50% {
        opacity: 0;
        background-color: rgba(0, 0, 0, 0.90);
    }
    100% {
        opacity: 1;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.90);
    }
}

@keyframes active-in-img {
    0% {
        opacity: 1;
        transform: translate(0%, 0%);
        top: 0;
        left: 0;
        max-width: 100%;
    }
    49% {
        opacity: 0;
        transform: translate(0%, -50%);
    }
    50% {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
    }
    100% {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: auto;
        max-height: 95vh;
        opacity: 1;
    }
}

.gallery {
    padding-top: 100px;
}

.contact {
    padding-top: 40px;
    padding-left: 20px;
}

.about {
    padding-top: 100px;
    /* padding-left: 5px; */
}

.blackband {
    background-color: black;
    height: 30px;
    width: 100%;
}

.news {
    padding-top: 80px;
    /* padding-left: 5px; */
}

#contatti a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    #contatti {
        padding-top: 100px;
        padding-bottom: 20px;
    }
    #contatti .maps iframe {
        width: 100%;
        height: 400px;
    }
}

@media (min-width: 576px) {
    #contatti {
        padding-bottom: 800px;
    }
    #contatti .maps iframe {
        width: 100%;
        height: 450px;
    }
}

@media (min-width: 768px) {
    #contatti {
        padding-bottom: 350px;
    }
    #contatti .maps iframe {
        width: 100%;
        height: 850px;
    }
}

@media (min-width: 992px) {
    #contatti {
        padding-bottom: 200px;
    }
    #contatti .maps iframe {
        width: 100%;
        height: 700px;
    }
}

#author a {
    color: #fff;
    text-decoration: none;
}

.b-0 {
    bottom: 0;
}

.bg-shadow {
    background: rgba(76, 76, 76, 0);
    /* background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(179, 171, 171, 0)), color-stop(49%, rgba(48, 48, 48, 0.37)), color-stop(100%, rgba(19, 19, 19, 0.8))); */
    background: linear-gradient(to bottom, rgba(179, 171, 171, 0) 0%, rgba(48, 48, 48, 0.71) 49%, rgba(19, 19, 19, 0.8) 100%);
    /* filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313', GradientType=0); */
}

.top-indicator {
    right: 0;
    top: 1rem;
    bottom: inherit;
    left: inherit;
    margin-right: 1rem;
}

.overflow {
    position: relative;
    overflow: hidden;
}

.zoom img {
    transition: all 0.2s linear;
}

.zoom:hover img {
    /* -webkit-transform: scale(1.1); */
    transform: scale(1.1);
}


/* body { padding-top: 50px; } */

#myCarousel .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    text-shadow: none;
}

#myCarousel .list-group {
    position: absolute;
    top: 0;
    right: 0;
}

#myCarousel .list-group-item {
    border-radius: 0px;
    cursor: pointer;
}

#myCarousel .list-group .active {
    background-color: #eee;
}

@media (min-width: 992px) {
    #myCarousel {
        padding-right: 33.3333%;
    }
    #myCarousel .carousel-controls {
        display: none;
    }
}

@media (max-width: 991px) {
    .carousel-caption p,
    #myCarousel .list-group {
        display: none;
    }
}