@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");


:root{
    /* colori */
    --bianco: #fff;
    --nero: #000;
    --blu: #001d3d;
    --link-active: #bfa573;
    --text-white: #fff;
    --text-black: #000;
    --cursor-color: #03045e;
    --bg-grigio: #F9F9F9;

    /* font */
    --font-primario: "Playfair Display", serif;
    --font-secondario: "Figtree", sans-serif;
}

body {
  cursor: none !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

a, button, input, textarea {
    cursor: none !important;
}

p{
    font-family: var(--font-secondario);
    font-size: 16px;
    font-weight: 300;
    line-height: 31px;
}

h1{
    font-family: var(--font-primario);
    font-size: 66px;
}

h2{
    font-family: var(--font-primario);
    font-size: 54px;
}

h3{
    font-family: var(--font-primario);
    font-size: 34px !important;
    font-weight: 300;
}

h4{
    font-family: var(--font-primario);
    font-size: 26px;
}

h5{
    font-family: var(--font-primario);
    font-size: 23px;
}

body.cursor-on-dark {
    --cursor-color: #00b4d8;
}

.cursor-dot,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    background-color: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    /* Aggiunto will-change per ottimizzare le performance sulle dimensioni */
    will-change: transform, width, height;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    transition: opacity 0.3s ease, background-color 0.3s ease; 
}

.cursor-follower {
    width: 18px;
    height: 18px;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

/* --- HOVER SUI LINK --- */
body.cursor-hover .cursor-dot {
  o pacity: 0; 
}

body.cursor-hover .cursor-follower {
    width: 40px;
    height: 40px;
    background-color: transparent; 
    border: 2px solid var(--cursor-color); 
}

/* EFFETTO DISSOLVENZA */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bianco); /* Sfondo bianco */
    z-index: 999999; /* Sopra a tutto */
    opacity: 1; /* Inizia completamente bianco */
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-transition-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.navbar-custom {
    padding-left: 4%;
    padding-right: 4%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1060;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar-custom.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Ombra leggerissima e lussuosa */
    padding-top: 15px !important; /* Facoltativo: rimpicciolisce la navbar allo scroll */
    padding-bottom: 15px !important;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: none !important;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--bianco);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.burger-icon.open span{
    background: var(--nero);
}

.burger-icon span:nth-child(1) { top: 0px; }
.burger-icon span:nth-child(2) { top: 9px; opacity: 1; }
.burger-icon span:nth-child(3) { top: 18px; }

.burger-icon.open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.burger-icon.open span:nth-child(2) {
    opacity: 0; 
    left: -10px;
}
.burger-icon.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f9f6f0;
    z-index: 1050; /* Più basso della navbar (1060) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content ul li {
    margin: 15px 0; /* Margine leggermente ridotto per l'allineamento a sinistra */
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fullscreen-overlay.active .menu-content ul li {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-overlay.active .menu-content ul li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-overlay.active .menu-content ul li:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-overlay.active .menu-content ul li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-overlay.active .menu-content ul li:nth-child(4) { transition-delay: 0.4s; }
.fullscreen-overlay.active .menu-content ul li:nth-child(5) { transition-delay: 0.5s; }

.main-link {
    font-size: 3.5rem;
    color: #333;
    text-decoration: none;
    font-family: 'Georgia', serif; 
    transition: color 0.3s ease;
    display: inline-block;
}

.main-link:hover {
    color: var(--link-active);
}

.contact-info {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.4s;
}

.fullscreen-overlay.active .contact-info {
    transform: translateY(0);
    opacity: 1;
}

.contact-info h4 {
    letter-spacing: 2px;
    color: var(--link-active);
    font-size: 1.1rem;
}

.contact-link, .contact-text {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-secondario);
    font-weight: 300;
}

.contact-link:hover {
    color: var(--link-active);
}

body.no-scroll {
    overflow: hidden;
}

.prenota a{
    font-family: var(--font-primario);
    color: var(--text-white) !important;
    font-weight: 400 !important;
    letter-spacing: 3px !important;
}

