.image-left {
    width: auto;
    height: auto;
}

.image-inline {
    float: none;
    width: auto;
    height: auto;
    padding: 10px;
}

table {
    width: 100% !important;
}

#content-core table.invisible tr.invisible td.invisible,
#content-core table.invisible tr.invisible,
#content-core table.invisible,
#content-core .invisible {
    visibility: visible !important;
}

.plone-toolbar-left #edit-zone {
   z-index: 12;
}

#edit-zone nav>ul li.active ul {
   margin-top: 0 !important;
}

.event .event-category {
   list-style-type: none;
   background-color: #f3f3f3;
   padding: 12px;
   border-radius: 3px;
   width: 100%;
   margin-bottom: .5em;
}

.event .event-category strong {
   color: #00b212;
   display: block;
   text-transform: uppercase;
   font-size: .9em;
}

.event .event-date .timezone {
   display: none;
}

hr {
   border-top: 4px solid #872643;
}

.unlisted-items{ list-style-type: none; list-style-position: inside; }
.comunications .unlisted-items { padding: 0; margin: 0; list-style-type: disc; list-style-position: inside; }

#viewlet-social-like { overflow: hidden; margin: 10px 0 5px; }
#viewlet-social-like > div {
   float: left;
   margin-right: 2em;
}
#viewlet-social-like .sociallike-network-facebook { position: relative; top: -7px; }

.contentwellportlets.row{ margin: 0; }
form.horizontal #field-text input[type="text"]{ background: white; color: black; border-bottom: 1px solid #5c6f82; text-align: left; }


table.no-border {
   border-color: transparent !important;
}

.template-gara_view ul.companies .ragione-sociale {
   width: 200px;
}

.template-gara_view ul.companies li {
   vertical-align: top;
   display: inline-block !important;
   border-right: 1px solid #000;
   padding: 0 5px;
}

.template-gara_view ul.companies li:last-child {
   border-right: none;
}
.template-gara_view ul.companies .piva, .template-gara_view ul.companies .cf {
   width: 140px;
}

.template-gara_view ul.companies .ragione-sociale:before {
   content: '\2022';
   margin-right: 10px;
}

select#theme option[value='air'],
select#theme option[value='demography-and-economy'],
select#theme option[value='electromagnetic-and-noise-pollution'],
select#theme option[value='energy'],
select#theme option[value='energy-and-radiations'],
select#theme option[value='environmental-certifications'],
select#theme option[value='environmental-culture-and-sustainable-development'],
select#theme option[value='environmental-culture-information-and-communication'],
select#theme option[value='environmental-emergencies'],
select#theme option[value='environmental-monitoring-control-and-Laboratory'],
select#theme option[value='ionizing-radiations'],
select#theme option[value='nature-and-biodiversity'],
select#theme option[value='sustainable-development'],
select#theme option[value='wastes'],
select#theme option[value='water'],
select#theme option[value='soil']{ display:none; }

option[value="e03d9c22ef4845728c1496c5f9de1890"],
option[value="1ebb88ff60664dfcad09567f18ec9c66"],
option[value="ad3d6f1b1f9544bd99620e5a9efef3c5"],
option[value="ba9f2fdcc5ff47be8f46d42fc4eed48f"],
option[value="17f3444b13294abeae382b9aaed478cd"],
option[value="ddc3941ae7104dba9455e733d351450e"],
option[value="ce8da0944526424a941a90e081822d1a"],
option[value="1d76b8f89d3a4b8eb07a805cc2999d21"],
option[value="cbec7e46143e4af4b937238950cbf804"],
option[value="bae99a49204d44b3b640951c27e258d4"],
option[value="bbc2ad744f8f4c5c963ab2477577eade"],
option[value="fa7f22eb212942ce9a27cd4e7599ff3d"],
option[value="96640aa0c37147aea95e1bbb4f4456da"],
option[value="52bc437776884289b060cd56d684cade"],
option[value="2d861d9391c3481ba15518a0a7758934"],
option[value="dd181f7dca4e4611a95bf0fd6442cc15"],
option[value="2a8fafd57eb148e2b93f6ffeef5c05ce"]{
display: none;
}

.search-tools .field {
   display: flex;
   justify-content: flex-start;
   width: 100%;
   margin: 10px auto;
   align-content: center;
   align-items: center;
}

