/* Imposta il body per permettere lo scrolling */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%; /* Permette alla pagina di estendersi */
    font-family: 'Cinzel', serif;
    overflow-x: hidden;
    position: relative; /* Evita problemi con la navbar */
    z-index: auto;
}

/* Whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
}

.whatsapp-float:hover {
    background-color: #15bb57;
}

.whatsapp-icon {
    font-size: 30px;
}

/* Navbar */
.navbar {
    position: absolute; /* Inizialmente sopra al contenuto */
    top: 0;
    right: 0; 
    left: 0;
    display: flex;
    justify-content: flex-end; /* Allinea i link a destra */
    z-index: 10000; /* Sovrapposizione sopra la galleria */
    background-color: transparent;
    height: 12%;
    width: 100%;
    transition: background-color 0.5s ease-in-out; /* Transizione fluida */
}

.navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-top:-1%;
    height:12%;
}
/* Navbar quando si scorre */
.navbar.fixed1 {
    background-color: transparent;
    position: fixed; /* Fissa la navbar in alto */
    top: -1%;
    left: 0;
    width: 100%;
    height: 12%;
}
.navbar.scrolled {
    background-color: #b36060; /* Colore di sfondo rosso quando si scorre */
    position: fixed; /* Fissa la navbar in alto */
    top: -1%;
    left: 0;
    width: 100%;
    height: 12%;
    z-index: 9999;
}


.navbar .fields {
    margin-left: 50%;
    margin-right: 5%;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 25px;
    position: relative;
    font-family: 'Cinzel', serif;
    white-space: nowrap;
    margin-right: 15px;
}

.navbar a:hover,
.navbar a.active {
    color: white;
    text-decoration: none;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: -10px;
    bottom: -20px;
    width: 0;
    height: 3px;
    background: white;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 120%;
    left: -10%;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: relative;
    left: 20px;
    top: 50%;
    margin-top: 0;
}

.hamburger div {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px 0;
}

/* Menu laterale */
.sidebar {
    position: fixed;
    top: 11%;
    left: -50%;
    width: 50%;
    height: 89%;
    background: rgba(0, 0, 0, 0.8);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.sidebar a {
    color: white;
    font-size: 25px;
    text-decoration: none;
    padding: 15px;
}

.sidebar a:hover {
    cursor: pointer;
}

/* Mostra la sidebar quando è attiva */
.sidebar.active {
    left: 0;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}
/*-----------------------HOME-------------------------*/
/* Galleria */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    margin-top: -5%;
}

.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mySlides.active {
    opacity: 1;
}

.mySlides::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}
.text-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2; /* Assicurati che il testo sia sopra le immagini */
    font-family: 'Cinzel', serif;
}

.text-container h1 {
    font-size: 40px; /* Imposta la dimensione del titolo */
    margin: 0;
}

.text-container p {
    font-size: 20px; /* Imposta la dimensione del sottotitolo */
}

/* Pannello informativo sotto la galleria */
.info-panel {
    width: 100%;
    padding: 50px 0; /* Spaziatura superiore e inferiore */
    display: flex;
    justify-content: center; /* Centra il contenuto orizzontalmente */
    align-items: center; /* Centra il contenuto verticalmente */
    position:relative;
    margin-top:7%;
}

.info-panel .text-container {
    text-align: center;
    color: black; /* Colore del testo */
    font-family: 'Cinzel', serif;
    width:40%;
}

.info-panel .text-container h1 {
    font-size: 40px;
    color: #b36060; /* Colore rosso, come la navbar */
    margin-bottom: 20px;
}

