/*!
Theme Name: Eduvalt
Theme URI: https://ifingerstudio.com/eduvalt/
Author: johanspond
Author URI: https://themeforest.net/user/johanspond/
Description: Eduvalt - Online Courses & Education WordPress Theme
Version: 2.0.7
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: eduvalt
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

.breadcrumb-area {
    display: none !important;
}

.samlogo_head {
    display: none !important;
}

/* area contenuto */
.tg-page-content.eduvalt-page-content {
    padding-top: 8px;
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 768px) {

    .tg-page-area {
        padding: 0;
    }

    .container {
        width: 94%;
        max-width: 97%;
        margin: 0 auto;
    }

    .col-xl-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .vertical-menu {
        width: 20%;
        float: left;
        background: #031742;
        margin-right: 2%;
        min-height: 100%;
        overflow: hidden;
        border-radius: 16px;
        padding-bottom: 16px;
    }

    .vertical-menu-logo {
        text-align: center;
        padding: 18px 15px 10px;
        background: #031742;
    }

    .vertical-menu-logo a {
        display: block;
    }

    .vertical-menu-logo img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        border-radius: 8px;
    }

    .vertical-menu-mobile-toggle {
        display: none !important;
    }

    .vertical-menu ul {
        padding-left: 0;
        margin: 0;
    }

    .vertical-menu li {
        list-style: none;
        padding-left: 10%;
        font-size: 22px;
        margin-top: 10px;
    }

    .vertical-menu li a,
    .vertical-menu li a i,
    .vertical-menu li a span {
        color: #ffffff;
        text-decoration: none;
    }

    .vertical-menu li ul li:hover {
        translate: calc(5px);
    }

    .vertical-menu .sub-menu {
        margin-top: 6px;
        padding-bottom: 4px;
    }

    .vertical-menu .sub-menu li {
        font-size: 18px;
        margin-top: 8px;
    }

    .tg-page-content {
        width: 78%;
        float: left;
    }

    .wpDataTablesWrapper .dataTables_info {
        font-size: 17px !important;
        color: red;
    }

    .wpDataTablesWrapper div.wdtscroll {
        height: 70vh !important;
    }
}

/* =========================================================
   AREA RISERVATA
   ========================================================= */
.area-riservata-msg {
    max-width: 640px;
    background: #f8fbff;
    border: 1px solid #d9e7f7;
    border-left: 5px solid #1d4f91;
    border-radius: 14px;
    padding: 24px 26px;
    margin: 30px 0 12px 0;
    font-size: 20px;
    line-height: 1.6;
    color: #163a63;
    box-shadow: 0 10px 30px rgba(13, 45, 85, 0.08);
}

.area-riservata-msg::before {
    content: "🔒 Area riservata";
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4f91;
    margin-bottom: 12px;
}

.area-riservata-msg a {
    display: inline-block;
    margin-top: 10px;
    background: #1d4f91;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 22px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(29, 79, 145, 0.18);
}

.area-riservata-msg a:hover {
    background: #163a63;
}

/* =========================================================
   LOGIN FRONTEND - THEME MY LOGIN
   ========================================================= */
.tml.tml-login {
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(15, 40, 75, 0.08);
    margin: 20px 0 30px 0;
}

.tml.tml-login::before {
    content: "Accesso area riservata";
    display: block;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #163a63;
    margin-bottom: 10px;
}

.tml.tml-login::after {
    content: "Effettua il login con le credenziali assegnate per accedere alla tua sezione.";
    display: block;
    font-size: 16px;
    line-height: 1.6;
    color: #5c6f87;
    margin-bottom: 24px;
}

.tml .tml-field-wrap {
    margin-bottom: 18px;
}

.tml label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #163a63;
    margin-bottom: 8px;
}

.tml input[type="text"],
.tml input[type="email"],
.tml input[type="password"] {
    width: 100%;
    height: 52px;
    border: 1px solid #cfdceb;
    border-radius: 10px;
    background: #f9fbfe;
    padding: 0 16px;
    font-size: 16px;
    color: #163a63;
    transition: all 0.2s ease;
    box-shadow: none;
}

.tml input[type="text"]:focus,
.tml input[type="email"]:focus,
.tml input[type="password"]:focus {
    outline: none;
    border-color: #1d4f91;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(29, 79, 145, 0.10);
}

.tml .tml-rememberme-wrap {
    margin-top: 4px;
    margin-bottom: 20px;
}

.tml .tml-rememberme-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 500;
    color: #304b6a;
}

.tml input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.tml .tml-submit-wrap {
    margin-top: 8px;
    margin-bottom: 18px;
}

.tml input[type="submit"],
.tml button,
.tml .button,
.tml .tml-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #1d4f91;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(29, 79, 145, 0.20);
}

.tml input[type="submit"]:hover,
.tml button:hover,
.tml .button:hover,
.tml .tml-button:hover {
    background: #163a63;
    transform: translateY(-1px);
}

