﻿/* HEADER */

header {
    background-color: #cc122e;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

header .header-img {
    width: 100%;
    max-width: 240px;
}

nav .navbar-toggler {
    border: 2px solid #ffffff !important;
}

nav .navbar-toggler,
nav .navbar-toggler:focus,
nav .navbar-toggler:active,
nav .navbar-toggler-icon:focus {
    outline: none !important;
    box-shadow: none !important;
}

nav .nav-item {
    margin-left: 22px;
    position: relative;
    text-align: center;
}

nav .nav-item a.nav-link,
nav .nav-item a.nav-link:hover {
    text-decoration: none;
    color: #ededed !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

nav .nav-item a.active {
    color: #ffffff !important;
    font-weight: 700;
}

nav .nav-item a::before {
    position: absolute;
    left: 50%;
    bottom: 4px;
    height: 2px;
    width: 0%;
    content: "";
    -webkit-transform: scale(-1);
    -moz-transform: scale(-1);
    -ms-transform: scale(-1);
    -o-transform: scale(-1);
    transform: scale(-1);
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
}

nav .nav-item a.active::before,
nav .nav-item a:not(.flag):hover::before {
    left: 0;
    width: 100%;
    background-color: #ffffff;
}

nav a.dropdown-item {
    color: #cc122e;
}

nav a.dropdown-item:hover {
    color: #ffffff;
    background-color: #cc122e;
}

nav .dropdown-menu .dropdown-item {
    padding-left: 15px;
    padding-right: 15px;
}

header .flag img {
    max-width: 33px;
    border-radius: 4px;
    vertical-align: sub;
    opacity: 0.3;
    border: 2px solid #ffffff;
    border-radius: 5px;
}

header .current-lang-it .flag-it img,
header .current-lang-en .flag-en img {
    opacity: 1;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

header .flag img:hover {
    opacity: 1;
}

header .current-lang-it .flag-it,
header .current-lang-en .flag-en {
    pointer-events: none;
}

/* MAIN */
main {
    padding-top: 50px;
    padding-bottom: 50px;
}

    main a,
    main a:hover {
        color: #cc122e;
    }

#breadcrumb-container {
    background-color: #ffffff;
    padding: 25px 0;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

ol.breadcrumb {
    margin: 0 !important;
}

.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item::before,
.breadcrumb-item a {
    color: #cc122e !important;
}

.form-control,
.form-select {
    font-size: 14px;
}

form#change-password .fa-eye,
form#account-login .fa-eye {
    position: absolute;
    top: 13px;
    right: 15px;
    font-size: 13px;
    color: #898989;
    cursor: pointer;
}

form#account-login label.error,
form#change-password label.error,
form#rec-pass label.error {
    font-size: 13px;
    font-weight: 600;
    color: #c30909;
    padding-left: 5px;
}

form#account-login input.form-control,
form#change-password input.form-control {
    padding-right: 45px;
}

form#change-password .valid input.form-control {
    padding-right: 75px;
}

form#account-login div.error input,
form#change-password div.error input,
form#rec-pass input.error {
    border-color: #c30909;
    box-shadow: 0 0 0 .25rem rgba(253, 13, 13, 0.25);
}

form#change-password .validation .fa-check {
    opacity: 0;
    font-size: 19px;
    position: absolute;
    top: 9px;
    right: 45px;
}

form#change-password .validation.valid .fa-check {
    opacity: 1;
    color: #008d00;
}

#dashboard .img-container {
    width: 200px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dashboard .img-container img {
    max-width: 100%;
    max-height: 100%;
}

#box-dati, #box-opportunita, #box-meeting-corner, #box-studenti, #box-candidature {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

#rec-pass-alert {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    padding: 10px !important;
}

#recPassModal .modal-body {
    min-height: 180px;
}

/* FOOTER */
footer {
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

footer .top-footer,
footer .top-footer a {
    color: #cc122e;
}

footer .top-footer {
    background-color: #ffffff;
    padding: 30px 0;
}

.social-pages {
    display: flex;
    justify-content: end;
}

.social-pages a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.social-pages a:hover {
    text-decoration: none !important;
    color: #ffffff;
    background-color: #cc122e;
}

footer .bottom-footer, footer .bottom-footer a, footer .bottom-footer a:hover {
    color: #FFFFFF;
}

footer .bottom-footer {
    background-color: #cc122e;
    padding: 30px 0;
}

footer .bottom-footer .logo-digivents {
    width: 100%;
    max-width: 170px;
    filter: brightness(0) invert(1);
}

footer .footer-img {
    width: 100%;
    max-width: 250px;
}

@media (min-width: 1600px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1440px;
    }
}

@media only screen and (min-width: 992px) {

    nav li:hover > .dropdown-menu {
        display: block;
    }
}

@media only screen and (max-width: 991px) {

    nav .nav-item {
        margin-left: 0;
        width: max-content;
    }

    nav .nav-item a::before {
        bottom: 6px;
    }

    nav ul.dropdown-menu {
        background-color: #cc122e;
        border: none;
    }
    
    nav a.dropdown-item {
        color: #ffffff;
        text-align: center;
    }

    nav .dropdown-menu .dropdown-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    nav .nav-item a:not(.flag):hover::before {
        left: 0;
        width: 0;
        background-color: transparent;
    }
}

@media only screen and (max-width: 575px) {

    .social-pages {
        justify-content: center;
    }
}

@media only screen and (max-width: 350px) {

    header .header-img {
        max-width: 200px;
    }
}

@media only screen and (max-width: 300px) {

    header .header-img {
        max-width: 150px;
    }
}