.menu{
    font-family: var(--font-primario);
    color: var(--text-white) !important;
    font-weight: 400 !important;
    letter-spacing: 3px !important;
}

.navbar-custom.scrolled .prenota a,
.navbar-custom.scrolled .menu {
    color: var(--nero) !important;
}

.navbar-custom.scrolled .burger-icon span {
    background: var(--nero);
}

.navbar-custom.scrolled .logo img {
    filter: brightness(0);
    
}

.logo img {
    transition: filter 0.4s ease;
    max-width: 29%;
}

@media (max-width: 768px) {
    .main-link { 
        font-size: 2rem; 
    }
    
    .fullscreen-overlay .container {
        align-items: flex-start !important;
        overflow-y: auto; 
    }

    .menu-content {
        margin-top: 90px;
        padding-left: 20px;
        padding-bottom: 20px;
    }

    .menu-content ul li {
        margin: 8px 0;
    }
    .contact-info { 
        margin-top: 15px; /* Ridotto da 30px */
        border-top: 1px solid #ddd; 
        padding-top: 15px; /* Ridotto da 30px */
    }

    .contact-info .mt-4 {
        margin-top: 10px !important; 
    }
    
    .contact-link, .contact-text {
        font-size: 1rem;
    }

    .prenota{
        display: none;
    }

    .logo{
        text-align: start !important;
    }

    .logo img {
        max-width: inherit !important;
    }
}

.btn-tracciato {
  position: relative;
  display: inline-block;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 32px;
  font-family: var(--font-primario);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  outline: none;
}

/* --- TRIANGOLO SUI BOTTONI PRINCIPALI --- */

.btn-tracciato::after {
    content: "";
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
    
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor; 
    
    /* Aggiungiamo margine e larghezza del bordo alla transizione */
    transition: opacity 0.3s ease, margin-left 0.3s ease, border-left-width 0.3s ease;
}

.btn-tracciato:hover::after {
    opacity: 0;
    margin-left: 0; /* Azzera lo spazio vuoto tra il testo e il triangolo */
    border-left-width: 0; /* Restringe fisicamente il triangolo a 0 pixel */
}

.btn-tracciato .linea {
  position: absolute;
  background-color: #ffffff;
}

.btn-tracciato.btn-nero {
  color: #000000; 
}

.btn-tracciato.btn-nero .linea {
  background-color: #000000;
}

.btn-tracciato .linea-basso {
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  transition: width 0.25s ease 0.75s; 
}

.btn-tracciato .linea-destra {
  bottom: 0;
  right: 0;
  width: 2px;
  height: 0;
  transition: height 0.25s ease 0.5s;
}

.btn-tracciato .linea-alto {
  top: 0;
  right: 0;
  height: 2px;
  width: 0;
  transition: width 0.25s ease 0.25s;
}

.btn-tracciato .linea-sinistra {
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  transition: height 0.25s ease 0s; 
}

.btn-tracciato:hover .linea-basso {
  width: 100%;
  transition: width 0.25s ease 0s; 
}

.btn-tracciato:hover .linea-destra {
  height: 100%;
  transition: height 0.25s ease 0.25s;
}

.btn-tracciato:hover .linea-alto {
  width: 100%;
  transition: width 0.25s ease 0.5s;
}

.btn-tracciato:hover .linea-sinistra {
  height: 100%;
  transition: height 0.25s ease 0.75s;
}

/* TOP-HOME */
#top-home{
    min-height: 100vh;
    background-image: url('../img/Hotel_Nastro_Azzurro_Hall_7.jpg');
    background-size: cover;
    background-attachment: fixed;
}

#top-home .row{
    min-height: 90vh;
    padding-top: 120px;
}

#top-home .row .col-12{
    color: var(--text-white);
}

#top-home .row .col-12 h2{
    font-size: 70px !important;
}

#top-home .row .col-12 h3{
    font-family: var(--font-secondario) !important;
    margin-bottom: 20px;
    font-size: 22px !important;
    font-weight: 400;
    letter-spacing: 5px;
}