.tml ul,
.tml .tml-links {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.tml ul li,
.tml .tml-links li {
    margin: 8px 0 0 0;
}

.tml a {
    color: #1d4f91;
    text-decoration: none;
    font-weight: 600;
}

.tml a:hover {
    color: #163a63;
    text-decoration: underline;
}

.tml .tml-alerts,
.tml .tml-errors,
.tml .tml-messages {
    margin-bottom: 18px;
}

.tml .message,
.tml .error,
.tml .tml-alert {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #d9e7f7;
    background: #f8fbff;
    color: #163a63;
    margin-bottom: 12px;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767px) {

    .tml.tml-login {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .tml.tml-login::before {
        font-size: 24px;
    }

    .tml input[type="text"],
    .tml input[type="email"],
    .tml input[type="password"] {
        height: 48px;
    }

    .tml input[type="submit"],
    .tml button,
    .tml .button,
    .tml .tml-button {
        width: 100%;
        min-width: 0;
    }

    .tg-page-area {
        padding: 20px 0 !important;
    }

    .tg-page-area .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .tg-page-area .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tg-page-area .col-xl-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .vertical-menu {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 16px;
        background: #031742;
        border-radius: 18px;
        overflow: hidden;
        min-height: auto !important;
        padding: 0 0 10px 0;
        box-shadow: 0 10px 28px rgba(3, 23, 66, 0.10);
    }

    .vertical-menu-logo {
        display: block;
        text-align: center;
        padding: 18px 16px 10px;
        background: #031742;
    }

    .vertical-menu-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vertical-menu-logo img {
        display: block;
        width: 100%;
        max-width: 290px;
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
    }

    .vertical-menu-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: calc(100% - 32px);
        margin: 0 auto 8px auto;
        height: 44px;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 12px;
        background: rgba(255,255,255,0.08);
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        backdrop-filter: blur(4px);
    }

    .vertical-menu-mobile-toggle i {
        font-size: 15px;
    }

    .vertical-menu .vertical-menu-list {
        display: none;
        margin-top: 8px;
    }

    .vertical-menu.is-open .vertical-menu-list {
        display: block;
    }

    .vertical-menu ul {
        margin: 0;
        padding: 0 0 8px 0;
    }

    .vertical-menu li {
        list-style: none;
        padding-left: 0 !important;
        margin-top: 0 !important;
        font-size: 17px !important;
    }

    .vertical-menu > ul > li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .vertical-menu > ul > li:last-child {
        border-bottom: none;
    }

    .vertical-menu > ul > li > a,
    .vertical-menu .toggle-submenu {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        color: #ffffff !important;
        text-decoration: none;
        font-size: 17px;
        line-height: 1.3;
    }

    .vertical-menu li a,
    .vertical-menu li a i,
    .vertical-menu li a span {
        color: #ffffff !important;
    }

    .vertical-menu li:hover {
        border-left: none !important;
    }

    .vertical-menu .submenu-arrow {
        margin-left: auto;
        font-size: 14px;
        transition: transform 0.2s ease;
    }

    .vertical-menu .has-submenu .sub-menu {
        display: none;
        padding: 0 0 8px 0 !important;
        margin: 0 !important;
        background: rgba(255,255,255,0.03);
    }

    .vertical-menu .has-submenu.open .sub-menu {
        display: block;
    }

    .vertical-menu .has-submenu.open > .toggle-submenu .submenu-arrow {
        transform: rotate(180deg);
    }

    .vertical-menu .toggle-submenu {
        cursor: pointer;
    }

    .vertical-menu .sub-menu li {
        margin: 0 !important;
    }

    .vertical-menu .sub-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 18px 10px 38px;
        font-size: 15px !important;
        color: #dfe8ee !important;
        text-decoration: none;
    }

    .tg-page-content,
    .tg-page-content.eduvalt-page-content {
        width: 100% !important;
        float: none !important;
        padding-top: 0 !important;
    }

    .tg-page-content h1,
    .tg-page-content .entry-title {
        font-size: 28px !important;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .wpDataTablesWrapper {
        overflow-x: auto;
    }

    .wpDataTablesWrapper table {
        min-width: 900px;
    }

    .wpDataTablesWrapper div.wdtscroll {
        height: auto !important;
        max-height: 70vh !important;
    }

    .wpDataTablesWrapper .dataTables_length,
    .wpDataTablesWrapper .dataTables_filter,
    .wpDataTablesWrapper .dataTables_info,
    .wpDataTablesWrapper .dataTables_paginate {
        font-size: 14px !important;
    }

    .wpDataTablesWrapper .dataTables_length select,
    .wpDataTablesWrapper .dataTables_filter input {
        max-width: 100%;
    }

    .wpdt-c .btn,
    .wpDataTablesWrapper .dt-buttons .dt-button,
    .wdt-front-end-editor,
    .wdt-button,
    a.DTTT_button,
    button {
        white-space: nowrap;
    }
}