@import url('https://fonts.googleapis.com/css?family=Montserrat:200,400,700');

body * {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5 {
    margin-top: 2px;
    margin-bottom: 2px;
}

/* ----------------------------------------------------------------------------------------------- STRUCTURE ELEMENTS */

header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    height: 60px;
    overflow: auto;
    z-index: 100;
}

header i {
    font-size: 20px;
}

#sidebar {
    position: fixed;
    top: 60px;
    padding: 10px;
    box-sizing: border-box;
    min-height: 101vh;
    height: 100%;
    z-index: 1000;
    overflow-y:scroll;
    padding-bottom: 100px;
}

#sidebar::-webkit-scrollbar {
    width: 6px;
    height: 8px;
    background-color: #ffffff;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: #aaaaaa;
}

#sidebar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
    background-color: #ffffff;
}

#searchSidebar {
    position: absolute;
    width: 30%;
    top: 0px;
    right: -30%;
    min-height: 200vh;
    box-sizing: border-box;
    padding: 20px;
}
#searchSidebarBackground {
    position: absolute;
    width: 30%;
    top: 0px;
    right: -30%;
    min-height: 200vh;
}

main {
    margin-left: 20%;
    width: 80%;
    margin-top: 60px;
    box-sizing: border-box;
    padding: 15px;
}

#breadcrumb {
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 15px;
    font-size: 14px;
}

#breadcrumb a {
    font-weight: 700;
}

#innerMain {
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 50px;
}

.footerAtBottom {
    margin-bottom: 50px;
}

footer {
    border:1px solid #fff;
    color:#fff;
    margin-top: 30px;
    padding:10px;
    font-size: 12px;
    border-radius: 5px;
}

.messaggio-patrono {
    border:1px solid #000;
    color:#000;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 15px;
    border-radius: 5px;
    text-align: center;
    background-color: #FFBF6D;
}

/* -------------------------------------------------------------------------------------------------------- PAGINATOR */

#paginator {
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 15px;
    text-align: center;
    width: auto;
    height: auto;
    overflow: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

#paginator li {
    list-style: none;
    margin-top: 3px;
    margin-bottom: 3px;
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
}
#paginator li a {
    font-weight: 700;
    font-size: 14px;
}

/* ---------------------------------------------------------------------------------------------------------- SHADOWS */

.sameHeight {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: space-between;
}

.shadow, .shadow65, .shadow35 {
    border-radius: 5px;
    padding: 20px;
    float: left;
}

.shadowFull{
    border-radius: 5px;
    padding: 20px;
    width: 100%;
    float: left;
}

.shadow h4, .shadowFull h4, .shadow65 h4, .shadow35 h4 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

/* ------------------------------------------------------------------------------------------------------------- TABS */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.tab button {
    background-color: inherit;
    float: left;
    color:#000;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    padding: 10px 0px;
    transition: 0.3s;
    border-radius: 0px;
    border:none;
    font-size: 12px;
}

.tab button:hover {
    background-color: #ddd;
    border:none;
}

/* ----------------------------------------------------------------------------------------------------------- EVENTS */

.eventMessage {
    padding: 10px;
    width: 100%;
    float: left;
    border-radius: 5px;
}

.eventMessage i {
    font-size: 12px;
}
.eventMessage.right {
    margin-left: 20%;
}
.eventMessage .eventMessageHeader {
    width: 100%;
    font-size: 12px;
}

/* ---------------------------------------------------------------------------------------------------------- TICKETS */

.ticketMessage {
    padding: 20px;
    width: 80%;
    float: left;
    border-radius: 5px;
}
.ticketMessage i {
    font-size: 12px;
}
.ticketMessage.right {
    margin-left: 20%;
}
.ticketMessage .ticketMessageHeader {
    width: 100%;
    font-size: 12px;
}

/* ------------------------------------------------------------------------------------------------------- NAV / MENU */

nav {
    width: 100%;
}

