/* Miligram overrides */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

main.main {
    flex: 1;
    /* Spinge il footer verso il basso */
}


.top-nav-links,
.side-nav,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {

    color: #363637;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-optical-sizing: auto;
    font-style: normal;
}


a {
    color: #2f85ae !important;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
    color: #2a6496;
    -webkit-transition: all 0.2s easeout;
    transition: all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #606c76;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color: #2f85ae;
}

.button {
    background-color: #ffb300;
    border: #f8ba29;
    color: #363637;
    border-radius: 20rem;
    width: 100%;
}

.button:hover {
    background-color: #e4a30d;
    border: #f8ba29;
    color: #363637;
}


/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: #f5f7fa;
}

.content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}

.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}

.actions a:first-child {
    padding-left: 0;
}

th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 112rem;
    padding: 2rem;
    margin: 0 auto 2rem;
}

.top-nav .top-nav-title .hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Mobile */
@media (max-width: 568px) {
    .top-nav {
        padding: 0;
    }

    .top-nav .top-nav-title .hero-img {
        height: 16vh;
        object-fit: cover;
        object-position: center;
    }
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}

.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.message.hidden {
    display: none;
}

.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}

.message.warning {
    background: #fffabc;
    color: #8d7b00;
    border-color: #d3b800;
}

.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}

.input.radio input,
.input.checkbox input {
    margin: 0;
}

.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}

.input.radio label>input,
.input.checkbox label>input {
    margin-right: 1.0rem;
}

.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

/* Paginator */
.paginator {
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.pagination li {
    margin: 0 0.5rem;
}

.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}

.asc:after {
    content: " \2193";
}

.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }

    .side-nav {
        margin-bottom: 1rem;
    }

    .heading {
        margin-bottom: 1rem;
    }

    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }

    .asc:after {
        content: " \2192";
    }

    .desc:after {
        content: " \2190";
    }
}

/*--------------------------------------------------------------
# CUSTOM CSS 
--------------------------------------------------------------*/
/*  regole generiche */

.accordion .accordion-item .accordion-button:not(.collapsed)::after {
    color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-item .accordion-button:focus {
    border-color: none !important;
    box-shadow: none;
}

.list .configuration .accordion .accordion-item,
.list .configuration .accordion .accordion-item .accordion-button {
    background-color: #edecec;
    color: #4d4d4d;
}

.dropdown-item:active {
    background-color: #b6c7d652 !important;
}

/*tom select*/
.ts-wrapper .ts-control .item {
    background: #efefef !important;
    color: #343a40 !important;
}

/* Stella indispensabile */
#star-icon {
    color: #ccc;
}

#essential:checked+label #star-icon {
    color: #ffc107;
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 3rem 0;
    font-size: smaller;
}

.footer p {
    margin-bottom: 0;
}

/* Text area */
textarea {
    resize: none;
}

/*--------------------------------------------------------------
# CUSTOM CSS - HOMEPAGE
--------------------------------------------------------------*/
.list .configuration .break-sm {
    display: inline;
}

@media (max-width: 576px) {
    .list .configuration .break-sm {
        display: block;
    }
}

/* Swiper */
.list .configuration .accordion .accordion-item .accordion-body .swiper-control-wrapper {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .list .configuration .accordion .accordion-item .accordion-body .swiper {
        max-width: 768px;
        margin: 0 auto;
        overflow: hidden;
    }
}

.list .configuration .accordion .accordion-item .accordion-body .swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    align-items: stretch !important;
}

.list .configuration .accordion .accordion-item .accordion-body .swiper .widget-row,
.list .configuration .accordion .accordion-item .accordion-body .swiper .flex-fill {
    display: flex !important;
    flex: 1;
    width: 100%;
}

.list .configuration .accordion .accordion-item .accordion-body .swiper .swiper-slide .slanted-edge {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    margin: 0 5px;
    flex: 1;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Stile Frecce a Cerchio */
.swiper-button-next,
.swiper-button-prev {
    background-color: #fff;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #000 !important;

    /* Centratura verticale assoluta */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
}

/* Posizionamento FUORI dai 768px su Desktop */
@media (min-width: 768px) {
    .swiper-button-prev {
        left: 0 !important;
        /* Inizio del wrapper da 880px */
    }

    .swiper-button-next {
        right: 0 !important;
        /* Fine del wrapper da 880px */
    }
}

/* Icone piccole dentro il cerchio */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
}