.info-panel .text-container p {
    font-size: 18px;
    color: black; /* Colore del testo nero */
    text-align: justify; /* Giustifica il testo del paragrafo */
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
/* Sezione Appartamento */
.apartment-section {
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top:7%;
    background-color: #f8eded;
}

.apartment-title {
    font-size: 40px;
    color: #b36060; 
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.apartment-container {
    display: flex;
    width: 60%;
    align-items: center;
    justify-content: space-between;
    transition: opacity 1s ease-in-out;
    min-height: 300px; 
    background-color: white;
}

.apartment-text {
    width: 45%;
    text-align: center;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.apartment-text h2 {
    font-size: 32px;
    color: #b36060;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.apartment-text p {
    font-size: 18px;
    color: black;
}

.apartment-image {
    width: 50%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Nasconde eventuali parti eccedenti */
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'immagine si adatta senza deformarsi */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-button {
    background-color: transparent;
    border: 2px solid #b36060;
    color: #b36060;
    font-size: 18px;
    padding: 5px 10px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    text-decoration: none;
    margin-top:2%;
}

.nav-button:hover {
    background-color: #b36060;
    color: white;
    font-family: 'Cinzel', serif;
}

.navigation-buttons .nav-button::before {
    content: attr(data-arrow);
    font-size: 30px;
    display: inline-block;
    border-radius: 5px;
}
.fade-out {
    opacity: 0;
}

/*Galleria per la vasca idromassaggio*/
/* Contenitore con sfondo immagine */
/* --- Sezione Hero --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px; 
    background-image: url('uploads/foto_ortaccio_relais/40.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    font-size: 24px;
    color: white;
    font-family: 'Cinzel', serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

/* --- Contenitore della galleria --- */
.gallery-container {
    width: 100%;
    overflow: hidden;
    background-color: #d3a6a6; 
    padding: 20px 0;
    position: relative;
}

/* --- Slider della galleria --- */
.image-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.image-slider img {
    width: 20%; 
    height: 250px;
    margin: 0 10px;
    object-fit: cover;
    cursor: pointer;
}

/* --- Pulsanti di navigazione della galleria --- */
.gallery-container .slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.87);
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
}

.gallery-container .prev {
    left: 10px;
}

.gallery-container .next {
    right: 10px;
}

/* --- Modal --- */
.modal {
    display: flex; 
    position: fixed !important; /* Assicura che sia sopra tutto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999999999 !important;/* Molto più alto della navbar */
}


.modal img {
    max-width: 80%;
    max-height: 80%;
}

/* --- Pulsante di chiusura modal --- */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.87);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20000000;
}

/* --- Pulsanti di navigazione nel modal --- */
.modal .slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.87);;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    z-index: 20000000;
    border-radius: 50%;
}

.modal .prev {
    left: 20px;
}

.modal .next {
    right: 20px;
}
.close-modal, .modal .slider-button {
    z-index: 999999999;
}
/*----DINTORNI NELLA HOME-----*/

.info-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f5f3; /* Colore sfondo leggero */
}

.info-section h2 {
    font-size: 40px;
    color: #b36060; /* Colore titolo */
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
}

.info-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 4%;
}

.info-card {
    width: 350px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
    text-align-last: left;
}


.info-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.info-card h3 {
    font-size: 30px;
    color: #b36060;
    font-family: 'Cinzel', serif;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
    text-align-last: center;
}

.info-card p {
    font-size: 18px;
    color: #333;
    margin-top: 5%;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom:30%;
    line-height: 1.5;
}

.info-btn {
    margin: 0 20px;
    padding: 7px 14px;
    font-size: 20px;
    color: #b36060;
    border: 2px solid  #b36060;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    text-decoration: none;
}

.info-btn:hover {
    background:  #b36060;
    color: white;
}

/*-----FOOTER-----*/

.footer {
    background-color: #f8eded;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Spazio tra le sezioni */
    align-items: flex-start; /* Allinea gli elementi in alto */
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-section {
    width: 45%;
}

.footer-section.left {
    text-align: left;
}

.footer-section.right {
    text-align: right;
}

.footer-section h3 {
    font-size: 18px;
    color: #b36060;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: #b36060;
    text-decoration: none;
    font-family: 'Cinzel', serif;
}


.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    font-size: 16px;
    color: #b36060;
    text-decoration: none;
    font-family: 'Cinzel', serif;
}


