/* IF LOGGED as admin DRUPAL TOOLBAR HIDES THE HEAER */
/* .toolbar-horizontal.toolbar-fixed .site-header:hover,
.toolbar-horizontal.toolbar-fixed .site-header { top: 39px; }

.toolbar-horizontal.toolbar-fixed.toolbar-tray-open .site-header:hover,
.toolbar-horizontal.toolbar-fixed.toolbar-tray-open .site-header { top: 88px; } */


/* NAVBAR TRASPARENTE MOBILE */
/* body.section-hecap .site-header.magic,
body.section-cmsp .site-header.magic,
body.section-math .site-header.magic,
body.section-esp .site-header.magic,
body.section-sti .site-header.magic,
body.section-qls .site-header.magic,
.front-page .site-header.magic {
  background-color: rgba(0, 0, 0, .2);
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  box-shadow: 0px 0px 5px 2px #00000012;
  z-index: 10;
  pointer-events: all;
  transition: all 800ms ease;
}

body.section-hecap .site-header.magic .region.region-header #block-hamburger button,
body.section-cmsp .site-header.magic .region.region-header #block-hamburger button,
body.section-math .site-header.magic .region.region-header #block-hamburger button,
body.section-esp .site-header.magic .region.region-header #block-hamburger button,
body.section-sti .site-header.magic .region.region-header #block-hamburger button,
body.section-qls .site-header.magic .region.region-header #block-hamburger button,
.front-page .site-header.magic .region.region-header #block-hamburger button { background-image: url(../../assets/icons/icon-menu-w.svg); }

body.section-hecap .site-header.magic .region.region-header #block-logo a,
body.section-cmsp .site-header.magic .region.region-header #block-logo a,
body.section-math .site-header.magic .region.region-header #block-logo a,
body.section-esp .site-header.magic .region.region-header #block-logo a,
body.section-sti .site-header.magic .region.region-header #block-logo a,
body.section-qls .site-header.magic .region.region-header #block-logo a,
.front-page .site-header.magic .region.region-header #block-logo a {
  content: url(../../assets/loghi/logo-ictp-w.svg);
  object-fit: contain;
}

body.section-hecap .site-header.magic .region.region-menu-mobile #block-searchbutton button::after,
body.section-cmsp .site-header.magic .region.region-menu-mobile #block-searchbutton button::after,
body.section-math .site-header.magic .region.region-menu-mobile #block-searchbutton button::after,
body.section-esp .site-header.magic .region.region-menu-mobile #block-searchbutton button::after,
body.section-sti .site-header.magic .region.region-menu-mobile #block-searchbutton button::after,
body.section-qls .site-header.magic .region.region-menu-mobile #block-searchbutton button::after,
.front-page .site-header.magic .region.region-menu-mobile #block-searchbutton button::after { background-image: url(../../assets/icons/icon-search-w.svg); } */


/* --------------- HEADER LAYOUT STYLING --------------- */
/* body.section-cmsp .site-header,
body.section-math .site-header,
body.section-esp .site-header,
body.section-sti .site-header,
body.section-qls .site-header,
body.section-hecap .site-header, */
.header-menu-mobile,
.site-header,
.site-header:hover {
  background-color: #fff;
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  box-shadow: 0px 0px 5px 2px #00000012;
  z-index: 10;
  pointer-events: all;
  transition: all 800ms ease;
}