/* LA STRUTTURA */
#la-struttura {
    min-height: 600px;
    padding: 4% 0 0 0;
    position: relative; 
    z-index: 10; 
}

#la-struttura h1 {
    font-family: var(--font-secondario) !important;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
}

#la-struttura p {
    padding: 30px 100px 0 30px;
}

.testo-struttura{
    padding: 10% 0 0 0;
}

.img-wrapper {
    position: relative;
    padding-bottom: 80px; 
}

.img-hall {
    width: 80%;
    height: auto;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    display: block;
    will-change: transform;
    transition: transform 0.1s ease-out; 
}

.img-esterno {
    position: absolute;
    width: 65%; 
    right: 0; 
    bottom: -300px; 
    z-index: 2; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    will-change: transform;
    transition: transform 0.1s ease-out;
}

#le-camere {
    background-color: var(--bg-grigio);
    margin-top: -150px; 
    padding: 200px 4% 0 4%;
    position: relative; 
    z-index: 1;
}

#le-camere .row .col-md-6 p{
    padding: 30px 100px 0 30px;
}

.dati-camera{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.prezzi-c{
    font-family: var(--font-primario);
    font-size: 20px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
}

#sezione-slider-camere {
    width: 100%;
    position: relative;
    background-color: var(--bg-grigio);
}


.progress-col {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.progress-track-vertical {
    width: 2px;
    height: 350px; 
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-vertical {
    width: 100%;
    height: 0%;
    background-color: var(--cursor-color);
    position: absolute;
    top: 0;
    left: 0;
    transition: height 0.1s ease-out;
}

.slider-col {
    width: calc(100% - 80px); 
}

.camere-track {
    display: flex;
    gap: 60px !important;
    overflow-x: auto;
    scroll-behavior: smooth; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
    padding-bottom: 20px;
    cursor: none !important;
}

.camere-track::-webkit-scrollbar {
    display: none; 
}

.camera-card {
    min-width: 380px;
    max-width: 420px;
    flex-shrink: 0;
    user-select: none;
    position: relative; 
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; 
    cursor: none !important;
}

.img-wrapper-hover {
    position: relative;
    width: 100%;
}

.img-wrapper-hover .img-base,
.img-wrapper-hover .img-hover {
    width: 100%;
    display: block;
    pointer-events: none;
}

.img-wrapper-hover .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 100% 0 0); 
    transition: clip-path 0.8s ease;
}

.camera-card:hover .img-hover {
    clip-path: inset(0 0 0 0);
}

.camera-card hr.hover-line {
    width: 0%; 
    opacity: 0;
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--nero);
    transition: width 0.8s ease, opacity 0.8s ease;
}

.camera-card:hover hr.hover-line {
    width: 100%;
    opacity: 1;
}

.camera-card .prezzi-c {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.camera-card:hover .prezzi-c {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.camera-card .bottone-c {
    font-family: var(--font-secondario);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: none !important; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease; 
}

.camera-card:hover .bottone-c {
    opacity: 1;
    visibility: visible;
}

#servizi{
    background-image: url('../img/Hotel_Nastro_Azzurro_bg_1.png');
}

.sezione-incrociata {
    position: relative;
    height: 800px; /* Altezza del contenitore */
    z-index: 5;
}

.blocco-sx {
    position: absolute;
    left: 0;
    top: 250px; /* Posizionato molto più in basso */
    width: 65%;
    height: 700px;
    padding-top: 90px;
    padding-left: 4%;
    background-color: var(--blu); 
    color: var(--text-white);
    z-index: 2; 
    box-shadow: 25px 25px 60px rgba(0, 0, 0, 0.4); 
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.blocco-dx {
    position: absolute;
    right: 0;
    top: 50px;
    width: 45%; 
    height: 730px;
    background-size: cover;
    background-position: center;
    z-index: 1; 
    will-change: transform;
    box-shadow: -10px 15px 40px rgba(0,0,0,0.1);
}

/* --- CONTENITORE INTERNO SOVRAPPOSTO --- */
.contenitore-sovrapposto {
    position: absolute;
    top: 150px; /* Alzato leggermente per fare spazio */
    left: 8%; 
    width: 130%; 
    margin-top: 60px;
    z-index: 3; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
    display: flex; /* Nuova istruzione per affiancare le card */
}

/* --- CARD SERVIZI --- */
.servizio-card {
    flex: 1; /* Divide equamente lo spazio: 25% ciascuna */
    position: relative;
    background-color: var(--bianco);
    padding: 60px 40px;
    overflow: hidden; /* Fondamentale per nascondere lo sfondo eccedente */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: none !important;
}

/* Sfondo e Overlay (Invisibili di base tramite clip-path) */
.servizio-bg-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Modificato: 100% dall'alto verso il basso. Crea un punto zero in fondo. */
    clip-path: inset(100% 0 0 0); 
    transition: clip-path 0.8s ease;
}

.servizio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 2;
    /* Modificato in coordinamento con l'immagine */
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.8s ease;
}

