/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Public_sans";
    src: url(../fonts/static/PublicSans-Medium.ttf);
    font-style: normal;
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Alice", serif;
}

p,
a,
li {
    font-family: "Public_sans";
}

p {
    line-height: 35px;
}

/* COMMON */
img {
    max-width: 100%;
}
header {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: contrast(0.9);
    color: white;
    height: 300px;
    padding-top: 60px;
}

a {
    color: white;
    text-decoration: none;
}

a p,
button p{
    margin-bottom: 0;
}

a.btn {
    width: 230px;
    font-size: 0.8rem;
    --bs-btn-padding-y: 0.675rem;
}

.ms-btn {
    background-color: #bc9989;
    margin: 0 auto;
    display: block;
    color: white;
}

.ms-btn:hover {
    background-color: lightblue;
}

.hover:hover {
    background-color: lightblue;
}
.nav-link {
    color: white;
}

.nav-link:hover{
    color: #bc9989;
}

.primary-color {
    color: white;
}
.secondary-color {
    color: #107980;
}
.third-color {
    color: #bc9989;
}

ul {
    list-style-type: none;
}

.text-truncate {
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-height: 60px;
    text-wrap: unset;
}
/*FLAG CONTATTI*/
.flag-contatti{
  position: fixed;
  top: 40%;
  transform: translateY(-50%);
  right: 0;
  z-index: 99;
  display: flex;
  /*flex-direction: column;*/
  align-items: center; 
height: 55px;
  
}
.flag-item-close{
    cursor: pointer;
}


/* NAVBAR */
.navbar {
    --bs-navbar-toggler-border-color: transparent;
    --bs-navbar-toggler-focus-width: 0;
}

.ms-navbar {
    position: fixed;
    width: 100%;
    left: 49%;
    transform: translateX(-49%);
    z-index: 999;
    transition: all 0.5s;
}
.navbar:focus {
    width: 0;
}

.fixed {
    background-color: white;
    color: #107980;
    transition: all 0.5s;
}

.first-logo img{
    width: 70%;
    padding-left: 15px;
}

.second-logo img {
    width: 149px;
    height: 66px;
}
/* OFFCANVAS */

.offcanvas {
    background-color: #107980;
    opacity: 0.8;
    height: 100vh;
}

#galleryOffcanvas{
    background-color: rgba(0,0,0,.8);
    width: 100%;
    opacity: 1;
}

#galleryOffcanvas  .btn{

    --bs-btn-font-size: 2rem !important;  
}

/* DROPDOWN */
.btn.show {
    border-color: transparent;
}

.dropdown .btn:first-child:active {
    border-color: transparent;
}

.img {
    display: none;
    border-radius: 200px 0 200px 0;
}

.content-section {
    background-repeat: no-repeat;
    background-size: cover;

}

.apartment-connection {
    background-size: cover;
}

.help-section {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 300px;
}
/* CAROUSEL */
.mySwiper.swiper {
    width: 80%;
    height: 300px;
}

.swiper-button-next,
.swiper-button-prev{
    top: var(--swiper-navigation-top-offset, 35%);
    color: #107980;
}

.swiper-button-next:after, 
.swiper-button-prev:after{
    font-size: 1.5rem;
}

.gallerySwiper2.swiper{
    min-height: 250px;
    height: 50%;
    width: 80%;
}

.gallerySwiper.swiper{
    min-height: 200px;
    height: 60%;
    width: 70%;
}

.gallerySwiper2 img{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    object-fit: contain;
}

.gallerySwiper2 .swiper-button-next,
.gallerySwiper2 .swiper-button-prev{
    top: var(--swiper-navigation-top-offset, 70%);
}

.owl-carousel {
    height: 550px;
}

.img-container {
    width: calc(80% - 10px);
    height: 250px;
}

.img-container img {
    height: 100%;
    aspect-ratio: 16/9;
}

