/*---------------------------*/
/*---- css-01-global.css ----*/
/*---------------------------*/

:root {
    --text-color: #030303;
    --secondary-text-color: #363636;
    --primary-color: #c9a74d;
    --secondary-color: #7c7c7c;
    --white-color: #ffffff;
    --black-color: #000000;
}


/* ====== GLOBAL FONT SETTINGS ====== */
body {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #222;
}

h1, h2, h3, h4{
    font-family: "Quicksand", sans-serif;
    letter-spacing: 0.05em;
}

h5, h6, p {
    font-family: "Montserrat", sans-serif;
    letter-spacing: inherit;
}

.light {
    font-size: 2.25rem !important;
    font-weight: 500;
    text-transform: uppercase;
}

/* ====== FONT DIMENSION ====== */
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 500; }
h4 { font-size: 1.5rem; font-weight: 400; }
h5 { font-size: 1.25rem; font-weight: 300; }
h6 { font-size: 1rem; font-weight: 200; }

p {
    font-size: 1rem;
    margin-bottom: 1em;
}

body a {
    text-decoration: none !important;
}

.content-wrapper {
    background-image: url(//ilgelatodijuri.it/wp-content/uploads/2024/01/cioccolatini-1.jpg);
    background-position: unset;
    background-repeat: round;
}

/* === Login === */
.login-box{
    width: 500px;
}

.login-logo img {
    width: 320px;
    height: auto;
    margin-bottom: 50px;
}

.login-page{
    background-image: url(https://ilgelatodijuri.it/wp-content/uploads/2017/03/h1-parallax-2.jpg);
    background-position: unset;
    background-size: cover;
    background-repeat: no-repeat;
}
.login-box .card{
    box-shadow: 0px 0px 8px #fff !important;
}
.login-box *{
    font-family: "Quicksand", sans-serif !important;
}

.login-card-body input,
.login-card-body input:focus,
.login-card-body input:focus-visible {
    background-color: transparent !important;
    color: #fff !important;
}

/* Autofill Chrome / Edge / Opera */
.login-card-body input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Autofill su focus */
.login-card-body input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Firefox */
.login-card-body input:-moz-autofill {
    color: #fff !important;
    background-color: transparent !important;
}


.card-primary, .card-primary .card-body {
    background-color: transparent !important;
    border: none !important;
    box-shadow: 0px 0px 0px !important;
}

.fas, .far, .fab, .fa {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.card-primary .card-header, .card-primary .card-body label {
    color: #fff !important;
}

.card-primary .card-body span {
    color: #fff !important;
}

.card-primary .card-footer a {
    color: var(--primary-color) !important;
}

.login-card-body  button{
    background-color: var(--primary-color);
    border: none;
    text-transform: uppercase;
}
.login-card-body  button:hover, .login-card-body  button:active, .login-card-body  button:focus{
    background-color: #e9bc45 !important;
    border: none;
}
/* === Sidebar === */

.w-logo {
    width: 90%;
}

.brand-link {
    height: 80px;
}

.main-sidebar {
    position: relative;
    background-color: var(--text-color);
    overflow: hidden;
}

.main-sidebar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(/img/icons/cake.png);
    background-position: 50% 90%;
    background-size: 30%;
    background-repeat: no-repeat;
    opacity:  0.6;
    transition: opacity 0.7s ease, transform 1s ease;
}

.main-sidebar:hover::before {
    opacity:1;
    transform: translateY(7px);
}
.sidebar-collapse.sidebar-mini .main-sidebar .nav-sidebar .nav-link{
    display: flex;
    justify-content: center;
}
.main-sidebar .nav-link{
    padding: .5rem 0.5rem;
}

.main-sidebar .nav-header, .main-sidebar .nav-link p  {
    font-family: "Montserrat", sans-serif !important;
    text-transform: uppercase;
}

.main-sidebar .nav-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}
.main-sidebar .nav-link p {
    font-size: 15px;
    font-weight: 400;
}
.main-sidebar .nav-link i {
    margin-right: 2px;
}


.nav-sidebar .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0%;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}
.nav-sidebar .nav-item > .nav-link:hover::after,
.nav-sidebar .nav-item > .nav-link.active::after {
    transform: scaleX(1);
}

.nav-sidebar .nav-item > .nav-link:hover {
    background-color: var(--text-color) !important;
}

