/*
 *
 * Mobile first
 *
 */
:root {
    --primary-color: #01afd9;
    --secondary-color: #005663;
    --tertiary-color: #f9af19;
}
body {
    font-family: 'Poppins', sans-serif;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    text-decoration: none;
    color: #252525;
}
a:hover {
    color: #333;
}

/* Layout */
.container-fluid {
    min-width: 320px;
}

.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 80px;
    height: 100%;
}

.list-heading {
    width: 100%;
    max-width: 360px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:20px;
}
.list-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
}

.box-emphasis {
    border-left: 8px solid var(--primary-color);
    padding-left: 20px;
}

.list-group {
    --bs-list-group-border-radius: 25px;
}
.list-group-flush {
    border-radius: 25px;
}

.air-title {
    font-size: 2.75rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-bottom: 30px;
    max-width: 500px;
    text-align: center;
}

.flex-title i {
    min-width: 25px;
    font-size: 1.25rem;
}

.img-container-blog {
    width: 100%;
    height: 200px;
}
.img-container-square {
    width: 100%;
    max-width: 450px;
    height: 450px;
}
.img-container-square-big {
    width: 100%;
    max-width: 650px;
}
.img-container-wide {
    width: 100%;
    height: 500px;
}
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.img-round-10 {
    border-radius: 10px;
}
.img-round-25 {
    border-radius: 25px;
}

hr {
    color: #ccc;
}

/* Scala */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: -0.05em;
}

h1 { font-size: 1.5rem; }  /* 24px */
h2 { font-size: 1.3rem; }  /* 20.8px */
h3 { font-size: 1.15rem; } /* 18.4px */
h4 { font-size: 1rem; }    /* 16px */
h5 { font-size: 0.9rem; }  /* 14.4px */
h6 { font-size: 0.8rem; }  /* 12.8px */

p, span {
    letter-spacing: -0.03em;
}

/* Text */
.text-pri {
    color: var(--primary-color);
}
.text-sec {
    color: var(--secondary-color);
}
.text-ter {
    color: var(--tertiary-color);
}
.text-gray {
    color: #444;
}
.text-lead {
    font-size: 1.25rem;
}
.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Assicurati che il contenitore abbia una larghezza definita */
    display: inline-block; /* Garantisce che funzioni correttamente in un `p` */
}

/* Background */
._bg-primary {
    background: var(--primary-color);
}
._bg-secondary {
    background: var(--secondary-color);
}
._bg-tertiary {
    background: var(--tertiary-color);
}

/* Air Menu */
.air-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: hidden;
    position: relative;
}

.air-menu-bottom {
    position: sticky;
    top:0;
    z-index: 999;
    background: #fff;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 12px;
    scroll-behavior: smooth;
    display: flex;
    justify-content: start;
    align-items: center;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f2f2f2;
}

@keyframes scrollHint {
    0% { scroll-snap-type: none; } /* Disabilita lo snap inizialmente */
    10% { scroll-behavior: auto; transform: translateX(-35px); }
    50% { transform: translateX(0); }
    100% { scroll-snap-type: x mandatory; } /* Riabilita lo snap alla fine */
}

.air-menu-bottom::-webkit-scrollbar {
    display: none; /* Nasconde la scrollbar su WebKit */
}

.air-menu-bottom .air-menu-logo {
    display: none;
}
.air-menu-bottom .air-menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.air-menu-bottom .air-menu-tool {
    display: none;
}

.air-menu-list ul {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.air-menu-list li {
    flex: 0 0 auto;
    position: relative; /* Necessario per posizionare la striscia sotto */
}

.air-menu-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    font-size: 13px;
    transition: color 0.3s ease-in-out;
}

.air-menu-list a img {
    width: 24px;  /* Regola la dimensione dell'icona */
    height: 24px;
    object-fit: contain; /* Mantiene le proporzioni */
    margin-bottom: 0;
}

.air-menu-list a span {
    margin-top: 5px;
}

.air-menu-list a:hover,
.air-menu-list a.nav-active {
    color: #555;
}

.air-menu-list a.nav-active span {
    font-weight: 600;
}

.air-menu-list a.nav-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.air-menu-top div a:nth-of-type(1) {
    display: none;
}



/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.bottom-bar.hidden {
    transform: translateY(100%);
}

