/* Definizioni Variabili Colori */
:root {
    --color-white: #ffffff;
    --color-light-gray: #f8f8f8;
    --color-dark-gray: #333333;
    --color-text-body: #555555;

    /* Colori d'accento scelti */
    --color-beige-sable: #E0DCD4;
    --color-terracotta-pale: #CDA087;
    --color-gold-brushed: #B8860B;
}

/* --- Stili Generali e Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Tipografia --- */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-dark-gray);
    margin-bottom: 0.8em;
}

h1 {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
}

h2 {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Aumenta il padding verticale per fare spazio al logo più grande */
    padding-top: 30px; /* Aumentato */
    padding-bottom: 30px; /* Aumentato */
}

/* Stili per il logo nell'header a sinistra */
.logo-header {
    margin-right: 40px; /* Spazio tra logo e nav */
}

.logo-header img {
    height: 70px; /* Altezza del logo ingrandita a 70px */
    width: auto; /* Larghezza automatica per mantenere le proporzioni */
    display: block;
    transition: transform 0.3s ease; /* Aggiunto per un'animazione fluida */
}

.logo-header img:hover {
    transform: scale(2); /* Ingrandisce l'immagine del 100% (raddoppia) */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-right: 40px;
}

.main-nav ul li a {
    font-weight: 400;
    font-size: 1.1em;
    color: var(--color-dark-gray);
}

.main-nav ul li a:hover {
    color: var(--color-terracotta-pale);
}

/* --- Selettore Lingua --- */
.header-right-elements {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Spinge questi elementi a destra */
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector a {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-dark-gray);
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.language-selector a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-terracotta-pale);
}

.language-selector a.active {
    background-color: var(--color-terracotta-pale);
    color: var(--color-white);
    pointer-events: none;
}

/* --- Bottoni --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    font-weight: 400;
    border-radius: 5px;
}

.primary-btn {
    background-color: var(--color-gold-brushed);
    color: var(--color-white);
    border: 1px solid var(--color-gold-brushed);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--color-gold-brushed);
}

.secondary-btn {
    background-color: transparent;
    color: var(--color-terracotta-pale);
    border: 1px solid var(--color-terracotta-pale);
}

.secondary-btn:hover {
    background-color: var(--color-terracotta-pale);
    color: var(--color-white);
}

/* --- Sezioni Generali --- */
section {
    padding: 80px 0;
    position: relative;
}

/* --- Hero Section (IMMAGINE DA CAMBIARE QUI PER LA PAGINA PRINCIPALE) --- */
.hero-section {
    height: 100vh;
    background: url('../img/nuova_immagine_hero.jpg') no-repeat center center/cover; /* CAMBIA QUESTO PERCORSO IMMAGINE */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    padding-top: 100px; /* Assicura che la hero section inizi sotto l'header fisso */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 2em;
    font-weight: 300;
}