/*----APPARTAMENTI---*/

/*--foto sfondo iniiale--*/
.photo-background {
    background-image: url('uploads/vasanello_bg.jpg'); /* Sostituisci con il percorso della tua immagine */
    background-size: cover; /* Adatta l'immagine per coprire tutta l'area */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */
    height: 450px; /* Imposta l'altezza a 300px */
    width: 100%; /* Larghezza al 100% */
    margin-top:-10%;
}
.photo-background::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 450px;
    background-color: rgba(0, 0, 0, 0.2); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 5%;
    margin-bottom: 5%;
}

.panel {
    background: #f8eded;
    text-align: center;
    width: 49%;
    height:900px;
    overflow: hidden;
}

.panel img {
    width: 100%;
    height:450px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.panel img:hover {
    transform: scale(1.1);
}

.panel h3 {
    font-size: 35px;
    color: #b36060;
    text-decoration: none;
    font-family: 'Cinzel', serif;
}

.features {
    display: flex;
    justify-content: center;
    gap: 65px;
    margin-top:9%;
    font-size: 20px;
    color: #000000;
    font-family: 'Cinzel', serif;

}

.features div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.features i {
    color: #000000;
    font-size: 20px;
    font-family: "Font Awesome 6 Free"; /* Forza l'uso del font */
    font-weight: 900;
}

.panel h2{
    color: #000000;
    font-size: 50px;
    margin-top:3%;
    text-align: center;
    font-weight: normal;
    font-family: 'Cinzel', serif;
}

.button-link {
    background-color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 25px;
    cursor: pointer;
    color: #b36060;
    width:70%;
    height:10%;
    font-family: 'Cinzel', serif;
    border-radius: 5px;
    margin-top:9%;
    text-decoration: none;
    display: inline-block;
    text-align: center; /* Per allineare il testo */
    line-height:300%; /* Aggiusta il testo verticalmente */
}

.button-link:hover {
    background-color: #b36060;
    color: #ffffff;
}
.gallery-map-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 20px;
}

.gallery-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 60%;
    left:10px;
}

.gallery {
    position: relative;
    width: 32%;
    overflow: hidden;
    text-align: center;
    margin-left: 2%;
}

.gallery p {
    font-family: 'Cinzel', serif;
    color: #b36060;
    font-size: 20px;
}

.image-slider-ap {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 200px;
}

.image-slider-ap img {
    width: 100%;
    object-fit: cover; /* Assicura che l'immagine riempia lo spazio */
    flex-shrink: 0; /* Impedisce il ridimensionamento */
    cursor: pointer;
    display: block;
}

.controls span {
    position: absolute;
    top: 13%;
    transform: translateY(-50%);
    font-size: 15px;
    color: black;  /* Cambia colore in nero */
    cursor: pointer;
    padding: 5px 7.5px;
    background: white;
    border-radius: 50%;
    z-index: 100;
    user-select: none;
}

.prev { left: 15px; }
.next { right: 5px; }


.dots {
    text-align: center;
}

.dots span {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.dots .active {
    background-color: #b36060;
}

/* Nasconde i controlli e i dots di default */
.gallery .controls,
.gallery .dots {
    opacity: 0;
}

/* Quando il mouse passa sopra un'immagine dello slider, mostra i controlli e i dots */
.image-slider-ap img:hover ~ .controls,
.image-slider-ap img:hover ~ .dots,
.image-slider-ap:hover ~ .controls,
.image-slider-ap:hover ~ .dots {
    opacity: 1;
}

.map-section {
    width: 38%;
}

#map {
    width: 100%;
    height: 800px;
}

/*----DINTORNI----*/
/* Titolo */
.title-d {
    text-align: center;
    font-size: 35px;
    color: #b36060;
    margin-top:5%;
    margin-bottom:5%;
    font-family: 'Cinzel', serif;
}