.bottom-bar a,
.bottom-bar .btn-open-filter {
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-bar span {
    font-size: 12px;
}

.bottom-bar .btn-cta {
    height: 45px;
}

.btn-back {
    position: absolute;
    top:5px;
    left: 5px;
    color: #444;
    padding: 5px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    font-size: 0.85rem;
}



/* Map e Info Window */
#map {
    width: 100%;
    height: 100vh;
    background: #f7f7f7;
}
.map-container {
    display: none;
}
.info-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
}
.info-window img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
/* Rimuove il focus (bordo blu) dal pulsante di chiusura dell'InfoWindow */
.gm-ui-hover-effect:focus {
    outline: none !important;
}


/* Header */
.nav-link {
    color: #252525;
    font-weight: bold;
}

/* Footer */
footer {
    border-top: 1px solid #ddd;
    background-color: #f7f7f7;
    padding-top: 30px;
    padding-bottom: 90px;
}

/* Buttons */
button:focus,
button:focus-visible {
    outline: none;
    box-shadow: none;
}
.btn {
    border-radius: 10px;
}
.btn-open-map {
    position: fixed;
    bottom: 100px;
}
.btn-open-filter {
    border: 2px solid #252525;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
}
.btn-filter {
    border: 1px solid #e7e7e7;
    min-width: 40px;
    --bs-btn-active-bg: #fff;
    --bs-btn-active-color: #252525;
}

.btn-check:checked + .btn-filter {
    background: #ededed;
    border: 3px solid !important;
}

.btn-check:focus + .btn-filter,
.btn-check:active + .btn-filter,
.btn-check:not(:checked) + .btn-filter {
    border-color: #e7e7e7 !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #01afd9;
    --bs-btn-border-color: #01afd9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #01afd9;
    --bs-btn-hover-border-color: #01afd9;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #01afd9;
    --bs-btn-active-border-color: #01afd9;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #01afd9;
    --bs-btn-disabled-border-color: #01afd9;
}

.btn-outline-primary {
    --bs-btn-color: #01afd9;
    --bs-btn-border-color: #01afd9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #01afd9;
    --bs-btn-hover-border-color: #01afd9;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #01afd9;
    --bs-btn-active-border-color: #01afd9;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #01afd9;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #01afd9;
    --bs-gradient: none;
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f9af19;
    --bs-btn-border-color: #f9af19;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #f9af19;
    --bs-btn-hover-border-color: #f9af19;
    --bs-btn-focus-shadow-rgb: 225,83,97;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #f9af19;
    --bs-btn-active-border-color: #f9af19;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f9af19;
    --bs-btn-disabled-border-color: #f9af19;
}

/* Util Filter */
.air-menu-list .util-filter {
    position: relative;
    display: none;
}
#bottom-bar .util-filter {
    position: relative;
}
.filter-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #dc3545;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(50%, -50%);
}

/* Entity Card */
.entity-card {
    position: relative;
    display: flex;
    margin-bottom: 30px;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    width: 100%;
    max-width: 360px;
}
.entity-card .swiffy-slider {
    width: 100%;
    height: 360px;
}
.entity-card .swiffy-slider .slider-container li img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
}
.entity-body {
    flex: 1;
    position: relative;
    width: 320px;
    padding-right: 0;
}
.entity-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
.entity-body span {
    font-size: 14px;
    line-height: 14px;
    color: #666;
}
.entity-body .tag-name {
    font-weight: 500;
}
.entity-bar {
    position: absolute;
    top:5px;
    right: 5px;
    display: flex;
    justify-content: end;
    gap: 5px;
}
.entity-bar span {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.73);
    border-radius: 10px;
}
.entity-bar span:nth-child(3) {
    background: #f9af19;
}
.entity-bar span:nth-child(3) i {
    color: #fff;
}
.entity-adv span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px;
    background: var(--primary-color);;
    border-radius: 10px;
}
.entity-adv {
    position: absolute;
    top:5px;
    left: 5px;
}

/* Filter box */
.filter-box {
    background: #f7f7f7;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Offcanvas */
#offcanvasText,
#offcanvasFormLead,
#offcanvasHost,
#offcanvasNearly,
#offcanvasBooking {
    height: 95%;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}
#offcanvasImages {
    height: 100%;
}
#offcanvasMap .btn-on-map {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 99;
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#offcanvasMap .btn-close {
    border: 2px solid #252525;
    border-radius: 50%;
}
#offcanvasMap .offcanvas-body {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

/* Accordion */
.accordion {
    --bs-accordion-border-color: #fff;
}
.accordion-button {
    font-size: 1.15rem;
    padding-left: 0;
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background-color: #fff;
}

