@font-face {
  font-family: 'brioni';
  font-weight: normal;
  src: url('../fonts/Brioni/BrioniSansStd-Light.otf') format("opentype");
}

html {
    height: 100%;
    padding: 0;
    margin: 0;
}
body {
    font-family: 'brioni',Arial,Helvetica,sans-serif;
    font-size: 12pt !important;
    background-color: white !important;
    color: #333 !important;
    height: 100%;
    overflow:hidden;
}

body .ui-panel .ui-panel-content {
    height: 100%;
    border: none !important;
    padding: 0 !important;
}

.container {
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

.card .card-title {
    font-weight: 600 !important;
    color: #00667f;
}

.ui-fluid .ui-inpufield {
    font-weight: 500;
}

.ui-fluid .modificabile .ui-inputfield {
    font-weight: 500;
    color: blue;
}

.ui-scrollpanel {
    border: none !important;
}

body .ui-fieldset .ui-fieldset-legend {
    border: none !important;
    background: transparent !important;
}
.login-body .login-panel .login-panel-header img {
    height: 88px !important;
    width: auto !important;
}

.login-body .login-panel .login-panel-header {
    top: -24px !important;
    margin-left: -91px !important;
    border: none !important;
}

.logoimg {
    height: 80px;
}
.login-body .login-panel {
    width: 440px;
    height: 340px;
    margin-left: 82px;
    margin-top: 32px;
}
.login-body .login-panel .login-panel-content {
    padding: 12px 24px;
}

a:link, a:visited {
  color: blue;
}


/* mouse over link */
a:hover {
  color: green;
}

/* selected link */
a:active {
  color: red;
}

.version {
    position:relative;
    top: -12px;
    left: 30px;
}

.copyright {
    padding-left:10px;
}

.logoOwner {
    height: 32px;
    top: -2px;
    left: 10px;
    position: relative;
}

.layout-header {
    padding-top: 10px;
    height: auto;
}

.layout-breadcrumb  {
    padding: 0;
}

.breadcrumbcontainer {
    padding: .3em 0 !important;
}

.breadcrumbcontainer > div {
    background-color: #e8e8e5;
    border: 1px solid #dddada;
}

a.bread {
    text-decoration: none;
    color: #187086;
}

.layout-content {
    align-self: center; 
    flex: 1 1 auto;
    min-height: 0;          /* senza questo il contenuto allunga la sezione oltre lo schermo e i pannelli non scorrono */
    display: flex;          /* i pannelli di scorrimento delle pagine occupano lo spazio rimasto */
    flex-direction: column;
    width: 100%;
    margin-top: 0 !important;
    overflow: hidden;
    padding: 0 10px !important;
}
.layout-content > * {
    flex-shrink: 0;
}
.layout-content > .scroll-fill {
    flex: 1 1 auto;
    flex-shrink: 1;
    min-height: 0;
    height: auto !important;
}


hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #499e14, #ccc);
}

.layout-footer {
    border-top: 2px solid #636666;
    padding: 0;
    height: 42px;
    width: 100%;
    background: #00667f;
    color: white;
    margin-top: 0 !important;
}


.box {
    border: 1px solid #d8d6d6;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    padding: 10px;
    width: 300px;
    height: 320px;
}
.box:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}


.boximage img {
    object-fit: cover;
    max-width: 100%;
    border: 1px inset #eeecec;
}

.boxinfo {
    height: 100px;
    color: #00667f;
    font-size: 1em;
    line-height: 1.3em;
    text-align: justify;
    margin-top: 10px;
}

.privacy {
    background-color: #e8f6ec !important;
    margin-bottom: 20px;
    padding-top: 0;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16), 0 2px 5px 0 rgba(0, 0, 0, 0.26);
}

.privacy > p {
    color: #00667f;
}
/* upload della foto (p:fileUpload mode="simple"): pulsante centrato */
.ui-fileupload-simple {
    display: flex;
    justify-content: center;
}
div.user-pic {
    text-align: center;
}
div.user-pic img {
    max-width: 160px;
    border-radius: 4px;
}

div.user-pic {
    overflow: hidden;
    margin: 0px auto;
    border: 1px solid #e1dfde;
}

div.user-pic img {
    max-height: 300px;
}

ul.hand {
    list-style: none;
    padding: 0;   
}
ul.hand li::before {
    content: '\1F449';
    margin: 0 .6em;
    font-size: 2em;
}