/* Contenuto Testuale e Icone */
.servizio-content {
    position: relative;
    z-index: 3;
}

.servizio-card h4 {
    font-size: 16px;
    color: var(--text-black);
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.servizio-card p {
    font-size: 14px;
    line-height: 26px;
    color: #666;
    transition: color 0.4s ease;
    margin-bottom: 0;
}

/* Gestione Icone Sovrapposte */
.servizio-icona {
    position: relative;
    height: 45px;
}

.icona-base,
.icona-hover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    transition: opacity 0.4s ease;
}

.icona-hover {
    opacity: 0;
}

.servizio-card:hover .servizio-bg-hover,
.servizio-card:hover .servizio-overlay {
    clip-path: inset(0 0 0 0);
}

.servizio-card:hover .icona-base { opacity: 0; }
.servizio-card:hover .icona-hover { opacity: 1; }

.servizio-card:hover h4,
.servizio-card:hover p {
    color: var(--text-white);
}

.servizio-card:not(:last-child) {
    border-right: 1px solid #f0f0f0;
}

#contatti-home{
    min-height: 700px;
    padding-top: 6%;
}

.recapiti{
    padding: 4% 0 4% 7%;
}

.mappa-h{
    width: 100% !important;
    height: 100%;
}

footer {
    background-color: var(--bg-grigio);
    padding: 0 !important;
    
}

footer .row {
    min-height: 200px;
    padding: 4% 7%;
    margin: 0;
}

.logo-footer{
    border-right: 1px solid var(--nero);
    border-left: 1px solid var(--nero);
    min-height: 130px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.link-ristorante{
    font-family: var(--font-primario);
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 18px;
    text-decoration: none;
    color: var(--text-black);

    transition: all 0.5s;
}

.link-ristorante:hover{
    color: var(--link-active);
}

.note-legali{
    font-weight: 300;
}

.copyright {
    min-height: 60px !important;
    padding: 0 !important;
    background-color: var(--blu);
}

.cin{
    font-size: 12px;
}

#top-pagine{
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#top-pagine .row{
    min-height: 50vh;
    padding: 0 7% 3% 7%;
    color: var(--text-white);
}

.titolo-sez{
    font-weight: 300 !important;
  font-size: 38px !important;
}

#sez-camere{
    padding: 5% 7%;
}

#servizi-camere{
    padding: 4% 7%;
    background-color: var(--bg-grigio);
}

/* --- CONTENITORE CAROSELLO / MARQUEE --- */
.servizi-marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Leggera sfumatura ai bordi (opzionale) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    touch-action: pan-y; /* Permette lo scroll verticale della pagina su mobile */
}

.servizi-marquee-track {
    display: flex;
    gap: 50px;
    padding: 20px 0;
    width: max-content;
    will-change: transform;
    user-select: none; /* Evita la selezione fastidiosa del testo durante il trascinamento */
}

/* Stop dell'animazione quando il mouse è sopra al carosello */
.servizi-marquee-track:hover {
    animation-play-state: paused;
}