nav span {
    color:#fff !important;
    font-size: 15px;
}

nav ul {
    list-style-type: none;
    width: 100%;
    padding: 0px;
    margin: 0px;
}
nav ul li {
    width: 100%;
    padding: 7px;
    padding-left: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    color: #fff;
    height: auto;
    overflow: auto;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

nav ul li i {
    font-size: 13px;
    color: #fff;
    padding: 10px;
    border-radius: 17px;
    margin-left: auto;
    width: 34px;
    height: 34px;
    text-align: center;
}

nav ul li.clicked ul {
    display: block;
}

nav ul li ul {
    display: none;
    margin-left: 0px;
    padding: 10px;
}

nav ul li ul li {
    padding: 0px;
    border-radius: 0px;
}

nav .flex {
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 5px;
}

nav ul li#mitservizi {
    background-color: #000;
    margin-top: 20px;
    margin-bottom: 100px;
    font-size: 10px;
}

/* ---------------------------------------------------------------------------------------------------- FLASH MESSAGE */
div.message {
    text-align: center;
    cursor: pointer;
    display: block;
    font-weight: normal;
    padding: 0 1.5rem 0 1.5rem;
    transition: height 300ms ease-out 0s;
    z-index: 999;
    overflow: hidden;
    line-height: 2.5em;
    position: absolute;
    border-radius: 5px;
}

div.message.hidden {
    height: 0;
}

/* ---------------------------------------------------------------------------------------------------- Message warning */
div.messageWarning {
    text-align: center;
    display: block;
    font-weight: normal;
    padding: 0 1.5rem 0 1.5rem;
    transition: height 300ms ease-out 0s;
    z-index: 999;
    overflow: hidden;
    line-height: 2.5em;
    border-radius: 5px;
    background-color: #fff;
    border: 3px solid #ff6600;
    color: #2c3642;
    padding: 1rem;
}

div.messageWarning i {
    color: #ff6600;
}

/* ----------------------------------------------------------------------------------------------------------- INPUTS */
form label {
    font-weight: 700;
    color: #6d6d6d;
}

input[type=checkbox],
input[type=radio] {
    border:1px solid #1798A5;
    margin:2px;
}
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select {
    box-shadow: none;
    border-radius: 5px;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
}

table tr td input[type=text], table tr td input[type=number] {
    margin-bottom: 0px;
}

table tr td select {
    margin: 0px;
    height: auto;
    border-radius: 5px;
}

