﻿/* ===================== */
/* Global Styles */
/* ===================== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8f9ff;
}

h1:focus {
    outline: none;
}


.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero,
.hero-50,
.hero-25,
.hero-10,
.hero-0 {
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    color: white;
    text-align: center;
}

.hero {
    padding: 60px 0;
}

.hero-50 {
    padding: 30px 0;
}

.hero-25 {
    padding: 15px 0;
}

.hero-10 {
    padding: 5px 0;
}

.hero-5 {
    padding: 2px 0;
}

.hero-0 {
    padding: 0;
}

/* Hero gradient più compatto */
.hero-gradient {
    background-color: #d6e6ff !important;
    /*background: linear-gradient(135deg, #cce5ff 0%, #d9f0ff 50%, #e6f4ff 100%);*/
    border-radius: 1rem !important;
    margin: 0.5rem 0;
}

/* ===================== */
/* Cards & Glassmorphism - COMPATTE */
/* ===================== */
.card {
    border: none;
    border-radius: 16px;
    background: white;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUpFade 0.5s ease-out;
    animation-fill-mode: both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f83f5, #7fd3ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

.card-body {
    padding: 1.5rem !important;
    background: white;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    padding: 1rem !important;
}

.action-card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    height: auto;
    min-height: 220px;
}

    .action-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.15);
    }

    .action-card .btn {
        transition: all 0.3s ease;
    }

        .action-card .btn:hover {
            transform: scale(1.04);
        }

