:root {
    --primary-color: #710632;
    --primary-color-dark: #4b0222;
    --primary-color-light: #8f0840;
}

/* Bottoni */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

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

/* Testo / sfondo primario (navbar usa bg-primary) */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Link */
a {
    color: var(--primary-color);
}
a:hover {
    color: var(--primary-color-dark);
}

/* HERO */
.hero-section {
    /* qui usiamo SEMPRE il colore primario (e sue varianti) */
    background: radial-gradient(circle at center,
                                var(--primary-color-light) 0,
                                var(--primary-color) 45%,
                                var(--primary-color-dark) 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #fff;
}

.hero-logo {
    max-width: 900px;
    width: 100%;
    height: auto;
}

/* HOME: sezione e card */
.home-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.home-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.home-card .card-title {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #777;
}

.home-card .card-text {
    line-height: 1.6;
}

/* Tipografia generale un po' più curata */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Stile per il bottone logout nella navbar */
.navbar .nav-link.btn-link {
    color: rgba(255, 255, 255, 0.55);
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.navbar .nav-link.btn-link:hover,
.navbar .nav-link.btn-link:focus {
    color: rgba(255, 255, 255, 0.75);
}

.navbar-dark .nav-link.btn-link {
    color: rgba(255, 255, 255, 0.55);
}

.navbar-dark .nav-link.btn-link:hover,
.navbar-dark .nav-link.btn-link:focus {
    color: rgba(255, 255, 255, 0.75);
}