/* Sezione di Sfondo */
.background-section-d {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.background-section-d.bottom {
    background-image: url('uploads/dintorni/pdm2.jpg'); 
    height:250px;
    margin-bottom: 5%;
    margin-top:5%;
}

.background-section-d.spa {
    background-image: url('uploads/dintorni/tdp.jpg');
    height: 250px;
    margin-bottom:10%;
    margin-top:5%;
}

.content-section-d {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 500px;
    padding: 50px;
    background-color: #fff;
}
.panel-d {
    max-width: 40%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    text-align: justify;
    text-align-last: left;
    display: flex;           /* Attiva flexbox */
    flex-direction: column;  /* Organizza gli elementi in colonna */
    justify-content: center; /* Centra verticalmente */
    align-items: center;     /* Centra orizzontalmente */
}
.panel-d h2 {
    font-size: 35px;
    color: #b36060;
    margin-bottom: 4%;
    font-family: 'Cinzel', serif;
}
.panel-d p {
    font-size: 20px;
    color: #333;
    line-height: 1.5;
}
.image-container-d1 {
    width: 50%;
    height: 450px;
    background-image: url('uploads/dintorni/cdb.jpg');
    background-size: cover;
    background-position: center;
}
.image-container-d2 {
    width: 50%;
    height: 450px;
    background-image: url('uploads/dintorni/pdm.jpg');
    background-size: cover;
    background-position: center;
}
.image-container-d3 {
    width: 50%;
    height: 450px;
    background-image: url('uploads/dintorni/tdp2.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 10%;
}

/* Bottone */
.btn-d {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 9px;
    background: #ffffff;
    color: #b36060;
    text-decoration: none;
    border: #b36060 2px solid;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 22px;
}

.btn-d:hover {
    background-color: #b36060;
    color:white
}

/* Divider Trasparente */
.divider-d {
    height: 100px;
    background: transparent;
}


/*----CONTATTI----*/
.photo-background-2 {
    background-image: url('uploads/foto_Suite_al_parco/IMG_2973.jpg'); /* Sostituisci con il percorso della tua immagine */
    background-size: cover; /* Adatta l'immagine per coprire tutta l'area */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */
    height: 450px; /* Imposta l'altezza a 300px */
    width: 100%; /* Larghezza al 100% */
    margin-top:-10%;
}
.photo-background-2::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 450px;
    background-color: rgba(0, 0, 0, 0.4); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}

/* Stile per il titolo principale */
.contact-title {
    text-align: center;
    font-size: 35px;
    color: #b36060;
    margin-top: 3%;
    margin-bottom: 2%;
    font-family: 'Cinzel', serif;
}

/* Stile per il sottotitolo */
.contact-subtitle {
    text-align: center;
    font-size: 35px;
    color: #b36060;
    margin-top: 2%;
    margin-bottom: 3%;
    font-family: 'Cinzel', serif;
}

/* Contenitore della sezione contatti */
.contact-container {
    background-color: #fef7f7;
    padding: 40px 20px;
    text-align: center;
    margin-top:3%;
}

/* Tabella contatti */
.contact-table {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 50%;
    border: 1px solid #b36060;
}

.contact-table table {
    width: 100%;
    border-collapse: collapse;
}

.contact-table td {
    padding: 15px;
    font-size: 20px;
}

.contact-table .label {
    background-color: white;
    color: #b36060;
    width: 30%;
    text-align: left;
}

.contact-table .value {
    background-color: #f8eded;
    color: black;
    text-align: left;
    width: 70%;
}

/* Stile per il pulsante email */
.contact-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 25px;
    border-radius: 5px;
    text-transform: uppercase;
    color: #b36060;
    background-color: white;
    border: 2px solid #b36060;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 5%;
}

.contact-button:hover {
    background-color: #b36060;
    color: white;
}

/* Sezione con immagine di sfondo */
.photo-background-end {
    background: url('uploads/vasanello_bg.jpg') no-repeat center center/cover;
    height: 300px;
    position: relative;
    background-attachment: fixed;
}