/* Card */
.list .custom-card {
    display: flex;
    padding: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.list .custom-card .share,
.list .custom-card .preview {
    border: 1px solid #2f85ae;
    border-radius: 30rem;
    padding: 0.1rem 1.2rem 0.1rem 1.2rem;

}

@media (min-width: 768px) {
    .list .custom-card .card-img {
        max-width: 260px;
        margin-left: 0;
    }

    .list .custom-card .custom-box {
        gap: 1.5rem;
        display: flex;
        justify-content: end;
        align-items: center;
    }
}

@media (max-width: 576px) {

    .list .custom-card .share,
    .list .custom-card .preview {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
}

@media (min-width: 576px) {
    .list .mini-dashboard h6 {
        font-size: 3rem;
        margin: 2rem 0 1.8rem 0;
    }
}


.list .mini-dashboard .border-right {
    border-right: 1px solid rgb(214, 214, 214);
}

/* Accordion section-list */
/* @media (min-width: 576px) {
    .list .section-list h5 {
        font-size: 1.8rem;
        padding: 3rem 0 1.8rem 0;
    }
} */

.list .section-list .accordion .accordion-item,
.list .section-list .accordion-flush .accordion-item .accordion-button {
    background-color: transparent !important;
}

.list .section-list .accordion-flush .accordion-item .accordion-button {
    padding: 2rem 0;
}

.list .section-list .accordion-flush .accordion-item .accordion-header.category {
    border-bottom: 1px solid rgb(146, 146, 146);
}

.list .section-list .accordion-flush .accordion-item .accordion-header.category .accordion-button h6 {
    text-transform: lowercase;
}

.list .section-list .container.card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: none !important;
    padding: 1.5rem;
    background-color: #faf3ed;
    transition: all 0.3s ease;
}


.list .section-list .container.card .card-list .img-thumbnail {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: contain;
    background-color: #fff;
}

.list .section-list .container.card .card-list .product-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.list .section-list .container.card .card-list .essential-badge span.text-uppercase {
    font-size: 0.7rem;
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: bold;
    color: #856404;
    letter-spacing: 0.5px;
}

.list .section-list .container.card .card-list .vendor-name {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #777;
    margin-bottom: 0.75rem;
}


.list .section-list .container.card .card-list .product-price {
    font-size: 1.1rem;
    color: #333;
    padding-top: 0.5rem;
    display: inline-block;
}


@media (max-width: 576px) {
    .list .section-list .accordion-flush .accordion-item .accordion-body {
        padding: 1rem 0;
    }

    .list .section-list .container.card .card-list .img-thumbnail {
        max-width: 120px;
        height: 120px;
    }

    .list .section-list .container.card .card-list .product-title {
        font-size: 1.1rem;
        margin-bottom: 0;
        text-align: center;
    }

    .list .section-list .container.card .card-list .essential-badge {

        text-align: center;
    }

    .list .section-list .container.card .card-list .vendor-name {
        text-align: center;
    }

    .list .section-list .container.card .card-list .product-price {
        font-size: 1rem;
        padding-top: 0;
        display: block;
        text-align: center;
    }
}

.btn.btn-warning.color-black {
    color: black !important;
}


/*--------------------------------------------------------------
# CUSTOM CSS - ADD - EDIT - VIEW (frontend e backend)
--------------------------------------------------------------*/
.product-add .img-thumbnail,
.product-edit .img-thumbnail,
.product-view .img-thumbnail {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: contain;
    background-color: #fff;
    padding: 10px;
}

.product-add .custom-muted,
.product-edit .custom-muted,
.product-view .custom-muted {
    color: #96a2ac;
}

.product-add .save-btn,
.product-edit .save-btn {
    max-width: 250px;
}

@media (max-width: 576px) {

    .product-add .img-thumbnail,
    .product-edit .img-thumbnail,
    .product-view .img-thumbnail {
        max-width: 200px;
        height: 200px;
    }

    .product-add .star-display,
    .product-edit .star-display,
    .product-view .star-display {
        font-size: 0.80rem;
    }

    .product-add .save-btn,
    .product-edit .save-btn {

        width: 100% !important;
        max-width: auto;
    }
}

/*--------------------------------------------------------------
# FRONTEND - HOMEPAGE
--------------------------------------------------------------*/
.list .welcome-container {
    max-width: 975px;
    margin: 0 auto;
    overflow: hidden;
}

.list .welcome-container .welcome {
    background-color: #faf3ed;
    border-radius: 1.5rem;
}

.list .welcome-container .welcome h1 {
    font-size: 2.2rem;
    color: #333;
    font-weight: 700;
}

.list .welcome-container .welcome h6 {
    white-space: pre-line;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

.list .welcome-container .festoni-divider {
    height: 60px;
    width: 100%;
    background-image: url('../img/festoni.png');
    background-repeat: repeat-x;
    background-size: contain;
    background-position: center;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.help-neo {
    font-size: 0.90rem;
}

@media (max-width: 768px) {
    .list .welcome-container .welcome {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin: 0 10px;
    }

    .list .welcome-container .welcome h1 {
        font-size: 1.7rem;
    }

    /* .welcome-container .feston-bottom {
        max-width: 100%;
        margin-top: 0;
    } */
}

@media (max-width: 420px) {

    /* .list .section-list .neo {
        padding: 1.5rem !important;
    }

    .welcome-container .welcome h6 {
        font-size: 0.9rem;
    } */
}