/* Swiffy */
.slider-indicators-round .slider-indicators > *, .slider-indicators-round.slider-indicators > * {
    border: .1rem solid transparent;
}
.slider-indicators-sm .slider-indicators, .slider-indicators-sm.slider-indicators {
    align-items: center;
}


/* Utils */
.no-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-no-wrap {
    white-space: nowrap;
}
.cursor-pointer {
    cursor: pointer;
}
.grecaptcha-badge {
    display: none;
}
label.btn {
    border-radius: 10px;
}

/* Animations */
.moving {
    animation: moving 3s linear infinite;
}
@keyframes moving {
    0% {
        transform: translateX(0);
    }
    2% {
        transform: translateX(25px);
    }
    4% {
        transform: translateX(0);
    }
    6% {
        transform: translateX(25px);
    }
    8% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(15px);
    }
    12% {
        transform: translateX(0);
    }
    14% {
        transform: translateX(15px);
    }
    16% {
        transform: translateX(0);
    }
    18% {
        transform: translateX(5px);
    }
    20% {
        transform: translateX(0);
    }
    22% {
        transform: translateX(5px);
    }
    24% {
        transform: translateX(0);
    }
}

/* Dots */
.dots {
    display: inline-block;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #fff;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Home */
.home-first-section .slider-container {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    height: 400px;
    border-radius: 25px;
}
.home-first-section .swiffy-slider .slider-container li img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center center;
}

/* Blog */
.card-blog-body {
    padding-top: 10px;
    padding-bottom: 20px;
}
.card-blog-body h4 {
    font-weight: 500;
    line-height: 1.4rem;
}






/*
 *
 * Tablet
 *
 */

@media (min-width: 576px) {

    h1 { font-size: 1.75rem; } /* 28px */
    h2 { font-size: 1.5rem; }  /* 24px */
    h3 { font-size: 1.3rem; }  /* 20.8px */
    h4 { font-size: 1.15rem; } /* 18.4px */
    h5 { font-size: 1rem; }    /* 16px */
    h6 { font-size: 0.9rem; }  /* 14.4px */

    .air-menu-bottom {
        justify-content: center;
    }

    .air-menu-list ul {
        justify-content: center;
    }

    .air-menu-top div a:nth-of-type(1) {
        display: unset;
    }

    .air-menu-list .util-filter {
        display: inline-block;
    }

    #offcanvasText,
    #offcanvasFormLead,
    #offcanvasHost,
    #offcanvasNearly,
    #offcanvasBooking {
        bottom: 0;
        top: auto;
        height: 100%;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        width: 600px;
    }

    .bottom-bar {
        display: none;
    }

    .list-heading {
        max-width: 100%;
    }

    .entity-bar {
        top: unset;
        bottom: 5px;
    }
    .entity-card {
        flex-direction: row;
        align-items: center;
        background: white;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
        width: 100%;
        max-width: 100%;
        gap: 20px;
        margin-bottom: 15px;
    }
    .entity-card.is-adv {
        background: #eefcfff0;
    }
    .entity-card .swiffy-slider {
        width: 200px;
        height: 150px;
    }
    .entity-card .swiffy-slider .slider-container li img {
        width: 200px;
        height: 150px;
    }
    .entity-body {
        padding-right: 20px;
        overflow-x: hidden;
    }
    .entity-bar span {
        border: 1px solid #e7e7e7;
    }
    .entity-bar span:nth-child(3) {
        border: none;
    }

    footer {
        padding-bottom: 30px;
    }

    /* Toast */
    .toast {
        min-width: 320px;
        font-size: 16px;
        font-weight: bold;
    }
    .toast-success {
        border-radius: 0;
        border: 4px solid #73b115;
        background-color: #88cd1e;
        color: #fff;
    }
    .toast-failed {
        border-radius: 0;
        border: 4px solid #bf1111;
        background-color: #e60c0c;
        color: #fff;
    }

}


/*
 *
 * Desktop
 *
 */
@media (min-width: 1200px) {

    .air-menu-bottom {
        justify-content: space-between;
    }

    .air-menu-bottom .air-menu-logo {
        display: block;
    }
    .air-menu-bottom .air-menu-tool {
        display: flex;
    }
    .air-menu-top {
        display: none;
    }

    .main-container {
        height: 100vh;
        padding: 0 15px 90px 15px;
    }
    .map-container {
        display: block;
    }

    .btn-open-map {
        display: none;
    }

}