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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #0f2c59; 
    --med-blue: #1d70b8; 
    --bg-white: #ffffff; 
    --text-dark: #222222;       
    --text-grey: #717171;       
    --border-light: #ebebe9;    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   MENU LINGUA INTEGRATO NELLA HERO
   ========================================== */
.lang-selector {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.lang-selector select {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 24px; 
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
}

.lang-selector select:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.lang-selector select option {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)), url('media/vista-mare.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
}

.logo-container {
    max-width: 180px;
    margin-bottom: 0.5rem;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-subtitle {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0.8rem 0 2rem 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    background-color: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.hero-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   SEZIONE TITOLO ED EMOZIONE
   ========================================== */
.hero-text-section {
    text-align: center;
    max-width: 750px;
    margin: 4.5rem auto 3rem auto;
    padding: 0 1.5rem;
}

.hero-text-section h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-blue); 
}

.hero-text-section p {
    color: var(--text-grey);
    font-size: 1.05rem;
    text-align: justify;
    text-align-last: center;
    line-height: 1.7;
}

/* ==========================================
   SEZIONE HIGHLIGHTS (ICONE A FIANCO)
   ========================================== */
.highlights-section {
    max-width: 1030px;
    margin: 0 auto 0 auto;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.highlight-card {
    display: flex;
    align-items: flex-start; 
    gap: 20px;               
}

.highlight-icon-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;          
    object-fit: contain;
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

.highlight-card h3 {
    margin: 0 0 0.3rem 0;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
}

.highlight-card p {
    margin: 0;
    color: var(--text-grey);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ==========================================
   SEZIONE SERVIZI INCLUSI
   ========================================== */
.amenities-section {
    max-width: 1030px;
    margin: 0 auto 4.5rem auto;
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.amenities-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1.8rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.amenity-item {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.amenities-grid .amenity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ==========================================
   GALLERIA FOTOGRAFICA
   ========================================== */
.gallery-container {
    max-width: 1030px;
    margin: 0 auto 5rem auto;
    padding: 0 1.5rem;
}

.gallery-container h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue); 
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item {
    height: 260px;
    border-radius: 12px; 
    overflow: hidden; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gallery-item img:hover {
    opacity: 0.92;
}

/* ==========================================
   MODULO DI PRENOTAZIONE E PRENOTAZIONE CENTRATA
   ========================================== */
.booking-section {
    background-color: #f7f7f7; 
    padding: 5rem 1.5rem;
}

.booking-container {
    max-width: 620px;
    margin: 0 auto;
}

.booking-section h2 {
    font-family: var(--font-heading);
    color: var(--primary-blue); 
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.booking-section p {
    color: var(--text-grey);
    margin-bottom: 2.5rem;
    text-align: left;
    font-size: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--text-dark);
}

.btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

button {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 16px 48px; 
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto; 
}

button:hover {
    background-color: #0b1f40;
}

/* ==========================================
   STILE MESSAGGIO DI CONFERMA INVIATO
   ========================================== */
.form-status {
    display: none; 
    margin-top: 2rem;
    animation: fadeIn 0.4s ease forwards;
}

.form-status .success-msg {
    color: #1e4620;
    background-color: #edf7ed;
    border: 1px solid #c3e6cb;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-status .error-msg {
    color: #611a15;
    background-color: #fde8e8;
    border: 1px solid #f5c6cb;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

/* ==========================================
   SEZIONE MAPPA
   ========================================== */
.map-section {
    max-width: 1030px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.map-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue); 
    margin-bottom: 1.5rem;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 380px;
}

/* ==========================================
   LIGHTBOX MINIMAL
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 95%; max-height: 75vh; object-fit: contain; user-select: none; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #ffffff; font-size: 36px; cursor: pointer; z-index: 10001; font-weight: 300; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #ffffff; font-size: 24px; cursor: pointer; user-select: none; padding: 14px 16px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; z-index: 10000; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ==========================================
   FOOTER MINIMALISTA
   ========================================== */
footer {
    text-align: center;
    padding: 3.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-grey);
    border-top: 1px solid var(--border-light);
    background-color: #ffffff;
}

.footer-cin-cir {
    margin-top: 8px;
    color: #999999;
    letter-spacing: 0.2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE PC E TABLET)
   ========================================== */
@media (min-width: 768px) {
    .lang-selector { top: 32px; right: 40px; }

    .hero-banner { height: 85vh; }
    .logo-container { max-width: 240px; }
    .hero-subtitle { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 2.5rem; }
    .hero-cta { padding: 16px 36px; font-size: 1rem; }

    .hero-text-section { margin: 6rem auto 4.5rem auto; }
    .hero-text-section h1 { font-size: 2.8rem; }
    .hero-text-section p { font-size: 1.15rem; }

    .highlights-section {
        flex-direction: row;
        gap: 64px;
        padding: 3.5rem 1.5rem 1.5rem 1.5rem;
        border-bottom: none; 
    }
    
    .highlight-card { flex: 1; }
    .highlight-card h3 { font-size: 1.3rem; }

    .amenities-section { padding: 1.5rem 1.5rem 3.5rem 1.5rem; }
    .amenities-section h2 { font-size: 2rem; margin-bottom: 2.2rem; }
    .amenities-grid { grid-template-columns: 1fr 1fr; gap: 24px 64px; }
    .amenity-item { padding-bottom: 16px; }
    .amenities-grid .amenity-item:last-child { border-bottom: 1px solid var(--border-light); }

    .gallery-container h2 { font-size: 2rem; margin-bottom: 2rem; }
    .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .gallery-item { height: 240px; }
    .featured { grid-column: span 2; grid-row: span 2; height: 496px !important; }

    form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .full-width { grid-column: span 2; }
    .btn-container { grid-column: span 2; } 

    .map-section { margin: 5rem auto; }
    .map-section h2 { font-size: 2rem; }
    .map-container iframe { height: 480px; }

    .lightbox-content { max-width: 85%; max-height: 85vh; }
    .lightbox-close { top: 30px; right: 40px; font-size: 40px; }
    .lightbox-arrow { font-size: 32px; padding: 16px 20px; }
    .lightbox-prev { left: 40px; }
    .lightbox-next { right: 40px; }
}