body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    color: #222;
    background: #fafafa;
}
.header {
    background: #34688c;
    color: #fff;
}
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8em 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo h1 {
    font-size: 2em;
    font-weight: 700;
}
.logo span {
    font-size: 1.1em;
    font-weight: 400;
    margin-left: 0.5em;
    color: #ffd166;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5em;
}
.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-menu li a:hover {
    color: #ffd166;
}
.hero {
    background: linear-gradient(90deg, #34688c 70%, #49a6be 100%);
    color: #fff;
    padding: 5em 0 2em 0;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.8em;
    font-weight: 700;
}
.hero-content p {
    font-size: 1.4em;
    margin: 1em 0 2em 0;
}
.btn-primary {
    background: #ffd166;
    color: #34688c;
    border: none;
    border-radius: 30px;
    padding: 1em 2.5em;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #ffd166cc;
}
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2em 1em;
}
.search-filters {
    background: #e7f3fa;
    margin-top: -2em;
    padding: 2em 0;
}
.filter-row {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.filter-row select, .filter-row button {
    padding: 0.7em 1em;
    border-radius: 5px;
    border: 1px solid #34688c33;
    font-size: 1em;
}
.filter-row button {
    background: #34688c;
    color: #fff;
    border: none;
    font-weight: 700;
    transition: background 0.2s;
}
.filter-row button:hover {
    background: #49a6be;
}
.immobili-section h2 {
    font-size: 2.2em;
    text-align: center;
}
.immobili-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 1em;
}
.immobile-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 16px #34688c11;
    padding: 1.5em;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.immobile-card:hover {
    box-shadow: 0 10px 32px #49a6be33;
}
.immobile-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1em;
    object-fit: cover;
}
.immobile-info {
    margin-bottom: 1em;
}
.immobile-title {
    font-weight: 700;
    font-size: 1.4em;
    margin-bottom: 0.2em;
}
.immobile-meta {
    color: #34688c;
    margin-bottom: 0.6em;
}
.immobile-desc {
    color: #333;
    margin-bottom: 0.6em;
    font-size: 1em;
}
.immobile-actions {
    display: flex;
    gap: 1em;
    margin-top: auto;
}
.btn-details, .btn-contact {
    padding: 0.6em 1em;
    border-radius: 7px;
    border: none;
    font-size: 1em;
    cursor: pointer;
}
.btn-details {
    background: #49a6be;
    color: #fff;
    font-weight: 700;
}
.btn-contact {
    background: #ffd166;
    color: #34688c;
    font-weight: 700;
}
.btn-details:hover {
    background: #34688c;
}
.btn-contact:hover {
    background: #ffd166cc;
}
.chi-siamo {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 4em 0 2em 0;
}
.chi-siamo-content {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    align-items: center;
}
.chi-siamo-text {
    flex: 2;
}
.servizi-list {
    margin-top: 2em;
    list-style: none;
    padding: 0;
}
.servizi-list li {
    color: #34688c;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.3em;
}
.chi-siamo-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}
.stat-box {
    background: #e7f3fa;
    border-radius: 10px;
    text-align: center;
    padding: 1em 0.5em;
    box-shadow: 0 2px 12px #34688c11;
}
.stat-box h3 {
    color: #34688c;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.stat-box p {
    color: #222;
    font-size: 1em;
}
.contatti {
    background: #f6f8fa;
    padding: 4em 0 2em 0;
}
.contatti-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
}
.info-contatti {
    flex: 1;
}
.form-contatti {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px #49a6be18;
    padding: 2em 1.5em;
    margin-top: 1em;
}
.form-group {
    margin-bottom: 1em;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 0.7em;
    border-radius: 7px;
    border: 1px solid #34688c33;
    font-size: 1em;
    background: #f6f8fa;
    margin-bottom: 0.4em;
}
textarea {
    resize: vertical;
}
.checkbox-label {
    font-size: 0.95em;
    color: #34688c;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.btn-primary {
    display: inline-block;
    margin-top: 0.5em;
}
.form-message {
    margin-top: 1em;
    font-size: 1.1em;
    color: #49a6be;
}
.footer {
    background: #34688c;
    color: #fff;
    padding: 2em 0 0.5em 0;
    font-size: 0.97em;
}
.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    align-items: flex-start;
}
.footer-logo h3 {
    font-size: 1.7em;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li a {
    color: #ffd166;
    text-decoration: none;
    font-weight: 600;
}
.footer-social .social-links a {
    font-size: 1.4em;
    color: #ffd166;
    margin-right: 0.7em;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-social .social-links a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    margin-top: 2em;
    font-size: 1em;
}
/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(52,104,140,0.18);
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2em;
    border-radius: 15px;
    width: 95%;
    max-width: 540px;
    position: relative;
    box-shadow: 0 4px 20px #34688c44;
}
.close {
    color: #34688c;
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}
@media screen and (max-width: 850px) {
    .immobili-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 2em;
        align-items: stretch;
    }
    .chi-siamo-content, .contatti-content {
        flex-direction: column;
        gap: 2em;
    }
}
