
footer {
  background-color: #191A1A;
  padding: 2rem 0rem 0rem 0rem;
}

body:not(.page-member) footer { margin-top: 3rem; }
body:not(.page-member) main.page-login + footer { margin-top: 0; }

footer img {
  margin: 0px auto;
  max-height: 80px;
  width: 100%;
}

footer h2 { line-height: 2rem; }

footer a { 
  text-decoration: none; 
  width: fit-content;
  display: block;
}
footer a:hover { color: #FFF; }

footer p {
  font-size: 14px;
  line-height: 1.7rem;
  color: #FFF;
}

.footer--loghi {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.footer--loghi img { margin-bottom: 2rem; }


.footer_1 {
  text-align: left;
  color: #FFF;
  align-items: center;
}
.footer_1 > div:first-child {
  flex-direction: column;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .footer_1 > div:first-child { align-items: flex-start; }
}


.footer_1 h2 {
  text-align: center;
  font-size: 19px;
  margin-bottom: 0rem;
  margin-top: 1rem;
}
.footer_1 p {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}


.loghi {
  padding: 1.5rem 0rem 0rem;
  width: 100%;
}
.loghi a { display: block; }
.loghi img { margin-left: 6rem; }

.menu--social-link,
.region-footer-5,
.region-footer-4,
.region-footer-3 { border-bottom: 1px solid var(--text_color); }

.region-footer-3 { padding: 2rem 0rem; }

.region-footer-3 a:hover,
.region-footer-5 a:hover { opacity: 0.8; }

.region-footer-4,
.region-footer-5 nav {
  display: none;
}

footer li a { color: #FFF; }


/* --------------- NEWSLETTER SECTION --------------- */
footer #block-ictp-joinournewsletter  input[type="button"] {
  margin: 0;
  max-width: none;
}

footer #block-ictp-joinournewsletter h3 { 
  font-weight: 700;
  font-size: 22px;
}

footer #block-ictp-joinournewsletter a.btn {  line-height: 1.2em; }

footer form .btn{
  width: 100%;
  margin: 0;
  max-width: none;
}


/* --------------- DONATE SECTION --------------- */
.region-footer-2 {
  display: flex;
  flex-direction: column;
}

.region-footer-2>div {
  color: #FFF;
  margin-bottom: 1rem;
  padding: 1rem 1rem 2rem;
  background-color: #212121;
}

#block-ictp-donate {
  background-position: 90% 75%;
  background-repeat: no-repeat;
  background-size: auto 70%;
  background-image: url("../../assets/filigrane/filigrana-hand.svg");
}

footer input {
  background-color: #292929;
  border-radius: 50px;
  border: 1px solid #505050;
  font-size: 16px;
  color: #FFF;
  padding: 1rem 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0px auto;
}

input[type=button] {
  width: 100%;
  max-width: 300px;
  margin: 0px auto;
}

.region-footer-2 > div:nth-child(2) form { margin-top: 2rem; }

footer #block-ictp-donate a.btn { 
  line-height: 1.2em;
  margin-top: 3rem; 
}


/* --------------- SEZIONI CATEGORIE --------------- */
.region-footer-3 a {
  color: #FFF;
  font-size: 14px;
  text-decoration: none;
  padding: 1rem 0rem 1rem 5rem;
  display: block;
  position: relative;
  height: 78px;
  line-height: 1.5rem;
  display: flex;
  align-items: center;
}

footer .section a:before {
  position: absolute;
  background-size: auto 13px;
  left: 0;
  height: 60px;
  content: "";
  width: 60px;
  background-repeat: no-repeat;
  background-position: center;
}

footer .section--hecap a:before {
  background-image: url("../../assets/loghi/logo-hecap-w-typo.svg");
  background-color: var(--hecap);
}
footer .section--cmsp a:before {
  background-image: url("../../assets/loghi/logo-cmsp-w-typo.svg");
  background-color: var(--cmsp);
}
footer .section--sti a:before {
  background-image: url("../../assets/loghi/logo-sti-w-typo.svg");
  background-color: var(--sti);
}
footer .section--math a:before {
  background-image: url("../../assets/loghi/logo-math-w-typo.svg");
  background-color: var(--math);
}
footer .section--qls a:before {
  background-image: url("../../assets/loghi/logo-qls-w-typo.svg");
  background-color: var(--qls);
}
footer .section--esp a:before {
  background-image: url("../../assets/loghi/logo-esp-w-typo.svg");
  background-color: var(--esp);
}


