:root {
    --primary: #f09595;
    --dark: #2c3e50;
    --light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* =========================================
   LOGICA CAMBIO LINGUA (CSS)
   ========================================= */
/* Di default nascondi i testi inglesi */
.en { display: none; }

/* Quando il body ha la classe 'lang-en', inverti la visibilità */
body.lang-en .it { display: none; }
body.lang-en .en { display: block; }
/* Per i testi inline come i link */
body.lang-en span.en { display: inline; }

/* =========================================
   STILE DEL SITO
   ========================================= */
header {
    position: fixed; width: 100%; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: white; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { font-family: 'Montserrat'; font-size: 1.5rem; font-weight: 700; color: var(--primary); text-transform: uppercase;}
.logo a { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; }
.logo-img { height: 60px; width: auto; object-fit: contain; }

nav { display: flex; align-items: center; gap: 20px; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
nav a:hover { color: var(--primary); transition: var(--transition); }

/* Bottone Lingua */
.btn-lang {
    background: var(--primary); color: white; border: none;
    padding: 8px 15px; border-radius: 4px; cursor: pointer;
    font-weight: 600; font-family: 'Montserrat'; transition: var(--transition);
}
.btn-lang:hover { opacity: 0.8; }

/* Sezione Hero */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/window-view.png');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; text-align: center; padding: 0 20px;
}

h1 { font-family: 'Playfair Display'; font-size: 3.5rem; margin-bottom: 20px; }
.hero-desc { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; }

/* Sezioni Contenuto */
section { padding: 80px 10%; text-align: center; }
.title { font-family: 'Playfair Display'; font-size: 2.5rem; margin-bottom: 20px; }
.divider { width: 50px; height: 3px; background: var(--primary); margin: 0 auto 30px; }

/* Cards Appartamenti */
.apartments-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.apartment-card {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    transition: var(--transition);
}

.apartment-card:hover {
    transform: translateY(-5px);
}

.apartment-card h3 {
    font-family: 'Playfair Display';
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Chi Siamo / About Us */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: left;
    margin-top: 40px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-text p {
    margin-bottom: 15px;
}

/* Bottoni Booking */
.booking-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.btn-book {
    padding: 15px 40px; border-radius: 50px; text-decoration: none;
    font-weight: 600; color: white; transition: var(--transition); text-transform: uppercase;
    display: inline-block;
}
.btn-book.primary { background: var(--primary); }
.btn-book.airbnb { background: #FF5A5F; }
.btn-book.booking { background: #003580; }
.btn-book.instagram { background: #DD2A7B; }
.btn-book:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Contacts */
.contacts-reverse{
    unicode-bidi: bidi-override;
    direction: rtl;
}

footer { background: var(--dark); color: white; padding: 40px; text-align: center; }
footer a { color: white; text-decoration: underline; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    header { flex-direction: column; gap: 10px; }
    nav { flex-wrap: wrap; justify-content: center; }
    .about-container { flex-direction: column; text-align: center; }
}
