/* --- STILE GENERALE DEL CONTENITORE (IL RETTANGOLO ARROTONDATO) --- */
.booking-search-bar {
    /* Il contenitore principale che avrà lo sfondo bianco e il bordo */
    background-color: white;
    border: 3px solid #ff6400;

    /* Bordo Giallo/Arancione tipico di Booking */
    border-radius: 8px;

    /* Angoli arrotondati */
    padding: 4px;

    /* Spazio interno per gli input */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);

    /* Ombra leggera */
}

/* --- CAMPI DI INPUT (UNIFICAZIONE E RIMUOVERE BORDI INTERNI) --- */
.booking-field {
    /* Permette ai campi di crescere nel blocco d-flex */
    flex-grow: 1;

    /* Aggiunge una leggera separazione visuale verticale tra i campi su desktop */
    border-right: 1px solid #e0e0e0;
}

.booking-input {
    /* Rimuove lo sfondo, il bordo e l'ombra di focus di default di Bootstrap */
    border: none;
    box-shadow: none !important;
    background-color: transparent !important;
    height: 48px;

    /* Altezza fissa per allineamento */
    padding: 10px 12px 0;

    /* Padding per lasciare spazio al placeholder/label */
}

/* Nascondere il placeholder se c'è la label (opzionale) */
.booking-label {
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 11px;
    color: #6b6b6b;
    z-index: 10;
}

/* --- PULSANTE DI RICERCA (IL COLORE BLU SCURO DI BOOKING) --- */
.booking-button-container {
    /* Assicura che il contenitore del pulsante non abbia il bordo di separazione */
    border-right: none !important;

    /* Rende il pulsante fisso in larghezza su desktop */
    flex-grow: 0;
    flex-shrink: 0;
    width: 150px;

    /* Larghezza del pulsante su desktop */
    padding: 0 8px !important;

    /* Padding interno per centrare */
}

.booking-search-btn {
    /* Colore tipico del pulsante Booking.com */
    background-color: #0062c6 !important;
    color: white !important;
    border-radius: 6px !important;
    font-weight: bold;
    height: 100%;

    /* Si adatta all'altezza della barra */
    min-height: 48px;
}

/* --- ICONA DELLA POSIZIONE ALL'INTERNO DEL CAMPO DI INPUT --- */
/* 1. Stile per l'icona di sfondo */
.booking-field-location {
    /* Contenitore per la sola posizione per un'icona mirata */
    position: relative;
}

/* 2. Posizionamento dell'icona all'interno del campo */
.booking-field-location::before {
    content: '';

    /* Puoi usare un'immagine URL qui se hai un'icona specifica */
    /* Esempio: url('path/to/icon.svg') no-repeat; */
    /* Usiamo un'icona SVG incorporata (come una spilla di posizione) per esempio */
    background: url('../assets/images/travel_search.svg') no-repeat center center;
    background-size: 24px 24px;

    /* Dimensione dell'icona */
    /* Posizionamento assoluto */
    position: absolute;
    left: 10px;

    /* Distanza dal bordo sinistro */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    z-index: 100;

    /* Assicura che l'icona sia sopra l'input */
}

/* 3. Spazio nell'input per evitare che il testo si sovrapponga all'icona */
.booking-input-location {
    /* Sposta il testo a destra per fare spazio all'icona e al padding esistente */
    padding-left: 35px !important;
}

/* Regola la label in modo che non si sovrapponga all'icona */
.booking-field-location .booking-label {
    left: 35px;

    /* Sposta la label più a destra */
}

