/* Ensure the body and other elements are set to default values */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.75em; 
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: #333;
    text-decoration: none;
}

@media (max-width: 768px) {
    .btn {
        margin-top: 5px;
        display: block;
    }
}

h1, h2, h3 {
    padding-bottom: 20px;
}

p {
    margin: 10px 0;
}

/* Style the navigation bar */
nav {
    background-color: #333;
    color: white;
    overflow: hidden; /* Use hidden instead of auto to remove the scrollbar */
}

/* Center the content within the container */
.container {
    margin: auto;
    max-width: 1100px;
    overflow: auto;  
    padding: 0 20px;
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: center;
}

/* Adjust the logo styling */
nav .logo {
    display: flex;
    align-items: center; /* Align the logo vertically */
}

nav .logo img {
    height: 60px; /* Adjust this height as needed */
    width: auto; /* Maintain aspect ratio */
}

/* Style the navigation links */
nav ul {
    list-style: none;
    margin-left: auto; /* Push the list to the right */
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Align items vertically */
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    padding: 20px;
    text-align: center;
    color: white;
}

nav ul li a:hover, nav ul li a.current {
    background-color: #444;
    color: yellow; 
}

/* Ensure headings and paragraphs are spaced correctly */
h1, h2, h3 {
    padding-bottom: 20px;
}

p {
    margin: 10px 0;
}

/* Showcase section styling */
#showcase {
    background: url('img/weber_fotointerni.jpg') center center/cover;
    background-repeat: no-repeat;
    height: 600px;
}

#showcase .heading {
    justify-content: center;
    text-align: center;
    padding-top: 170px;
}

#showcase .heading h1 {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 54px;
    line-height: 1.2em;
    padding-bottom: 20px;
    color: white;
}

.heading h1 span {
    color: #f7c08a;
}

.heading p {
    color: white;
    font-size: 20px;
    padding-bottom: 20px;
    line-height: 1.7em;
}


.btn {
    background-color: #333;
    opacity: 0.7; 
    border: none;
    color: white;
    padding: 13px 20px;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
}

.btn:hover {
    background-color: #f7c08a;
    color: black;
}


@media (max-width: 768px) {
    .btn {
        margin-top: 5px;
        display: block;
    }
}


.heading a {
    text-decoration: none;
    color: white;
}

/* Image section styling */
.sezionedoppia {
    height: 400px;
}

.sezionedoppia .immaginesx {
    float: left;
    width: 50%;
    background-repeat: no-repeat;
    min-height: 100%;
}
.sezionedoppia .immaginesconto {
    width: auto; /* La larghezza si adatta proporzionalmente */
    height: 600px; /* Altezza fissa */
    margin-left: auto; /* Centrare l'immagine */
    margin-right: auto;
    background-repeat: no-repeat;
    display: block; /* Assicura il centramento */
    margin-top: 7vh;
    margin-bottom: 7vh;
    border-radius: 5px; /* Contorno arrotondato */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8); /* Ombra leggera */

}

@media (max-width: 768px) {
    .sezionedoppia .immaginesconto {
        height: 400px; /* Altezza per schermi più piccoli (telefono) */
    }
}



.sezionedoppia .paragrafo {
    text-align: center;
    justify-content: center;
    background-color: #333;
    color: white;
    display: block;
    min-height: 100%;
    max-height: 100%;
    width: 50%; /* Adjust to 50% to match the image width */
    overflow: hidden;
    padding: 50px 30px;
}

.sezionedoppia .paragrafo span {
    color: #f7c08a;
}

.sezionedoppia h2 {
    padding-top: 50px;
    font-size: 30px;
    line-height: 1.2em;
}

.sezionedoppia p {
    display: block;
    text-align: center;
    justify-content: right;
}

.sezionedoppia a {
    padding: 20px;
    border: none;
    background-color: white;
}

.sezionedoppia a:hover {
    background-color: #f7c08a;
}