input[type=submit], button, .swal-button, a.button {
    padding: 5px;
    border-radius: 5px;
    padding:10px;
    width: 100%;
    margin: 0px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.myTextarea i {
    font-size: 10px;
}

.select2-container {
    margin-bottom:10px !important;
}

header .select2-container, header select {
    margin-bottom: 0px !important;
}

.select2-selection__arrow, .select2-selection.select2-selection--single {
    height: 35px !important;
}

.select2-selection__arrow b {
    border-color: #000 transparent transparent transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px !important;
}

/* --------------------------------------------------------------------------------------------------------- A BUTTON */

.aButton {
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 5px;
    border-style: solid;
    border-width: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    line-height: normal;
    margin: 0px;
    position: relative;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding:10px;
    font-size: 1rem;
    transition: background-color 300ms ease-out;
}

/* -------------------------------------------------------------------------------------------------------------- MCE */

a button {
    width: auto;
    margin-bottom: 15px;
}

/* ------------------------------------------------------------------------------------------------------------ TABLE */
table tr td {
    vertical-align: middle;
}

table tr.rateizzata td {
    opacity: 0.5;
}

table tr td.tdFunzioni {
    text-align: right;
}

table tr td.tdFunzioni a i {
    font-size: 20px;
    margin-left: 20px;
}

/* --------------------------------------------------------------------------------- REGISTRIES - STRUTTURA AD ALBERO */
.anagraficaDiv {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    margin-bottom: 20px;
}

.anagraficaHeader {
    overflow-x: auto;
    min-width: 80%;
    display: flex;
}

.anagraficaHeader::-webkit-scrollbar {
    width: 6px;
    height: 8px;
    background-color: #F5F5F5;
}

.anagraficaHeader::-webkit-scrollbar-thumb {
    background-color: #aaaaaa;
}

.anagraficaHeader::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.anagraficaHeader div {
    border: 1px solid #000;
    border-bottom: none;
    min-width: 100px;
    padding: 10px;
    cursor: pointer;
}

.anagraficaHeader div.selected {
    background-color: #ccc;
}

.anagraficaBody {
    border: 1px solid #000;
    padding: 20px;
    height: auto;
    overflow: auto;
}

.anagraficaBody div .bodyDescription {
    float:left;
    width: 38%;
    margin: 1%;
}

.anagraficaBody div .bodyDescription table tr td {
    padding-left: 0px;
}

.anagraficaBody div .bodyFunctions {
    float:left;
    width: 58%;
    margin: 1%;
}

.anagraficaBody div .bodyFunctions table {
    border:1px solid #000;
}

.anagraficaBody div .bodyFunctions table tr, .anagraficaBody div .bodyFunctions table tr td {
    border:1px solid #ccc;
    text-align: center;
    padding: 5px;
}

.anagraficaBody div .bodyFunctions table tr:hover td {
    background-color:transparent;
}

.anagraficaBody div .bodyFunctions table tr td a {
    height: auto;
    overflow: auto;
    margin: 5px;
}

.service {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------------------------------------------------------------------------------------------------- TABLE CATASTO */

table.catasto tr th,
table.catasto tr td {
    color: #222;
    font-size: 0.75rem;
    padding: 0.1rem 0.625rem;
    text-align: left;
}

table.catasto thead tr th,
table.catasto tfoot tr th,
table.catasto tfoot tr td,
table.catasto tbody tr th,
table.catasto tbody tr td,
table.catasto tr td {
    display: table-cell;
    line-height: 0.85rem;
}


/* ---------------------------------------------------------------------------------------------------- MEDIA QUERIES */

.formModulo {
    width: 50%;
    margin: 5px;
}

/* ---------------------------------------------------------------------------------------------------- MEDIA QUERIES */

@media screen and (min-width: 0px) {
    h1, .sh1 { font-size:20px; }
    h2, .sh2 { font-size:17px; }
    h3, .sh3 { font-size:15px; }
    h4, .sh4 { font-size:13px; }
    h5, .sh5 { font-size:11px; }
    .small { display: none; }
    .big { display: table-cell; }
    .mediaWidth { width: 100%; }
    #centrale { width:100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
    #external, #external_fixed { width: 50%; left: -50%; }
    #external_logo { left: 6%; }
    #container { margin-left: 3%; }

    .shadow, .shadowFull, .shadow65, .shadow35 {
        width: 100%;
        margin-top: 10px;
    }

    .sameHeight, .sameHeight6535 {
        display: block;
        height: auto;
        overflow: auto;
        margin-top: 0px;
    }
    main {
        width: 100%;
        margin-left: 0%;
    }
    #sidebar {
        width: 90%;
        left: -90%;
    }

    .mobile {
        display: block;
    }
    .mobileInline {
        display: inline;
    }
    .standalone, .standaloneBlock {
        display: none;
    }
    .standaloneTablecell {
        display: none;
    }

    /* MESSAGE */
    div.message {
        left: 10px;
        right: 10px;
        top: auto;
        bottom:10px;
    }

}

/* Schermi solitamente di 480px */
@media screen and (min-width: 440px) {
    h1, .sh1 { font-size:23px; }
    h2, .sh2 { font-size:20px; }
    h3, .sh3 { font-size:17px; }
    h4, .sh4 { font-size:15px; }
    h5, .sh5 { font-size:11px; }
    .small { display: none; }
    .big { display: table-cell; }
    .mediaWidth { width: 100%; }
    #centrale { width:100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
    #external, #external_fixed { width: 50%; left: -50%; }
    #external_logo { left: 6%; }
    #container { margin-left: 3%; }
    #searchSidebar {
        width: 70%;
        right: -70%;
    }
    #popup_content {
        right: 5%;
        left: 5%;
    }

    .shadow, .shadowFull, .shadow65, .shadow35 {
        width: 100%;
        margin-top: 10px;
    }

    .sameHeight, .sameHeight6535 {
        display: block;
        height: auto;
        overflow: auto;
        margin-top: 0px;
    }
    main {
        width: 100%;
        margin-left: 0%;
    }
    #sidebar {
        width: 70%;
        left: -70%;
    }

    .mobile {
        display: block;
    }
    .mobileInline {
        display: inline;
    }
    .standalone, .standaloneBlock {
        display: none;
    }
    .standaloneTablecell {
        display: none;
    }

    /* MESSAGE */
    div.message {
        left: 10px;
        right: 10px;
        top: auto;
        bottom:10px;
    }

}