.search-tools .field label {
   font-weight: 500;
   margin-right: 1em;
   margin-bottom: 0;
   min-width: 70px;
}

.search-tools .field select {
   min-width: 300px;
}

.search-tools .field input[type=text] {
   max-width: 300px;
   height: 35px;
}

.portlet-collection-in-evidenza {
   margin-bottom: 0;
}

.data {
   font-size:0.875em !important;
}

.btn-secondary{
   font-size:1em !important;
}

#company-view fieldset {
    margin: 1em 0;
    border-bottom: 5px solid #661224;
    padding: 21px 0;
}

#company-view legend {
    font-weight: 500;
}

#company-view table {
    width: 100%;
}

#company-view table th,
#company-view table td,
#company-view table tr {
    border: 1px solid #d6d5d5;
    padding: 10px;
}

#company-view table th  {
    background-color: #f3f3f3;
}

#products h2 {
    margin-top: 1em;
    font-size: 1.8em;
}

.section-newsletter table .image-inline {
    min-width: 200px;
}

@media (min-width: 992px) {

    .logotxt {
        display: block;
        font-size: 1.8rem;
    }
    .it-header-slim-wrapper-content {
        font-size: 0.875em;
    }

    .it-header-wrapper .it-nav-wrapper.resize .it-brand-wrapper .ispra-logo img {
        width: 14vw;
    }
}

@media only screen and (max-width: 991px) {
    .image-left {
        max-width: ;width: 100%;
        height: auto;
    }

    .image-inline {
        float: none;
        max-width: 100%;
        height: auto;
        padding: 10px;
    }

    table .image-inline {
        min-width: 70px;
        padding: 3px !important;
    }

    #portletPageFirstColumn, #portletPageSecondColumn {
        float: none;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 1em;
    }

    .image-left {
        float: none;
        width: 100%;
        height: auto;
    }

    .image-right {
        float: none;
        width: 100%;
        height: auto;
    }

    .newsImage {
        width: 100%;
        height: auto;
    }

    .it-header-slim-wrapper-content > ul:first-child,
    .it-header-slim-wrapper-content .social-buttons {
        display: none;
    }
    #main_container {
        margin-top: 146px;
    }
    .event {
        flex-wrap: wrap;
    }

    .col-md-3.column-left {
        order: 3;
    }
    .col-md-3.column-right {
        order: 3;
    }

    .event.summary.details {
        width: 100%;
    }

    .flex-row {
        flex-wrap: wrap;
    }
    .card-wrapper {
        min-width: 100%;
        flex-shrink: 0;
    }

    .section-homepage .col-md-8,
    .section-homepage .col-md-4,
    .col-md-2.title {
        min-width: 100%;
        width: 100%;
    }

    #content header {
        display: flex;
        flex-wrap: wrap;
    }

    header .documentByLine,
    header .documentFirstHeading {
        width: 100%;
    }

    header .documentFirstHeading {
        order: 0;
    }

    header .documentByLine {
        order: 1;
    }

    .portaltype-publication header #viewlet-above-content-title,
    .portaltype-event header #viewlet-above-content-title,
    .portaltype-new header #viewlet-above-content-title,
    .section-events #viewlet-above-content-title  {
        order: 2;
        width: 100%;
    }

    .section-events #viewlet-above-content-title .newsImageContainer {
        margin-top: .5em;
        margin-left: 0;
        width: 100%;
    }

    .col-md-9.column-content,
    .col-md-3.column-left,
    .col-md-3.column-right {
        float: none;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .newsImageContainer {
        padding: 0;
        width: 100%;
    }

    .page .col-md-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100;
        flex: 0 0 100%;
        max-width: 100%;
    }

}

@media (min-width: 576px) {

   .calendar .calendar-card-list li a {
       justify-content: flex-start;
   }
}

.portaltype-formfolder span.required:before {
    content: "\2022";
    display: inline-block;
    color: red;
}

.portaltype-formfolder .field.error{
    margin: .5em 0;
    padding-left: 5px;
    border-left: 3px solid red;
}

.olPopupCloseBox {
    background: url(./img/close.gif) no-repeat;
    cursor: pointer;
}