/* Features section styling */
.fbox {
    float: left;
    width: 33%;
    padding: 50px 0px 50px 0px;
    text-align: center;
}

.colored {
    background-color: #f7c08a;
}

.fbox i {
    margin-bottom: 20px;
}

.clr {
    clear: both;
}

/* Footer styling */
.foot {
    text-align: center;
    background-color: #444;
    color: white;
    padding: 20px;
}

/* Additional styling */
.aboutinf span {
    color: #f7c08a;
}

.rig {
    width: 50%;
    min-height: 100%;
    float: right;
}

.rig img {
    width: 70%;
    display: block;
    margin: auto;
    padding-top: 50px;
    border-radius: 50%;
}

.aboutinf {
    float: left;
    width: 50%;
    min-height: 100%;
    padding: 50px;
}

.aboutinf h1 {
    font-size: 2.9em;
    line-height: 1.2em;
}

#bottom {
    background: url(Assests/test-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 10%;
    display: block;
}

#bottom .heading1 h1 {
    color: white;
    text-align: center;
    font-size: 3.5em;
    line-height: 1.2em;
}

.rev {
    padding: 40px;
}

.rev img {
    width: 100px;
    border-radius: 50%;
    float: left;
    margin-right: 20px;
}

.rev p {
    display: block;
    margin: 10px 0;
}

.rev {
    border: 1px solid #f7c08a;
    background-color: #f7c08a;
}

.rev1 {
    padding: 40px;
}

.rev1 img {
    width: 100px;
    border-radius: 50%;
    float: left;
    margin-right: 20px;
}

.rev1 p {
    display: block;
    margin: 10px 0;
}

.rev1 {
    border: 1px solid #f7c08a;
    background-color: #f7c08a;
}

.contact-form {
    padding: 10px;
    margin: 20px;
    justify-content: center;
}

.contact-form span {
    color: #f7c08a;
}

.contact-form h1 { 
    font-size: 3em;
}

.contact-form h3 {
    padding: 10px;
    color: #333;
    font-style: normal;
}

form {
    padding: 10px;
    margin: 20px;
}

form label {
    font-size: 20px;
    color: #444;
}

form input {
    width: 100%;
    padding: 10px;
    border: 1px solid lightgray;
}

form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid lightgray;
}

.icon-1 {
    float: left;
    width: 33%;
    padding: 50px;
    text-align: center;
    background-color: #333;
    color: white;
    justify-content: center;
}

.icon-1 i {
    margin-bottom: 20px;
    padding-left: 10px;
}

.clr {
    clear: both;
}



.arrivare-section {
    min-height: 750px; /* Increase minimum height to accommodate the content */
}

.arrivare-section .paragrafo {
    display: flex; /* Change to flex to align items within */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    width: 50%; /* Adjust to 50% to match the image width */
    padding: 50px 30px;
}

.arrivare-section .travel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure the container spans the full width */
    padding: 20px 0;
}

