/* 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;
}

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('https://appartamentibion.it/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: 60px;
    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;
}

.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;
}

/* Responsive Design for Mobile */
@media only screen and (max-width: 768px) {
    .arrivare-section {
        flex-direction: column;
    }

    .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: 600px;
    }

    #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;
    }
}

/* Ensure no excess space at the bottom */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