#export_csv ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#export_csv ul li { display: inline-block; }

.template-fg_base_view_p3 .pfg-form {
    width: 100%;
    float: none;
}

.template-fg_base_view_p3 .pfg-form .field,
.template-fg_base_view_p3 .pfg-form .action,
.template-fg_base_view_p3 .pfg-form .PFGFieldsetWidget {
    width: 100%;
    margin: 0;
}

.collection-view .term {
    display: block;
    overflow: hidden;
}

.collection-view dl.collapsible {
    margin: 1em 0;
    padding: 0;
}

.collection-view dl.collapsedBlockCollapsible {
    width: auto;
    background: #f3f3f3;
    height: auto;
    min-height: 30px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0;
}

.collection-view dl.collapsible dd.collapsibleContent {
    margin: 0;
    padding: 0 1em .4em;
    clear: left;
}

.collection-view dl.expandedBlockCollapsible  {
    background-color: #f3f3f3;
}

.collection-view dl.collapsible dt.collapsibleHeader {
    background-color: #f3f3f3;
    line-height: 2.3;
    vertical-align: middle;
    font-size: 1.1em;
    margin: 0;
    padding: 0 .5em;
}

.collection-view dl.collapsible dt.collapsibleHeader:hover,
.collection-view dl.collapsible dt.collapsibleHeader span:hover {
    cursor: pointer;
}

.collection-view dl.expandedBlockCollapsible dt.collapsibleHeader::before {
    content: "-";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-weight: 900;
    color: #872643;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1.2;
    margin-right: 6px;
}

.collection-view dl.collapsedBlockCollapsible dt.collapsibleHeader::before {
    content: "+";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-weight: 900;
    color: #872643;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1.2;
    margin-right: 6px;
}

.collection-view dl.collapsedBlockCollapsible > .collapsibleContent {
    display: none;
}

.collection-view dl.expandedBlockCollapsible > .collapsibleContent  {
    display: block;
}

.collapsibleContent .cards table {
    background-color: #fff;
}

.collection-view .expandedBlockCollapsible .collapsibleContent .collapsible .collapsibleHeader,
.collection-view .expandedBlockCollapsible .collapsibleContent .collapsible .collapsibleHeader span {
    color: #872643;
    font-size: 0.99em;
}

.collection-view table {
    width: 100%;
}

.portletStaticText ul.list-item {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#portal-column-two .portlet.portletStaticText {
    padding-left: 1em;
}

#portal-column-two .portlet.portletStaticText .portletHeader {
    border-bottom: 1px solid #f3f3f3;
    margin-bottom: 0;
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

#portal-column-two .portlet.portletStaticText .portletContent ul li {
    margin: 3px 0;
    border-top: 1px solid #f3f3f3;
    padding: 3px 0;
}

#portal-column-two .portlet.portletStaticText .portletContent ul li:first-child {
    border-top: none;
}

.alert.status, .portalMessage {
    padding: 15px;
    padding-left: 45px;
    margin-bottom: 20px;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17);
    font-size: 14px;
    font-weight: 400;
    text-shadow: 0 1px rgba(255, 255, 255, 0.1);
}

.alert.status.alert-success, .portalMessage.alert-success, .alert.status.info, .portalMessage.info {
    background-color: #aad6ea;
    border: 1px solid #9acee6;
    color: rgba(0, 0, 0, 0.5);
}

.alert.status.alert-warning, .portalMessage.alert-warning, .alert.status.warning, .portalMessage.warning {
    background-color: #ebd380;
    border: 1px solid #e7ca66;
    color: rgba(0, 0, 0, 0.5);
}

.alert.status.alert-error, .portalMessage.alert-error, .alert.status.error, .portalMessage.error {
    background-color: #EC9C8D;
    border: 1px solid #eb9484;
    color: rgba(0, 0, 0, 0.5);
}

.alert.status > strong::before, .portalMessage > strong::before, .alert.status > dt::before, .portalMessage > dt::before {
    font-size: 14px;
    font-weight: 400;
    margin-left: -30px;
    margin-right: 10px;
    display: inline-block;
    border-radius: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.5);
    top: -1px;
    position: relative;
}