/* --- MEDIA QUERY: Adattamento per dispositivi mobili --- */
@media (max-width: 991.98px) {
    .booking-search-bar {
        border: none;

        /* Rimuoviamo il bordo colorato su mobile */
        padding: 0;
        box-shadow: none;
    }

    .booking-field {
        border-right: none;

        /* Rimuoviamo i divisori verticali */
        margin-bottom: 8px;

        /* Spazio tra i campi su mobile */
    }

    .booking-input {
        /* Aggiungiamo i bordi per separare i campi su mobile */
        border: 1px solid #e0e0e0 !important;
        border-radius: 4px;
        height: auto;
    }

    .booking-button-container {
        width: 100%;

        /* Pulsante a larghezza piena su mobile */
        padding: 0 !important;
    }

    .booking-search-btn {
        margin-top: 10px;

        /* Spazio prima del pulsante */
        min-height: 40px;
    }
}

/* Nasconde il contenuto principale finché il JS non lo mostra */
#content {
    /* Rimuovi "display: none;" se preferisci che il contenuto sia visibile 
       immediatamente e poi nascosto da JS, ma lasciarlo così è più sicuro. */
    display: none;
    padding: 20px;
    text-align: center;
}

/* **STILI DEL PRELOADER** */
/* Contenitore principale del Preloader (copre tutto lo schermo) */
.loader-page {
    background-color: #ffffff;

    /* Sfondo scuro */
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;

    /* Rimane sopra a tutto */
    top: 0;
    left: 0;

    /* Rende possibile l'animazione di dissolvenza (fade-out) */
    transition: opacity .5s ease-out;
    display: flex;

    /* Centra il contenuto */
    justify-content: center;
    align-items: center;
}

.loader-logo {
    margin-bottom: 30px;

    /* Spazio tra il logo e la percentuale */
    /* Se devi centrare elementi all'interno di loader-logo, usa display: flex */
    display: flex;
    justify-content: center;
}

#site-logo {
    /* Imposta le dimensioni massime per il tuo logo */
    max-width: 320px;

    /* Ad esempio, 200 pixel di larghezza massima */
    height: auto;
}

/* Modifica opzionale per rimettere in ordine gli elementi */
.loader-container {
    /* Assicurati che il contenitore sia sempre al centro */
    display: flex;
    flex-direction: column;

    /* Impila logo, contatore e barra verticalmente */
    justify-content: center;
    align-items: center;

    /* ...altri stili di .loader-container */
}

/* Contenitore della Barra e del Contatore */
.loader-container {
    width: 600px;
    max-width: 90%;

    /* Adattabilità per schermi più piccoli */
    height: auto;
    text-align: center;
}

/* Stile per il Contatore Percentuale */
.loader-counter p {
    font-size: 5rem;
    font-family: 'Lato', sans-serif;

    /* Assumi un font moderno */
    font-weight: 300;
    letter-spacing: -5px;
    color: #002D62;

    /* Colore accento */
    margin: 0 0 20px 0;
    z-index: 9;
}

/* Stile per la Barra Esterna */
.loader {
    width: 100%;

    /* Usa tutta la larghezza del container */
    height: 5px;
    background-color: rgba(255, 255, 255, 0.3);

    /* Barra di sfondo grigia/trasparente */
    position: relative;
}

/* Stile per la Barra di Riempimento */
.loader-fill {
    background-color: #002D62;

    /* Colore di riempimento */
    width: 0;

    /* Inizia a 0% */
    height: 100%;
    position: absolute;
    transition: width 0.1s linear;

    /* Animazione fluida del riempimento */
}

/* Classe per nascondere il preloader dopo il caricamento */
.loader-page-hidden {
    opacity: 0;
    visibility: hidden;
}

#flights_page .btn,
#trains_page .btn,
#rentals_page .btn,
#cruises_page .btn {
    position: relative;
    overflow: hidden;

    /* Fondamentale per nascondere l'icona quando è fuori dai bordi del pulsante */
    /* I padding predefiniti di Bootstrap per i bottoni dovrebbero essere sufficienti. */
}

#flights_page .airplane-animated-icon,
#trains_page .train-animated-icon,
#rentals_page .rental-animated-icon,
#cruises_page .cruise-animated-icon {
    position: absolute;
    top: 50%;
    font-size: 1.5em;
    color: currentColor;
    z-index: 1;
    left: -50px;
    opacity: 0;
    transform: translateY(-50%);
    transition: none;
}