/* Schermi solitamente di 600px */
@media screen and (min-width: 560px) {
    h1, .sh1 { font-size:23px; }
    h2, .sh2 { font-size:20px; }
    h3, .sh3 { font-size:17px; }
    h4, .sh4 { font-size:15px; }
    h5, .sh5 { font-size:11px; }
    .small { display: none; }
    .big { display: table-cell; }
    .mediaWidth { width: 100%; }
    #centrale { width:100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
    #external, #external_fixed { width: 50%; left: -50%; }
    #external_logo { left: 6%; }
    #container { margin-left: 3%; }
    #searchSidebar {
        width: 70%;
        right: -70%;
    }
    #popup_content {
        right: 10%;
        left: 10%;
    }

    .shadow, .shadowFull, .shadow65, .shadow35 {
        width: 100%;
        margin-top: 10px;
    }

    .sameHeight, .sameHeight6535 {
        display: block;
        height: auto;
        overflow: auto;
        margin-top: 0px;
    }
    main {
        width: 100%;
        margin-left: 0%;
    }
    #sidebar {
        width: 70%;
        left: -70%;
    }

    .mobile {
        display: block;
    }
    .mobileInline {
        display: inline;
    }
    .standalone, .standaloneBlock {
        display: none;
    }
    .standaloneTablecell {
        display: none;
    }

    /* MESSAGE */
    div.message {
        left: auto;
        bottom:auto;
        top: 10px;
        right: 10px;
    }

}

/* Schermi solitamente di 768px */
@media screen and (min-width: 720px) {
    h1, .sh1 { font-size:23px; }
    h2, .sh2 { font-size:20px; }
    h3, .sh3 { font-size:17px; }
    h4, .sh4 { font-size:15px; }
    h5, .sh5 { font-size:11px; }
    .small { display: table-cell; }
    .big { display: none; }
    .mediaWidth { width: 50% !important; margin-left: 25% !important; }
    #centrale { width:100%; }
    #laterale { width: 100%; border-left: none; padding-left: 1%; border-top: 1px solid #ccc; }
    #external, #external_fixed { width: 40%; left: -40%; }
    #external_logo { left: 6%; }
    #container { margin-left: 2%; }
    #searchSidebar {
        width: 60%;
        right: -60%;
    }
    #popup_content {
        right: 15%;
        left: 15%;
    }

    .shadow, .shadowFull, .shadow65, .shadow35 {
        width: 100%;
        margin-top: 10px;
    }
    
    .sameHeight, .sameHeight6535 {
        display: block;
        height: auto;
        overflow: auto;
        margin-top: 0px;
    }
    main {
        width: 100%;
        margin-left: 0%;
    }
    #sidebar {
        width: 50%;
        left: -50%;
    }

    .mobile {
        display: block;
    }
    .mobileInline {
        display: inline;
    }
    .standalone, .standaloneBlock {
        display: none;
    }
    .standaloneTablecell {
        display: none;
    }

    /* MESSAGE */
    div.message {
        left: auto;
        bottom:auto;
        top: 10px;
        right: 10px;
    }
}