/*----ORTACCIO----*/
.photo-background-or {
    background-image: url('uploads/foto_ortaccio_relais/33.jpg'); /* Sostituisci con il percorso della tua immagine */
    background-size: cover; /* Adatta l'immagine per coprire tutta l'area */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */
    height: 450px; /* Imposta l'altezza a 300px */
    width: 100%; /* Larghezza al 100% */
    margin-top:-10%;
}
.photo-background-or::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 450px;
    background-color: rgba(0, 0, 0, 0.4); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}

/* Contenitore titolo + dettagli */
.apartment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    font-family: 'Cinzel', serif;
    color: black;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Titolo a sinistra */
.apartment-info h1 {
    font-size: 35px;
    color: #b36060;
    margin: 0;
}

/* Dettagli a destra */
.apartment-details {
    font-size: 22px;
    text-align: right;
    text-align-last: center;
    margin-left: 2%;
    margin-right: 2%;
}

/* Vista città centrata */
.apartment-view {
    text-align: justify;
    margin-top: 25px;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align-last: left;
}

/* Stile del titolo 'Vista Città' */
.apartment-view h2 {
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    gap: 10px;
    margin-bottom: 7%;
}

/* Testo sotto 'Vista Città' */
.apartment-view p {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 2%;
}

.apartment-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne */
    grid-template-rows: repeat(2, auto); /* 2 righe */
    gap: 1%; /* Spaziatura tra le immagini */
    width:90%; /* Larghezza massima */
    margin: 0 auto; /* Centra la galleria */
    padding: 1%;
}

.apartment-gallery img {
    width: 100%; /* Occupa tutto lo spazio della cella */
    height: 400px; /* Altezza automatica */
    object-fit: cover; /* Ritaglia le immagini per riempire lo spazio */
}

.gallery-panel {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: filter 0.3s ease;
    margin-top:5%;
}
.gallery-panel::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.4); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}

.gallery-panel:hover {
    filter: brightness(70%);
}

/* Testo sopra l'immagine */
.gallery-text {
    font-size: 15px;
    color: white;
    font-family: 'Cinzel', serif;
    text-align: center;
    z-index: 100;
}
.gallery-text h1{
    font-size: 35px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    text-align: center;
    z-index: 100;
}

/* Modale */
.modal-apartment {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Contenuto Modale */
.modal-content-apartment {
    position: relative;
    text-align: center;
}

.modal-content-apartment img {
    width: 90%;
    max-height: 700px;
}

/* Pulsante di chiusura */
.close-apartment {
    position: absolute;
    top: 3%;
    right: 2%;
    color: black;
    background: white;
    font-size: 25px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

/* Pulsanti avanti e indietro */
.prev-apartment, .next-apartment {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: black;
    font-size: 25px;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    border: none;
}

.prev-apartment {
    left: 2%;
}

.next-apartment {
    right: 2%;
}

.dotazioni-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Due colonne */
    max-width: 70%;
    margin: auto;
    margin-bottom: 5%;
    column-gap: 5%;
}

.dotazione {
    padding: 5px;
    font-size: 20px;
    text-align: left;
    background-color: white; /* Sfondo chiaro */
}

/* Alternanza dei colori su righe complete */
.dotazione:nth-child(4n+1),
.dotazione:nth-child(4n+2) {
    background-color: #eee6dd; /* Sfondo più scuro */
}

.dotazioni-title {
    font-size: 30px;
    color: rgb(0, 0, 0);
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-top: 3%;
    margin-bottom: 3%;
}




/*----SENTIMENTO----*/
.photo-background-lu {
    background-image: url('uploads/foto_Sentimento_Luxury_Rooftop/slr1.jpg'); /* Sostituisci con il percorso della tua immagine */
    background-size: cover; /* Adatta l'immagine per coprire tutta l'area */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */
    height: 450px; /* Imposta l'altezza a 300px */
    width: 100%; /* Larghezza al 100% */
    margin-top:-10%;
}
.photo-background-lu::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 450px;
    background-color: rgba(0, 0, 0, 0.4); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}