/* HEADER MAGIC */
@media (min-width: 1024px) {

  body.section-cmsp .site-header.magic,
  body.section-math .site-header.magic,
  body.section-esp .site-header.magic,
  body.section-sti .site-header.magic,
  body.section-qls .site-header.magic,
  body.section-hecap .site-header.magic,
  .header-menu-mobile,
  .site-header,
  .site-header:hover {
    background-color: transparent;
  }

  body.section-cmsp .site-header:not(.magic),
  body.section-math .site-header:not(.magic),
  body.section-esp .site-header:not(.magic),
  body.section-sti .site-header:not(.magic),
  body.section-qls .site-header:not(.magic),
  body.section-hecap .site-header:not(.magic),
  .header-menu-mobile,
  .site-header,
  .site-header:hover {
    background-color: #fff;
  }

  .front-page .site-header.magic {
    box-shadow: none;
    background: rgba(0, 0, 0, .2);
    border-bottom: none;
    height: 130px;
    transition: all 800ms ease;
  }

  .front-page .site-header.magic #block-searchbutton {
    /* opacity: 0;
    pointer-events: none; */
    transition: all 800ms ease;
  }

  .front-page .site-header.magic #block-logo a {
    content: url(../../assets/loghi/newlogo-white.png);
    transform-origin: top left;
    pointer-events: all;
    transition: all 800ms ease;
  }

  .front-page .site-header.magic #block-logo a.anniversary {
    display: block;
    position: absolute;
    top: 50%;
    left: calc(100% + 1.5rem);
    padding: .5rem 0 .5rem 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, .5);
    height: calc(58% + 1rem);
    width: auto;
    content: url(../../assets/ann60logo/ICTP_60_Logo_primary_white.png);
    transform-origin: top left;
    pointer-events: all;
    /* transition: all 800ms ease; */
    transition: opacity 0ms ease;
    translate: 0 -50%;
    opacity: 1;
  }

}

@media (min-width: 1200px) {
  .front-page .site-header.magic {
    background: linear-gradient(to right,
        rgba(0, 0, 0, .2) 0%,
        rgba(0, 0, 0, .2) calc(100% - 400px),
        transparent calc(100% - 400px));

    padding-right: 400px;
  }

  .front-page .site-header.magic .region.region-header #block-searchbutton {
    opacity: 1;
    pointer-events: all;
  }
}

@media (min-width: 1400px) {
  .front-page .site-header.magic .region.region-header #block-searchbutton {
    opacity: 1;
    pointer-events: all;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .front-page .site-header.search-hide.magic #block-logo a.anniversary {
    opacity: 0;
  }
}

@media (min-width: 1500px) {
  .front-page .site-header.magic {
    background: linear-gradient(to right,
        rgba(0, 0, 0, .2) 0%,
        rgba(0, 0, 0, .2) calc(100% - 450px),
        transparent calc(100% - 450px));
  }

  .front-page .site-header.magic {
    padding-right: 450px;
  }
}

.header-menu-mobile>div,
.region.region-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  padding: 0 10px;
  margin: 0;
  height: 100%;
  width: 100%;
}

.region-header #block-logo a,
/* .region.region-header #block-searchbutton, */
.region.region-header #block-hamburger {
  transition: all 800ms ease;
}



/* --------------- HEADER LAYOUT SCROLL UP - DOWN --------------- */
.site-header .region.region-header #block-hamburger,
.site-header:hover .region.region-header #block-hamburger {
  width: 56px;
}

@media (min-width: 1024px) {
  .site-header.scrollDown .region.region-header #block-hamburger {
    width: 60px;
  }

  .site-header.scrollDown {
    height: 60px;
  }

  .site-header .region.region-header #block-hamburger,
  .site-header:hover .region.region-header #block-hamburger {
    width: 80px;
  }
}



/* ORINAMENTO LAYOUT */
.region.region-header #block-searchbutton {
  order: 1;
}

.region.region-header #block-logo {
  order: 2;
}

.region.region-header .section-logo {
  order: 3;
}


.header-menu-mobile #block-hamburger,
.region.region-menu-mobile #block-hamburger,
.region.region-header #block-hamburger {
  order: 4;
}


/* STILE ELEMENTI */

.region-menu-mobile #menu-back button,
.region-menu-mobile #block-hamburger-menu button,
.region.region-menu-mobile #block-searchbutton-menu button,
.region.region-header #block-hamburger button,
.region.region-header #block-searchbutton button,
.block-searchinput-wrapper .go-button {
  background-origin: content-box;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 1rem;
  border-radius: 3.5rem;
  background-color: transparent;
  color: #222;
  border: none;
  outline: none;
  position: relative;
  display: block;
  transition: 0.2s ease;
  margin: 0 auto;
}



/* .region.region-header #block-hamburger button{
  width: 80px;
} */

.region.region-header #block-hamburger button:hover {
  opacity: 0.5;
  transition: 0.2s ease;
}

.region.region-header #block-logo {
  position: relative;
  height: 68%;
}

.region.region-header #block-logo>div:last-child {
  position: relative;
  height: 100%;
}