/* Schermi solitamente di 1024px o superiori */
@media screen and (min-width: 960px) {
    h1, .sh1 { font-size:30px; }
    h2, .sh2 { font-size:23px; }
    h3, .sh3 { font-size:20px; }
    h4, .sh4 { font-size:17px; }
    h5, .sh5 { font-size:12px; }
    .small { display: table-cell; }
    .big { display: none; }
    .mediaWidth { width: 50% !important; margin-left: 25% !important; }
    #centrale { width:60%; }
    #laterale { width: 40%; border-left: 1px solid #ccc; padding-left: 2%; border-top: none; }
    #external, #external_fixed { width: 30%; left: -30%; }
    #external_logo { left: 3%; }
    #container { margin-left: 1%; }
    #searchSidebar {
        width: 40%;
        right: -40%;
    }
    #popup_content {
        right: 20%;
        left: 20%;
    }

    .shadow {
        width: 49.5%;
        margin-top: 0px;
    }

    .shadow65, .shadow35 {
        width: 100%;
        margin-top: 10px;
    }
    
    .shadowFull {
        margin-top: 0px;
    }

    .sameHeight {
        display: flex;
        flex-flow: row nowrap;
        align-items: stretch;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .sameHeight6535 {
        display: block;
        height: auto;
        overflow: auto;
        margin-top: 0px;
    }
    
    main {
        width: 75%;
        margin-left: 25%;
    }
    #sidebar {
        left: 0px;
        width: 25%;
    }

    .mobile, .mobileInline {
        display: none;
    }
    .standalone {
        display: flex;
    }
    .standaloneBlock {
        display: block;
    }
    .standaloneTablecell {
        display: table-cell;
    }

    /* MESSAGE */
    div.message {
        left: auto;
        bottom:auto;
        top: 10px;
        right: 10px;
    }
}

@media screen and (min-width: 1400px) {
    h1, .sh1 { font-size:30px; }
    h2, .sh2 { font-size:25px; }
    h3, .sh3 { font-size:20px; }
    h4, .sh4 { font-size:17px; }
    h5, .sh5 { font-size:12px; }
    .small { display: table-cell; }
    .big { display: none; }
    .mediaWidth { width: 50% !important; margin-left: 25% !important; }
    #centrale { width:60%; }
    #laterale { width: 40%; border-left: 1px solid #ccc; padding-left: 2%; border-top: none; }
    #external, #external_fixed { width: 30%; left: -30%; }
    #external_logo { left: 3%; }
    #container { margin-left: 1%; }
    #searchSidebar {
        width: 30%;
        right: -30%;
    }
    #popup_content {
        right: 25%;
        left: 25%;
    }

    .shadow {
        width: 49.5%;
        margin-top: 0px;
    }

    .shadow65 {
        width: 64.5%;
        margin-top: 0px;
    }
    
    .shadow35 {
        width: 34.5%;
        margin-top: 0px;
    }
    
    .shadowFull {
        margin-top: 0px;
    }

    .sameHeight, .sameHeight6535 {
        display: flex;
        flex-flow: row nowrap;
        align-items: stretch;
        justify-content: space-between;
        margin-top: 10px;
    }
    main {
        width: 80%;
        margin-left: 20%;
    }
    #sidebar {
        left: 0px;
        width: 20%;
    }

    .mobile, .mobileInline {
        display: none;
    }
    .standalone {
        display: flex;
    }
    .standaloneBlock {
        display: block;
    }
    .standaloneTablecell {
        display: table-cell;
    }

    /* MESSAGE */
    div.message {
        left: auto;
        bottom:auto;
        top: 10px;
        right: 10px;
    }

}