/* ==========================================================================
   APP HUB OMEGNA - style.css (v 18.5)
   Sistema di gestione stili per il portale servizi
   ========================================================================== */

/* --- 1. LAYOUT STRUTTURALE --- */
html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased; /* Migliora la resa dei font su Mac/iOS */
}

/* Garantisce che il footer rimanga ancorato al fondo (Sticky Footer) */
main {
    flex: 1 0 auto;
}

/* --- 2. HEADER: IDENTITÀ VISIVA --- */
.header-logo-container img {
    height: 52px !important;
}

.header-title-text {
    font-size: 36px !important;
    font-weight: 900;
    color: #005596;
    letter-spacing: -1px;
}

@media (max-width: 767px) {
    .header-title-text { font-size: 24px !important; }
}

/* --- 3. BARRA DI RICERCA (Input Group Custom) --- */
/* Fix: Unifica lente e campo testo eliminando bordi doppi e scalini visivi */
.input-group {
    border: 1px solid #747775 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.2s;
}

.input-group:focus-within {
    border-color: #005596 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 85, 150, 0.15) !important;
}

.input-group-text {
    background-color: transparent !important;
    border: none !important;
    padding-left: 15px !important;
    padding-right: 5px !important;
    color: #747775 !important;
}

.input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    height: 48px !important;
    font-size: 16px !important;
}

/* --- 4. ELEMENTI FORM NATIVI (Select) --- */
.form-select {
    height: 48px !important;
    border: 1px solid #747775 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
}

/* --- 5. SCHEDE SERVIZIO (Cards) --- */
.app-card {
    border-radius: 12px !important; /* Arrotondamento professionale standard */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    padding: 1.5rem !important; /* Spazio interno ottimizzato per icone grandi */
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* --- 6. QR CODE E BOTTONI AZIONE --- */
.qr-container-custom {
    background-color: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important; /* Design squadrato coerente */
}

.qr-code-box {
    background: #ffffff !important;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.btn-primary {
    background-color: #0d6efd !important;
    border: none !important;
    border-radius: 8px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* --- 7. FOOTER E UTILITY FINALI --- */
.footer-text { 
    font-size: 13px; 
    color: #64748b; 
}

.privacy-link { 
    color: #1e293b; 
    text-decoration: none; 
    font-weight: 700; 
}

.privacy-link:hover { 
    color: #005596 !important; 
    text-decoration: underline; 
}

/* Limita la descrizione a un massimo di 2 righe con ellissi (...) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}