.region-menu-mobile #block-logo a,
.region.region-header #block-logo a {
  cursor: pointer;
  /* width: 55%; */
  width: 100%;
  height: 100%;
  content: url(../../assets/loghi/newlogo-blue.png);
  object-position: left center;
  object-fit: contain;
  position: relative;
  display: block;
  padding: 0.25rem 0;
}

.region-menu-mobile #block-logo a.anniversary {
  display: none;
}

.region.region-header #block-logo a.anniversary {
  content: url(../../assets/ann60logo/ICTP_60_Logo_primary_pos_RGB.png);
  position: absolute;
  top: 50%;
  left: calc(100% + 1.25rem);
  translate: 0 -50%;
  padding: .25rem 0 .25rem 1.25rem;
  height: calc(65% + .5rem);
  border-left: 1px solid var(--border_gray);
}



@media (max-width: 1023px) {
  .region.region-header #block-logo>div:last-child {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    justify-content: center;
  }

  .site-header .region.region-header #block-logo a.anniversary {
    width: 40%;
    padding: 0 0 0 1rem;
    height: calc(50% + .5rem);
    position: relative;
    left: 0;
  }

  .region.region-header #block-logo a {
    margin: 0;
  }
}



@media (max-width: 767px) {
  .region.region-header #block-logo>div:last-child {
    display: flex;
    flex-direction: row;
    gap: 0;
  }

  .site-header .region.region-header #block-logo a.anniversary {
    display: none;
  }

  .region.region-header #block-logo a {
    margin: 0 .5rem;
  }
}



/* @media (max-width: 768px) {
  .site-header .region.region-header #block-logo a.anniversary {
    padding: 0 0 0 .5rem;
  }
} */

@media (min-width: 1024px) {
  .site-header:not(.scrollDown):not(.magic) .region.region-header #block-logo a.anniversary,
  .site-header:not(.magic):hover .region.region-header #block-logo a.anniversary {
    display: none;
  }
}

.region.region-menu-mobile #block-searchbutton button,
.region.region-header #block-searchbutton button,
.block-searchinput-wrapper .go-button {
  font-size: 0;
}

.region.region-menu-mobile #block-searchbutton-menu button::after,
.region.region-header #block-searchbutton button::after,
.block-searchinput-wrapper .go-button::after {
  content: '';
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../../assets/icons/icon-search-grey.svg);
  position: absolute;
  display: block;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  z-index: 2;
}

@media (min-width: 1024px) {
  .site-header.magic .region.region-header #block-searchbutton button::before {
    content: '';
    position: absolute;
    background-color: var(--medium_gray);
    top: 50%;
    right: 1.75rem;
    translate: 50% -50%;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    opacity: .8;
    z-index: 1;
  }
}


@media (max-width:1023px) {
  .block-searchinput-wrapper {
    display: flex;
    max-width: 0;
    overflow: hidden;
    transition: width .4s;
    position: absolute;
    right: 0;
    left: 53px;
    z-index: 3;
    background-color: #fff;
  }

  .block-searchinput-wrapper.open {
    max-width: 100%;
    height: 100%;
    padding: 13px;
  }

  .close--button {
    margin-top: 8px;
  }

  .search-input {
    margin-right: 13px;
    width: calc(100% - 53px);
    /* border-bottom: 1px solid #b9b9b9; */
    background-color: transparent;
    padding-left: 16px;
    height: 100%;
    border: none;
    color: var(--text_color);
  }

  .search-input::placeholder {
    color: var(--medium_gray);
  }

  .region-menu-mobile .search-input {
    color: #fff;
  }

  .block-searchinput-wrapper .go-button {
    display: none;
  }

  #block-searchbutton-menu .block-searchinput-wrapper {
    display: none;
  }

  #block-searchbutton-menu .block-searchinput-wrapper.open {
    position: fixed;
    top: 0;
    width: 66vw;
    max-width: none;
    background: #191a1a;
    z-index: 10;
    display: block;
  }

  #block-searchbutton-menu .block-searchinput-wrapper.open {
    position: fixed;
    top: 0;
    width: calc(100vw - 79px);
    max-width: none;
    background: #191a1a;
    z-index: 10;
    transition: 0s;
    overflow: visible;
  }

  body .region-menu-mobile #menu-back.show+#block-searchbutton-menu .block-searchinput-wrapper.open {
    width: calc(100vw - 136px);
    transition: 0s;
  }

  .header-menu-mobile #block-searchbutton-menu .block-searchinput-wrapper button::after {
    background: transparent url(../../assets/icons/icon_close.svg) no-repeat center;
  }

  .header-menu-mobile #block-searchbutton-menu .block-searchinput-wrapper.open button {
    background: transparent url(../../assets/icons/icon_close_menu_mobile_w.svg) no-repeat center;
    background-size: 12px;
  }

  .header-menu-mobile #block-searchbutton-menu .block-searchinput-wrapper.open button::after {
    display: none;
  }

  .region.region-menu-mobile #block-searchbutton-menu button.go-button {
    display: none;
  }

  .region.region-menu-mobile #block-searchbutton-menu button.close--button {
    position: absolute;
    /* right: -3px; */
    right: 0px;
    top: 13px;
    border: 1px solid #fff;
    width: 30px;
    height: 30px;
  }

  #block-searchbutton-menu .block-searchinput-wrapper {
    padding: 6px;
  }

  .region.region-menu-mobile #block-searchbutton-menu .close-button {
    position: relative;
    top: -6px;
  }

  .region.region-menu-mobile #block-searchbutton-menu .close-button:after {
    background: transparent url(../../assets/icons/icon_close-w.svg) no-repeat center;
  }

  .region.region-header #block-searchbutton button::after {
    background-image: url(../../assets/icons/icon-search-dark.svg);
  }

}