.alert.status.alert-success > strong::before, .portalMessage.alert-success > strong::before, .alert.status.info > strong::before, .portalMessage.info > strong::before, .alert.status.alert-success > dt::before, .portalMessage.alert-success > dt::before, .alert.status.info > dt::before, .portalMessage.info > dt::before {
    background-color: #3e7b91;
    content: "i";
}

.alert.status.alert-warning > strong::before, .portalMessage.alert-warning > strong::before, .alert.status.warning > strong::before, .portalMessage.warning > strong::before, .alert.status.alert-warning > dt::before, .portalMessage.alert-warning > dt::before, .alert.status.warning > dt::before, .portalMessage.warning > dt::before {
    background-color: #bc8d0d;
    content: "!";
}

.alert.status.alert-error > strong::before, .portalMessage.alert-error > strong::before, .alert.status.error > strong::before, .portalMessage.error > strong::before, .alert.status.alert-error > dt::before, .portalMessage.alert-error > dt::before, .alert.status.error > dt::before, .portalMessage.error > dt::before {
    background-color: rgb(172, 73, 63);
    content: "×";
}

.event.summary.details .event-category{ display: none; }

dl.item-museum { overflow: hidden; }


.calendar .owl-stage-outer {
    max-height: 380px;
}
.owl-carousel.owl-drag .owl-item {
    overflow-y: scroll;
    max-height: 380px;
    -webkit-box-shadow: 8px 0 32px -5px #b1b1b1;
    box-shadow: 8px 0 32px -5px #b1b1b1;
}

/* ContentWellPortlets.css - Here because plone-legacy is no more supported */
.managePortletsAboveLink,
.managePortletsBelowLink,
.manageFooterPortletsLink,
.manageInHeaderPortletsLink,
.managePortletsBelowTitleLink { text-align: center; margin: 0 auto 1em; clear:both;}

.portlet-manager-row .portlet-well_manager { width: 30%; float:left; margin:1%; }
.portlet-manager-row { width:100%; float:left; }


/* Define classes for 1/5ths and 1/6ths widths and positions. */
div.width-1\3a 5 { width:    17.75%; } /* .width-1:5 */
div.width-2\3a 5 { width:    37.75%; } /* .width-2:5 */
div.width-3\3a 5 { width:    57.75%; } /* .width-3:5 */
div.width-4\3a 5 { width:    77.75%; } /* .width-4:5 */
div.position-1\3a 5 {margin-left:    -78.875%;} /* .position-1:5 */
div.position-2\3a 5 {margin-left:    -58.875%;} /* .position-2:5 */
div.position-3\3a 5 {margin-left:    -38.875%;} /* .position-3:5 */
div.position-4\3a 5 {margin-left:    -18.875%;} /* .position-4:5 */

div.width-1\3a 6 { width:    14.416%; } /* .width-1:6 */
div.width-5\3a 6 { width:    81.083%; } /* .width-5:6 */
div.position-1\3a 6 {margin-left:    -82.208%;} /* .position-1:6 */
div.position-5\3a 6 {margin-left:    -15.542%;} /* .position-5:6 */

/* EASY FORM INTEGRATION */
.portaltype-easyform.template-view form.easyformForm {
    display: block;
}

.portaltype-easyform.template-view form.easyformForm .field {
    margin-bottom: 1rem;
}
.portaltype-easyform.template-view form.easyformForm .field.hidden {
    display: none;
}
.portaltype-easyform.template-view form.easyformForm .field label {
    margin-bottom: 0;
    max-width: 95%;
    vertical-align: top;
    font-weight: bold;
}

.portaltype-easyform.template-view form.easyformForm .field label .required:after {
    color: #c4183c;
    content: "•";
    font-size: 130%;
    line-height: 0;
    position: relative;
    top: 0px;
    margin-left: -4px;
}

.portaltype-easyform.template-view form.easyformForm .field .option {
    display: block;
}

.portaltype-easyform.template-view form.easyformForm .field .option {
    display: block;
}

.portaltype-easyform.template-view form.easyformForm .field .option .required::after {
    content: none;
}

body.section-newsletter.template-listing_view article.entry {
    border-bottom: 1px solid #ccc;
    padding: 10px;
}
body.section-newsletter.template-listing_view article.entry p.description {
    display: none;
}
body.template-search #rss-subscription {
    display: none;
}