.button-go {
    float: right;
    position: relative;
    bottom: 17px;
    text-decoration: none;
    color: blue;
    border: 1px solid silver;
    border-radius: 10px;
    padding: 1px 6px;
    background-color: #e8eef0;
}

p.benvenuto {
    font-size: 1.3em;
    font-weight: normal;
    color:#00667f;
    text-align:center;
}

img.foto_account {
    border-radius: 50%;
    height: 50px;
    width: 50px;
    margin-right: 1em;
    display: inline-block;
}
.info_account {
    float: left;
    margin-right: 7px;
    margin-top: 5px;
}

.infoicon {
    font-weight: bold;
    font-size: 1.4em;
    color: #d72b2b;
    margin-right: 10px;
}

.subheader {
    font-weight: normal;
    font-size: 1em;
    font-style: italic; 
}
.dtnomine, .dtcontatti, .dttesi, .dtsearch {
    overflow: auto;
    height: 100%;
}

.dtnomine div.ui-datatable-scrollable-body,
.dtcontatti div.ui-datatable-scrollable-body,
.dttesi div.ui-datatable-scrollable-body,
.dtsearch div.ui-datatable-scrollable-body
{
    flex: 1;
}

.dtnomine td:nth-child(1), 
.dtnomine th:nth-child(1) {
    width: 18% !important;
    text-align: left;
}
.dtnomine td:nth-child(2), 
.dtnomine th:nth-child(2) {
    width: 32% !important;
    word-wrap: break-word; 
    text-align: left;
}
.dtnomine td:nth-child(3), 
.dtnomine th:nth-child(3) {
    width: 27% !important;
    word-wrap: break-word; 
    text-align: left;
}
.dtnomine td:nth-child(4), 
.dtnomine th:nth-child(4) {
    width: 23% !important;
    word-wrap: break-word; 
    text-align: left; 
}

.dtcontatti td:nth-child(1), 
.dtcontatti th:nth-child(1) {
    width: 5% !important;
    text-align: center;
}
.dtcontatti td:nth-child(2), 
.dtcontatti th:nth-child(2) {
    width: 20% !important;
    text-align: left;
}
.dtcontatti td:nth-child(3), 
.dtcontatti th:nth-child(3) {
    width: 75% !important;
    word-wrap: break-word; 
    text-align: left;
}

#info\:dl-tesi_head, #dl-tesi_head {
    display: none;
}

.dttesi td:nth-child(1), 
.dttesi th:nth-child(1) {
    width: 30% !important;
    text-align: left;
}
.dttesi td:nth-child(2), 
.dttesi th:nth-child(2) {
    width: 70% !important;
    word-wrap: break-word; 
    text-align: left;
}

.dtsearch td:nth-child(1), 
.dtsearch th:nth-child(1) {
    width: 100px !important;
    text-align: left;
}
.dtsearch td:nth-child(2), 
.dtsearch th:nth-child(2) {
    width: calc(100% - 100px) !important;
    text-align: left;
}
#result\:dt-search_head {
    display: none;
}

.sfondoinfo {
    max-height: 180px;
    background-image: url('../images/gradient.png');
    background-repeat: repeat;
    margin-top: 1em;
}
    
img.foto_alumno {
    border-radius: 16px;
    height: 72px;
    width: 72px;
    object-fit: contain ;
}

.label {
    color: #00667f;
    font-size: 1em;
}
.label-column {
    width: 30%;
    text-align: right;
}
.value {
    color: #2F5EB8;
    font-weight: 600;
    font-size: 1.1em;
}
.value-column {
    width: 70%;
}

@media screen and (max-width: 716px) {
    .logo img {
        width: 100%;
        max-width: 220px !important;
        display: block;
        margin: 0 auto;
    }
    
    .ui-column-title:not(:empty) {
        font-weight: 600;
        color: #2a6b01;   
        border: 1px solid #e0dede;
        display: inline-block;
        width: 100%;
        margin: .4em 0 !important;
    }
    .ui-column-title:empty {
        width: 38%;
    }
    
    .ui-datatable-reflow td:nth-child(odd), 
    .ui-datatable-reflow th:nth-child(odd),
    .ui-datatable-reflow td:nth-child(even), 
    .ui-datatable-reflow th:nth-child(even) {
        width: 100% !important;
    }
    
    
}