#flights_page .btn:hover .airplane-animated-icon,
#trains_page .btn:hover .train-animated-icon,
#rentals_page .btn:hover .rental-animated-icon,
#cruises_page .btn:hover .cruise-animated-icon {
    animation: ftcc-animation 3.2s ease-out forwards;
}

@keyframes ftcc-animation {
    0% {
        left: -50px;
        opacity: 0;
        transform: translateY(-50%);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
        left: calc(100% - 10px);
    }

    100% {
        left: calc(100% + 50px);
        opacity: 0;
        transform: translateY(-50%);
    }
}

.partner-item {
    /* Imposta un'altezza minima per i contenitori per uniformarli.
       Puoi aggiustare questo valore se necessario o rimuoverlo
       e fare affidamento solo su align-items-stretch sulla row. */
    min-height: 200px;

    /* Esempio: altezza minima */
    display: flex;

    /* Abilita flexbox per allineare il contenuto */
    flex-direction: column;

    /* Organizza contenuto in colonna */
}

.partner-item a {
    display: block;

    /* Rendi il link un blocco per contenere l'immagine */
    height: 100%;

    /* Fai in modo che il link riempia l'altezza del contenitore flex */
}

.partner-item img {
    display: block;

    /* Rimuovi spazio extra sotto l'immagine */
    width: 100%;

    /* L'immagine occupa tutta la larghezza del suo contenitore */
    height: 100%;

    /* L'immagine occupa tutta l'altezza del suo contenitore */
    object-fit: cover;

    /* Ridimensiona l'immagine per coprire l'area mantenendo l'aspect ratio */
    object-position: center;

    /* Centra l'immagine nel contenitore */
}

/* Esempio per le icone SVG */
.svg-icon {
    /* Eredita il colore del testo del genitore (il link) */
    fill: currentColor;
}

/* Esempio per le icone Font Awesome (se vuoi controllarne il colore) */
.nav-item .nav-link .fas {
    /* Eredita il colore del testo del link */
    color: currentColor;
}

/* ====================================
   RESET E BASE
   ==================================== */
p {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif !important;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600 !important;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600 !important;
}

.at_headertext {
    visibility: hidden;
    text-align: center;
}

.at_headertext.animated {
    visibility: visible;
}

#at_category_home h2 {
    font-size: 1rem !important;
}

.at_headertext span {
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    filter: blur(8px);
    animation-name: expandAndFadeIn;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    animation-delay: calc(var(--index) * 0.05s);
}

@keyframes expandAndFadeIn {
    0% {
        opacity: 0;
        transform: scale(0);
        filter: blur(8px);
    }

    60% {
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.homepage h1.at_headertext {
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    letter-spacing: -1px !important;
}

h1.at_headertext {
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.5rem !important;
}

h1.at_headertext#list_title {
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    color: #002D62;
    letter-spacing: 0.5rem !important;
}

/* ====================================
   COLORI E STILI GENERALI
   ==================================== */
p.small.text-muted.mb-0.fw-bold {
    color: #002D62!important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.6rem;
}

p.small.text-muted.mb-1 {
    color: #ff6400 !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
}

.text-secondary,
a.text-secondary {
    color: #51596c !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.at_bg-blue {
    background-color: #002D62;
}

.bg-at-orange {
    background-color: #ffa000;
}

.bg-at-orange-light {
    background-color: #fdbd54;
}

.at-text-orange,
span .at-text-orange {
    color: #002d62;
    font-weight: bolder;
}

a.at-text-orange {
    color: #ffb31a;
}

a.at-text-orange:hover {
    color: #ff6400;
}

.at-text-orangedark {
    color: #ff6400;
}

.at-text-green {
    color: #009999;
}

.at-text-grey,
a.at-text-grey {
    color: grey;
}

a.at-text-grey:hover {
    color: ghostwhite;
}

section#fascia_prefooter {
    display: none;
}

