/* Layout editoriali dopo la conversione Bridge. */
body.page main .page-content .elementor-widget-text-editor,
body.page main .page-content .elementor-widget-text-editor p,
body.page main .page-content>p,
.ismeo-catalog-list{font:400 14px/26px Montserrat,Arial,sans-serif;color:#494949}
body.page main .elementor-widget-text-editor p{margin-block:0}
body.page main .elementor-widget-text-editor :is(h1,h2,h3,h4,h5,h6){font-family:Montserrat,Arial,sans-serif;color:#000;margin-block:0;font-weight:700}
body.page main .elementor-widget-text-editor h1{font-size:30px;line-height:1.4}
body.page main .elementor-widget-text-editor h2{font-size:25px;line-height:1.4}
body.page main .elementor-widget-text-editor h3{font-size:21px;line-height:1.4}
body.page main .elementor-widget-text-editor h4{font-size:19px;line-height:1.4}
body.page main .elementor-widget-text-editor h5{font-size:16px;line-height:1.55}
body.page main .elementor-widget-text-editor h6{font-size:11px;line-height:1.55}
body.page-template-default main>.page-content>.elementor{width:min(calc(100% - 40px),1100px);margin-inline:auto}
body.page main .elementor .e-con{--container-default-padding-top:0px;--container-default-padding-right:0px;--container-default-padding-bottom:0px;--container-default-padding-left:0px}
body .ismeo-legacy-title{position:relative;isolation:isolate;min-height:var(--title-height);background:#000;padding:0;width:100%;text-align:center}
body .ismeo-legacy-title:has(.ismeo-title-photo){min-height:0}
body .ismeo-legacy-title .ismeo-title-photo{display:block;width:100%;height:auto;grid-area:1/1}
body .ismeo-legacy-title h1{grid-area:1/1;z-index:1;color:inherit;font:400 clamp(28px,3.3vw,47px)/1.28 Montserrat,Arial,sans-serif;padding:12px 20px}
.ismeo-library-hero{margin:0;position:relative;min-height:min(90svh,880px);display:grid;place-content:center;text-align:center;color:white;background-size:cover;background-position:center}
.ismeo-library-hero h2{font:400 clamp(36px,5.5vw,80px)/1.1 "Roboto Slab",Georgia,serif;color:white;margin:0}
.ismeo-library-hero p{font:400 clamp(16px,2vw,23px)/1.5 Roboto,Arial,sans-serif;color:white;margin:18px auto 0;max-width:1080px;padding-inline:20px}
.ismeo-catalog-list{width:min(1100px,calc(100% - 40px));margin:45px auto;box-sizing:border-box}
.ismeo-catalog-list article h3{font:700 25px/1.38 Montserrat,Arial,sans-serif;color:#111;margin:12px 0}
.ismeo-catalog-list article img{display:block;width:100%;height:auto}
.ismeo-catalog-list .catalog-pager{clear:both;text-align:center;margin:30px auto}
.ismeo-catalog-list .catalog-pager a,.ismeo-catalog-list .catalog-pager span{padding:6px}
.ismeo-catalog-list .catalog-cards{display:flow-root}
.ismeo-catalog-list.ismeo-masonry .catalog-cards,.ismeo-catalog-list.ismeo-pinterest .catalog-cards{columns:3;column-gap:30px}
.ismeo-catalog-list.ismeo-masonry article,.ismeo-catalog-list.ismeo-pinterest article{break-inside:avoid;display:inline-block;vertical-align:top;width:100%;margin-bottom:24px}
.ismeo-catalog-list.ismeo-masonry article h3,.ismeo-catalog-list.ismeo-pinterest article h3{font-size:16px;line-height:25px;text-transform:uppercase}
.ismeo-catalog-list.ismeo-small-image article{display:grid;grid-template-columns:38% 1fr;align-items:center;gap:6%;margin-bottom:48px}
.ismeo-catalog-list.ismeo-compound article{text-align:center;margin:0 auto 70px}
.ismeo-catalog-list.ismeo-compound article img{width:auto;max-width:100%;margin:auto}
.ismeo-exhibition-feature{width:min(1100px,calc(100% - 40px));margin:36px auto}
@media(max-width:800px){.ismeo-catalog-list.ismeo-masonry .catalog-cards,.ismeo-catalog-list.ismeo-pinterest .catalog-cards{columns:2}}
@media(max-width:600px){.ismeo-catalog-list.ismeo-masonry .catalog-cards,.ismeo-catalog-list.ismeo-pinterest .catalog-cards{columns:1}.ismeo-catalog-list.ismeo-small-image article{display:block}.ismeo-library-hero{min-height:65svh}.ismeo-legacy-title h1{font-size:clamp(20px,6vw,30px)}}

/* Distanze e proporzioni rilevate sulle pagine istituzionali pubbliche. */
.ismeo-library-page .ismeo-library-hero{min-height:max(450px,100svh - 133px);margin-bottom:60px}
.ismeo-library-page main .page-content .elementor>.e-parent:nth-child(2){padding-block:80px}
.ismeo-library-page main .page-content .elementor>.e-parent:nth-child(3) .elementor-widget-text-editor p + p{margin-top:13px}
.ismeo-library-page main .page-content .elementor>.e-parent:nth-child(4){padding-top:80px;margin-bottom:80px}
.ismeo-research-page main .page-content .elementor>.e-parent:first-child{padding-top:50px}
.ismeo-research-page main .page-content .elementor>.e-parent:first-child .elementor-widget-image{padding-block:50px 35px}
.ismeo-research-page main .page-content .elementor>.e-parent + .e-parent{margin-top:50px}
.ismeo-research-page .ismeo-archive-grid.portfolio{row-gap:48px;margin-block:0}
.ismeo-research-page .ismeo-archive-grid.portfolio span{font:700 16px/26px Montserrat,Arial,sans-serif;text-transform:uppercase;padding-bottom:28px}
@media(max-width:600px){
    .ismeo-library-page .ismeo-library-hero{min-height:65svh;margin-bottom:36px}
    .ismeo-library-page main .page-content .elementor>.e-parent:nth-child(2){padding-block:40px}
    .ismeo-research-page main .page-content .elementor>.e-parent + .e-parent{margin-top:30px}
}

@media (min-width: 801px) and (max-width: 1160px) {
    .ismeo-feature .mec-owl-carousel .owl-nav .owl-prev { left: -24px !important; }
    .ismeo-feature .mec-owl-carousel .owl-nav .owl-next { right: -24px !important; }
}

.ismeo-catalog-date {
    color: #007a73;
    display: inline-block;
    font-size: 14px;
    white-space: nowrap;
    margin-inline-end: .35em;
}
.ismeo-catalog-list .catalog-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.ismeo-search { width: min(1100px, calc(100% - 40px)); margin: 40px auto 72px; font-family: Montserrat, Arial, sans-serif; }
.ismeo-search-heading { border-bottom: 1px solid #ddd; margin-bottom: 36px; }
.ismeo-search-result { display: flex; gap: 36px; align-items: start; padding-block: 30px; border-bottom: 1px solid #ddd; }
.ismeo-search-image { flex: 0 0 38%; }
.ismeo-search-image img { height: auto; }
.ismeo-search-result h2 { font-size: 25px; line-height: 1.4; margin: 0 0 12px; }
.ismeo-search-result h2 a { color: #111; }
.ismeo-search-result time { font-size: 14px; white-space: nowrap; }
.ismeo-search-more { display: inline-block; margin-top: 12px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 600px) {
    .ismeo-search-result { display: block; }
    .ismeo-search-image { display: block; margin-bottom: 16px; }
    .ismeo-search-result h2 { font-size: 20px; }
}

.ismeo-photo-dialog { position: fixed; inset: 0; width: max-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: #111; }
.ismeo-photo-dialog::backdrop { background: rgb(0 0 0 / 82%); }
.ismeo-photo-dialog img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); object-fit: contain; }
.ismeo-photo-dialog button { position: absolute; top: 8px; right: 8px; background: #111; color: #fff; border: 1px solid #fff; padding: 0; width: 38px; height: 38px; }

.ismeo-library-page .page-content .elementor>.e-parent:nth-child(3) .elementor-widget-text-editor > :is(span,em) {
    display: block;
    margin: 0;
    line-height: 26px;
}
.ismeo-library-page .page-content .elementor>.e-parent:nth-child(3) .elementor-widget-text-editor > span:first-child { margin-top: 0; }
.ismeo-library-page .page-content .elementor>.e-parent:nth-child(3) .elementor-widget-text-editor > p:nth-child(2) { margin-bottom: 26px; }
.ismeo-library-page .page-content .elementor>.e-parent:nth-child(4) .ismeo-action a {
    display: block;
    text-align: center;
    padding-block: 32px;
    text-transform: uppercase;
}
@media(min-width:1025px) {
    .ismeo-library-page .ismeo-library-hero { margin-bottom: 28px; }
    .ismeo-library-hero h2 { line-height: 1; }
    .ismeo-library-hero > :is(h2,p) { position: relative; top: -75px; }
    .ismeo-library-page .page-content .elementor>.e-parent:first-child { min-height: 74px; }
}
.ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready {
    position: relative;
    columns: auto;
    width: min(100%, 1026px);
}
.ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready article {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}
.ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready article > * { display: block; width: 75%; }
.ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready article > div { padding-block: 17px 18px; }
.ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready article h3 { margin: 0 0 10px; }

@media (max-width:600px) {
    .ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready { width: min(100%, 300px); margin-inline: auto; }
    .ismeo-catalog-list.ismeo-masonry .catalog-masonry-ready article > * { width: 100%; }
}

body.page main .ismeo-team > img {
    display: block;
    width: 100%;
    height: auto;
}
.ismeo-team .ismeo-team-caption {
    display: block;
    padding: 23px 16px 39px;
    text-align: center;
}
.ismeo-team.ismeo-team-has-role .ismeo-team-caption { padding-bottom: 39px; }
body.page main .elementor-widget-text-editor .ismeo-team .ismeo-team-name {
    margin: 0;
    color: #000;
    font: 700 17px/22px Montserrat, Arial, sans-serif;
    overflow-wrap: normal;
}
.ismeo-team-role {
    display: block;
    margin-top: 7px;
    font: 400 14px/26px "Times New Roman", serif;
    color: #494949;
}
.ismeo-team .ismeo-team-caption hr {
    display: block;
    width: 48px;
    height: 1px;
    margin: 10px auto 0;
    border: 0;
    background: #00b8ae;
    opacity: 1;
}
.ismeo-board-page main .e-con:has(>.elementor-widget-text-editor>.ismeo-team) {
    padding-inline: 15px;
}
.ismeo-board-page main .e-con:has(>.e-con>.elementor-widget-text-editor>.ismeo-team) {
    padding-inline: 50px;
    padding-bottom: 30px;
}
.ismeo-board-page main .elementor>.e-parent>.e-con:first-child:has(>.e-con>.elementor-widget-text-editor>.ismeo-team) {
    padding-inline: 0;
    padding-bottom: 0;
}
.ismeo-board-page main .elementor-widget-text-editor:has(>.ismeo-team) { margin-bottom: 0; }

/* Restore the original inset of the full-width president biography in both languages. */
.ismeo-board-page main .elementor-widget-text-editor:is(.elementor-element-f6deb7dd, .elementor-element-83c14631) {
    box-sizing: border-box;
    padding-inline: 60px;
}

@media (max-width: 767px) {
    .ismeo-board-page main .e-con:has(>.e-con>.elementor-widget-text-editor>.ismeo-team) { padding-inline: 20px; }
    .ismeo-board-page main .e-con:has(>.elementor-widget-text-editor>.ismeo-team) { padding-inline: 0; padding-bottom: 24px; }
}

.ismeo-home-number dd { font-variant-numeric: tabular-nums; }
.ismeo-journal-page main .page-content .elementor>.e-parent:first-child {
    padding-top: clamp(40px, 4.6vw, 87px);
    padding-inline: 15px;
}
.ismeo-journal-page main .page-content .elementor>.e-parent:first-child .elementor-widget-text-editor {
    padding-inline: 7.5px;
}
.ismeo-journal-page main .page-content .elementor>.e-parent:first-child .ismeo-action a {
    display: block;
    margin-inline: 7.5px;
    text-align: center;
}
.ismeo-journal-page main .elementor-widget-text-editor:has(>h2) > br:first-child {
    display: none;
}
.ismeo-journal-page main .elementor-widget-text-editor:has(>h2) + .elementor-widget-text-editor {
    padding-top: 10px;
}
.ismeo-journal-page main .elementor-widget-text-editor + .elementor-widget-spacer:has(+ .elementor-widget-text-editor) .elementor-spacer-inner {
    height: 21px;
}
.ismeo-journal-page main .elementor>.e-parent:nth-child(2) .elementor-spacer-inner {
    height: 21px;
}
.ismeo-journal-page main .elementor-widget-text-editor:has(>p:only-child):last-child {
    padding-top: 20px;
}
.ismeo-journal-page main .rtbs_content > .wpsm_panel-group { margin-block: -10px !important; }
.ismeo-journal-page main .page-content .elementor>.e-parent:has(.wpsm_panel-group) { padding-top: 20px; }

.ismeo-journal-page main .rtbs { margin-bottom: 0; }
.ismeo-journal-page main .page-content .elementor>.e-parent:has(.wpsm_panel-group) { padding-top: 0; }
.ismeo-journal-page main .elementor-widget-text-editor:has(.wpsm_panel-group) + .elementor-widget-spacer .elementor-spacer-inner {
    height: 80px;
}
@media (min-width: 1025px) {
    .ismeo-journal-page main .page-content .elementor>.e-parent:first-child {
        padding-top: 55px;
    }
    .ismeo-journal-page main .elementor>.e-parent:first-child .elementor-widget-text-editor:has(>p:only-child):last-child {
        padding-top: 1px;
    }
}

.ismeo-conference-page :is(.ismeo-shared-nav,.ismeo-shared-foot,#site-header,#site-footer) {
    display: none;
}
.ismeo-conference-page .ismeo-conference-layout {
    display: grid;
    grid-template-columns: calc(20% - 24px) minmax(0, 1fr);
    column-gap: 30px;
    width: 100%;
    margin: 20px auto 60px;
}
.ismeo-conference-layout > .elementor { display: contents; }
.ismeo-conference-layout > .elementor > .e-parent { grid-column: 2; min-width: 0; }

@media (min-width: 576px) {
    .ismeo-conference-page .ismeo-conference-layout { max-width: 540px; }
}
@media (min-width: 768px) {
    .ismeo-conference-page .ismeo-conference-layout { max-width: 720px; }
}
@media (min-width: 992px) {
    .ismeo-conference-page .ismeo-conference-layout { max-width: 960px; }
}
@media (min-width: 1200px) {
    .ismeo-conference-page .ismeo-conference-layout { max-width: 1140px; }
}
/* The template provides its own sidebar, replacing the imported empty column. */
.ismeo-conference-layout > .elementor > .e-parent:nth-child(2) {
    width: 100%;
    margin-inline: 0;
    padding-inline-start: 2px;
}
.ismeo-conference-layout > .elementor > .e-parent:nth-child(2) > .e-con:first-child {
    display: none;
}
.ismeo-conference-layout > .elementor > .e-parent:nth-child(2) > .e-con:last-child {
    width: 100%;
    margin-inline: 0;
}

.ismeo-conference-layout > .elementor > .e-parent:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
}
.ismeo-conference-layout > .elementor > .e-parent:first-child .elementor-widget-image img {
    width: min(125px, 100%);
    height: auto;
}
.ismeo-conference-layout .ismeo-conference-nav { grid-column: 1; grid-row: 2; }
.ismeo-conference-nav ul { margin: 0; padding: 0; list-style: none; }
.ismeo-conference-nav li a { display: block; padding: 5px 0; }
.ismeo-events-archives {
    text-align: center;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 30px;
    font: 700 14px/2 Montserrat,Arial,sans-serif;
    text-transform: uppercase;
}
.ismeo-events-archives span { padding-inline: .6em; }
@media (max-width: 767px) {
    .ismeo-conference-page .ismeo-conference-layout { display: flex; flex-direction: column; }
    .ismeo-conference-layout .ismeo-conference-nav { order: 1; margin-bottom: 22px; }
    .ismeo-conference-layout > .elementor > .e-parent:not(:first-child) { order: 2; }
    .ismeo-conference-layout > .elementor > .e-parent:first-child > .e-con:has(.elementor-widget-image) {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .ismeo-conference-layout > .elementor > .e-parent:first-child .e-con:has(> .elementor-widget-image) {
        width: 25%;
        padding-inline: 3px;
    }
}

/* Retain the WPBakery row insets for the two full-width Peristan programmes. */
main .elementor-widget-text-editor:is(.elementor-element-3eb01c5b, .elementor-element-63714ef1) {
    box-sizing: border-box;
    padding-inline: 65px;
}
main .elementor-widget-text-editor:is(.elementor-element-68a06066, .elementor-element-714ae8dd) {
    box-sizing: border-box;
    padding-inline: 50px;
}