.arrivare-section .travel-box {
    background-color: #444;
    color: white;
    flex: 1 1 calc(50% - 40px); /* Adjust the box size */
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.arrivare-section .travel-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.arrivare-section .travel-header i {
    font-size: 24px;
}

.arrivare-section .travel-header h3 {
    margin: 0;
    font-size: 20px;
}

.immaginesx_dis {
    position: relative;
    height: 100%;
}


/* Responsive Design for Mobile */
@media only screen and (max-width: 768px) {
    .arrivare-section {
        flex-direction: column;
        min-height: 0px;
    }

    .arrivare-section .paragrafo {
        width: 100%;
        padding: 30px 20px;
    }

    .arrivare-section .travel-options {
        flex-direction: column;
        align-items: center;
    }

    .arrivare-section .travel-box {
        flex: 1 1 100%;
        margin-bottom: 20px;
        min-width: 100%;
    }

    .container {
        flex-direction: column;
        padding: 0 10px;
    }
    

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        margin: 0;
        justify-content: center;
    }

    nav ul li {
        width: 50%; /* Two items per row */
        text-align: center;
    }

    #showcase {
        height: 800px;
    }

    #showcase .heading {
        padding-top: 100px;
    }

    #showcase .heading h1 {
        font-size: 40px;
    }

    #showcase .heading p {
        font-size: 16px;
    }

    .sezionedoppia {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .sezionedoppia .immaginesx,
    .sezionedoppia .paragrafo {
        width: 100%;
        float: none;
    }

    .sezionedoppia .immaginesx {
        height: 200px;
        width: 100%;
    }

    .fbox {
        width: 100%;
        padding: 20px 0;
    }

    /* Adjust iframe height for mobile */
    .immaginesx_dis {
        height: 400px; /* Set container height to 100% of viewport height */
    }
    
    .immaginesx_dis iframe {
        /*height: 120vh; /* Ensure iframe takes full height of container */
        width: 100%; /* Ensure it spans full width */
        border: none; /* Remove any default border */
        margin: 0;
    }
}

/* Ensure no excess space at the bottom */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}



/* Stile per la sezione Appartamenti Disponibili */
#appartamenti_disponibili {
    padding: 50px 0;
    background-color: #333; /* Sfondo scuro come nelle altre sezioni */
    color: white; /* Colore del testo bianco */
}

.appartamenti-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch; /* Allinea l'altezza dei box */
}

.appartamento {
    background-color: #444; /* Sfondo scuro per i box */
    border: 1px solid #555; /* Bordo più scuro */
    border-radius: 10px;
    overflow: hidden;
    width: calc(50% - 10px); /* Allarga i box per occupare più spazio */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center; /* Centra il testo */
    padding: 20px; /* Aggiungi padding per spaziare il contenuto */
    display: flex;
    flex-direction: column; /* Organizza il contenuto in colonna */
}

.appartamento:hover {
    transform: translateY(-10px);
}

.appartamento img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px; /* Arrotonda solo gli angoli superiori */
    filter: brightness(70%);
}

.appartamento .booking_award {
    width: 30vh;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    filter: brightness(100%);
    box-shadow: 1px 1px 2px #1313135b;
}

.appartamento h3 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: #f7c08a; /* Colore oro per il titolo */
}

.appartamento p {
    font-size: 1em;
    color: #ddd; /* Testo grigio chiaro */
    margin: 10px 0;
}

.appartamento .features {
    list-style: none;
    padding: 0 20px;
    text-align: center; /* Centra la lista delle features */
    flex: 1; /* Fai espandere la lista per riempire lo spazio */
}

.appartamento .features li {
    margin: 10px 0;
    font-size: 0.9em;
    color: #ddd; /* Testo grigio chiaro */
}

.appartamento .features i {
    margin-right: 10px;
    color: #f7c08a; /* Colore oro per le icone */
}

.appartamento .btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f7c08a; /* Colore oro per il pulsante */
    color: #333; /* Testo scuro */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.appartamento .btn:hover {
    background-color: #e0a96d; /* Colore oro più scuro al passaggio del mouse */
    color: black;
}

/* Responsive Design per Mobile */
@media (max-width: 768px) {
    .appartamenti-grid {
        flex-direction: column;
    }

    .appartamento {
        width: 100%;
        margin-bottom: 20px;
    }
}



.showcase-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.showcase-section .container {
    position: relative;
    z-index: 2;
}

.showcase-section .background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-section .background-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(50%);
}

.showcase-section .background-images img.active {
    opacity: 1;
}
.offerte-section {
  background-color: #333;
  color: #fff;
  padding: 60px 0;
}

.offerte-section h2,
.offerte-section h3 {
  margin-bottom: 15px;
  color: #f7c08a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.container-offerte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.offerta-card {
  background-color: #444;
  border: 1px solid #555;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .3s ease;
}