.owl-stage {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.owl-item.active.center .item {
    width: 90%;
    margin: 0 auto;
}
.owl-item .item {
    margin-left: 30px;
    margin-right: 30px;
}

.owl-nav,
.owl-dots {
    height: 50px;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
}

.owl-dots {
    width: 30%;
}

.owl-nav {
    width: 50%;
}

.owl-next,
.owl-prev {
    width: 30px;
    height: 30px;
    display: block !important;
    transition: all 0.3s;
    position: absolute;
    border-radius: 50% !important;
}

.owl-next {
    right: 0;
}
.owl-prev {
    left: 0;
}

.owl-carousel button.owl-dot {
    display: block;
    /* float: left; */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bc9989 !important;
    transition: background-color 400ms;
    margin: 10px 0 10px 5px;
}

.owl-carousel button.owl-dot.active {
    background-color: #107980 !important;
}

.owl-item .item-info {
    display: none;
}

.owl-item.center .item-info {
    display: block;
    padding-top: 20px;
}

.item-title,
.item-description {
    color: #107980;
    margin: 0;
}

.item-n-people {
    width: 20px;
}

.item-btn {
    background-color: #bc9989;
    display: block;
    color: white;
}

.carousel:after{
    content: '';
    background-color: #fff;
    right: -5px;
    top: 0;
    height: 100%;
    width: 35px;
    display: block;
    position: absolute;
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bc9989;
}
.carousel-indicators .active {
    background-color: #107980;
}

.carousel .row {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 60px;
}

.truncate1 {
    -webkit-line-clamp: 1;
}
.truncate2 {
    -webkit-line-clamp: 2;
}
.truncate3 {
    -webkit-line-clamp: 3;
}
.truncate4 {
    -webkit-line-clamp: 4;
}
.truncate5 {
    -webkit-line-clamp: 5;
}

/* FORM */
.ms-border-primary {
    border-radius: 3px;
    border-left: 4px solid white;
}

.ms-border-secondary {
    border-radius: 3px;
    border-left: 4px solid #107980;
}

.ms-border ul {
    padding-left: 1rem;
}

.contacts span {
    margin-right: 10px;
}

.img-form-container {
    width: 60%;
}

form input,
form select,
form textarea {
    background-color: transparent;
    border: 1px solid #107980;
    border-radius: 2px;
    color: #107980;
    padding-left: 10px;
}

form input,
form select {
    height: 40px;
}

#form {
    padding-top: 80px;
}
.dates input {
    width: 30%;
    margin-right: 10px;
}

/* POSITION */
iframe {
    width: 100%;
    height: 250px;
}

/* FOOTER */
footer {
    background-color: #76a1a7;
    background-image: url(../img/content-section.png);
}

.footer-top {
    /*margin-left: 15px;*/
}
.accordion {
    width: 80%;
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-active-color: white;
    --bs-accordion-active-bg: trasparent;
    --bs-accordion-btn-focus-box-shadow: 0;
    border-top: 2px solid white;
    padding-left: 25px;
}

.accordion-button {
    color: white;
    padding-left: 0;
}

.accordion-button::after {
    background-image: url(../img/down-arrow.svg);
}
.accordion-button:not(.collapsed)::after {
    background-image: url(../img/down-arrow.svg);
}

@media screen and (max-width: 576px){
    .ms-navbar{
        padding-top: 10px;
    }
}

@media screen and (min-width: 768px) {
    header,
    .help-section,
    .content-section,
    .apartment-connection {
        min-height: 400px;
    }

    .img-container {
        width: calc(50% - 10px);
        height: 250px;
    }
    
    .gallerySwiper2.swiper{
        height: 70%;
    }
    .gallerySwiper.swiper{
        height: 30%;
        width: 50%;
    }
}

@media screen and (min-width: 992px) {
    .nav-list {
        width: 70%;
    }
    .ms-container {
        width: 60%;
    }
    .lg-list {
        border-left: 2px solid white;
        margin-top: 5px;
    }

    .contact {
        border-bottom: 2px solid white;
        padding-bottom: 40px;
        padding-top: 60px;
    }
    .credits {
        font-size: smaller;
    }

    header,
    .help-section,
    .content-section,
    .apartment-connection,
    .exploration-section {
        min-height: 500px;
    }

    .cta .apartment-section {
        background-size: cover;
        background-image: url(../img/apartment-link-section.png);
    }

    .owl-carousel::after {
        content: "";
        background-color: white;
        width: 120px;
        margin-right: 25px;
    }

    .owl-carousel::before {
        content: "";
        width: 70px;
        margin-left: -40px;
    }
    .owl-item.active:not(.center) {
        transform: scale(0.8);
    }

    .img-container {
        width: calc(100% - 10px);
        height: 250px;
        margin: 0 auto;
    }

    .item-title,
    .item-description {
        margin: 0;
    }
    .border-form {
        border-left: 1px solid #107980;
    }
    .img-form-container {
        width: 40%;
    }

    .dates input {
        width: 35%;
    }

    iframe {
        width: 100%;
        min-height: 350px;
    }
}

@media screen and (min-width: 1300px) {
    header {
        height: 700px;
    }

    .content-section,
    .apartment-connection,
    .exploration-section {
        min-height: 600px;
    }

    iframe {
        width: 80%;
        height: 400px;
    }
    
    .gallerySwiper2.swiper{
        height: 100%;
    }
    
    .g-recaptcha > :first-child{
        width: 380px !important;
    }
}