.adi-navbar {
    background-color: #1b6ec2 !important;
    min-height: 60px;
    padding: 0.5rem 0;
}

    .adi-navbar .navbar-brand img {
        max-height: 50px;
    }

    .adi-navbar .navbar-nav {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .adi-navbar .nav-link,
    .adi-navbar .dropdown-toggle {
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 500;
        margin-left: 10px;
        margin-right: 10px;
    }

    .adi-navbar li.nav-link > * {
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* Dropdown */
    .adi-navbar .dropdown-menu {
        border-radius: 8px;
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .adi-navbar .dropdown-item {
        padding: 0.3rem 0.8rem;
        display: flex;
        align-items: center;
    }

    /* Language select */
    .adi-navbar li.nav-link select {
        background-color: #f8f9fa;
        color: #333;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 4px 8px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
    }

        .adi-navbar li.nav-link select:hover {
            background-color: #e9ecef;
            border-color: #999;
        }

/* Active navbar links */
.navbar .nav-link.active,
.dropdown-menu .dropdown-item.active {
    color: #0d6efd !important;
    font-weight: 600;
    text-decoration: none;
}

.navbar .nav-link {
    transition: color .2s;
}

/* Navbar link white */
#navbarNav a {
    color: #fff !important;
}

/* Flex alignment for all navbar items */
.navbar-nav .nav-link,
.navbar-nav li.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

    .navbar-nav .nav-link i,
    .navbar-nav .nav-link span.bi {
        margin-right: 0.3rem;
    }

    .navbar-nav li.nav-link select {
        height: 30px;
        margin-left: 0.3rem;
    }

footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: auto;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.ad-btn {
    min-width: 80px;
    padding: 0.4rem 0.8rem;
}

.ad-btn-new {
    background-color: #28a745;
    color: #fff;
}

.ad-btn-edit {
    background-color: #006bb7;
    color: #fff;
}

.ad-btn-delete {
    background-color: #b32121;
    color: #fff;
}

.ad-btn-export {
    background-color: #007bff;
    color: #fff;
}

.btn-check-soft {
    background-color: transparent;
    color: #1b6ec2;
    border: 2px solid #1b6ec2;
    border-radius: 0.5rem;
    padding: 0.6rem 2rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

    .btn-check-soft:hover {
        background-color: #1b6ec2;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    }

.btn-wide {
    min-width: 160px;
    padding: 0.6rem 2rem;
}

.btn-extra-wide {
    min-width: 200px;
    padding: 0.6rem 2.5rem;
    width: 100%;
    max-width: 300px;
}

.btn-start-action {
    min-width: 180px;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

    .btn-start-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.accessible-input {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #8c8c8c !important;
    border-radius: 4px;
    padding: 6px;
    font-size: 0.9rem;
}

    .accessible-input:focus {
        outline: 3px solid #005fcc;
        outline-offset: 2px;
    }

textarea.readonly-fix[readonly] {
    background-color: #f5f5f5 !important;
    color: #111 !important;
    border: 2px solid #333 !important;
    opacity: 1;
    caret-color: transparent;
    user-select: text;
}

.readonly-fixdiv {
    border: 1px solid #ccc;
    padding: 6px;
    background-color: #f8f9fa;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 10em;
    min-height: 4em;
    font-family: inherit;
    box-sizing: border-box;
}

*:focus-visible {
    outline: solid 2px black !important;
}
.ad-logo {
    max-width: 100px;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #000 94%, #0000) top/6px 6px no-repeat, conic-gradient(#0000 30%, #000);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 6px), #000 0);
    animation: s3 1s infinite linear;
}

@keyframes s3 {
    100% {
        transform: rotate(1turn);
    }
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: darkgrey !important;
}

/* Smooth scrolling e offset navbar sticky */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: var(--header-offset, 60px);
}

.container-fluid {
    padding-left: 10px;
    padding-right: 10px;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.p-5 {
    padding: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 1.25rem !important;
}

.mt-5 {
    margin-top: 1.25rem !important;
}


@media (min-width: 1200px) {
    .display-6 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
    }
    .display-6 {
        font-size: 2rem !important;
    }
    .lead {
        font-size: 1rem !important;
    }

    .fa-3x {
        font-size: 2rem !important;
    }

    .p-5 {
        padding: 1rem !important;
    }


    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .fs-4 {
        font-size: 1.1rem !important;
    }

    .hero-gradient .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Riduci ulteriormente su schermi piccoli */
    .row.g-4 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 0;
    }

    .hero-50 {
        padding: 15px 0;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .p-5 {
        padding: 0.75rem !important;
    }

    .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .action-card {
        min-height: 180px;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 992px) {
    /* Solo su desktop ripristina alcune dimensioni */
    .display-4 {
        font-size: 2.5rem !important;
    }

    .p-5 {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .btn-start-action {
        min-width: 160px;
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .btn-check-soft {
        min-width: 140px;
        padding: 0.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-start-action {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        display: block;
        margin: 0.5rem 0;
    }

    .btn-check-soft {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
}

@media (min-width: 992px) {
    .btn-start-action {
        min-width: 200px;
        padding: 0.8rem 2.5rem;
        font-size: 1.2rem;
    }

    .btn-check-soft {
        min-width: 180px;
        padding: 0.7rem 2.5rem;
    }
}

.bg-light {
    background-color: #f8f9fa !important;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

img {
    max-width: 100%;
    height: auto;
}


.file-card {
    transition: none !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    padding: 1rem !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
}

    .file-card:hover {
        border-color: #ddd !important;
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        margin-left: 0 !important;
        padding-left: 1rem !important;
        box-shadow: none !important;
    }

    .file-card * {
        transition: none !important;
    }

.no-hover-effect {
    transition: none !important;
    transform: none !important;
}

    .no-hover-effect:hover {
        transform: none !important;
        border-color: transparent !important;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
        margin-left: 0 !important;
        padding-left: 1rem !important;
    }
 

.memo-container {
    background-color: #f8f9fa !important; /* sfondo chiaro per evidenziare */
    border-left: 4px solid #0d6efd !important; /* bordo a sinistra colorato come evidenziatore */
}

.memo-content {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap; /* mantiene gli a capo se presenti */
}


/* menu backoffice */
 
/* Classe base per il dropdown */
.custom-submenu {
    background-color: #1e1e2f !important; /* Colore di fondo più moderno */
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    padding: 8px 0 !important;
    min-width: 220px !important;
}

    /* Stile per gli elementi del menu */
    .custom-submenu .dropdown-item {
        color: #e0e0e0 !important;
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        letter-spacing: 0.3px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
    }

        /* Effetto hover con animazione */
        .custom-submenu .dropdown-item:hover {
            background-color: rgba(79, 131, 245, 0.15) !important;
            color: #4f83f5 !important; /* Blu più raffinato */
            padding-left: 25px !important; /* Leggero spostamento a destra */
        }

        /* Stile per le icone */
        .custom-submenu .dropdown-item span,
        .custom-submenu .dropdown-item i {
            margin-right: 12px !important;
            font-size: 1.1rem !important;
            vertical-align: middle !important;
            transition: all 0.2s ease !important;
            color: #8a8a9e !important;
        }

        /* Icone al hover */
        .custom-submenu .dropdown-item:hover span,
        .custom-submenu .dropdown-item:hover i {
            color: #4f83f5 !important;
            transform: scale(1.1) !important; /* Leggero ingrandimento */
        }

    /* Linea divisoria */
    .custom-submenu .dropdown-divider {
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        margin: 8px 0 !important;
    }

    /* Effetto di attivazione al click (opzionale) */
    .custom-submenu .dropdown-item:active {
        background-color: rgba(79, 131, 245, 0.25) !important;
    }

    /* Stile per i link NavLink attivi */
    .custom-submenu .dropdown-item.active {
        background-color: rgba(79, 131, 245, 0.2) !important;
        color: #4f83f5 !important;
        border-left: 3px solid #4f83f5 !important;
    }

        .custom-submenu .dropdown-item.active span,
        .custom-submenu .dropdown-item.active i {
            color: #4f83f5 !important;
        }

/* Effetto di sfumatura per il dropdown */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-submenu {
    animation: fadeInDropdown 0.2s ease-out !important;
}

/* Stile per il bottone del dropdown nel menu principale */
.dropdown-toggle {
    color: #e0e0e0 !important;
    transition: color 0.2s ease !important;
}

    .dropdown-toggle:hover {
        color: #4f83f5 !important;
    }

/* Miglioramento per dispositivi mobili */
@media (max-width: 768px) {
    .custom-submenu {
        min-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: #252537 !important;
    }

        .custom-submenu .dropdown-item:hover {
            padding-left: 30px !important;
        }
}

/* home backoffice */

/* Banda backoffice - Versione coordinata con il menu (tutta raggruppata) */
.hero-5 {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #4f83f5;
    box-shadow: 0 4px 12px rgba(79, 131, 245, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    /* Effetto hover completo per la banda */
    .hero-5:hover {
        border-bottom-color: #7fd3ff;
        box-shadow: 0 8px 20px rgba(79, 131, 245, 0.25);
        transform: translateY(-1px);
    }

    /* Effetto luce scorrevole all'hover */
    .hero-5::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s ease;
        pointer-events: none;
        z-index: 0;
    }

    .hero-5:hover::before {
        left: 100%;
    }

    /* Contenitore interno */
    .hero-5 .container {
        position: relative;
        z-index: 2;
    }

    /* Titolo nella banda */
    .hero-5 h1 {
        color: #1b6ec2;
        font-weight: 700;
        font-size: 1.8rem;
        margin: 0;
        padding: 0;
        transition: all 0.3s ease;
        position: relative;
        display: inline-block;
    }

    .hero-5:hover h1 {
        color: #1557a0;
        transform: scale(1.02);
        text-shadow: 0 2px 8px rgba(27, 110, 194, 0.2);
    }

    .hero-5 h1::after {
        display: none; /* Rimuove la linea extra */
    }

    /* Badge opzionale nella banda */
    .hero-5 .badge-backoffice {
        position: absolute;
        top: 10px;
        right: 20px;
        background: rgba(79, 131, 245, 0.2);
        color: #7fd3ff;
        padding: 5px 15px;
        border-radius: 50px;
        font-size: 0.85rem;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255,255,255,0.1);
        z-index: 2;
    }

/* Sezione titolo secondario */
section.py-5 h2 {
    color: #1b6ec2;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 2rem;
}

    section.py-5 h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%; /* Parte dal centro */
        transform: translateX(-50%); /* Si sposta indietro di metà */
        width: 0;
        height: 3px;
        background: #4f83f5;
        border-radius: 3px;
    }

 
    /* Bordo superiore colorato come nel menu */


/* Stile per i grafici DevExpress */
.dx-chart {
    border-radius: 12px;
    background: transparent;
}

/* Personalizzazione tooltip charts */
.dx-chart-tooltip {
    background: #1a1a2e !important;
    color: white !important;
    border-radius: 8px !important;
    border: 1px solid rgba(79, 131, 245, 0.3) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

    .dx-chart-tooltip .fw-bold {
        color: #4f83f5 !important;
        margin-bottom: 5px;
    }

/* Stile per le legende dei grafici */
.dx-chart-legend {
    background: rgba(26, 26, 46, 0.02) !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    backdrop-filter: blur(5px);
}

.dx-chart-legend-item text {
    fill: #1a1a2e !important;
    font-weight: 500 !important;
}

/* Titoli grafici */
.dx-chart-title text {
    fill: #1a1a2e !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.dx-chart-subtitle text {
    fill: #6c757d !important;
    font-size: 0.9rem !important;
}

/* Personalizzazione delle label dei grafici */
.dx-chart-series-label text {
    font-weight: 500 !important;
    fill: #1a1a2e !important;
}

/* Linee dei connettori delle label */
.dx-chart-series-label-connector {
    stroke: #4f83f5 !important;
    stroke-width: 1.5 !important;
    opacity: 0.5;
}

/* Stile per i segmenti del pie chart */
.dx-pie-chart-segment {
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

    .dx-pie-chart-segment:hover {
        transform: scale(1.02);
        filter: brightness(1.1);
    }

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 
.row .col-md-4:nth-child(1) .card {
    animation-delay: 0.1s;
}

.row .col-md-4:nth-child(2) .card {
    animation-delay: 0.2s;
}

.row .col-md-4:nth-child(3) .card {
    animation-delay: 0.3s;
}

/* ================================== */
/* Griglia responsive */
.row.g-4 {
    margin-top: 0.5rem;
}

 

/* Effetto di glow per i grafici all'hover */
.card:hover .dx-pie-chart {
    filter: drop-shadow(0 0 10px rgba(79, 131, 245, 0.2));
}

/* ================================== */
/* Stili aggiuntivi (statistiche) */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Media Queries - Responsive */
@media (max-width: 768px) {
    .hero-5 {
        padding: 0.8rem 0;
    }

        .hero-5 h1 {
            font-size: 1.5rem;
        }

        .hero-5 .badge-backoffice {
            display: none; /* Nasconde il badge su mobile */
        }

    .card-body {
        padding: 1rem !important;
    }

    .col-md-4 {
        margin-bottom: 1rem;
    }

    section.py-5 h2 {
        font-size: 1.5rem;
    }
}

/* griglia segnalazioni */
/* Stile morbido per la griglia */
.soft-grid ::deep .dxbl-grid-table {
    border-collapse: separate;
    border-spacing: 0 4px;
}

    .soft-grid ::deep .dxbl-grid-table tbody tr {
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        border-radius: 10px;
        transition: all 0.2s ease;
    }

        .soft-grid ::deep .dxbl-grid-table tbody tr:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

    .soft-grid ::deep .dxbl-grid-table td:first-child {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .soft-grid ::deep .dxbl-grid-table td:last-child {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

/* Bottone morbido */
.btn-soft-primary {
    background-color: rgba(26, 115, 232, 0.1);
    border: none;
    color: #1b6ec2;
    border-radius: 30px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

    .btn-soft-primary:hover {
        background-color: #1b6ec2;
        color: white;
        transform: scale(1.05);
    }

    .btn-soft-primary i {
        font-size: 1.1rem;
    }

    /*form dettagli*/

.form-row-custom {
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.form-label-col {
    background-color: #f8f9fa;
    font-weight: 600;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.form-value-col {
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

/* Logo preview */
.logo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
}

/* Upload section */
.upload-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.upload-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

 

.card:focus {
    outline: 2px solid #1b6ec2; /* stesso blu del grid */
    box-shadow: 0 0 0 2px rgba(27,110,194,0.25); /* leggero glow */
}







