
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    position: relative;
}

/* Pattern laterale */
body::before, body::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10vw;
    background: url('immagini/sfondo.png');
    background-size: contain;
    background-repeat: repeat-y;
    z-index: -1;
}

body::before { left: 0; }
body::after { right: 0; }

/* HEADER */
header.hero {
    background: url('path/to/your/house-image.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

header .overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Georgia', serif;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
}

/* Sezioni */
.section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 40px auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Immagini scrollabili */
.image-placeholder {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    height: 300px;
    padding: 10px;
    background-color: #ddd;
    border-radius: 8px;
}

.image-placeholder img {
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

input, textarea, button {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

button {
    background-color: green;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: darkgreen;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Immagini laterali header */
header.hero .image-left,
header.hero .image-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

header.hero .image-left { left: 10vw; }
header.hero .image-right { right: 10vw; }

/* Slideshow */
.slideshow-container {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 150px;
    height: 100px;
    z-index: 10;
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100vw;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-button img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    header.hero { height: 40vh; }

    .slideshow-container {
        width: 120px;
        height: 90px;
    }

    .image-placeholder {
        height: 250px;
    }
}
