body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e4f0e2; 
    color: #3e3e3e;
}

header,
footer {
    background: #6b8e23;
    padding: 1rem 0;
    text-align: center;
}

h1, h2 {
    color: #3e3e3e;
}

h1 {
    margin-top: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

figure {
    text-align: center;
}

figure img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
}

figure figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #3e3e3e;
}

figuree {
    position: relative;
    max-width: 300px;
    margin: 0 auto 20px;
    overflow: hidden; 
    z-index: -1
}

figuree img {
    border-radius: 4px;
    background: none;
    max-width: 100%;
    display: block;
    transform: rotate(5deg);
    border: none;
    box-shadow: none;
}
figuree2 {
    position: absolute;
    max-width: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    left: 40px;
    z-index: -1
}

figuree2 img {
    border-radius: 4px;
    background: none;
    max-width: 100%;
    display: block;
    transform: rotate(5deg);
    border: none;
    box-shadow: none;
}
.floating-image1 {
    position: absolute;
    top: 299px;
    right: 200px;
    width: 200px;
    z-index: 100;
}
figuree3 {
    position: relative;
    max-width: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    z-index: -1
}

figuree3 img {
    position: absolute;
    border-radius: 4px;
    background: none;
    max-width: 100%;
    display: block;
    transform: rotate(5deg);
    border: none;
    box-shadow: none;
    left: 90px; 
    top: 100px;
}




nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin: 5px 0;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}

footer a[href="https://www.google.com/maps"] {
    color: #fff;
}

a.buttonMain {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    text-decoration: none;
    background: #8b4513; 
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

a.buttonMain:hover {
    background: #555;
}

a.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    text-decoration: none;
    background: #6b8e23;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

a.button:hover {
    background: #555;
}

.moveText {
    position: relative;
    animation: moveTextAnimation 5s infinite alternate;
}

@keyframes moveTextAnimation {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(25px);
    }
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.floating-image1 {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 200px;
}
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px; 
}

.text-box {
    flex: 1 1 calc(50% - 40px);
    max-width: calc(50% - 40px);
}

figure {
    flex: 1 1 100%;
    max-width: 450px;
    text-align: center;
}

.relative-container {
    position: relative;
    width: 100%;
    height: 800px;
}

.main-image {
    position: absolute;
    top: 50px;
    left: 45%;
    transform: translateX(-50%);
}

.text-box-1 {
    position: absolute;
    top: 130px;
    left: 10px;
}

.text-box-2 {
    position: absolute;
    top: 400px;
    left: 10px;
}

.text-box-3 {
    position: absolute;
    top: 130px;
    right: 50px;
}

.text-box-4 {
    position: absolute;
    top: 550px;
    right: 50px;
}
.relative-container {
    position: relative;
    width: 100%;
    height: 800px;
}

.extra-image {
    position: absolute;
    top: 280px;
    right: 22%;
    transform: translateX(50%);
}

.extra-extra-image {
    position: absolute;
    top: 280px;
    right: 5%;
    transform: translateX(50%);
}

.cornice {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 350px;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
    background: none;

}

.cornice p {
    margin: 0;
    font-size: 1.2em;
    color: #3e3e3e;
}

@media (max-width: 1250px) {
    .container {
        width: 90%;
        margin: auto;
    }

    header,
    footer {
        padding: 1rem 0.5rem;
        text-align: center;
    }

    h1, h2 {
        font-size: 1.5em;
    }

    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .text-box {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .relative-container {
        height: auto;
    }

    .main-image,
    .text-box-1,
    .text-box-2,
    .text-box-3,
    .text-box-4,
    .extra-image,
    .extra-extra-image {
        position: static;
        margin-bottom: 20px;
        width: 100%;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .relative-container {
        height: auto;
    }

    .main-image,
    .extra-image,
    .extra-extra-image {
        position: static;
        transform: none;
        margin: 20px auto;
    }

    .text-box-1,
    .text-box-2,
    .text-box-3,
    .text-box-4 {
        position: static;
        margin: 20px auto;
        max-width: 100%;
        text-align: center;
    }

    .cornice {
        max-width: 100%;
        margin: 20px auto;
    }

    .chiSiamo {
        width: 300px; 
        height: auto;
    }
}