@media screen and (min-width: 717px) and (max-width: 1247px) {
    .logo img{
        padding: 0 20px;
    }
    
    .container {
      max-width: 100%;
    }
    
    #sfondosep {
        height: 120px;
        background-image: url('https://www.pusc.it/sites/default/files/field/image/ALUMNI_web.jpg');
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    #page-title {
        float: left;
        font-size: 2.2em;
        font-weight: 300;
        margin: 0px 0 20px 10px;
        line-height: 1.7em;
        padding-top: 45px;
    }

    #page-title span {
        border-left: 10px solid #00667f;
        background: transparent;
        padding: 10px;
        color: #111 !important;
    }
    
    .facebook {
        position: relative;
        top: 40px;
        text-align: center;
    }
    
        
    .card h2 {
        font-size:13pt; 
        color: #00667f;
        margin-top: 0px;
        margin-bottom: 30px;
    }
    
    .dimenticata {
        padding: 20px 10px;
    }
    .dimenticata a {
        text-decoration: none;  
    }

}

@media screen and (min-width: 1248px) {
    
    .container {
        max-width: 1248px;
        margin: 0 auto;
    }
    
    #sfondosep {
        height: 120px;
        background-image: url('https://www.pusc.it/sites/default/files/field/image/ALUMNI_web.jpg');
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    #page-title {
        float: left;
        font-size: 2.2em;
        font-weight: 300;
        margin: 0px 0 20px 10px;
        line-height: 1.7em;
        padding-top: 45px;
    }

    #page-title span {
        border-left: 10px solid #00667f;
        background: transparent;
        padding: 10px;
        color: #111 !important;
    }
    
    .facebook {
        position: relative;
        top: 40px;
        text-align: center;
    }
    
    
    .card h2 {
        font-size:14pt; 
        color: #00667f;
        margin-top: 0px;
        margin-bottom: 30px;
    }
    
    .dimenticata {
        padding: 20px 10px;
    }
    .dimenticata a {
        text-decoration: none;  
    }
    
    
}

/* ============================================================
   Stili che prima arrivavano dal layout Sapphire (rimosso)
   ============================================================ */
.card {
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16), 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    border-radius: 2px;
    background: #ffffff;
    padding: 1.25em;
    margin-bottom: 1em;
    box-sizing: border-box;
}
.card .card-title {
    font-size: 16px;
    font-weight: 500;
    margin: 1em 0;
    letter-spacing: 0.3px;
}
.card .card-title:first-child {
    margin-top: 0;
}
.card p {
    margin: 0 0 1em 0;
    padding: 0;
}

.layout-breadcrumb {
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.03), 0 2px 5px 0 rgba(0, 0, 0, 0.05);
}
.layout-breadcrumb ul {
    list-style-type: none;
    padding: 0.75em;
    margin: 0;
}
.layout-breadcrumb li {
    display: inline-block;
    vertical-align: middle;
}
.layout-breadcrumb li i {
    font-size: 20px;
    vertical-align: middle;
}

/* ============================================================
   Foto e nome nella scheda alumno
   ============================================================ */
.foto-info {
    height: 160px;
}
.nome-info {
    font-size: 1.4em;
    font-weight: 500;
    line-height: 1.5em;
    color: white;
    position: relative;
    top: 70px;
}

/* ============================================================
   SMARTPHONE (fino a 716px, come le regole gia' presenti)
   ============================================================ */
@media screen and (max-width: 716px) {
    /* header piu' basso: resta piu' spazio al contenuto */
    .layout-header { padding-top: 4px; }
    .layout-header .logo img { max-width: 180px !important; }
    #page-title {
        font-size: 1.2em;
        font-weight: 400;
        margin: .2em 0 .3em;
    }
    .layout-breadcrumb ul { padding: .4em .5em; }
    .layout-breadcrumb li i { font-size: 16px; }

    /* footer: altezza libera e testo piu' piccolo, il nome del portale e' gia' nell'header */
    .layout-footer {
        height: auto;
        min-height: 42px;
        font-size: .8em;
    }
    .layout-footer .version { display: none; }

    .card { padding: .9em; }
    .card h2 { font-size: 1.05em; color: #00667f; margin: 0 0 1em; }

    /* ricerca: parametri e risultati uno sotto l'altro, si scorre la pagina intera
       invece di due pannelli alti quanto lo schermo */
    .search-col,
    .search-col > form,
    .search-col .card,
    .search-col .ui-scrollpanel {
        height: auto !important;
    }

    /* scheda alumno: foto e nome piu' compatti */
    .foto-info { height: 96px; }
    .nome-info { top: 0; font-size: 1.15em; }
    .sfondoinfo { max-height: none; }
}