/* --------------- SEZIONI SITEMAP MENU --------------- */
.region-footer-4 nav > ul li { list-style: none; }

footer ul.menu a.is-active,
.region-footer-4 nav > ul li a.is-active { color: #FFF; }

footer ul.menu a.is-active { text-decoration: underline; }


/* --------------- GDPR E SOCIAL --------------- */
.region-footer-6 > div > div {
  display: flex;
  flex-direction: column-reverse;
}

.menu--gdpr-menu { padding: 1rem 0rem; }

.menu--gdpr-menu .gdprmenu { margin-left: 0; }

.menu--gdpr-menu a,
.menu--gdpr-menu span {
  text-align: center;
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #C7C7C7;
  width: fit-content;
}

.menu--social-link {
  display: flex;
  padding: 1rem 0rem;
  justify-content: center;
}

.menu--social-link ul {
  display: flex;
  margin-left: 0;
  max-width: 400px;
  justify-content: space-around;
}

.menu--social-link ul li a {
  font-size: 0;
  width: 35px;
  margin: 7px;
  height: 35px;
}

/* LINKEDIN */
.menu--social-link ul li:nth-child(5) a { content: url("../../assets/icons/icon-footer-li.svg"); }
.menu--social-link ul li:nth-child(5) a:hover { content: url("../../assets/icons/icon-footer-li-active.svg"); }

/* TWITTER */
.menu--social-link ul li:nth-child(2) a { content: url("../../assets/icons/icon-footer-tw.svg"); }
.menu--social-link ul li:nth-child(2) a:hover { content: url("../../assets/icons/icon-footer-tw-active.svg"); }

/* INSTAGRAM */
.menu--social-link ul li:nth-child(4) a { content: url("../../assets/icons/icon-footer-in.svg"); }
.menu--social-link ul li:nth-child(4) a:hover { content: url("../../assets/icons/icon-footer-in-active.svg"); }

/* FLICKR */
.menu--social-link ul li:nth-child(6) a { content: url("../../assets/icons/icon-footer-flickr.svg"); }
.menu--social-link ul li:nth-child(6) a:hover { content: url("../../assets/icons/icon-footer-flickr-active.svg"); }

/* YOUTUBE */
.menu--social-link ul li:nth-child(3) a { content: url("../../assets/icons/icon-footer-yt.svg"); }
.menu--social-link ul li:nth-child(3) a:hover { content: url("../../assets/icons/icon-footer-yt-active.svg"); }

/* FACEBOOK */
.menu--social-link ul li:nth-child(1) a { content: url("../../assets/icons/icon-footer-fb.svg"); }
.menu--social-link ul li:nth-child(1) a:hover { content: url("../../assets/icons/icon-footer-fb-active.svg"); }


@media(min-width: 768px) {
  /* --------------- DONATE NEWSLETTER SECTION --------------- */
  #block-ictp-donate,
  #block-ictp-joinournewsletter {
    padding: 2rem 3rem 3rem;
  }

  /* input form */
  #block-ictp-joinournewsletter {
    display: flex;
    flex-direction: row;
  }

  /* text newsletter */
  #block-ictp-joinournewsletter p:nth-child(1) { width: 100%; }

  footer input,
  input[type=button] {
    max-width: none;
    font-size: 18px;
  }

  footer #block-ictp-joinournewsletter  input[type="button"] { max-width: 300px; }
}