footer a,
footer a.link-secondary.text-decoration-none {
    color: ghostwhite !important;
}

#newsletter_footer {
    display: none;
}

.mt-3.jobsearch {
    width: 120px;
}

.mt-3.jobsearch a:after {
    content: "Job Search";
    display: block;
    color: ghostwhite;
    text-align: center;
}

.btn-at-orange {
    color: white !important;
    background-color: #ffb31a !important;
    border-color: #ffb31a !important;
    transition: background-color 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.btn-at-orange:hover {
    color: white !important;
    background-color: #ff6400 !important;
    border-color: #ff6400 !important;
    box-shadow: 47, 201, 109 !important;
}

.btn-at-orange2 {
    color: white !important;
    background-color: #ff6400 !important;
    border-color: #ff6400 !important;
}

.btn-at-orange2:hover {
    color: white !important;
    background-color: #ffb31a !important;
    border-color: #ffb31a !important;
    box-shadow: 47, 201, 109 !important;
}

/* ====================================
   HEADER
   ==================================== */
header {
    padding-top: 1rem;
}

.logo {
    max-width: 340px;
}

#at_search {
    margin-left: 12px !important;
    margin-right: 12px;
}

#login_register {
    color: #fff;
    margin-right: 12px;
}

/* Menu Mobile */
button#menuButton,
.menu-close-button {
    display: none;
}

.headernormal {
    background-color: transparent;
    height: initial;
    transition: all 0.6s ease;
}

/* Stile dell'header quando si scorre */
.headernormal.scrolled {
    background-color: rgba(0, 45, 98, 0.9) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 16px;
}

.at_background_top {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease-in-out;
}

.at_background_top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
    transition: all 0.3s ease-in-out;
}

.at_background_top h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
}

/* Logo Header */
site_logo {
    width: 280px;
    transition: all 0.6s ease;
}

.site-logo_scroll {
    display: none;
    transition: all 0.6s ease;
}

.at_headertop_img {
    background-size: 50% auto;
    background-repeat: no-repeat;
    background-position: left;
}

/* ====================================
   STRUTTURE
   ==================================== */
/* Stile di base del contenitore */
.struttura {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    cursor: pointer;
}

div#location_address {
    display: flex;
    flex-wrap: wrap;
}

div#location_address svg {
    display: none;
}

.struttura #listing_location {
    display: block;
    font-weight: 600;
}

.struttura #listing_address {
    display: block;
    width: 100%;
    font-size: 00.8rem;
}

/* Effetto hover */
.struttura:hover {
    background-color: #f8f9fa;
    border: inherit;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-5px);
}

/* Animazione immagine durante l'hover */
.struttura:hover img {
    transition: transform 0.6s ease-in-out;
}

/* Titolo della struttura */
.struttura h3 {
    color: #333;
    transition: color 0.6s ease-in-out;
}

/* Cambia colore del titolo durante l'hover */
.struttura:hover h3 {
    color: #007bff;
}

/* Effetto pulsante durante l'hover */
.struttura:hover .btn-at-orange {
    background-color: #0056b3;
    transform: scale(1.1);
}

#contenitore-strutture {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.6%;
    padding: 0;
}

#contenitore-strutture > div {
    flex: 1 1 calc(25% - 1.6%);
    max-width: calc(25% - 1.6%);
    box-sizing: border-box;
    text-align: left;
    padding: 1%;
    margin-bottom: 1.6%;
}

#contenitore-strutture img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    height: auto;
}

#contenitore-strutture .recensioni-prezzo,
#contenitore-strutture .struttura hr,
#search-results-container .recensioni-prezzo,
#search-results-container .struttura hr {
    display: none !important;
}

.listing-category#contenitore-strutture {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.6%;
    padding: 0;
}