/* EFFETTO SFOCATURA AL PASSAGGIO DEL MOUSE */
/* 1. Abbassa l'opacità di TUTTI gli elementi quando il track è in hover */
.servizi-marquee-container:hover .servizio-item {
    opacity: 0.2; 
}
/* 2. Riporta al 100% solo l'elemento che ha il cursore sopra */
.servizi-marquee-track .servizio-item:hover {
    opacity: 1;
}

/* STILE DEL SINGOLO ELEMENTO DEL CAROSELLO */
.servizio-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-secondario);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-black);
    transition: opacity 0.4s ease;
    cursor: none !important; /* Rispetta il tuo cursore personalizzato */
    white-space: nowrap;
}

.servizio-icona-img {
    width: 26px; /* Mantiene la stessa grandezza delle vecchie icone */
    height: 26px;
    object-fit: contain; /* Evita che l'immagine si deformi */
    display: inline-block;
}

/* KEYFRAMES PER LO SCORRIMENTO */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    /* Scorriamo solo del 50% perché il JS duplicherà i contenuti, creando un loop perfetto */
    100% { transform: translateX(-50%); } 
}

/* --- SEZIONE SERVIZI ESPANSA (SOTTO) --- */
.servizi-espansi-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease;
}

/* Classe aggiunta dinamicamente dal JS per aprire la tendina */
.servizi-espansi-container.aperto {
    max-height: 800px; /* Un valore sufficientemente alto per contenere il contenuto */
    opacity: 1;
}

.servizi-espansi-container ul li {
    font-family: var(--font-secondario);
    font-size: 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
}

.servizi-espansi-container ul li .servizio-icona-lista {
    width: 25px;
    height: 25px;
    object-fit: contain; /* Mantiene le proporzioni dell'immagine */
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}

#griglia-camere{
    padding-top: 7%;
    padding-bottom: 2%;
}

/* --- OVERRIDE SCHEDE PER LA GRIGLIA CAMERE --- */
#griglia-camere .camera-card {
    min-width: 100%;
    max-width: 100%;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

#griglia-camere .img-wrapper-hover {
    overflow: hidden;
}

#griglia-camere .img-wrapper-hover {
    height: 400px;
    overflow: hidden;
}

#griglia-camere .img-wrapper-hover .img-base,
#griglia-camere .img-wrapper-hover .img-hover {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover; 
    object-position: center;
}

/* --- STILE GLOBALE PER LE LISTE DEI SERVIZI (Da usare nelle pagine delle camere) --- */
ul.lista-servizi-camera li {
    font-family: var(--font-secondario);
    font-size: 18px;
    margin-bottom: 25px;
    display: flex; /* Fondamentale per allineare icona e testo sulla stessa linea */
    align-items: center;
}

ul.lista-servizi-camera li .servizio-icona-lista {
    width: 30px; /* Mantiene l'icona piccola */
    height: 30px;
    object-fit: contain;
    margin-right: 26px;
    flex-shrink: 0; /* Impedisce all'icona di schiacciarsi se il testo va a capo */
}

.check-in span{
    font-family: var(--font-primario);
    font-weight: 300;
    font-size: 18px;
}

/* --- EFFETTO HOVER SULLE IMMAGINI --- */
.lightbox-trigger {
    cursor: none !important; /* Rispetta il tuo cursore custom */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-trigger:hover {
    opacity: 0.9;
    transform: scale(1.02); /* Leggero zoom per far capire che è cliccabile */
}

/* --- SFONDO SCURO LIGHTBOX --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000; /* Sopra la tua navbar (1060) e il menu (1050) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- IMMAGINE INGRANDITA --- */
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1); /* Effetto "pop" all'apertura */
}

/* --- BOTTONE CHIUSURA (X) --- */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-white);
    font-size: 50px;
    font-weight: 300;
    cursor: none !important;
    padding: 10px;
    z-index: 10001;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: var(--font-secondario);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--cursor-color);
    transform: scale(1.1);
}

/* --- OVERRIDE Z-INDEX CURSORE --- */
.cursor-dot,
.cursor-follower {
    z-index: 99999 !important; /* Molto più alto del lightbox che è 10000 */
}

