/* 
 * Stylesheet Homepage PAmatch
 * Layout Full-Width con Header Slim Sticky
 * Colori Dashboard
 */

/* Header Slim Sticky */
.it-header-wrapper.it-header-sticky {
    z-index: 1030;
}

.it-header-slim-wrapper {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Logo nell'header slim */
.it-header-slim-wrapper .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: hsl(210, 33%, 28%) !important;
    font-weight: 600;
}

.it-header-slim-wrapper .navbar-brand strong {
    color: hsl(210, 33%, 28%) !important;
}

.it-header-slim-wrapper .navbar-brand:hover {
    color: hsl(210, 33%, 20%) !important;
}

.it-header-slim-wrapper .navbar-brand:hover strong {
    color: hsl(210, 33%, 20%) !important;
}

/* Logo icon colore primary tramite filtro CSS */
.it-header-slim-wrapper .navbar-brand img.icon {
    /* Converti in primary hsl(210, 33%, 28%) che equivale a circa #3d5266 */
    filter: brightness(0) saturate(100%) invert(26%) sepia(12%) saturate(1095%) hue-rotate(177deg) brightness(94%) contrast(91%);
}

.it-header-slim-wrapper .navbar-brand:hover img.icon {
    filter: brightness(0) saturate(100%) invert(20%) sepia(12%) saturate(1095%) hue-rotate(177deg) brightness(94%) contrast(91%);
}

/* Menu navigazione orizzontale desktop */
.link-list-horizontal {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}

.link-list-horizontal .list-item {
    padding: 0.5rem 1rem;
    color: #17324d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-list-horizontal .list-item:hover {
    color: hsl(210, 33%, 28%);
    text-decoration: none;
}

/* Menu navigazione mobile */
.it-header-slim-wrapper .link-list .list-item,
.it-header-slim-wrapper .link-list .dropdown-item {
    color: #17324d !important;
    font-weight: 500;
}

.it-header-slim-wrapper .link-list .list-item:hover,
.it-header-slim-wrapper .link-list .dropdown-item:hover {
    color: hsl(210, 33%, 28%) !important;
}

.it-header-slim-wrapper .link-list .list-item.active {
    color: hsl(210, 33%, 28%) !important;
    font-weight: 600;
}

/* Pulsanti header slim */
.it-header-slim-right-zone .it-access-top-wrapper {
    display: inline-block;
}

.it-header-slim-right-zone .btn {
    white-space: nowrap;
}

/* Hero section con gradiente personalizzato */
.hero-home.bg-primary {
    background: hsl(210, 33%, 28%) !important;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Generale bg-primary override */
.bg-primary {
    background-color: hsl(210, 33%, 28%) !important;
    background-image: none !important;
}

/* CTA Final Section - colore solido senza gradiente */
section.bg-primary {
    background: hsl(210, 33%, 28%) !important;
    background-image: none !important;
}

/* Colori primari custom (come dashboard) */
.text-primary {
    color: hsl(210, 33%, 28%) !important;
}

.icon-primary {
    color: hsl(210, 33%, 28%) !important;
}

.btn-primary {
    background: hsl(210, 33%, 28%) !important;
    border-color: hsl(210, 33%, 28%) !important;
}

.btn-primary:hover {
    background: hsl(210, 33%, 23%) !important;
    border-color: hsl(210, 33%, 23%) !important;
}

.btn-outline-primary {
    color: hsl(210, 33%, 28%) !important;
    border-color: hsl(210, 33%, 28%) !important;
}

.btn-outline-primary:hover {
    background-color: hsl(210, 33%, 28%) !important;
    border-color: hsl(210, 33%, 28%) !important;
    color: white !important;
}

.border-primary {
    border-color: hsl(210, 33%, 28%) !important;
}

.it-card-border-top-primary {
    border-top-color: hsl(210, 33%, 28%) !important;
}

/* Pulsanti header slim full-responsive */
.it-header-slim-wrapper .btn-full {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Smooth transitions per card */
.it-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.it-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 102, 204, 0.15) !important;
}

/* Stats box nel hero */
.stats-box {
    max-width: 300px;
}

/* Bordi colorati laterali */
.border-start.border-primary.border-4 {
    border-left-color: #0066cc !important;
}

.border-start.border-warning.border-4 {
    border-left-color: #FFB600 !important;
}

.border-start.border-success.border-4 {
    border-left-color: #00875A !important;
}

.border-start.border-danger.border-4 {
    border-left-color: #D9364F !important;
}

/* Container fluid spacing */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 991px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responsive hero */
@media (max-width: 991px) {
    .hero-home {
        min-height: 500px;
    }
    
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .display-6 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 767px) {
    .hero-home {
        min-height: 400px;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Offset per smooth scroll con sticky header */
section[id] {
    scroll-margin-top: 80px;
}