.footer_1 .flogos {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer_1 .flogos a.anniversary {
  height: 60px;
  margin: .5rem 0;
}

.footer_1 .flogos img {
  height: 100%;
  object-fit: contain;
}

@media (min-width: 1024px) {
  footer p { font-size: 16px; }

  .footer_1 {
    flex-direction: row;
    display: flex;
  }

  footer img {
    margin: 0px auto;
    max-height: 130px;
    width: 100px;
  }

  .footer_1 > div { width: 50%; }
  .footer_1 > div:first-child img { 
    width: 100%; 
    object-fit: contain;
  }

  .footer_1 .flogos {
    display: flex;
    flex-direction: row;
    align-items: unset;
    gap: 1rem;
  }

  .footer_1 .flogos a.anniversary {
    width: 40%;
    padding: 0 2rem;
    margin: none;
    height: auto;
    border-left: 1px solid rgba(255,255,255,.3);
  }

  

  .footer--members { border-left: 1px solid #2f2f2f; }

  .footer--members h2,
  .footer--members p { text-align: right; }

  .footer--members h2 { font-size: 1.625rem; }
  .footer--members p { font-size: 14px; }

  .footer--members .footer--loghi {
    flex-direction: row;
    margin-right: 0;
    justify-content: flex-end;
  }
  .footer--members .footer--loghi img { margin-left: 4rem; }

  .region-footer-4,
  .region-footer-5 { display: block; }

  .region-footer-2 {
    flex-direction: row;
    justify-content: space-between;
    margin: 2rem 0rem 0rem 0rem;
    display: flex;
  }


  /* newsletter */
  .region-footer-2 > div:nth-child(1) { width: 60%; }

  /* donate */
  .region-footer-2 > div:nth-child(2) { width: 38%; }


  #block-ictp-donate button { max-width: 220px; }


  /* --------------- SITEMAP --------------- */
  .region-footer-4 {
    display: flex;
    flex-direction: row;
  }
  .region-footer-4 nav {
    padding-right: 40px;
    width: calc(100% / 6);
  }
  .region-footer-4 nav:last-child { padding-right: 0; }

  .region-footer-4 nav h2 {
    font-size: 16px;
    color: #FFF;
    font-weight: 600;
    line-height: 1.2rem;
    text-transform: uppercase;
  }

  .region-footer-4 nav li a {
    font-size: 14px;
    color: #CBCBCB;
    font-weight: 400;
    margin: 4px 0px;
    display: block;
  }
  .region-footer-4 nav li a:hover { text-decoration: underline; }
  .region-footer-4 nav li span { display: none; }
  .region-footer-4 ul li ul { display: none; }

  .region-footer-4 .menu {
    display: flex;
    margin: 0;
    flex-direction: column;
  }


  /* --------------- SEZIONI menu secondario --------------- */
  footer nav ul {
    display: flex;
    justify-content: space-between;
  }

  footer .region { padding: 2rem 0rem; }

  .region-footer-5 nav { display: block; }

  .region-footer-5 {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .region-footer-5>div {
    margin-top: 1rem;
    max-width: 200px;
  }

  .region-footer-5>div p {
    color: #CBCBCB;
    font-size: 14px;
    line-height: 1.7rem;
  }

  /* --------------- SEZIONI region-.region-footer-3 --------------- */
  .region-footer-3 { padding-top: 0; }

  .region-footer-3 .view-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .region-footer-3 .view-content .section {
    width: 16%;
    padding: 1rem;
  }

  .region-footer-3 a {
    padding: 80px 0px 0px;
    width: 100%;
    height: 140px;
    font-weight: 400;
    text-align: center;
    display: block;
  }

  .region-footer-3 span {
    display: block;
    width: 100%;
  }

  footer .section a:before {
    top: -26px;
    width: 80px;
    height: 80px;
    left: 50%;
    transform: translateX(-50%) scale(1.2);
  }


  /* --------------- MENU SECONDARIO --------------- */
  .menu--shortcuts { width: 650px; }

  .region-footer-5 ul.menu { margin-left: 0px; }

  .region-footer-5 a {
    position: relative;
    padding:7px 0px 7px 26px;
  }

  .region-footer-5 a:before {
    position: absolute;
    left: 0;
    top: 6px;
  }

  /* .region-footer-5 li:nth-child(1) a:before {
    content: url("../../assets/icons/icon-menu-profile.svg");
  }
  .region-footer-5 li:nth-child(2) a:before {
    content: url("../../assets/icons/icon-menu-library.svg");
  }
  .region-footer-5 li:nth-child(3) a:before {
    content: url("../../assets/icons/icon-menu-calendar.svg");
  }
  .region-footer-5 li:nth-child(4) a:before {
    content: url("../../assets/icons/icon-menu-news.svg");
  }
  .region-footer-5 li:nth-child(5) a:before {
    content: url("../../assets/icons/icon-menu-people.svg");
  }
  .region-footer-5 li:nth-child(6) a:before {
    content: url("../../assets/icons/icon-menu-campus.svg");
  }
  .region-footer-5 li:nth-child(7) a:before {
    content: '';
    background-image: url(/themes/custom/ictp/assets/icons/icon_mail_w.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 1.1rem;
    height: 1.1rem;
  } */

  /* .region-footer-5 li:not(.dashboard-menuitem):first-child a:before, */
  .region-footer-5 .dashboard-menuitem .dashboard-link:before,
  .region-footer-5 .login-menuitem .login-link:before 
    { content: url(../../assets/icons/icon-menu-profile.svg); }

  .region-footer-5 .dashboard-menuitem + li:not(.dashboard-menuitem) a:before,
  .region-footer-5 .login-menuitem + li:not(.dashboard-menuitem) a:before 
    { content: url(../../assets/icons/icon-menu-library.svg); }

  .region-footer-5 .shortcuts .dashboard-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before,
  .region-footer-5 .shortcuts .login-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before
    { content: url(../../assets/icons/icon-menu-calendar.svg); }

  .region-footer-5 .dashboard-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before,
  .region-footer-5 .login-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before 
    { content: url(../../assets/icons/icon-menu-news.svg); }

  .region-footer-5 .dashboard-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before,
  .region-footer-5 .login-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before 
    { content: url(../../assets/icons/icon-menu-people.svg); }

  .region-footer-5 .dashboard-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before,
  .region-footer-5 .login-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before 
    { content: url(../../assets/icons/icon-menu-campus.svg); }

  .region-footer-5 .dashboard-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before,
  .region-footer-5 .login-menuitem + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) + li:not(.dashboard-menuitem) a:before 
    { 
      content: '';
      background-image: url(/themes/custom/ictp/assets/icons/icon_mail_w.svg);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center center;
      width: 1.1rem;
      height: 1.1rem;
    }


  .region-footer-5  #block-ictpaddress a {
    padding-left: 0;
  }


  /* social e gdpr */
  .region-footer-6 { padding: 0rem; }

  .menu--social-link { border: 0px; }

  .region-footer-6 nav li {
    display: flex;
    justify-content: center;
    width: 25%;
  }

  .region-footer-6 {
    flex-direction: row;
    justify-content: space-between;
    display: flex;
  }

  .menu--gdpr-menu a,
  .menu--gdpr-menu span {
    padding: 10px 20px 10px 0px;
    text-align: left;
  }

  .menu--social-link ul li a { margin: 7px 10px; }
}



@media (min-width:1200px) {
  .region-footer-5 nav { display: block; }
  .region-footer-5 > div { max-width: none; }
  .region-footer-6 nav li { width: auto; }
}



@media (min-width:1300px) {
  footer img {
    margin: 0px auto 0px 0px;
    max-height: 160px;
  }

  .region-footer-2 { margin-top: 0; }

  .menu--gdpr-menu a,
  .menu--gdpr-menu span { padding: 10px 50px 10px 0px; }

  .region-footer-5 {
    flex-direction: row;
    padding: 1rem 0rem;
    position: relative;
  }

  .region-footer-5 nav {
    flex-direction: column;
    display: flex;
    justify-content: center;
  }

  .region-footer-5 a:before { top: 7px; }
  .region-footer-5 a { padding: 7px 0px 7px 25px; }

  .menu--shortcuts {
    min-width: 649px;
    max-width: none;
  }

  .region-footer-5::after{
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    display: block;
    width: 1px;
    height: 50px;
    content: "";
    background-color: var(--text_color);
     left: 65%;
  }

  .region-footer-5 > div {
    max-width: 320px;
    margin-top: 0rem;
    position: relative;
  }
  .region-footer-5 > div::before{
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    position: absolute;
    display: block;
    content: url("../../assets/icons/icon_pin_w.svg");
  }

  .region-footer-5 > div p { margin: 0rem; }
}



@media (min-width: 1400px) {
  .region-footer-5 a:before { top: 7px; }

  .region-footer-5 a { padding: 7px 0px 7px 25px; }

  .menu--shortcuts {
    min-width: 780px;
    max-width: none;
  }
}



@media (min-width: 1700px) {
  footer .container { max-width: 1380px; }
  .region-footer-5::after{ left: 64%; }
}