#sez-contatti{
    padding-top: 8%;
    padding-bottom: 5%;
}

#sez-contatti .row .col-md-4{
    /* min-height: 250px; */
    text-align: center;
}

/* --- CONTENITORE DELL'ICONA --- */
.icona-contatto-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

/* --- STILE DELLE IMMAGINI --- */
.icona-contatto-wrapper .icona-base,
.icona-contatto-wrapper .icona-hover {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease;
}

/* Posiziona l'immagine hover sopra quella base e la nasconde */
.icona-contatto-wrapper .icona-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* --- EFFETTO AL PASSAGGIO DEL MOUSE --- */
/* Nasconde la base */
.icona-contatto-wrapper:hover .icona-base {
    opacity: 0;
}

/* Mostra l'hover */
.icona-contatto-wrapper:hover .icona-hover {
    opacity: 1;
}

.link-contatto{
    font-family: var(--font-primario);
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 22px;
    text-decoration: none;
    color: var(--text-black);

    transition: all 0.5s;
}

.link-contatto:hover{
    color: var(--link-active);
}

.mappa{
    width: 100%;
    height: 500px;
}

#intro-servizi{
    padding-top: 4%;
}

#sez-servizi{
    margin-top: 4%;
    margin-bottom: 4%;
}

.bg-servizio{
    background-image: url('../img/Hotel_Nastro_Azzurro_bg_servizio.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
}

.servizio p{
    padding: 10px 0;
    line-height: 25px;
}

.servizio img{
    width: 45px;
    height: auto;
    padding: 30px 0 10px 0;
}

/* --- EFFETTO CROSSFADE IMMAGINI SERVIZI --- */
.img-crossfade-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-servizio-base {
    display: block;
}

.img-servizio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 422px;
    height: auto;
    object-fit: cover; /* Assicura che copra perfettamente la foto sotto */
    opacity: 0; /* Invisibile di default */
    transition: opacity 0.4s ease-in-out;
    will-change: opacity;
    pointer-events: none; /* Evita che dia fastidio al cursore */
}

/* --- SFOCATURA BOX --- */
.servizio {
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    will-change: filter, opacity;
}

.servizio.sfocato {
    filter: blur(5px);
    opacity: 0.4;
}

.servizio:hover {
    transform: scale(1.02);
}

#sez-colazione{
    margin-top: 4%;
    padding: 4% 7% 0 7%;
    background-color: var(--bg-grigio);
}

#sez-colazione p{
    padding: 30px 100px 0 30px;
}

#sez-colazione .col-sm-6{
    padding: 0 0 0 43px;
}

#sez-colazione ul{
    font-size: 16px;
    font-weight: 300;
    line-height: 31px;
    list-style-type: "- ";
}

.testo-ristorante{
    padding: 0 0 0 3%;
}

/* --- SEZIONE PARALLASSE SPECCHIATA --- */
.img-wrapper-specchiato {
    position: relative;
    padding-bottom: 0;
}

/* L'immagine grande viene spinta sulla destra */
.img-hall-sx {
    width: 80%;
    height: auto;
    margin-top: 50px;
    margin-left: auto; 
    position: relative;
    z-index: 1;
    display: block;
    will-change: transform;
    transition: transform 0.1s ease-out; 
}

/* L'immagine piccola viene posizionata a sinistra */
.img-esterno-sx {
    position: absolute;
    width: 40%; 
    margin-left: 30px;
    left: 0; 
    bottom: -40px; 
    z-index: 2; 
    box-shadow: -15px 15px 35px rgba(0,0,0,0.1); /* Ombra specchiata verso sinistra */
    will-change: transform;
    transition: transform 0.1s ease-out;
}

#ristorante{
    padding-top: 6%;
    padding-bottom: 6%;
}

/* Reset per la versione Mobile */
@media screen and (max-width: 768px) {
    .img-hall-sx, .img-esterno-sx {
        position: static;
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
}

/* --- OTTIMIZZAZIONE MOBILE --- */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: 5px;
        right: 15px;
        font-size: 45px;
    }
}