/* .region.region-header #block-searchbutton button:hover::after {
  background-image: url(../../assets/icons/icon-search-dark.svg);
} */


.region.region-header #block-hamburger button {
  background-image: url(../../assets/icons/icon-menu.svg);
  background-size: 24px auto;
}

.close--button {
  font-size: 0;
  width: 30px;
  height: 30px;
  border: 1px solid;
  border-radius: 50px;
  background-size: 10px;
  background: transparent url(../../assets/icons/icon_close.svg) no-repeat center;
  margin-top: 8px;
}



.region.region-header .section-logo {
  order: 3;
  display: block;
  width: 0px;
  height: 0px;
  position: absolute;
  overflow: hidden;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: none;
}

nav#block-mainnavigation-mobile {
  display: none;
}

.region.region-header #block-mainnavigation-breadcrumbs {
  display: none;
}


@media (min-width: 1024px) {

  .site-header .region.region-header .block-searchinput-wrapper {
    margin-right: 1rem;
  }

  body.front-page .magic .region.region-header #block-hamburger button {
    background-image: url(../../assets/icons/icon-menu-w.svg);
  }

  body.front-page .magic .region.region-header #block-hamburger {
    border-right: 1px solid #e0e0e000;
  }

  #block-mainnavigation-mobile {
    display: none;
  }

  .site-header,
  .site-header:hover {
    height: 80px;
  }

  .region.region-header {
    height: 100%;
    padding: 0;
  }

  .search-input {
    padding: 1rem;
  }

  .block-searchinput-wrapper {
    display: flex;
    max-width: 0;
    overflow: hidden;
    transition: width .4s;
    position: absolute;
    right: 0;
    z-index: 3;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
  }

  .site-header.magic .region.region-header .block-searchinput-wrapper {
    background-color: transparent;
    opacity: 1;
  }

  .region-mega-menu .block-searchinput-wrapper {
    margin-top: 13px;
    margin-right: 90px;
  }

  .region-mega-menu .block-searchinput-wrapper,
  .region-mega-menu .block-searchinput-wrapper .search-input {
    background-color: #191A1A;
  }

  .region-mega-menu .block-searchinput-wrapper .search-input {
    color: #fff;
    padding: 1rem 0 1rem 1rem;
  }

  .region-mega-menu .logo-search-bar .right .close--button {
    width: 15px;
    height: 15px;
    border: 1px solid #fff;
    background: transparent url(../../assets/icons/icon_close_w.svg) no-repeat center;
    /* margin-top: 10px;
    margin-right: 10px;
    background-size: 10px; */
    margin-top: .5rem;
    margin-right: .2rem;
    background-size: 0.6rem;
  }

  .region-mega-menu .logo-search-bar .right .go-button,
  .region-mega-menu .logo-search-bar .right .go-button:hover {
    width: 50px;
    height: 50px;
    margin: 0;
    border-radius: 0;
  }

  .section-hecap .region-mega-menu .logo-search-bar .right .go-button,
  .section-hecap .region-mega-menu .logo-search-bar .right .go-button:hover {
    background-color: var(--hecap);
  }

  .section-cmsp .region-mega-menu .logo-search-bar .right .go-button,
  .section-cmsp .region-mega-menu .logo-search-bar .right .go-button:hover {
    background-color: var(--cmsp);
  }

  .section-math .region-mega-menu .logo-search-bar .right .go-button,
  .section-math .region-mega-menu .logo-search-bar .right .go-button:hover {
    background-color: var(--math);
  }

  .section-esp .region-mega-menu .logo-search-bar .right .go-button,
  .section-esp .region-mega-menu .logo-search-bar .right .go-button:hover {
    background-color: var(--esp);
  }

  .section-sti .region-mega-menu .logo-search-bar .right .go-button,
  .section-sti .region-mega-menu .logo-search-bar .right .go-button:hover {
    background-color: var(--sti);
  }

  .section-qls .region-mega-menu .logo-search-bar .right .go-button,
  .section-qls .region-mega-menu .logo-search-bar .right .go-button:hover {
    background-color: var(--qls);
  }

  .region-mega-menu .logo-search-bar .right .go-button::after {
    background-image: url(../../assets/icons/icon-search-w.svg);
    right: inherit;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .region-mega-menu .logo-search-bar .right .close--button::before,
  .region-mega-menu .logo-search-bar .right .go-button::before {
    content: inherit;
  }

  .block-searchinput-wrapper input,
  .block-searchinput-wrapper input:focus .block-searchinput-wrapper input:focus-visible {
    border: 0;
    outline: none;
  }

  .block-searchinput-wrapper.open {
    max-width: 700px;
  }

  .block-searchinput-wrapper .go-button {
    width: 50px;
    height: 50px;
  }

  /* ORINAMENTO LAYOUT */
  .region.region-header #block-logo {
    order: 1;
    margin-right: 40px;
    margin-left: 23px;
    transition: margin-left 500ms ease;
  }

  .site-header.magic .region.region-header #block-logo {
    margin-left: 0;
    transition: margin-left 500ms ease;
  }

  .region.region-header #block-mainnavigation-breadcrumbs {
    display: block;
    order: 2;
  }

  .region.region-header .section-logo {
    order: 3;
    position: relative;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    margin-left: auto;
  }

  header.scrollDown .region.region-header .section-logo {
    transform: translateX(77px);
    z-index: 1;
    transition: 0.6s ease;
  }

  .region.region-header .section-logo {
    transform: translateX(0px);
    z-index: 1;
    transition: 0.6s ease;
  }

  .region.region-menu-mobile #block-searchbutton,
  .region.region-header #block-searchbutton {
    order: 4;
    display: flex;
  }

  .region.region-header #block-hamburger {
    order: 0;
    border-right: 1px solid #E0E0E0;
    height: 100%;
    display: flex;
    align-items: center;
  }

  /* STILE ELEMENTI */
  .region.region-header #block-logo a {
    width: unset;
    object-fit: contain;
    padding: 0;
  }


  header.scrollDown .region.region-header #block-searchbutton button {
    color: #fff;
    transition: 0.5s ease;
  }

  .region.region-header #block-searchbutton button {
    padding-right: 3.5rem;
    font-size: 16px;
    width: unset;
  }

  .region.region-header #block-searchbutton button {
    margin: 0 20px 0 20px;
    transition: 0.3s ease;
  }


  .site-header.magic .region.region-header #block-hamburger button::after {
    opacity: 0;
  }

  .region.region-header #block-hamburger button::after {
    right: 0;
    left: auto;
  }

  .region.region-header #block-hamburger button::after {
    right: 0;
    left: auto;
  }

}