.nav-sidebar .nav-item > .nav-link.active, .nav-sidebar .nav-item > .nav-link:hover {
    color: var(--white-color) !important;
    background-color: var(--text-color) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* === Card box === */

.card.extend{
    box-shadow: 0 0 5px rgb(0 0 0 / 64%), 0 9px 8px rgba(0, 0, 0, .2);
}
.card.filter{
    flex-direction: row;
    box-shadow: 0 0 5px rgb(0 0 0 / 64%), 0 9px 8px rgba(0, 0, 0, .2);
    align-items: end;
    background-color: #ffffff;
    padding-bottom: 8px;
    min-height: 100px;
}

.border-text {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 30px;
}
.title-page{
    position: relative;
    margin-top: 15px;
    padding-left: 30px;
    font-weight: 600;
    text-transform: capitalize;
}

.title-page::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.card-body.resize{
    max-width: 800px;
}
/* === Buttons === */

.btn-gold, a.btn-primary, .button-save {
    font-family: "Montserrat", sans-serif !important;
    text-transform: uppercase;
    background-color: var(--primary-color);
    border-radius: 0px;
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    padding: 6px !important;
    min-width: 160px;
}
.btn-gold.next-prev{
    min-width: auto;
    width: 75px;
}

.btn-gold:hover,.button-save:hover , a.btn-primary:hover, .btn-gold:active,.button-save:active, a.btn-primary:active, .btn-gold:focus,.button-save:focus, a.btn-primary:focus, .btn-primary:disabled {
    background-color: var(--white-color) !important;
    border-radius: 0px;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.buttons-excel, .buttons-csv{
    border-radius: 0px;
    background-color: var(--text-color);
}

.icon-table{
    color: var(--primary-color);
    font-size: 16px;
    margin: 0px 5px;
    cursor: pointer;
    background-color: #f8f8f8;
    width: 36px;
    height: 34px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.icon-table:hover{
    color: #eac357;
    background-color: var(--white-color);
    border: 2px solid #eac357;
}
/* STYLE CARD HOME */

.ag-format-container {
    max-width: 1100px;
    margin: 0 auto;
}

.ag-courses_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
}

.ag-courses_item {
    flex-basis: calc(35% - 30px);
    margin: 0 15px 50px;
    border-radius: 20px;
    overflow: hidden;
}
.ag-courses_item_2 {
    flex-basis: calc(65% - 30px);
    margin: 0 15px 50px;
    border-radius: 20px;
    overflow: hidden;
}

.ag-courses-item_link {
    display: block;
    padding: 30px 20px;
    background: #1212129a;
    position: relative;
    border-radius: 20px;
    color: #fff;
    transition: 0.3s;
    min-height: 220px;
    align-content: center;
}

.ag-courses-item_link:hover {
    color: #fff;
    text-decoration: none;
}

.home-list-order {
    position: relative;
    background-image: url("/img/order-list.jpg");
    background-size: cover;
    background-position: center;
}

.home-create-order {
    position: relative;
    background-image: url("/img/order-create.jpg");
    background-size: cover;
    background-position: center;
}

.home-list-operator {
    position: relative;
    background-image: url("/img/operator-list.jpg");
    background-size: cover;
    background-position: center;
}

.home-create-operator {
    position: relative;
    background-image: url("/img/operator-create.jpg");
    background-size: cover;
    background-position: center;
}

.home-list-order::before, .home-create-order::before, .home-list-operator::before, .home-create-operator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.ag-courses-item_title {
    font-size: 26px;
    align-items: center;
    font-weight: bold;
    min-height: 70px;
    justify-self: left;
    position: relative;
    z-index: 2;
    text-align: left;
    justify-content: space-between;
    display: flex;
    padding: 0% 12%;
    font-family: "Montserrat", sans-serif !important;
}

.ag-courses-item_bg {
    width: 110px;
    height: 110px;
    background-color: #f9b134b9; /* oro */
    position: absolute;
    top: -60px;
    right: -60px;
    border-radius: 50%;
    z-index: 1;
    transition: 0.5s;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default {
    background: black;
    color: white;
    border-radius: 10px;
}

.ag-courses-item_link:hover .ag-courses-item_bg {
    transform: scale(14);
}

.ag-icon {
    width: 85px;
    height: 85px;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer {
    background-color: #ffffff;
    padding: 0px;
    border-radius: 0px;
}

ul.dropdown-menu.dropdown-menu-lg.dropdown-menu-right.show {
    border-radius: 0px;
    border: solid #f9b234 2px;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default, .navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default:hover {
    background: #ffffff;
    color: #f9b234;
    border-radius: 0px;
    font-family: "Montserrat", sans-serif !important;
}

a.nav-link.dropdown-toggle {
    font-family: "Montserrat", sans-serif !important;
}

/* RESPONSIVE */
@media (max-width: 990px) {
    .ag-courses_item {
        flex-basis: calc(50% - 30px);
    }
}
@media (max-width: 600px) {
    .ag-courses_item {
        flex-basis: 100%;
    }
}

/*----------------------*/
/*---- ALERT CUSTOM ----*/
/*----------------------*/


.alert-success {
font-size: 24px;
    border-radius: 15px;
    width: 25%;
    padding: 0px !important;
    margin-left: 250px !important;
    background-color: #ffffff;
    border-radius: 15px;
    margin-top: 80px;
    justify-self: center;
    height: max-content;
    position: fixed !important;
    inset: 0;
    z-index: 2000;
}

.btn-gold-next, .btn-gold-next:hover {
    float: right;
    margin-left: 5px;
    font-family: "Montserrat", sans-serif !important;
    text-transform: uppercase;
    background-color: #ffffff;
    border-radius: 0px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 6px !important;
    min-width: 160px;
}

.alert-danger {
font-size: 24px;
    border-radius: 15px;
    width: 25%;
    padding: 0px !important;
    margin-left: 250px !important;
    background-color: #ffffff;
    border-radius: 15px;
    margin-top: 7px;
    justify-self: center;
    height: max-content;
    position: fixed !important;
    inset: 0;
    z-index: 2000;
    width: 70%;
    text-align: center;
}



/*----------------------*/
/*---- ALERT CUSTOM ----*/
/*----------------------*/

.img-alert-success {
    background: white;
    color: #C9A74D;
    border-radius: 50%;
    position: absolute;
    top: 34px;
    width: 50px;
    height: 50px;
    left: auto;
    justify-self: anchor-center;
    font-size: 32px;
}


.card-footer.card-footer-alert-success {
    place-self: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 0 solid rgba(255, 255, 255, 0.125);
}

.card-body-alert-success {
    justify-self: center;
    color: black;
    margin-top: 30px;
}

.btn-alert-success {
    border-radius: 15px;
    border: solid #C9A74D 1px !important;
    background-color: #fff !important;
    color: #C9A74D !important;
    font-size: 16px;
    padding: 10px 15px !important;
    opacity: 1 !important;
    margin-top: 25px;
}

.card-header-alert-success {
    background-color: #C9A74D;
}

.card-header.card-header-alert-success {
    border-radius: 15px 15px 0px 0px;
    height: 60px;
}

table.dataTable {
    width: 100% !important;
}


.img-alert-danger {
    background: white;
    color: #dc3546;
    border-radius: 50%;
    position: absolute;
    top: 34px;
    width: 50px;
    height: 50px;
    left: auto;
    justify-self: anchor-center;
    font-size: 32px;
}


.card-footer.card-footer-alert-danger {
    place-self: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 0 solid rgba(255, 255, 255, 0.125);
}

.card-body-alert-danger {
    justify-self: center;
    color: black;
    margin-top: 30px;
}

.btn-alert-danger {
    border-radius: 15px;
    border: solid #dc3546 1px !important;
    background-color: #fff !important;
    color: #dc3546 !important;
    font-size: 16px;
    padding: 10px 15px !important;
    opacity: 1 !important;
    margin-top: 25px;
}

.card-header-alert-danger {
    background-color: #dc3546;
}

.card-header.card-header-alert-danger {
    border-radius: 15px 15px 0px 0px;
    height: 60px;
}


/*----------------------*/
/*------ TABLES -------*/
/*----------------------*/


/*------ Flag color table -------*/
/*------ (Classi da aggiungere dinamicamente in coda alle classi even odd datatable ) -------*/
.delivery {
    font-weight: 600;
}

.green  {
    background-color: #B8EBC6 !important;
}
.green .sorting_1 {
    background-color: #9DD9A8 !important;
}

.azure  {
    background-color: #BEE8FF !important;
}
.azure .sorting_1 {
    background-color: #9FD6FF !important;
}


.purple  {
    background-color: #D8C1F7 !important;
}
.purple .sorting_1 {
    background-color: #C2A9E8 !important;
}

.normal  {
    background-color: #f9f9f9 !important;
}
.normal .sorting_1 {
    background-color: #f1f1f1 !important;
}

tbody > tr > td:last-child{
    text-align: center;
}
table.dataTable.display tbody td {
    border-top: 1px solid #ffffff !important;
}
table > thead > tr > th{
    border-top: 1px solid var(--text-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px
}

/* === Pagination === */

.dataTables_wrapper .dataTables_paginate .paginate_button{
    padding: 5px !important;
}

.paginate_button.page-item,
.paginate_button.page-item:hover,
.paginate_button.page-item:focus,
.paginate_button.page-item:active {
    color: var(--text-color) !important;
    border: 1px solid transparent !important;
    background-color: transparent;
    background: -webkit-linear-gradient(top, transparent 0%, transparent 100%) !important;
    background: -moz-linear-gradient(top, transparent 0%, transparent 100%) !important;
    background: -ms-linear-gradient(top, transparent 0%, transparent 100%) !important;
    background: -o-linear-gradient(top, transparent 0%, transparent 100%) !important;
    background: linear-gradient(to bottom, transparent 0%, transparent 100%) !important;
    box-shadow: none !important;
}

a.page-link {
    width: 40px;
    height: 40px;
    font-weight: 500;
    border: 1px solid #959595 !important;
    border-radius: 0px !important;
    color: #959595 !important;
}

a.page-link:hover {
    background-color: var(--white-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0px 0px 3px  var(--primary-color);
}

.paginate_button.page-item.active > a{
    color: var(--white-color) !important;
    background-color: var(--text-color) !important;
    border: 1px solid var(--text-color) !important;
    width: 40px;
    height: 40px;
    border-radius: 0px;
}

/* === Nav === */
.sidebar{
    display: inline;
}

aside.main-sidebar.sidebar-dark-primary.elevation-4 {
    position: fixed;
    min-height: 100%;
}

/* === Photo Box === */

.box-photo{
    max-width: 1000px;
    justify-self: center;
}

.photo-slot{
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.photo-slot img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ================================
            MEDIA QUERIES
   ================================ */

/* --- Small devices (≥576px) --- */
@media (min-width: 576px) {

}

/* --- Medium devices (≥768px) --- */
@media (min-width: 768px) {

}

/* --- Large devices (≥992px) --- */
@media (min-width: 992px) {

}

/* --- Extra large devices (≥1200px) --- */
@media (min-width: 1200px) {

}

/* --- XXL devices (≥1400px) --- */
@media (max-width: 1400px) {
    .main-sidebar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    justify-self: anchor-center;
    width: 90%;
    height: 100%;
    background-image: url(/img/icons/cake.png);
    background-position: 50% 90%;
    background-size: 30%;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.3s;
}

}

/* --- Extra large devices (≥1200px) --- */
@media (max-width: 1200px) {

        .alert-danger {
        font-size: 24px;
        border-radius: 15px;
        width: 45%;
        padding: 0px !important;
        background-color: #ffffff;
        border-radius: 15px;
        margin-top: 80px;
        justify-self: center;
        height: max-content;
        position: fixed !important;
        inset: 0;
        z-index: 2000;
        margin-left: 0px !important;
    }

    .alert-success {
        font-size: 24px;
        border-radius: 15px;
        width: 45%;
        padding: 0px !important;
        background-color: #ffffff;
        margin-left: 0px !important;
        border-radius: 15px;
        margin-top: 80px;
        justify-self: center;
        height: max-content;
        position: fixed !important;
        inset: 0;
        z-index: 2000;
    }

    .ag-courses_item_2 {
        flex-basis: calc(65% - 30px);
        margin: 0 15px 50px;
        border-radius: 20px;
        overflow: hidden;
    }

    .ag-courses_item {
        flex-basis: calc(65% - 30px);
        margin: 0 15px 50px;
        border-radius: 20px;
        overflow: hidden;
    }

    .content-wrapper {
        background-image: url(//ilgelatodijuri.it/wp-content/uploads/2024/01/cioccolatini-1.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .select2-container {
        width: 100% !important;
    }

}