@media (max-width: 992px) {
    .sezione-incrociata {
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin-top: 50px;
    }
    
    .blocco-dx {
        position: relative;
        width: 100%;
        height: 400px; /* Altezza dell'immagine su mobile */
        top: 0;
        right: auto;
        order: 1; /* L'immagine sta sopra */
    }
    
    .blocco-sx {
        position: relative;
        width: 100%;
        height: auto; /* CRUCIALE: permette al blocco di allungarsi in base alle card */
        min-height: auto;
        padding: 60px 5%; /* Aggiungiamo respiro ai lati */
        top: 0;
        left: auto;
        order: 2; /* Il contenuto blu sta sotto */
        margin-top: -40px; /* Crea una leggera sovrapposizione estetica con l'immagine */
        box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra il titolo e il pulsante */
        text-align: center;
    }
    
    .contenitore-sovrapposto {
        position: relative;
        top: auto;
        left: auto;
        width: 100%; 
        margin-top: 40px;
        margin-bottom: 40px;
        flex-direction: column; /* Impila le card */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .servizio-card {
        padding: 40px 20px;
        align-items: center; /* Centra icone e testi nelle card */
    }
    
    .servizio-card:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e0e0e0; /* Il divisore diventa orizzontale */
    }

    .blocco-sx h2 {
        margin-bottom: 0;
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    #la-struttura p{
        padding: 30px 0 0 0;
    }
    #top-home .row .col-12 h2{
        font-size: 60px !important;
    }
    .testo-struttura{
        padding: 10% 10% 0 10%;
    }
    #le-camere .row .col-md-6 p{
        padding: 10% 0 0 0;
    }
    .camera-card {
        min-width: 280px; 
    }
    .camere-track {
        gap: 30px !important; 
    }
    .progress-col {
        width: 40px; 
        padding-left: 10px !important;
        padding-right: 15px !important;
    }
    #servizi-camere{
        padding: 14% 10%;
    }
    #griglia-camere{
        padding-right: 10%;
        padding-left: 10%;
    }
    .camera-card hr.hover-line {
        width: 100%;
        opacity: 1;
    }
    .camera-card .prezzi-c {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .camera-card .bottone-c {
        opacity: 1;
        visibility: visible;
    }
    .logo-footer{
        border-right: 0 !important;
        border-left: 0 !important;
        display: none;
    }
    #sez-camere{
        padding: 14% 10%;
    }
    #sez-contatti{
        padding-top: 20%;
    }
    #sez-contatti .row .col-md-4{
        min-height: 300px !important;
    }
    #intro-servizi{
        padding: 14% 10%;
    }
    #sez-servizi .row{
        padding: 0 6%;
    }
    #sez-colazione{
        padding: 14% 10%;
    }
    #sez-colazione p{
        padding: 30px 0 0 0;
    }
    #sez-colazione .col-sm-6{
        padding: 0;
    }
    .griglia-cibo{
        padding: 0 4%;
    }
    #ristorante{
        flex-direction: column-reverse;
    }
    .img-ristorante{
        padding: 14% 10%;
    }
    .testo-ristorante{
        padding: 0 10% 14% 10%;
    }
    .testo-ristorante p{
        padding: 30px 0 0 0;
    }
    footer .row{
        padding: 4% 7% !important;
    }
}

@media screen and (max-width: 768px) {
    .img-wrapper {
        padding-bottom: 0;
        margin-top: 40px;
    }
    .img-hall, .img-esterno {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    #le-camere {
        margin-top: 0;
        padding-top: 60px;
    }
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-follower {
        display: none !important;
    }
    body, 
    input, 
    textarea, 
    .camere-track, 
    .servizio-card, 
    .servizio-item {
        cursor: auto !important;
    }
    a, 
    button, 
    .card-link-overlay, 
    .camera-card .bottone-c, 
    .lightbox-trigger, 
    .lightbox-close {
        cursor: pointer !important;
    }
}