.site-header .block-searchinput-wrapper {
  transition: background-color 800ms ease;
}

@media (min-width: 1200px) {
  .front-page .site-header.magic .region.region-header .block-searchinput-wrapper {
    right: 400px;
  }
}

@media (min-width: 1024px) {
  .site-header.magic .region.region-header .close--button {
    background: transparent url(/themes/custom/ictp/assets/icons/icon_close_w.svg) no-repeat center;
    border-color: #fff;
  }

  .site-header.magic .region.region-header .block-searchinput-wrapper input,
  .site-header.magic .region.region-header .block-searchinput-wrapper input:focus .site-header.magic .region.region-header .block-searchinput-wrapper input:focus-visible {
    color: #fff;
    background-color: transparent;
    max-width: 160px;
  }

  .site-header.magic .region.region-header .magic-hide {
    opacity: 0 !important;
  }

  .site-header.scrollDown .block-searchinput-wrapper {
    background-color: #fff;
  }

  .site-header.magic .region.region-header #block-searchbutton button {
    font-size: 0;
  }
}

@media (min-width: 1500px) {
  .front-page .site-header.magic .region.region-header .block-searchinput-wrapper {
    right: 450px;
  }

  .site-header.magic .region.region-header .block-searchinput-wrapper input,
  .site-header.magic .region.region-header .block-searchinput-wrapper input:focus .site-header.magic .region.region-header .block-searchinput-wrapper input:focus-visible {
    max-width: unset;
  }
}



