/* public/css/main.css - VERSIONE DEFINITIVA "PREMIUM" */

/* =========================================
   1. REGOLA MAGICA (ESSENZIALE)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================================
   2. RESET E BLOCCO SCROLL
   ========================================= */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* Impedisce lo scroll "elastico" indesiderato su iOS */
    overflow: hidden; 
    position: fixed; 
    /* MIGLIORAMENTO: Sfondo non piatto, leggera vignettatura centrale */
    background: radial-gradient(circle at center, #fdfbf7 0%, #f7f3e8 100%);
}

/* 3. CONTENITORE PRINCIPALE */
.landing-breakout {
    width: 100%;
    max-width: 100%;
    
    /* Gestione altezza per mobile moderni */
    height: 100vh;       
    height: 100svh;      
    
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* 4. HEADER */
.header-stripe {
    flex: 0 0 auto; 
    width: 100%;
    padding: 20px 20px; /* Spaziatura leggermente aumentata per eleganza */
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15); /* Bordo più sottile e raffinato */
    background: rgba(253, 251, 247, 0.95); /* Leggera trasparenza */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); /* Ombra sofficissima sotto l'header */
}

/* STILE LOGO (Mantenuto nel CSS per sicurezza, anche se rimosso dall'HTML) */
.site-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.pre-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem; /* Leggermente più leggibile */
    color: #6e5503; /* Colore più morbido */
    letter-spacing: 4px; /* Spaziatura aumentata per stile "Luxury" */
    font-weight: 500;
    margin-bottom: 10px; 
    text-transform: uppercase;
}

.main-title {
    font-family: 'Playfair Display', serif; 
    /* Clamp ottimizzato per schermi grandi */
    font-size: clamp(2rem, 5vh, 4rem); 
    color: #1e293b; 
    line-height: 1.15;
    margin: 0;
    /* MIGLIORAMENTO: Leggera ombra per dare profondità */
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-title span { font-weight: 600; color: #0f172a; }

/* 5. IMMAGINE CENTRALE E ANIMAZIONE */
.hero-image-container {
    flex: 1 1 auto;  
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background-color: #0f172a; /* Colore di fondo mentre carica */
}

/* Animazione "Ken Burns" (Zoom Lento) */
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    /* MIGLIORAMENTO: L'immagine si muove impercettibilmente */
    animation: slowZoom 25s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%; /* Gradiente un po' più alto */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
    pointer-events: none;
}

/* 6. FOOTER - ACTION BAR */
.action-bar {
    flex: 0 0 auto; 
    width: 100%; 
    background-color: #0f172a;
    
    padding: 15px 25px; 
    padding-bottom: calc(15px + env(safe-area-inset-bottom)); 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #d4af37;
    /* MIGLIORAMENTO: Glow dorato sopra il footer */
    box-shadow: 0 -5px 20px rgba(212, 175, 55, 0.15);
    z-index: 20;
    gap: 15px; 
}

.service-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; 
}

.service-icon-box {
    width: 42px; height: 42px; 
    border: 1px solid #d4af374d; /* Bordo dorato tenue */
    background: rgba(255,255,255,0.03); /* Vetro leggero */
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #d4af37;
    flex-shrink: 0; 
    font-size: 1.1rem;
}

.service-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.service-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    white-space: nowrap;
}

.service-value {
    font-family: 'Playfair Display', serif;
    color: #f1f5f9; /* Bianco sporco, più elegante */
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BOTTONE PREMIUM */
.btn-login {
    background: linear-gradient(135deg, #d4af37 0%, #b38f1d 100%); /* Gradiente più profondo */
    color: #fff;
    padding: 14px 28px; 
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px; /* Leggermente più arrotondato */
    white-space: nowrap;
    
    /* Ombra elegante */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255,255,255,0.1); /* Riflesso sottile */
    
    flex-shrink: 0; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animazione fluida */
}

/* Effetto Hover Premium */
.btn-login:hover {
    transform: translateY(-2px); /* Si solleva */
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5); /* Ombra aumenta */
    background: linear-gradient(135deg, #eac54e 0%, #c5a028 100%); /* Diventa più luminoso */
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* --- ADATTAMENTO MOBILE IPHONE (< 768px) --- */
@media (max-width: 768px) {
    .header-stripe {
        padding: 15px; /* Meno padding su mobile */
    }

    .main-title { font-size: 1.9rem; } /* Titolo mobile equilibrato */
    
    .pre-title { letter-spacing: 2px; }

    .site-logo {
        height: 45px;
        margin-bottom: 10px;
    }

    .action-bar {
        padding-left: 20px;
        padding-right: 20px;
        width: 100vw; 
        max-width: 100%;
    }

    .service-icon-box { width: 38px; height: 38px; font-size: 1rem; }
    
    .service-label { display: none; }
    
    .service-value { 
        font-size: 0.95rem; 
    }

    .service-wrapper {
        flex: 1; 
        margin-right: 15px; 
    }

    .btn-login {
        padding: 12px 20px; 
        font-size: 0.75rem;
        margin-left: auto; 
    }
}