.offerta-card:hover {
  transform: translateY(-6px);
}

.offerta-card.featured {
  border: 3px solid #f7c08a;
  /*order: -1;             sempre al centro nei browser moderni */
  grid-column: span 1;
}

.offerta-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.offerta-info li i {
  color: #f7c08a;
  margin-right: 8px;
}

.price {
  font-weight: bold;
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .offerta-card.featured {
    grid-column: span 1; /* diventa a tutta larghezza su mobile */
    order: -1;
  }
  .offerta-info {
    font-size: 0.9rem;
  }
  
}





.appartamenti-reviews-slider {
  max-width: 1200px;
  margin: 0 auto;
}
.appartamenti-review-item {
  position: relative; /* serve per posizionare in modo assoluto il logo dentro questo contenitore */
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid #555;
  border-radius: 20px;
  margin: 10px;
  background: #444;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.appartamenti-review-item img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px auto;
}
.appartamenti-review-item h4 {
  margin: 0 0 5px 0;
  font-weight: bold;
  font-size: 1.1rem;
}
.appartamenti-review-item .stars {
  color: #f5b50a;
  font-size: 18px;
  margin-bottom: 5px;
}
.appartamenti-review-item .time {
  font-style: italic;
  font-size: 14px;
  color: #cdcdcd;
  margin-bottom: 8px;
}
.appartamenti-review-item .text {
  font-size: 15px;
  line-height: 1.4;
  color: #ffffff;
  flex-grow: 1;
}
.platform-logo {
  position: absolute;
  top: 20px;
  right: 10px;
  width: 20px;
  height: 20px;
}

.platform-logo img {
  width: 100%;
  height: 100%;
  border-radius:unset;
}

.booking-rating {
  color: white;
  background-color: #003580; /* colore tipico di Booking */
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 1.2em;
  font-weight: bold;
  margin: 8px 0;
}


/* Metodi di Pagamento */
#metodi-pagamento {
    background-color: #333;
    color: white;
    padding: 60px 0;
}

#metodi-pagamento h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

#metodi-pagamento h2 span {
    color: #f7c08a;
}

.payment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.payment-column {
    flex: 1 1 calc(50% - 20px);
    background-color: #444;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.3);
}

.payment-column h3 {
    color: #f7c08a;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.payment-methods {
    list-style: none;
    padding: 0;
}

.payment-methods li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.payment-methods i {
    color: #f7c08a;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.payment-methods small {
    display: block;
    margin-top: 5px;
    color: #bbb;
    font-size: 0.8em;
}

.payment-full-width {
    flex: 1 1 100%;
    background-color: #444;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.3);
    margin-top: 20px;
}

.payment-full-width h3 {
    color: #f7c08a;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.payment-full-width ul {
    list-style: none;
    padding-left: 20px;
}

.payment-full-width li {
    margin-bottom: 10px;
    position: relative;
}

.payment-full-width li:before {
    content: "•";
    color: #f7c08a;
    position: absolute;
    left: -20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-column {
        flex: 1 1 100%;
    }
    
    #metodi-pagamento h2 {
        font-size: 2em;
    }
}








/* Sezione Mercatini */
#mercatini {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

#mercatini h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

#mercatini h2 span {
    color: #f7c08a;
}

.immagini-mercatini {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.immagine-mercatini {
    flex: 1;
    max-width: 900px;
    text-align: center;
}

.immagine-mercatini img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #555;
}

.immagine-mercatini img:hover {
    transform: scale(1.05);
    border-color: #f7c08a;
}

.didascalia {
    margin-top: 10px;
    color: #f7c08a;
    font-size: 0.9em;
}

/* Modal per lo zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f7c08a;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .immagini-mercatini {
        flex-direction: column;
        gap: 15px;
    }
    
    .immagine-mercatini {
        max-width: 100%;
    }
    
    .immagine-mercatini img {
        height: 180px;
        max-width: 300px;
    }
}