/* main.css */

html,body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;   
    position: relative;    
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;       
}
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

/* header */

header {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 40;
}

/* heroslider */
.heroback {
    width: 100%;
    height: 100vh;
    background-color: var(--bs-primary);
    position: relative;
}

#heroslider {
    width: 100%;
    height: 100vh;
}
#heroslider .carousel-item {
    width: 100%;
    height: 100vh;
}

#heroslider .carousel-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.herotitle {
    position: absolute;
    z-index: 30;
    bottom: 100px;
    width: 100%;
}
.bkgop {
    position: absolute;
    top: 0;
    z-index: 29;
    opacity: 0.3;
    background-color: var(--bs-black);
    width: 100%;
    height: 100%;
}
.arrowdwn {
    position: absolute;
    bottom:2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 32;
    animation-iteration-count: infinite;
    animation-name: arrowdown;
    animation-duration: 1s;
}

@keyframes arrowdown {
    0%   {transform: translatey(0);}
  50%  {transform: translatey(100%);}
  100% {transform: translatey(0);}
  }

/* text photo */

.bkg-on {
    background-color: var(--bs-secondary-bg-subtle);
}

.imgsquare {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
}

/* mappa */

.mappa {
    min-height: 350px;
}
/* modale contatti */


#contactModal .modal-body, .gallerymodal .modal-body {
    position: relative;
    padding: 0;
}

.modal .closemod, .gallerymodal .closemod {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 30;
}
.imgcover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.gallerymodal .carousel-item {
    width: 100%;
    height: 100vh;
    background-color: var(--bs-primary);
}

.gallerymodal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}
.carousel-control-next, .carousel-control-prev {
    opacity: 0.8;
}


@media (min-width: 992px) {
    .gallerymodal img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .gallerymodal img.contain {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
}

