/* styles.css */

/* Reset e stili base */
body, h1, h2, p, ul, li, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f6f2;
}

/* Banner */
.banner {
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: #b5814d;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #9c6f47;
}

.header h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.header p {
    font-size: 1.2em;
}

/* Navigazione */
.nav {
    background-color: #9c6f47;
    overflow: hidden;
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    display: block;
    font-size: 1.1em;
}

.nav ul li a:hover {
    background-color: #805a3c;
}

/* Sezioni */
.section {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

.section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #444;
}

.section p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 5px solid #ddd;
    border-radius: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery .item {
    position: relative;
    overflow: hidden;
}

.gallery .item img {
    width: 100%;
    height: 200px; /* Altezza fissa per tutte le immagini */
    object-fit: cover;
    border: 5px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery .item img:hover {
    transform: scale(1.1);
}

/* Map Container */
.map-container {
    margin-top: 20px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border: 5px solid #ddd;
    border-radius: 10px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form di Contatto */
#contatti form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contatti form label {
    margin-bottom: 5px;
    font-weight: bold;
}

#contatti form input, #contatti form textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
}

#contatti form button {
    padding: 10px 20px;
    background-color: #b5814d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

#contatti form button:hover {
    background-color: #9c6f47;
}

/* Footer */
.footer {
    background-color: #9c6f47;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 2px solid #b5814d;
}

.footer p {
    margin: 0;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.popup-content {
    margin: 5% auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Info */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2em;
    color: #b5814d;
}

.contact-item p {
    margin: 5px 0;
    font-size: 1.1em;
}