/*HEADER HOMEPAGE SECTIONS*/
.section-hecap .site-header.magic .region-header .section-logo,
.section-cmsp .site-header.magic .region-header .section-logo,
.section-math .site-header.magic .region-header .section-logo,
.section-esp .site-header.magic .region-header .section-logo,
.section-sti .site-header.magic .region-header .section-logo,
.section-qls .site-header.magic .region-header .section-logo {
  background-image: none;
}


.section-hecap .region-header .section-logo {
  background-image: url(../../assets/loghi/logo-hecap-col-typo.svg);
}

.section-hecap .region.region-header #block-searchbutton button::after {
  background-image: url(../../assets/icons/icon-search-dark-hecap.svg);
}

.section-esp .region-header .section-logo {
  background-image: url(../../assets/loghi/logo-esp-col-typo.svg);
}

.section-esp .region.region-header #block-searchbutton button::after {
  background-image: url(../../assets/icons/icon-search-dark-esp.svg);
}

.section-sti .region-header .section-logo {
  background-image: url(../../assets/loghi/logo-sti-col-typo.svg);
}

.section-sti .region.region-header #block-searchbutton button::after {
  background-image: url(../../assets/icons/icon-search-dark-sti.svg);
}

.section-qls .region-header .section-logo {
  background-image: url(../../assets/loghi/logo-qls-col-typo.svg);
}

.section-qls .region.region-header #block-searchbutton button::after {
  background-image: url(../../assets/icons/icon-search-dark-qls.svg);
}

.section-cmsp .region-header .section-logo {
  background-image: url(../../assets/loghi/logo-cmsp-col-typo.svg);
}

.section-cmsp .region.region-header #block-searchbutton button::after {
  background-image: url(../../assets/icons/icon-search-dark-cmsp.svg);
}

.section-math .region-header .section-logo {
  background-image: url(../../assets/loghi/logo-math-col-typo.svg);
}

.section-math .region.region-header #block-searchbutton button::after {
  background-image: url(../../assets/icons/icon-search-dark-math.svg);
}

@media(min-width: 1024px) {

  .section-hecap .site-header.magic .region.region-header #block-searchbutton button::after,
  .section-esp .site-header.magic .region.region-header #block-searchbutton button::after,
  .section-sti .site-header.magic .region.region-header #block-searchbutton button::after,
  .section-qls .site-header.magic .region.region-header #block-searchbutton button::after,
  .section-cmsp .site-header.magic .region.region-header #block-searchbutton button::after,
  .section-math .site-header.magic .region.region-header #block-searchbutton button::after {
    background-image: url(../../assets/icons/icon-search-w.svg);
  }
}



body.section-cmsp .region.region-header #block-logo>div,
body.section-math .region.region-header #block-logo>div,
body.section-esp .region.region-header #block-logo>div,
body.section-sti .region.region-header #block-logo>div,
body.section-qls .region.region-header #block-logo>div,
body.section-hecap .region.region-header #block-logo>div {
  display: flex;
  /* align-items: center; */
}




body.section-cmsp .site-header.magic:after,
body.section-math .site-header.magic:after,
body.section-esp .site-header.magic:after,
body.section-sti .site-header.magic:after,
body.section-qls .site-header.magic:after,
body.section-hecap .site-header.magic:after {
  background-color: transparent;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  top: 0;
  content: "";
  left: 0;
  z-index: -1;
}