.listing-category#contenitore-strutture > div {
    flex: 1 1 calc(33.333% - 1.6%);
    max-width: calc(33.333% - 1.6%);
    box-sizing: border-box;
    text-align: left;
    padding: 1%;
    margin-bottom: 1.6%;
}

#contenitore-strutture .border,
#contenitore-strutturededicato .border {
    border: none !important;
}

#contenitore-strutturededicato {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.6%;
    padding: 0;
}

#contenitore-strutturededicato > div {
    flex: 1 1 calc(16.666% - 1.6%);
    max-width: calc(16.666% - 1.6%);
    box-sizing: border-box;
    text-align: left;
    padding: 1%;
    margin-bottom: 1.6%;
}

#contenitore-strutturededicato img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    height: auto;
}

#contenitore-strutturededicato hr,
#contenitore-strutturededicato .recensioni-prezzo {
    display: none !important;
}

#search-results-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.6%;
    padding: 0;
}

#search-results-container > div {
    flex: 1 1 calc(33.333% - 1.6%);
    max-width: calc(33.333% - 1.6%);
    box-sizing: border-box;
    text-align: left;
    padding: 1%;
    margin-bottom: 1.6%;
}

#search-results-container img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    height: auto;
}

#hotel_category,
#bb_category,
#apartments_category,
#farmhouse_category,
#fooddrink_category,
#travelexperience_category,
#museums_category {
    cursor: pointer;
}

img#list_logo {
    object-fit: cover;
}

a.btn.btn-at-orange.ms-2.p-2.rounded-pill {
    display: none;
}

.ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}

.ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#reviewForm {
    /* display: none !important; */
    margin-top: 30px;
}

#listing_container .form_reviews,
#listing_container #container_reviews {
    /* display: none !important; */
    margin-top: 30px;
}

#reviews-content img {
    display: none !important;
}

#reviews-content p {
    display: initial !important;
}

#container_reviews {
    /* display: none; */
}

#container_reviews p {
    display: none;
}

/* ====================================
  CAROSELLO MULTI-ITEM CON SLIDE DI 1 (personalizzato)
  Questo CSS è progettato per lavorare con la logica JS personalizzata in script.js
  ==================================== */
/* Esempio: Stile personalizzato per le frecce di navigazione di Swiper */
.swiper-button-prev,
.swiper-button-next {
    color: #ff9800;

    /* Cambia il colore delle frecce in arancione */
    /* Aggiungi altre regole CSS se vuoi cambiare dimensione, posizione, ecc. */
}

/* Esempio: Stile personalizzato per i pallini della pagination di Swiper */
.swiper-pagination-bullet {
    background-color: #ccc;

    /* Colore pallini inattivi */
    opacity: 1;

    /* Rendi i pallini inattivi non trasparenti */
    /* Aggiungi altre regole CSS se vuoi cambiare dimensione, forma, ecc. */
}

.swiper-pagination-bullet-active {
    background-color: #ff9800;

    /* Colore pallino attivo in arancione */
    /* Mantieni l'opacità predefinita di Swiper per gli attivi o impostala qui */
}

/* Esempio: Aggiungere spazio intorno al carosello se necessario */
#list_carousel {
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.4);

    /* Aggiungi padding o altri stili al contenitore principale del carosello */
}

#list_carousel .swiper-slide img {
    top: 50%;
    transform: translateY(-50%);
}

/* Rimuovi o sovrascrivi eventuali stili Bootstrap predefiniti per caroselli se necessario */
/* E le regole custom che avevamo scritto per l'hack Bootstrap */
/* Esempio: */
/* .carousel, .carousel-inner, .carousel-item {
    // Assicurati che non ci siano display, position, o overflow che interferiscono con Swiper
} */
/* ====================================
   GALLERIA
   ==================================== */
/* Stili per il contenitore delle frecce e il pulsante di chiusura */
#custom-lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060;
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90%;
    text-align: center;

    /* Aggiungi position: relative; se le frecce sono posizionate absolute rispetto a questo */
    /* position: relative; */
}