/*----SUITE AL PARCO----*/
.photo-background-pa {
    background-image: url('uploads/foto_Suite_al_parco/IMG_2973.jpg'); /* Sostituisci con il percorso della tua immagine */
    background-size: cover; /* Adatta l'immagine per coprire tutta l'area */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */
    height: 450px; /* Imposta l'altezza a 300px */
    width: 100%; /* Larghezza al 100% */
    margin-top:-10%;
}
.photo-background-pa::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 450px;
    background-color: rgba(0, 0, 0, 0.4); /* Ombra uniforme nera */
    z-index: 1; /* Sovrappone l'ombra sopra l'immagine */
}

/*----INFORMAZIONI LEGALI----*/
.paragrafo-legale {
    color: #b36060; /* Colore del testo simile a quello in immagine */
    font-family: Arial, sans-serif;
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
    width:70%;
    margin-left: 15%;
    margin-top:5%;
}

.paragrafo-legale h2 {
    color: #b36060;
    font-size: 20px;
}



/* Responsive */
@media screen and (max-width: 1450px) {
    .navbar .fields {
        margin-left: auto;
        margin-right: 5%;
    }
}

@media screen and (max-width: 1200px) {
    .navbar .fields {
        margin-left: auto;
        margin-right: 5%;
    }
    .panel {
        width: 70%;
    }
}

