body {
    padding: 50px;
    background-image: url('./sfondo.jpg');
    background-repeat: repeat-y;
    min-width: 100vw;
    min-height: 100vh;
    background-position: center;
    height: 100%; /* Ensure full height for centering */
    margin: 0; /* Remove default margin */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    color: white;
    text-align: center;
}

/* Header styles */
.header {
    background: #333;
    padding: 1rem 0;
    width: 80%;
    border-radius: 20px;
}

.header h1{
    font-size: clamp(40px, 5vw, 60px);
}

.nav-bar{
    margin-top: 50px;
    margin-bottom: 20px;
}
.nav-bar ul {
    list-style: none;
    padding: 0;
}

.nav-bar ul li {
    display: inline;
}

.nav-bar ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(8px, 5vw, 20px);
    border: 2px solid white;
    border-radius: 10px;
    padding: 15px 20px;
    overflow: auto;
}

.nav-bar li {
    margin: 50px 10px;
}

.nav-bar ul li a:hover {
    text-decoration: underline;
}

/* Section styles */
.section {
    width: 80%; /* Section width fits content */
    height: fit-content; /* Section height fits content */
    padding: 20px;
    background: #333;
    margin: 10px;
    border-radius: 20px;
    overflow: auto;
    justify-content: center;
}

.section h2{
    font-size: clamp(20px, 3vw, 40px);
}
.section p{
    font-size: clamp(12px, 3vw, 20px);
    margin-top: 15px;
}


.centered-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px; /* Spacing between grid items */
    padding: 20px;
    width: 90%; /* Limit grid width */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
    justify-content: center;
}

.grid-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.grid-item h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}


.containerOrto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
    justify-content: center;
}


.responsive-image {
    width: 60%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Footer styles */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    border-radius: 20px;
    width: 80%;
}

.footer p {
    margin: 5px;
}

.centered-div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    border: 2px solid #333;
}

.centered-div p {
    padding: 0 80px;
}


.container {
    display: flex;
}

.box {
    flex: 1;
    text-align: center;
    margin: auto;
    font-size: clamp(10px, 2vw, 20px);
}

@media (max-width: 1080px) {
    .nav-bar ul li {
       display: block;
    }

    .header{
        width: 90%;
    }
    .section{
        width: 90%;
    }
    .footer{
        width: 90%;
    }
}

.hide {
    display: none;
}