/* --- Suite Overview Section --- */
.suite-overview {
    text-align: center;
    background-color: var(--color-white);
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.suite-item {
    background-color: var(--color-light-gray);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.suite-item img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.suite-item h3 {
    color: var(--color-terracotta-pale);
    font-size: 1.8em;
    margin-bottom: 0.8em;
}

.suite-item p {
    color: var(--color-text-body);
    font-size: 1em;
    margin-bottom: 1.5em;
}

/* --- Experience Section --- */
.experience-section {
    background-color: var(--color-beige-sable);
    color: var(--color-dark-gray);
    text-align: center;
    padding: 100px 0;
}

/* --- Contact Section --- */
.contact-section {
    text-align: center;
    background-color: var(--color-white);
}

.contact-info {
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.8;
}

.contact-info p {
    color: var(--color-text-body);
    display: flex; /* Permette all'icona e al testo di essere sulla stessa riga */
    align-items: center; /* Allinea verticalmente icona e testo */
    justify-content: center; /* Centra il contenuto del paragrafo */
}

.contact-info a {
    color: var(--color-terracotta-pale);
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--color-gold-brushed);
}

/* Styling for contact icons */
.contact-icon {
    font-size: 1.2em; /* Dimensione dell'icona */
    margin-right: 10px; /* Spazio tra icona e testo */
    color: var(--color-terracotta-pale); /* Colore delle icone */
}


/* Map container styling */
.map-container {
    margin-top: 30px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0; /* Placeholder background */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-btn {
    margin-top: 30px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.main-footer .container {
    padding-top: 10px;
}

/* Stili specifici per il testo nel footer */
.main-footer p {
    margin-bottom: 5px; /* Spazio ridotto tra le righe del footer */
    font-size: 0.85em; /* Dimensione del testo leggermente ridotta */
}

/* --- Stili per le pagine Dettagli Loft --- */

/* Hero specifico per Dettagli Cubo */
.detail-hero-cubo {
    height: 60vh; /* Altezza leggermente inferiore per la pagina di dettaglio */
    background: url('../img/new_cubo.jpg') no-repeat center center/cover; /* Immagine di sfondo specifica per Cubo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    padding-top: 100px;
}

.detail-hero-cubo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.detail-hero-cubo h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5em; /* Dimensione del titolo più grande */
}

/* Hero specifico per Dettagli Yacht */
.detail-hero-yacht {
    height: 60vh; /* Altezza leggermente inferiore per la pagina di dettaglio */
    background: url('../img/new_yacht.jpg') no-repeat center center/cover; /* Immagine di sfondo specifica per Yacht */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    padding-top: 100px;
}

.detail-hero-yacht::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.detail-hero-yacht h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5em; /* Dimensione del titolo più grande */
}

/* Hero specifico per Dettagli Zen */
.detail-hero-zen {
    height: 60vh; /* Altezza leggermente inferiore per la pagina di dettaglio */
    background: url('../img/new_zen.jpg') no-repeat center center/cover; /* Immagine di sfondo specifica per Zen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    padding-top: 100px;
}

.detail-hero-zen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.detail-hero-zen h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5em; /* Dimensione del titolo più grande */
}

/* Sezioni di dettaglio */
.suite-detail-section {
    padding: 80px 0;
    text-align: center;
}

.suite-detail-section h2 {
    margin-bottom: 1em;
}

.suite-detail-section .description-text {
    max-width: 800px;
    margin: 0 auto 2em auto;
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--color-dark-gray);
}

/* Galleria Fotografica */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3-4 colonne su desktop, si adatta */
    gap: 20px; /* Spazio tra le immagini */
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden; /* Nasconde la parte dell'immagine che esce dal contenitore */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(2); /* Ingrandisce leggermente il contenitore */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1; /* Assicura che l'elemento ingrandito si sovrapponga agli altri */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Altezza fissa per le immagini della galleria */
    object-fit: cover; /* Assicura che le immagini coprano l'area senza distorsioni */
    display: block; /* Rimuove lo spazio extra sotto le immagini */
    transition: transform 0.3s ease; /* Aggiungi una transizione per l'effetto di ingrandimento */
}

/* --- Media Queries per Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .main-header .container {
        flex-direction: column;
        text-align: center;
        padding-bottom: 15px;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .logo-header {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .logo-header img {
        height: 55px; /* Altezza del logo per mobile, leggermente ridotta ma comunque più grande */
    }

    .main-nav {
        width: 100%;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 0;
        margin-bottom: 15px;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0 15px 10px 15px;
    }

    .header-right-elements {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        justify-content: center;
        margin-left: 0;
    }

    .language-selector {
        justify-content: center;
        width: 100%;
    }

    .hero-section {
        padding-top: 100px;
    }

    .suites-grid {
        grid-template-columns: 1fr;
    }

    .suite-item {
        margin-bottom: 20px;
    }

    section {
        padding: 60px 0;
    }

    .contact-info p {
        justify-content: flex-start; /* Allinea a sinistra su mobile per leggibilità */
        padding-left: 20px; /* Aggiungi un po' di padding per non far attaccare al bordo */
    }

    /* Media Queries specifiche per le pagine Dettagli */
    .detail-hero-cubo,
    .detail-hero-yacht,
    .detail-hero-zen {
        height: 50vh;
    }
    .detail-hero-cubo h1,
    .detail-hero-yacht h1,
    .detail-hero-zen h1 {
        font-size: 2.8em;
    }
    .suite-detail-section .description-text {
        font-size: 1.1em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Meno colonne su tablet */
    }
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.5em;
    }

    .main-nav ul li {
        margin: 0 8px 10px 8px;
        font-size: 0.9em;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .contact-info {
        font-size: 1em;
    }

    .map-container {
        padding-bottom: 75%; /* Adjust aspect ratio for smaller screens if needed, e.g., 4:3 */
    }

    /* Media Queries specifiche per le pagine Dettagli */
    .detail-hero-cubo,
    .detail-hero-yacht,
    .detail-hero-zen {
        height: 40vh;
    }
    .detail-hero-cubo h1,
    .detail-hero-yacht h1,
    .detail-hero-zen h1 {
        font-size: 2.2em;
    }
    .suite-detail-section .description-text {
        font-size: 1em;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Una sola colonna su mobile stretto */
    }
    .gallery-item img {
        height: 220px; /* Altezza maggiore su mobile per singola colonna */
    }
}