@media screen and (max-width: 1100px) {
    .navbar .fields {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    .navbar.scrolled, .navbar.fixed1 {
        background-color:  rgba(0, 0, 0, 0.5); 
        height:7%
    }
    .navbar {
        background-color:  rgba(0, 0, 0, 0.5);
    }
    .navbar.scrolled .hamburger, .navbar.fixed1 .hamburger {
        margin-top: -6%;
    }
    .slideshow-container {
        height: 600px;
        margin-top: -8%;
    }
    .info-panel {
        padding: 100px 0;
    }
    .image-slider img {
        width: 30%; 
    }
    .apartment-title {
        margin-bottom: 5%;
    }
    .panel {
        width: 75%;
    }
    .gallery-section {
        display: flex;
        flex-direction: column;
        width:100%
    }
    .gallery {
        width: 80%;
        margin-left: 10%;
    }
    .controls span {
        top: 35%;
    }
    .gallery-map-container {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }
    .map-section {
        width: 100%;
    }
    .panel-d {
        max-width: 60%;
        text-align: left;
    }
    .panel-d h2{
        font-size: 32px;
    }
    .apartment-info {
        display: flex;
        flex-direction: column;
    }
    .apartment-view {
        max-width: 70%;
    }
}

@media screen and (max-width: 900px) {
    .slideshow-container {
        margin-top: -10%;
    }
    .info-panel {
        padding: 150px 0;
    }
    .info-panel .text-container{
        width: 50%;
    }
    .apartment-container {
        display: flex;
        flex-direction: column;
        width: 70%;
        align-items: center;
        gap:20px;
    }
    .apartment-image {
        width: 90%;
        height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; 
        margin-bottom: 3%;
    }
    .apartment-text {
        width: 90%;
        text-align: center;
        font-size: 18px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .panel {
        width: 80%;
        height:750px;
    }
    .panel img {
        height:350px;
    }
    .features {
        gap: 55px;
        margin-top:7%;
    }
    
    .features div {
        gap: 8px;
    }
    .button-link {
        padding: 5px 10px;
        font-size: 25px;
    }
    .panel-d h2 {
        font-size: 30px;
    }
    .panel-d p {
        font-size: 18px;
        line-height: 1.3;
    }
    .image-container-d1 {
        width: 60%;
        height: 400px;
    }
    .image-container-d2 {
        width: 60%;
        height: 400px;
    }
    .image-container-d3 {
        width: 60%;
        height: 400px;
    }
    .content-section-d {
        padding: 5px;
    }
    .contact-table {
        margin: 19px auto;
        border: none;
    }
    .dotazioni-container {
        max-width: 80%;
    }
    .apartment-gallery {
        grid-template-columns: repeat(2, auto);
        grid-template-rows:repeat(3, 1fr);
    }
    .apartment-gallery img {
        height: 300px;
    }
}
@media screen and (max-width: 750px) {
    .slideshow-container {
        margin-top: -12%;
    }
    .info-panel .text-container{
        width:70%;
    }
    .sidebar {
        width: 100%;  /* Occupa tutta la larghezza */
        left: -100%;  /* Nasconde completamente il menu */
    }

    .sidebar.active {
        left: 0;  /* Mostra il menu */
    }
    .image-slider img {
        width: 40%; 
    }
    .apartment-image {
        height: 300px;
    }
    .apartment-container {
        width: 80%;
    }
    .navbar.scrolled .hamburger, .navbar.fixed1 .hamburger {
        margin-top: -8%;
    }
    .hero-section {
        height: 500px; 
    }
    .apartment-text h2 {
        font-size: 30px;
    }
    .info-card p {
        margin-bottom:25%;
    }
    .panel {
        width: 90%;
        height:700px;
    }
    .panel img {
        height:300px;
    }
    .features {
        gap: 50px;
        margin-top:6%;
    }
    
    .features div {
        gap: 7px;
    }

    .button-link {
        padding: 4px 8px;
        font-size: 23px;
    }
    .panel h3 {
        font-size: 30px;
    }
    .panel-d h2 {
        font-size: 25px;
    }
    .panel-d p {
        font-size: 18px;
        line-height: 1.1;
    }
    .image-container-d1 {
        width: 70%;
        height: 350px;
    }
    .image-container-d2 {
        width: 70%;
        height: 350px;
    }
    .image-container-d3 {
        width: 70%;
        height: 350px;
    }
    .content-section-d {
        width:100%;
    }
    .btn-d {
        padding: 4px 7px;
        font-size: 20px;
    }
    .contact-title {
        font-size: 30px;
    }
    .contact-subtitle {
        font-size: 30px;
    }
    .contact-table td {
        padding: 10px;
        font-size: 18px;
    }
    .contact-table {
        margin: 17px auto;
    }
    .apartment-view {
        max-width: 80%;
    }

    .photo-background {
        margin-top:-15%;
    }
    .photo-background-2 {
        margin-top:-15%;
    }
    .photo-background-or {
        margin-top:-15%;
    }
    .photo-background-pa {
        margin-top:-15%;
    }
    .photo-background-lu {
        margin-top:-15%;
    }
    .info-container{
        margin-bottom: 8%;
    }
}


@media screen and (max-width: 600px) {
    .slideshow-container {
        margin-top: -20%;
    }
    .info-panel .text-container{
        width:90%;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        width: 100%;
        margin-bottom: 20px;
        text-align: center; /* Centra il testo su mobile */
    }
    .text-container h1 {
        font-size: 35px; /* Imposta la dimensione del titolo */
        margin: 0;
    }
    
    .text-container p {
        font-size: 20px; /* Imposta la dimensione del sottotitolo */
    }
    .image-slider img {
        width: 50%;
    }
    .apartment-image {
        height: 200px;
    }
    .apartment-title {
        font-size: 35px;
    }
    .apartment-container {
        width: 90%;
    }
    .navbar.scrolled .hamburger, .navbar.fixed1 .hamburger {
        margin-top: -10%;
    }
    .hero-section {
        height: 400px; 
    }
    .hero-text {
        font-size: 20px;
    }
    .info-card img {
        height: 300px;
    }
    .apartment-title {
        margin-bottom: 7%;
    }
    .apartment-text h2 {
        font-size: 28px;
    }
    .info-card p {
        margin-bottom:20%;
    }
    .panel {
        width: 90%;
        height:600px;
    }
    .panel img {
        height: 250px;
    }
    .features {
        gap: 30px;
        margin-top:5%;
    }
    
    .features div {
        gap: 5px;
    }
    .features i {
        font-size: 18px;
    }
    .button-link {
        padding: 0;
        font-size:20px;
        margin-bottom:5%;
    }
    .panel h3 {
        font-size: 25px;
    }
    .panel-d h2 {
        font-size: 25px;
    }
    .panel-d p {
        font-size: 18px;
        line-height: 1.2;
    }
    .btn-d {
        padding: 3px 6px;
        font-size: 20px;
    }
    .panel-d{
        max-width: 80%;
    }
    .image-container-d1 {
        width: 70%;
        height: 500px;
    }
    .image-container-d2 {
        width: 70%;
        height: 500px;
    }
    .image-container-d3 {
        width: 70%;
        height: 500px;
    }
    .content-section-d {
        display: flex;
        flex-direction: column;
        height:750px
    }
    .title-d{
        font-size: 30px;
    }
    .contact-table {
        margin: 16px auto;
    }
    .dotazioni-container {
        grid-template-columns: 1fr; /* Una sola colonna */
        row-gap: 20px; /* Spazio verticale tra gli elementi */
        text-align: center; /* Allinea il testo al centro */
    }
    .dotazione:nth-child(odd) { 
        background-color: #eee6dd;
    }

    .dotazione:nth-child(even) { 
        background-color: white;
    }
    .apartment-gallery img {
        height: 200px;
    }
    .photo-background {
        margin-top:-20%;
    }
    .photo-background-2 {
        margin-top:-20%;
    }
    .photo-background-or {
        margin-top:-20%;
    }
    .photo-background-pa {
        margin-top:-20%;
    }
    .photo-background-lu {
        margin-top:-20%;
    }
    .apartment-details {
        text-align: center;
    }
}
@media screen and (max-width: 400px) {
    .slideshow-container {
        margin-top: -25%;
    }
    .info-panel {
        padding: 200px 0;
    }
    .text-container h1 {
        font-size: 28px; 
    }
    
    .text-container p {
        font-size: 18px; /* Imposta la dimensione del sottotitolo */
    }
    .image-slider img {
        width: 70%;
    }
    .apartment-title {
        font-size: 30px;
    }
    .navbar.scrolled .hamburger, .navbar.fixed1 .hamburger {
        margin-top: -15%;
    }
    .hero-section {
        height: 350px; 
    }
    .info-card img {
        height: 250px;
    }
    .apartment-title {
        margin-bottom: 9%;
    }
    .apartment-text h2 {
        font-size: 28px;
    }
    .info-card p {
        margin-bottom:15%;
    }
    .panel img {
        height:200px;
    }
    .panel {
        height:550px;
    }
    .features {
        gap: 20px;
        margin-top:4%;
        font-size: 15px;
    }
    
    .features div {
        gap: 2px;
    }
    .features i {
        font-size: 15px;
    }

    .panel-d h2 {
        font-size: 23px;
    }
    .panel-d p {
        font-size: 16px;
        line-height: 1;
    }
    .btn-d {
        padding: 2px 5px;
        font-size: 18px;
    }
    .panel-d{
        max-width: 80%;
    }
    .image-container-d1 {
        width: 70%;
        height: 400px;
    }
    .image-container-d2 {
        width: 70%;
        height: 400px;
    }
    .image-container-d3 {
        width: 70%;
        height: 400px;
    }
    .content-section-d {
        height:700px
    }
    .contact-table {
        margin: 15px auto;
    }
    .apartment-gallery img {
        height: 150px;
    }
    .photo-background {
        margin-top:-27%;
    }
    .photo-background-2 {
        margin-top:-27%;
    }
    .photo-background-or {
        margin-top:-27%;
    }
    .photo-background-pa {
        margin-top:-27%;
    }
    .photo-background-lu {
        margin-top:-27%;
    }
    .info-container{
        margin-bottom: 10%;
    }
}