/* Stili per le frecce di navigazione */
.lightbox-arrow {
    position: absolute;
    top: 50%;

    /* Centrato verticalmente */
    transform: translateY(-50%);

    /* Aggiusta il centraggio */
    font-size: 40px;

    /* Dimensione icona */
    color: #fff;

    /* Colore freccia */
    cursor: pointer;
    z-index: 1070;

    /* Sopra l'immagine */
    padding: 10px;

    /* Area cliccabile */
    background-color: rgba(0, 0, 0, 0.3);

    /* Sfondo leggero */
    border-radius: 5px;
    user-select: none;

    /* Impedisce selezione del testo */
    transition: background-color 0.2s ease;

    /* Effetto hover */
}

.lightbox-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

#custom-lightbox-prev {
    left: 20px;

    /* Posiziona a sinistra */
}

#custom-lightbox-next {
    right: 20px;

    /* Posiziona a destra */
}

/* Stili per il pulsante di chiusura (ripetuti per chiarezza) */
#custom-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1070;
    line-height: 1;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    padding-top: 2px;

    /* Aggiusta centraggio verticale della X */
}

/* Stili per l'overlay e l'immagine come prima */
#custom-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    display: none;
    cursor: pointer;
}

#custom-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

body.no-scroll {
    overflow: hidden;
}

/* ====================================
   MAPPA
   ==================================== */
/* Markers animati mappa Listings */
.rotating-marker {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#map-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
    font-weight: bold;
    display: none;
}

/* ====================================
   LAYOUT
   ==================================== */
div#map-page-specific {
    display: none;
}

.video-container {
    position: relative;

    /* Necessario per posizionare correttamente l'iframe */
    padding-bottom: 56.25%;

    /* Mantiene il rapporto d'aspetto 16:9 (9 / 16 * 100 = 56.25%) */
    height: 0;

    /* L'altezza è data dal padding-bottom */
    overflow: hidden;

    /* Assicura che nulla fuoriesca dal contenitore */
    max-width: 100%;

    /* Rende il contenitore responsivo fino alla larghezza massima disponibile */
    margin: 20px auto;

    /* Centra il contenitore e aggiunge margine sopra/sotto (opzionale) */
}

.video-container iframe {
    position: absolute;

    /* Posiziona l'iframe rispetto al contenitore */
    top: 0;
    left: 0;
    width: 100%;

    /* Fa sì che l'iframe occupi tutta la larghezza del contenitore */
    height: 100%;

    /* Fa sì che l'iframe occupi tutta l'altezza del contenitore */
}

.accordion-button:not(.collapsed) {
    background-color: #ffa000 !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.at-shape {
    direction: ltr;
    left: 0;
    line-height: 0;
    overflow: hidden;
}

.at-shape-top svg {
    height: 100px;
    width: 100%;
}

.at-shape-bottom svg {
    height: 200px;
    width: 100%;
}

#logo-container {
    margin-bottom: 20px;
}

#logo {
    /* Adatta le dimensioni al tuo logo */
    max-width: 200px;
    height: auto;
}

/* ====================================
   DARK MODE
   ==================================== */
body.dark {
    background-color: #111827 !important;
}

body.dark .at_bg-blue {
    background-color: #1f2937;
}

body.dark #at_category_home,
body.dark #contenitore-strutture div,
body.dark #contenitore-strutturededicato div,
body.dark .bg-light,
body.dark .card {
    background-color: #1e2c44 !important;
}

body.dark #map-title {
    background-color: #1e2c448f !important;
}

body.dark #contenitore-strutture div,
body.dark #contenitore-strutture div .border,
body.dark #contenitore-strutturededicato div,
body.dark #contenitore-strutturededicato div .border,
body.dark .card {
    border-color: #2c4675 !important;
}

body.dark svg {
    stroke: #2c4675;
}

body.dark h1,
body.dark h2,
body.dark h3 {
    color: #fff !important;
}

body.dark p,
body.dark span,
body.dark hr,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark label {
    color: #cccc !important;
}

