/* LongevityWalk - Stili personalizzati */

/* Variabili */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --light: #F3F4F6;
    --dark: #1F2937;
}

/* Stili generali */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #4B5563;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 700;
}

.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Header e Navigazione */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background-color: #f9fafb;
}

/* Icone circolari nei benefici */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto;
}

/* Sezione progressi */
.progress-tracker {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 2rem 0;
}

/* Stili per le card */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer a {
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Media queries */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .gap-mobile {
        gap: 0.5rem;
    }
    
    /* Aumenta area cliccabile su mobile */
    .nav-link, .btn, .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    /* Migliora la leggibilità su schermi piccoli */
    .small-text-mobile {
        font-size: 0.875rem;
    }
    
    .medium-text-mobile {
        font-size: 1rem;
    }
    
    .large-text-mobile {
        font-size: 1.25rem;
    }
}

/* Selettore lingua */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.dropdown-item img {
    margin-right: 0.5rem;
}

.dropdown-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

/* Form per tracciamento progressi */
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Dark mode toggle */
.dark-mode-toggle {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Stili per l'icona circolare */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto;
}

/* Stili per il selettore lingua */
.dropdown-item img {
    margin-right: 0.5rem;
}

.dropdown-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

/* Stili per il footer */
footer a:hover {
    opacity: 0.8;
}

/* Stili per aree touch */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Miglioramenti per accessibilità */
.btn:focus, .nav-link:focus, a:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Miglioramenti per la leggibilità */
.text-readable {
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Miglioramenti per il contrasto */
.text-high-contrast {
    color: #000;
}

/* Miglioramenti per la spaziatura */
.gap-mobile {
    gap: 1rem;
}

/* Stili per il bottone "torna su" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
} 