/*──────────────────────────────────────────────────────────────────────────
   style.css (globale) — palette arancio (#ed6d05 primario, #f2994a secondario,
   grigi e neri), tutte le righe originali, solo colori modificati
──────────────────────────────────────────────────────────────────────────*/

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 20px;
    color: #000000; /* testi neri */
    background: linear-gradient(180deg,    rgba(237, 109, 5, 1) 0%,
    rgb(124, 54, 2) 150px,
    #fdf0e6 150px,
    #fdf0e6 100%);
    background-repeat: no-repeat !important;
    background-color: #fdf0e6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}
*, *:focus {
    outline: none !important;
    box-sizing: border-box;
}

::selection {
    background: #ed6d05; /* arancio primario */
    color: #ffffff;
}
::-moz-selection {
    background: #ed6d05;
    color: #ffffff;
}

/* LINKS **********************************************************/
a:link { color: #ed6d05; text-decoration: none; }
a:visited { color: #ed6d05; text-decoration: none; }
a:hover { color: #f2994a; text-decoration: none; }
a:active { color: #ed6d05; text-decoration: none; }

.a1:link { color: #f2994a; text-decoration: none; }
.a1:visited { color: #f2994a; text-decoration: none; }
.a1:hover { color: #f2994a; text-decoration: none; }
.a1:active { color: #f2994a; text-decoration: none; }

.a2:link { color: #808080; text-decoration: none; }
.a2:visited { color: #808080; text-decoration: none; }
.a2:hover { color: #f2994a; text-decoration: none; }
.a2:active { color: #808080; text-decoration: none; }

/* GENERAL ********************************************************/
section {
    overflow: hidden;
    padding-left: 30px !important;
    padding-right: 30px !important;
}
hr {
    border-color: #808080; /* grigio */
    margin: 0;
}
ul, li { padding: 0; margin: 0; }
.d-full { width: 100%; }
.shadow-sm {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px !important;
    border-radius: 10px;
}

/* HEADINGS *******************************************************/
h1, h2, h3, h4, h5 {
    margin: 0 0 20px;
    font-weight: 500;
}
h1 { font-size: 20px; line-height: 20px; }
h2 { font-size: 25px; line-height: 30px; }
h3 { font-size: 22px; line-height: 25px; font-weight: 700; }

/* FONT ***********************************************************/
.f12 { font-size: 12px !important; }
.f13 { font-size: 13px; }
.f14 { font-size: 14px; }
.f16 { font-size: 16px !important; }
.f18 { font-size: 18px; }
.f22 { font-size: 22px; }
.f24 { font-size: 24px; }
.f26 { font-size: 26px; }
.f28 { font-size: 28px; }
.f30 { font-size: 30px; }
.f50 { font-size: 50px; }
.f70 { font-size: 70px; }

.lh-double { line-height: 36px; }

.light { font-weight: 300; }
.regular { font-weight: 400; }
.medium { font-weight: 500; }
.bold { font-weight: 700; }

/* COLORS ********************************************************/
.border { border: solid 1px #808080 !important; }  /* grigio */

.text-color { color: #ed6d05; }        /* arancio primario */
.text-color-dark { color: #f2994a; }   /* arancio secondario */
.text-gray { color: #808080; }         /* grigio neutro */
.text-blue { color: #000000; }         /* nero */
.text-light-blue { color: #f2994a !important; } /* secondario */
.text-success { color: #ed6d05 !important; }
.text-warning { color: #f2994a !important; }
.text-danger { color: #da2b48 !important; }
.text-orange { color: #ed6d05; }

/* BG COLORS ******************************************************/
.bg-color { background: #ed6d05; }      /* arancio primario */
.bg-light-gray { background-color: #e8e8e8; } /* grigio chiaro */
.bg-gray { background: #808080; }       /* grigio */
.bg-linear { background: linear-gradient(#ed6d05, #f2994a); } /* gradient arancio */
.bg-blue { background: #f2994a; }       /* arancio secondario */
.bg-success, .btn-success { background: #f2994a !important; border: none; }
.bg-warning { background: #f2994a !important; }

/* BTN ************************************************************/
.btn {
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 100px;
    font-size: 14px;
}
.btn.a1 { border: none !important; }
.btn-primary {
    font-size: 14px;
    background: #ffffff !important;       /* bianco pulito */
    border: solid 1px #000000 !important; /* nero */
    color: #000000 !important;
}
.btn-primary:not([disabled]):not(.disabled).active,
.btn-primary:not([disabled]):not(.disabled):active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:hover:active,
.btn-primary:focus:active {
    border: solid 1px #ed6d05 !important;    /* primario */
    background-color: #ed6d05 !important;
    color: #ffffff !important;
    box-shadow: none;
}
.btn-secondary {
    font-size: 14px;
    background: #000000; /* nero */
    border: none;
    color: #ffffff !important;
}
.btn-secondary:not([disabled]):not(.disabled).active,
.btn-secondary:not([disabled]):not(.disabled):active,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:hover:active,
.btn-secondary:focus:active {
    background: #f2994a !important; /* secondario */
    color: #ffffff !important;
}
.btn-default, .btn-default path {
    font-size: 13px;
    background: transparent;
    border: solid 1px #ed6d05; /* primario */
    color: #000000;
}
.btn-default:not([disabled]):not(.disabled).active,
.btn-default:not([disabled]):not(.disabled):active,
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default:hover:active,
.btn-default:focus:active,
.btn-default:hover path {
    border: solid 1px #ed6d05;
    color: #ffffff !important;
    background-color: #000000;
    box-shadow: none;
}
.btn-color {
    font-size: 14px;
    background: #ed6d05;
    border: solid 1px #ed6d05;
    color: #000000;
}
.btn-color:not([disabled]):not(.disabled).active,
.btn-color:not([disabled]):not(.disabled):active,
.btn-color:hover,
.btn-color:focus,
.btn-color:active,
.btn-color:hover:active,
.btn-color:focus:active {
    border: solid 1px #f2994a;
    background-color: #f2994a;
    color: #000000;
    box-shadow: none;
}
.btn-outline {
    background: #ffffff;
    border: solid 1px #808080;
    color: #000000;
}
.btn-outline:hover {
    background: #000000;
    border: solid 1px #000000;
    color: #ffffff;
}
.btn-danger { background: #ffffff; color: #da2b48; }
.btn-danger:hover { background: #da2b48; color: #ffffff; }
.btn-success { color: #ffffff !important; }
.btn-success:hover { background: #f2994a !important; }

/* BADGE ********************************************************/
.badge {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 15px;
}
.badge-xxs {
    font-size: 11px;
    padding: 0px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
}

/* FORM *********************************************************/
label {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
}
::placeholder {
    text-transform: capitalize !important;
    font-style: italic;
    font-weight: 400;
    color: #808080 !important;
}
.form-control, .form-select {
    border-radius: 100px;
    border: solid 1px #ffffff;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 500;
}
.form-select.form-select-blu {
    background-color: #000000;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-select:disabled {
    border: solid 1px #e9ecef;
    color: #808080;
}
.form-control:focus, .form-select:focus {
    border: solid 1px #ed6d05;
    box-shadow: none;
}
.form-check-label { margin-top: 4px; }
.form-check-input { border-color: #808080; }
.form-check-input:checked {
    border-color: #000000;
    background-color: #000000;
}

/* NAVBAR & TABS ******************************************************/
.logo {
    width: 200px;
    height: 72px;
    background: url(/img/logoZAGO.png) center/contain no-repeat;
}.logologin {
    width: 200px;
    height: 72px;
    background: url(/img/logo-Zago.png) center/contain no-repeat;
}
.navbar {
    min-height: 50px;
    font-size: 13px;
    z-index: 10;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    width: 100%;
}
.navbar-toggler {
    border: none;
    color: #000000;
    font-weight: bold;
    padding: 14px 15px;
    border-radius: 0;
    background: #ed6d05;
}
.navbar-nav { background: #000000; }
.nav-link {
    text-transform: uppercase;
    color: #ffffff !important;
    line-height: 13px;
}
.nav-link:hover,
.nav-link.active:hover,
.nav-link.active,
.nav-link.active:visited,
.nav-link.active:focus {
    color: #ffa64d !important; /* Arancione più chiaro per migliorare la leggibilità */
}
.nav-link.active {
    background: #ed6d05;
    border-radius: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

/* HOME TABS *******************************************************/
.nav-tab-filter > .nav-item { padding-right: 0; }
.nav-item > .nav-filter {
    color: #000000 !important; /* Testo nero */
    padding: 10px !important;
    border: none;
    border-radius: 10px;
    text-align: left;
}
.nav-item > .nav-filter:hover,
.nav-item > .nav-filter.active,
.nav-item > .nav-filter:focus {
    color: #000000 !important; /* Testo nero anche al passaggio del mouse */
    border: none;
    padding: 10px !important;
    background: linear-gradient(#ed6d05, #f2994a) !important;
    border-radius: 10px;
}
/* Liste */
.nav-item > .nav-filter-list {
    font-weight: 500;
    color: #000000 !important;
    padding: 10px 15px !important;
    border: none;
    border-radius: 100px;
    text-align: left;
}
.nav-item > .nav-filter-list:hover,
.nav-item > .nav-filter-list.active {
    font-weight: 500;
    color: #000000 !important;
    border: none;
    padding: 10px 15px !important;
    background: #f2994a !important;
    border-radius: 100px;
}

/* PAGINATION **********************/
.page-link { color: #f2994a !important; }
.active > .page-link,
.page-link.active {
    background-color: #f2994a;
    color: #ffffff !important;
    border-color: rgb(222, 226, 230);
}

/* FILE UPLOADER **********************/
.upload {
    margin-bottom: 20px;
    height: 80px;
    border: 1.5px dashed #808080;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 14px;
    color: #000000;
}
.uploaded {
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.file { display: flex; flex-direction: column; }
.file__name {
    display: flex; flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 300px;
    line-height: 0;
    color: #000000;
    font-size: 14px;
}
.cancella-file:hover { cursor: pointer; opacity: 0.8; }
.icon-file { padding: 15px; font-size: 30px; color: #f2994a; }

/* LOADING *******************************************************/
.loader {
    width: 25px;
    --b: 4px;
    vertical-align: middle;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ed6d05;
    -webkit-mask:
        repeating-conic-gradient(#0000 0deg,#000 1deg 70deg,#0000 71deg 90deg),
        radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: l5 1s infinite;
}
@keyframes l5 { to { transform: rotate(.5turn); } }

/* SELECT2 *******************************************************/
.select2-container--default .select2-selection--single {
    border: solid 1px #808080 !important;
    border-radius: 0 !important;
    font-size: 14px;
}
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 41px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 41px !important;
}
.select2-results__option { font-size: 14px !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f2994a !important;
}

/* LOGIN *******************************************************/
.form-login { max-width: 700px; margin-top: 120px; }

/* HOME *******************************************************/
.body-big {
    background: linear-gradient(180deg,
    rgba(237, 109, 5, 1) 0%,
    rgb(124, 54, 2) 330px,
    #fdf0e6 330px,
    #fdf0e6 100%
    );
}

.icon-account {
    border: solid 3px #ed6d05;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 35px;
}
.footer { min-height: 50px; }
.scroll { background: #ed6d05; transition: all .2s ease-in; }

/* Ticket table ***************************************************/
#tabelle-ticket { margin-top: 30px; }
.table-ticket {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}
.table-ticket > thead > tr { background: #ffffff; color: #000000; font-size: 13px; }
.table-ticket > thead > tr > th { padding: 10px; }
.table-ticket > thead > tr > th:first-child { border-top-left-radius: 10px !important; }
.table-ticket > thead > tr > th:last-child { border-top-right-radius: 10px !important; }
.table-ticket > tbody > tr > td {
    background: #ffffff;
    padding: 10px;
    vertical-align: middle;
}
.table-ticket > tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: 10px !important;
}
.table-ticket > tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: 10px !important;
}
.table-ticket > tbody > tr:last-child > td { border: none; }
.tab-table-home { margin-bottom: 100px; }

/* MEDIA QUERIES ***************************************************/
@media (min-width: 576px) {
    .d-full { width: auto; }
    .nav-item > .nav-filter,
    .nav-item > .nav-filter:hover,
    .nav-item > .nav-filter.active,
    .nav-item > .nav-filter:focus {
        padding: 10px 20px !important;
    }
}
@media (min-width: 768px) {
    .nav-item > .nav-filter,
    .nav-item > .nav-filter:hover,
    .nav-item > .nav-filter.active,
    .nav-item > .nav-filter:focus {
        padding: 15px 25px !important;
    }
}
@media (max-width: 767px) {
    .table-ticket > tbody > tr > td,
    .table-ticket > tbody > tr:hover > td { border: none !important; }
    .table-responsive thead tr { position: absolute; display: none; }
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr { display: block; }
    .table-responsive { border: none; }
    .table-responsive > tbody > tr > td {
        border: none;
        position: relative;
        text-align: left !important;
        padding: 5px 10px;
    }
    .table-responsive > tbody > tr { border-bottom: solid 1px #eeeeee; }
    .table-responsive > tbody > tr:last-child { border-bottom: none; }
    .table-ticket { border-radius: 10px; }
    .table-ticket > tbody > tr:first-child,
    .table-ticket > tbody > tr:first-child > td:first-child {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .table-ticket > tbody > tr:last-child,
    .table-ticket > tbody > tr:last-child > td:last-child {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}
@media (min-width: 992px) {
    .navbar { padding: 20px; }
    .navbar-nav { background: transparent; }
    .nav-item { padding-right: 10px; }
    .nav-link.active,
    .nav-link.active:visited,
    .nav-link:focus {
        padding-left: 15px !important;
        padding-right: 15px !important;
        color: #000000 !important;
        background: #ed6d05;
        border-radius: 30px;
    }
    #tabelle-ticket { margin-top: -15px; }
    .tab-table-home { margin-bottom: 60px; }
}
@media (min-width: 1200px) {
    .nav-item { padding-right: 20px; }
}

/* CUSTOM TAB *******************************************************/
.custom-tab {
    color: #da2b48;            /* rosso per evidenziazioni */
    background-color: #b30021; /* rosso vivo */
    border-radius: 5px;
}
