:root { 
    --accent: #00e5ff; 
    --bg-card: rgba(0, 0, 0, 0.6); 
}

* { box-sizing: border-box; }

body { 
    font-family: 'Outfit', sans-serif; 
    margin: 0; 
    background: url("sfondo_rododendro.webp") no-repeat center center fixed; 
    background-size: cover; 
    color: white; 
    overflow-x: hidden; 
}

.main-wrapper { 
    background-color: rgba(0, 0, 0, 0.85); 
    min-height: 100vh; 
    padding-bottom: 80px; 
    position: relative; 
}

.container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 20px; 
}

/* --- ELEMENTI FISSI (Lingue, Social, Tasto Prenota) --- */
.top-lang-selector { 
    position: fixed; top: 20px; right: 30px; 
    z-index: 2000; display: flex; gap: 15px; 
    background: rgba(0,0,0,0.4); padding: 8px 20px; 
    border-radius: 30px; border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.top-lang-selector span { 
    cursor: pointer; font-size: 24px; opacity: 0.3; 
    transition: 0.4s; filter: grayscale(100%);
}

.top-lang-selector span.active { 
    opacity: 1; 
    filter: grayscale(0%) drop-shadow(0 0 10px var(--accent)); 
    transform: scale(1.2); 
}

.social-stack {
    position: fixed; bottom: 100px; right: 30px;
    display: flex; flex-direction: column; gap: 12px;
    z-index: 2000;
}

.social-link { 
    width: 45px; height: 45px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: white; font-size: 22px; text-decoration: none; 
    transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.social-link.ig { background: linear-gradient(45deg, #f09433 0%, #bc1888 100%); }
.social-link.wa { background: #25D366; }
.social-link.mail { background: #EA4335; }
.social-link.maps { background: #4285F4; }
.social-link:hover { transform: translateX(-5px); }

.btn-fixed-book { 
    position: fixed; bottom: 30px; right: 30px; 
    background: var(--accent); color: black; 
    padding: 15px 30px; border-radius: 50px; 
    font-weight: 800; text-decoration: none; 
    z-index: 2000; box-shadow: 0 10px 30px rgba(0,229,255,0.4);
}

/* --- TASTO HOME VERTICALE (Solo Recap) --- */
.btn-back-side {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.15); padding: 25px 12px; border-radius: 0 20px 20px 0; 
    text-decoration: none; color: white; display: flex; 
    flex-direction: column; align-items: center; z-index: 9999; 
    border: 1px solid rgba(255,255,255,0.2); border-left: none; transition: 0.3s;
}
.btn-back-side:hover { background: var(--accent); color: black; }

/* --- HEADER: TITOLO E LOGO CENTRATI --- */
.site-header { 
    padding: 70px 20px 40px; 
    display: flex; 
    flex-direction: row;     /* Mette titolo e logo sulla stessa riga */
    align-items: center;     /* Allineamento verticale perfetto */
    justify-content: center; /* Centratura orizzontale assoluta */
    gap: 20px;               /* Spazio tra testo e logo */
    width: 100%;             
    position: relative;
    text-align: center;
}

.site-header h1 { 
    margin: 0;               /* Rimuove margini che spostano il titolo */
    font-weight: 800; 
    letter-spacing: 2px; 
    color: white;            /* Assicura che il testo sia bianco */
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
    text-transform: uppercase;
    line-height: 1;
}

.header-logo-inline { 
    width: 70px;             /* Dimensione bilanciata */
    height: auto; 
    mix-blend-mode: screen;  /* Rimuove il nero di sfondo_nero.webp */
    
    /* FILTRO: Brightness(0.8) lo rende un po' meno 'sparato' del bianco puro */
    filter: brightness(0) invert(1) opacity(0.4); 
    
    /* OPACITY supplementare per sicurezza */
    opacity: 0.4;            
    pointer-events: none;
    transition: 0.3s ease-in-out;
}

/* Effetto al passaggio del mouse */
.site-header:hover .header-logo-inline {
    opacity: 0.8;
    filter: brightness(0) invert(1) opacity(0.8);
    transform: scale(1.1);
}

/* --- CARDS & FILIGRANA (OVERLAY) --- */
.material-card { 
    position: relative;
    background: var(--bg-card); 
    backdrop-filter: blur(12px); 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 25px; 
    overflow: hidden; 
}

.card-bg-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    object-fit: contain; 
    opacity: 0.12; 
    z-index: 0;
    mix-blend-mode: screen; 
    pointer-events: none; 
    padding: 40px;
}

/* Assicura che il contenuto stia SOPRA il logo */
.material-card > *:not(.card-bg-logo) { 
    position: relative; 
    z-index: 1; 
}

/* --- LAYOUTS & GRIDS --- */
.booking-grid { 
    display: grid; grid-template-columns: 1fr 380px; gap: 30px; 
    margin-top: 20px; align-items: start; 
}

.top-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; height: 450px; }
.main-img img, .side-imgs img, .thumb-row img { 
    width: 100%; height: 100%; object-fit: cover; 
    border-radius: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); 
}

.side-imgs { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.thumb-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; height: 100px; }

.recap-main-grid { display: grid; grid-template-columns: 1fr 240px; gap: 15px; margin-top: 15px; }

.skier-ctrl { 
    background: rgba(255,255,255,0.05); padding: 12px; border-radius: 15px; 
    text-align: center; margin-bottom: 8px; 
}

.input-f-recap { 
    width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); 
    padding: 15px; border-radius: 12px; color: white; margin-bottom: 10px;
}

/* --- CALENDARIO --- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day { 
    padding: 12px 0; text-align: center; border-radius: 6px; 
    cursor: pointer; background: #2ecc71; font-weight: 800; 
    font-size: 12px; color: white; 
}
.cal-day.booked { background: #ff4d4d; opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.cal-day.selected { background: var(--accent) !important; color: black; }
.cal-day.range { background: rgba(0, 229, 255, 0.4); }

/* --- RECENSIONI --- */
.reviews-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-top: 40px; }
.rev-card { background: rgba(255,255,255,0.06); padding: 25px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.snowflake-gold { color: #FFD700; font-size: 16px; margin-right: 2px; }

/* --- LIGHTBOX --- */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 5000; align-items: center; justify-content: center; }
#lbImg { max-width: 85%; max-height: 85%; border-radius: 5px; }

@media (max-width: 1000px) { 
    .booking-grid { grid-template-columns: 1fr; } 
    .top-gallery { height: 300px; } 
    .btn-back-side { display: none; }
}