@media (max-width:1023px) {
  .section-hecap .site-header {
    outline: 5px solid var(--hecap);
  }

  .section-cmsp .site-header {
    outline: 5px solid var(--cmsp);
  }

  .section-math .site-header {
    outline: 5px solid var(--math);
  }

  .section-esp .site-header {
    outline: 5px solid var(--esp);
  }

  .section-sti .site-header {
    outline: 5px solid var(--sti);
  }

  .section-qls .site-header {
    outline: 5px solid var(--qls);
  }
}

@media (min-width:1024px) {

  /* body.section-cmsp .site-header.magic #block-searchbutton, body.section-math .site-header.magic #block-searchbutton, body.section-esp .site-header.magic #block-searchbutton, body.section-sti .site-header.magic #block-searchbutton, body.section-qls .site-header.magic #block-searchbutton, body.section-hecap .site-header.magic #block-searchbutton {
    display: none;
  } */



  body.section-cmsp .site-header.magic,
  body.section-math .site-header.magic,
  body.section-esp .site-header.magic,
  body.section-sti .site-header.magic,
  body.section-qls .site-header.magic,
  body.section-hecap .site-header.magic {
    height: 98px;
  }

  body.section-cmsp .site-header.magic .region.region-header #block-hamburger button,
  body.section-math .site-header.magic .region.region-header #block-hamburger button,
  body.section-esp .site-header.magic .region.region-header #block-hamburger button,
  body.section-sti .site-header.magic .region.region-header #block-hamburger button,
  body.section-qls .site-header.magic .region.region-header #block-hamburger button,
  body.section-hecap .site-header.magic .region.region-header #block-hamburger button {
    background-image: url(../../assets/icons/icon-menu-w.svg);
  }

  body.section-hecap .site-header.magic .region.region-header #block-logo a,
  body.section-cmsp .site-header.magic .region.region-header #block-logo a,
  body.section-math .site-header.magic .region.region-header #block-logo a,
  body.section-esp .site-header.magic .region.region-header #block-logo a,
  body.section-sti .site-header.magic .region.region-header #block-logo a,
  body.section-qls .site-header.magic .region.region-header #block-logo a {
    content: url(../../assets/loghi/newlogo-white.png);
    /* width: 270px; */
    height: 80px;
  }

  body.section-hecap .site-header.magic .region.region-header #block-logo a.anniversary,
  body.section-cmsp .site-header.magic .region.region-header #block-logo a.anniversary,
  body.section-math .site-header.magic .region.region-header #block-logo a.anniversary,
  body.section-esp .site-header.magic .region.region-header #block-logo a.anniversary,
  body.section-sti .site-header.magic .region.region-header #block-logo a.anniversary,
  body.section-qls .site-header.magic .region.region-header #block-logo a.anniversary {
    content: url(../../assets/ann60logo/ICTP_60_Logo_primary_white.png);
    padding: .5rem 0 .5rem 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, .5);
    height: calc(58% + 1rem);
    width: auto;
  }


  .section-hecap .site-header.magic .region.region-header #block-hamburger,
  .section-cmsp .site-header.magic .region.region-header #block-hamburger,
  .section-math .site-header.magic .region.region-header #block-hamburger,
  .section-esp .site-header.magic .region.region-header #block-hamburger,
  .section-sti .site-header.magic .region.region-header #block-hamburger,
  .section-qls .site-header.magic .region.region-header #block-hamburger {
    border: 0px;
  }

  body.section-hecap .site-header.magic:after {
    background-image: linear-gradient(45deg, var(--hecap) 0%, transparent 50%);
  }

  body.section-cmsp .site-header.magic:after {
    background-image: linear-gradient(45deg, var(--cmsp) 0%, transparent 50%);
  }

  body.section-math .site-header.magic:after {
    background-image: linear-gradient(45deg, var(--math) 0%, transparent 50%);
  }

  body.section-esp .site-header.magic:after {
    background-image: linear-gradient(45deg, var(--esp) 0%, transparent 50%);
  }

  body.section-sti .site-header.magic:after {
    background-image: linear-gradient(45deg, var(--sti) 0%, transparent 50%);
  }

  body.section-qls .site-header.magic:after {
    background-image: linear-gradient(45deg, var(--qls) 0%, transparent 50%);
  }
}