body.dark section,
body.dark .container-fluid {
    background-color: #111827;
}

body.dark .bg-white {
    background-color: #111827 !important;
}

body.dark .bg-at-orange {
    background-color: hsla(24, 100%, 50%, 0.462) !important;
}

body.dark .bg-at-orange h2,
body.dark .bg-at-orange p,
body.dark .bg-at-orange a {
    color: #1a1b1c !important;
    border-color: transparent;
}

body.dark .headernormal .container-fluid {
    background-color: transparent !important;
}

body.dark .headernormal.scrolled {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
}

body.dark .headernormal.scrolled .site-logo_scroll {
    display: none;
}

body.dark .headernormal.scrolled .site_logo {
    display: inherit;
}

body.dark .headernormal.scrolled .nav-link {
    color: white !important;
}

#at-selezioneicone path {
    fill: darkslategrey !important;
}

body.dark #at-selezioneicone path,
body.dark #at-admin path {
    fill: white !important;
}

#at-selezioneicone h2 {
    color: darkslategrey !important;
}

body.dark #at-selezioneicone h2 {
    color: white !important;
}

body.dark-mode .svg-icon,
body.dark-mode .nav-item .nav-link .fas {
    fill: #ffffff;

    /* Bianco per gli SVG in dark mode */
    color: #ffffff;

    /* Bianco per Font Awesome in dark mode */
}

body:not(.dark-mode) .svg-icon,
body:not(.dark-mode) .nav-item .nav-link .fas {
    fill: #000000;

    /* Nero per gli SVG in light mode */
    color: #fff;

    /* Nero per Font Awesome in light mode */
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

/* ====================================
   MEDIA QUERIES
   ==================================== */
/* Small devices (576px and up) */
@media (min-width: 576px) {
    .logo {
        max-width: 240px;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .logo {
        max-width: 280px;
    }

    .at_navbar {
        display: none;
    }

    #navbarToggler2 {
        display: flex;
        flex-wrap: wrap-reverse;
    }

    .homepage h1.at_headertext {
        font-size: 1.8rem;
        text-wrap: balance;
    }

    h1.at_headertext {
        font-size: 1.8rem;
        text-wrap: balance;
    }

    h1.at_headertext#list_title {
        font-size: 1.8rem;
        text-align: left;
        text-wrap: balance;
    }

    .login_listing {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .at_form-half {
        display: inline;
        width: 50%;
        float: left;
    }

    .at_form-half input {
        width: 98%;
    }

    .at_form {
        display: block;
        clear: both;
    }
}

/* X-Large devices (1200px and up) */
@media (min-width: 1200px) {
    h1 {
        font-size: 1.8rem;
    }

    #navbarToggler2 {
        display: flex;
        flex-wrap: wrap-reverse;
    }

    .login_listing {
        width: 100%;
    }
}

/* XX-Large devices (1400px and up) */
@media (min-width: 1400px) {
    .logo {
        max-width: 300px;
    }

    h1 {
        font-size: 2.1rem;
        text-align: center;
        letter-spacing: -1px !important;
    }

    .homepage h1.at_headertext {
        font-size: 1.75rem;
        text-align: center;
        text-wrap: balance;
    }

    h1.at_headertext {
        font-size: 2rem;
        text-align: center;
        text-wrap: balance;
    }

    h1.at_headertext#list_title {
        font-size: 2rem;
        text-align: left;
        text-wrap: balance;
    }

    h2 {
        font-size: 1.7rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    #navbarToggler2 {
        flex-wrap: nowrap;
    }

    .login_listing {
        width: 100%;
    }

    .at_header {
        align-items: end;
    }
}

