@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #C19B52; /* Oro raffinato e moderno */
    --primary-hover: #a68241;
    --bg-light: #FAFAFA;      /* Bianco leggermente caldo */
    --bg-white: #FFFFFF;
    --text-dark: #2A2A2A;     /* Antracite elegante */
    --text-muted: #757575;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text { font-family: 'Playfair Display', serif; }

/* =====================================
   1. HEADER E NAVIGAZIONE (SISTEMATI)
   ===================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px; /* Padding ridotto per far comandare l'altezza al logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO MOLTO PIU' GRANDE E FISSO */
.logo-text {
    display: block;
    flex-shrink: 0; /* FONDAMENTALE: impedisce che il logo venga schiacciato */
    z-index: 1001;
}

.logo-text img {
    height: 85px; /* LOGO GRANDE SU DESKTOP */
    width: auto;
    display: block;
    object-fit: contain;
}

/* MENU DESKTOP */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin-left: auto; /* Spinge il menu tutto a destra */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    white-space: nowrap; /* Mantiene il testo in riga */
}

.nav-links a:hover:not(.btn-book) { color: var(--primary-color); }
.hamburger { display: none; font-size: 2rem; cursor: pointer; color: var(--primary-color); z-index: 1001; }

/* LINGUE DESKTOP */
.lang-switcher {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border-right: 2px solid #eee;
    padding-right: 20px;
    margin-right: 10px;
    align-items: center;
}

/* =====================================
   2. BOTTONI ELEGANTI
   ===================================== */
.btn-book {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.85rem;
    letter-spacing: 1px; transition: all 0.4s ease; border: 2px solid var(--primary-color); cursor: pointer;
    white-space: nowrap;
}
.btn-book:hover {
    background: transparent; color: var(--primary-color) !important;
    box-shadow: 0 10px 20px rgba(193, 155, 82, 0.15);
}
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 14px 32px; border-radius: 50px;
    text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.85rem;
    letter-spacing: 1.5px; transition: all 0.4s ease;
}
.btn-outline:hover {
    background: var(--primary-color); color: var(--bg-white) !important;
    box-shadow: 0 10px 20px rgba(193, 155, 82, 0.15);
}
.buttons-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }


/* =====================================
   3. SEZIONI E CONTENUTI
   ===================================== */
.hero {
    height: 85vh; margin-top: 100px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('images/classic/foto1.jpg') center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--bg-white);
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 20px; font-weight: 600; letter-spacing: -1px; }
.hero p { font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; }

.section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.sec-title { text-align: center; margin-bottom: 70px; }
.sec-title h2 { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.sec-title p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* CARD APPARTAMENTI */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; }
.apt-card {
    background: var(--bg-white); border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04); transition: all 0.4s ease;
    display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.02);
}
.apt-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.apt-card img { width: 100%; height: 320px; object-fit: cover; }
.apt-info { padding: 40px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.apt-info h3 { font-size: 2rem; margin-bottom: 15px; color: var(--text-dark); }
.apt-icons { display: flex; justify-content: center; gap: 25px; margin-bottom: 25px; color: var(--primary-color); font-size: 1.3rem; }
.apt-info p { margin-bottom: 30px; color: var(--text-muted); flex: 1; font-size: 1.05rem; }

/* GALLERIA INTERNA APPARTAMENTI */
.apt-header { margin-top: 150px; text-align: center; margin-bottom: 60px; }
.apt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 80px; }
.apt-gallery img {
    width: 100%; height: 260px; object-fit: cover; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: transform 0.4s ease;
}
.apt-gallery img:hover { transform: scale(1.03); z-index: 10; position: relative; }

/* FEATURES */
.features-box { background: var(--bg-white); padding: 60px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.03); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-item { display: flex; align-items: center; gap: 15px; font-weight: 500; font-size: 1.05rem; }
.feature-item i { color: var(--primary-color); font-size: 1.5rem; width: 35px; text-align: center; }

/* CONTATTI */
.contact-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.contact-card {
    background: var(--bg-white); padding: 40px 30px; border-radius: 16px; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04); transition: transform 0.3s ease; border: 1px solid rgba(0,0,0,0.02);
    text-decoration: none; color: var(--text-dark); display: block;
}
.contact-card:hover { transform: translateY(-8px); border-color: var(--primary-color); }
.contact-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 10px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.contact-card p { font-size: 1.1rem; color: var(--text-muted); }

/* FOOTER */
footer { background: var(--text-dark); color: var(--bg-white); padding: 70px 5% 40px; text-align: center; }
footer p { color: #999; margin-bottom: 10px; }


/* =====================================
   4. RESPONSIVE DESIGN
   ===================================== */

/* BREAKPOINT TABLET / LAPTOP: Se lo schermo stringe, mostra sùbito il menu Hamburger */
@media (max-width: 1150px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Si attacca sotto il logo */
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 30px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        gap: 20px;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }

    /* Lingue Centrate nel Menu Mobile */
    .lang-switcher {
        border-right: none !important;
        padding-right: 0 !important;
        justify-content: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px !important;
        margin-right: 0 !important;
        width: 100%;
    }
}

/* BREAKPOINT MOBILE (Smartphone) */
@media (max-width: 768px) {
    .logo-text img {
        height: 65px; /* LOGO PIU GRANDE E LEGGIBILE SU MOBILE */
    }
    .hero { margin-top: 85px; } /* Adatta l'immagine sotto il nuovo header */
    .hero h1 { font-size: 2.5rem; }
    .apt-card img { height: 250px; }
    .apt-info { padding: 30px 20px; }
    .features-box { padding: 40px 20px; }
    .buttons-group { flex-direction: column; }
    .buttons-group .btn-book, .buttons-group .btn-outline { width: 100%; }
}

/* =====================================
   BADGE RECENSIONI
   ===================================== */
.score-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.score-badge {
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 18px;
    /* Bordo arrotondato stile Booking, ma con i tuoi colori */
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 8px 20px rgba(193, 155, 82, 0.3);
    line-height: 1;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apt-gallery a { display: block; overflow: hidden; border-radius: 12px; }
.apt-gallery img:hover { transform: scale(1.05); transition: 0.4s; }

.gallery-img{
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-img:hover{
    transform: scale(1.02);
}

.lightbox{
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
}

.lightbox-content{
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    animation: zoomIn 0.25s ease;
}

.lightbox-close{
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

@keyframes zoomIn{
    from{
        transform: scale(0.9);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
}