/* Mobile devices and tablet (max-width 1199px) */
@media (max-width: 1199px) {
    #contenitore-strutture > div {
        flex: 1 1 calc(33.333% - 1.6%);
        max-width: calc(33.333% - 1.6%);
        box-sizing: border-box;
        text-align: left;
        padding: 1.6%;
        margin-bottom: 3.2%;
    }

    #search-results-container > div {
        flex: 1 1 calc(50% - 1.6%);
        max-width: calc(50% - 1.6%);
        box-sizing: border-box;
        text-align: left;
        padding: 1.6%;
        margin-bottom: 3.2%;
    }

    #contenitore-strutturededicato > div {
        flex: 1 1 calc(33.333% - 1.6%);
        max-width: calc(33.333% - 1.6%);
        box-sizing: border-box;
        text-align: left;
        padding: 1.6%;
        margin-bottom: 3.2%;
    }

    .listing-category#contenitore-strutture > div {
        flex: 1 1 calc(50% - 1.6%);
        max-width: calc(50% - 1.6%);
        box-sizing: border-box;
        text-align: left;
        padding: 1.6%;
        margin-bottom: 3.2%;
    }
}

/* Mobile devices (max-width 991px) */
@media (max-width: 991px) {
    .logo {
        width: 300px;
    }

    #contenitore-strutture > div {
        flex: 1 1 calc(50% - 1.6%);
        max-width: calc(50% - 1.6%);
        box-sizing: border-box;
        text-align: left;
        padding: 1.6%;
        margin-bottom: 3.2%;
    }

    #contenitore-strutturededicato > div {
        flex: 1 1 calc(50% - 1.6%);
        max-width: calc(50% - 1.6%);
        box-sizing: border-box;
        text-align: left;
        padding: 1.6%;
        margin-bottom: 3.2%;
    }

    .bg-blurred {
        background-color: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(8px);
    }

    #navbarToggler2 {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 9999;
        transform: scale(0);
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar-collapse.show,
    .scrolled .navbar-collapse.show {
        padding: 1em;
        background-color: rgba(0, 45, 98, 0.9) !important;
        backdrop-filter: blur(8px);
        box-shadow: 0 1px 16px;
    }

    #navbarToggler2.show,
    .scrolled #navbarToggler2.show {
        transform: scale(1);
        opacity: 1;
    }

    #menu-items.show {
        display: block !important;
    }

    #header-menu {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    #header-menu .nav-item {
        margin: 10px 0;
    }

    #header-menu .nav-link {
        font-size: 1.8em;
        color: #fff !important;
        display: flex;
        align-items: center;
    }

    /* Stile per il pulsante menu */
    button#menuButton {
        display: initial;
        color: #fff;
        position: absolute;
        top: 20px;
        right: 5%;
        z-index: 10000;
    }

    /* Stile per il pulsante di chiusura */
    .menu-close-button {
        display: initial;
        position: absolute;
        top: 10px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        z-index: 10001;
    }

    .menu-close-button:hover {
        color: #ff0000;
    }
}

/* Mobile devices (max-width 575px) */
@media (max-width: 575px) {
    .logo {
        max-width: 240px;
    }

    #contenitore-strutture > div {
        flex: 1 1 calc(100% - 3.2%);
        max-width: calc(100% - 3.2%);
        box-sizing: border-box;
        text-align: left;
        padding: 1%;
        margin-bottom: 3.2%;
    }

    #search-results-container > div {
        flex: 1 1 calc(100% - 3.2%);
        max-width: calc(100% - 3.2%);
        box-sizing: border-box;
        text-align: left;
        padding: 1%;
        margin-bottom: 3.2%;
    }

    #contenitore-strutturededicato > div {
        flex: 1 1 calc(100% - 3.2%);
        max-width: calc(100% - 3.2%);
        box-sizing: border-box;
        text-align: left;
        padding: 1%;
        margin-bottom: 3.2%;
    }

    .listing-category#contenitore-strutture > div {
        flex: 1 1 calc(100% - 3.2%);
        max-width: calc(100% - 3.2%);
        box-sizing: border-box;
        text-align: left;
        padding: 1%;
        margin-bottom: 3.2%;
    }
}