/* Adding root properties */
:root {
  --main-header: 70px;
  --main-header-bg: rgba(205, 204, 202, 0.85);
  --main-slider: 45em;
  --main-deib-color: #8db9cd;
  --main-polimi-color: #102c53;
  --main-polimi-lan: #2942DB;  
  --main-mobile-bg: white;
}
body {
  font-family: Manrope, "Open Sans", sans-serif;
  margin: 0px;
  touch-action: manipulation;
}

.oldmenuimg {
  opacity: 0.5;
  width: 100%;
  position: relative;
  margin-top: calc(-1 * var(--main-header));
  /* height: calc(10em + var(--main-header)); */
  height: calc(100px + var(--main-header));
}

.menu-space {
  height: 100px;
  position: relative;
}
#navbar-menu {
  bottom: 0px;
  position: absolute;
}

/* Header section */
.header {
  position: sticky;
  top: 0px;
  height: var(--main-header);
  background-color: var(--main-header-bg);
  z-index: 1000;
}
/* Header section left */
.header-section-left {
  height: 100%;
  width: 25%;
  display: flex;
  float: left;
  /* align-items: self-start; */
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.header-section-left-1 {
  height: 100%;
  width: 25%;
  display: flex;
  float: left;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* .white-banner {
  width: 100%;
  height: 70px;
  background-color: white;
  position: relative;
} */
.white-banner {
  position: sticky;
  top: calc(var(--main-header) * -1);
  margin-left: -3px;
  width: 100%;
  height: var(--main-header);
  background-color: white;
  z-index: 1000;
  /* max-width: 1170px;
  margin: 0 auto; */
}

.logo-header-padding {
  visibility: hidden;
}
.poli-logo-new {
  height: 75%;
  background-image: url("/img/logo_poli_new.png");
  margin-top: 0px;
}

.poli-logo {
  height: 40%;
  background-image: url("/img/logo_deib_new.png");
  margin-left: 0px;
}

.container-header {
  width: 1170px;
  margin: auto;
  position: relative;
  /* height: 100%; */
  height: var(--main-header);
}

/*
.deib-logo{
    height: 30%;
    background-image: url("/img/logo_deib.png");
    background-position: -6%;
}
*/
.div-logo-poli {
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
}

.div-logo {
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
  /* margin-left: 10px; */
}

/* Header section right */
.header-section-right {
  height: 100%;
  width: 75%;
  /* flex-direction: column;
  display: flex;
  justify-content: center;
  float: left; */
  float: right;
}

.header-section-right-1 {
  height: 100%;
  width: 75%;
  display: flex;
  /* flex-direction: column; */
  /* float: right; */
  align-items: center;
  justify-content: center;
  align-self: flex-end;
}

.div-header-section-right {
  float: right;
  width: 13%;
  height: 40%;
  margin: 1%;
}
.div-header-section-right-social {
  float: right;
  width: 20%;
  height: 40%;
  margin: 1%;
}
.container-section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.container-section-link {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.div-header-section-right.background-color-green {
  background-color: #267457;
}
.div-header-section-right.section-right-text {
  color: white;
  font-weight: 700;
  font-size: max(0.7vh, 0.7vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.div-header-section-right > .logo {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100%;
}

.div-social-footer {
  float: left;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
}

.dsg-link-header-page {
  background-size: 40% !important;
}

.community-link-header-page {
  background-size: 80% !important;
}

.school-link-header-page {
  background-size: 55% !important;
}

.people-link-header-page {
  background-size: 70% !important;
}

/* Language section */
.language {
  display: flex;
}
.language.mobile {
  display: none;
}
.language.desktop {
  display: initial;
}

.div-language {
  float: right;
  width: 30px;
  height: 30px;
  font-weight: 700;
  color: var(--main-polimi-color);
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  border-bottom: 2px solid transparent;
}

.selected-language {
  color: var(--main-polimi-lan) !important;
  border-bottom: 2px solid  var(--main-polimi-lan);
}

/* Social section */
.div-social {
  float: left;
  width: 33%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Utility */
.div-link {
  cursor: pointer;
}
.backgroundImageStyle {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.displayNone {
  display: none;
}
.displayBlock {
  display: block;
}

.align-items {
  display: flex;
  justify-content: center;
  align-items: space-between;
  flex-wrap: wrap;
}

/* @media all and (max-height: 500px) and (max-width: 767px) {
  .header {
    height: 20vh !important;
  }
} */

@media all and (max-width: 1200px) {
  .container-header {
    width: 970px;
  }
}

@media all and (max-width: 932px) {
  .container-header {
    width: 750px;
  }
}

/* Media settings */
@media all and (max-width: 1024px) {
  .div-header-section-right {
    width: 48%;
  }

  .div-header-section-right-social {
    width: 50%;
  }
}

@media all and (max-width: 767px) {
  #navbar-menu {
    position: relative;
  }
  /* Header section left */
  .language.mobile {
    display: flex;
    width: 100%;
    height: 20%;
    float: left;
    margin-left: 7%;
  }
  .language.desktop {
    display: none;
  }
  .header-section-left {
    min-width: 50%;
    width: 60%;
    height: 100%;
    display: flex;
    float: left;
    flex-direction: column;
    justify-content: center;
  }
  .div-logo-poli {
    width: 100%;
    float: left;
  }
  .div-logo {
    background-position: top;
  }
  .div-language {
    width: 20%;
    font-size: max(2vh, 1em);
    margin-left: 0px;
  }

  /* Header section right */
  .header-section-right {
    width: 100%;
    height: 80%;
  }
  .container-section {
    height: 45%;
    width: 100%;
    top: 5%;
    display: flex;
    /*flex-direction: row-reverse;*/
    align-items: center;
    margin-right: 10px;
  }
  .container-section-link {
    height: 100%;
    width: 100%;
    display: inline;
    position: relative;
    margin-top: 5px;
    z-index: 100;
    /* top: 5%; */
  }
  .div-header-section-right {
    float: left;
    font-size: max(1.7vh, 1vw) !important;
    height: 30%;
    /* width: 48%;
    height: 48%; */
  }
  /* .header {
    height: 15vh;
  } */
  /* .poli-logo {
    height: 75%;
    background-position-y: 0px;
  } */
  .deib-logo {
    background-position-x: -5vw;
    background-position-y: 0px;
  }
  .logo-header-padding {
    height: 35%;
    visibility: visible;
  }
  .lowNumberEvents {
    align-items: unset;
  }
  .logo-header-padding {
    display: none;
  }
  /* .container-header {
    width: 100%;
  } */
  .container-header {
    position: relative;
    height: var(--main-header);
    width: 100% !important;
    padding-left: 2%;
    padding-right: 2%;
    /*
		width: 1170px;
		#width: 100%;
		margin: auto;
		height: 100%;
	*/
  }

  .dsg-link-header-page {
    background-size: 30% !important;
  }

  .community-link-header-page {
    background-size: 70% !important;
  }

  .school-link-header-page {
    background-size: 45% !important;
  }

  .people-link-header-page {
    background-size: 60% !important;
  }
}

.container-lang {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
  align-self: center;
  margin-right: 5px;
}

.btn-intranet {
  background-color: var(--main-deib-color) !important;
  color: #0f2d53 !important;
  border-radius: 0px !important;
  border-color: #8db9cd !important;
  margin-left: 2%;
}

.divLowerLogo {
  background-position-x: 3% !important;
  margin-top: 3% !important;
}

@media all and (max-width: 1024px) {
  .header-section-right {
    width: 75%;
  }
}

ul {
  margin: 0;
  padding: 0;
}

@media (min-width: 767px) {
  .container {
    padding-right: 0px;
    padding-left: 0px;
  }
}

@media (min-width: 768px) {
  .container_width {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container_width {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container_width {
    width: 1170px;
  }
}

.content {
  min-height: 69.7% !important;
  z-index: 0;
}

.dropdown {
  width: 100%;
}

.dropdownhome {
  width: 30%;
}

.caret {
  color: var(--main-polimi-color);
  margin-left: 5px !important;
  border-top: 1px solid!important;
  border-left: 1px solid!important;
  border-right: 0px!important;
  padding-top: .35em;
  padding-left: .35em;
  transform: rotate(-135deg);
}

.dropdown-menu {
  position: absolute !important;
  clear: both;
  padding: 0px !important;
  z-index: 1000;
  display: none;
  float: right;
  width: fit-content !important;
  padding: 0;
  margin: 0;
  bottom: revert-layer !important;
  background-color: var(--main-header-bg) !important;
  color: var(--main-polimi-color) !important;
  text-align: right;
  list-style: none;
  border: 0px;
  border-radius: 0px;
}

.dropdown-menu > li > a {
  text-align: center;
  padding: 0px;
  white-space: normal;
  text-align: right;
  color: var(--main-polimi-color) !important;
  display: inline-block;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
  text-decoration: underline !important;
}

.dropdown-menu > .active > a:focus {
  background-color: var(--main-deib-color);
}

.nav > li > a:hover,
.nav > li > a:focus {
  text-decoration: underline !important;
}

@media (max-width: 767px) {
  .dropdown-menu {
    position: relative !important;
    /* display: block;
    float: right; */
  }

  .dropdown-menu > li > a {
    text-align: left !important;
  }
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
  color: var(--main-polimi-color) !important;
  background-color: var(--main-header-bg);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
  color: var(--main-polimi-color) !important;
  background-color: var(--main-header-bg);
}

.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  line-height: 1.42857143;
  text-align: right;
}

.dropdown-menu .dropdown-menu {
  display: none; /* Hide nested dropdowns by default */
}

.dropdown-menu .dropdown-menu .open .dropdown-menu {
  display: block !important; /* Show nested dropdowns when parent is open */
}

.navbar {
  position: relative;
  min-height: 0px;
  margin-bottom: 0px;
  border: 0px;
}

.navbar-collapse {
  position: absolute;
  padding-right: 0px;
  padding-left: 0px;
  margin-top: -2px;
  top: 100%; /* Change from bottom: 0px; */
  transform: translateX(-50%);
}

.navbar-default {
  /* background-color: var(--main-header-bg); */
}

.navbar-deib {
  position: absolute;
  top: calc(-1 * var(--main-header));
  transform: translateX(0%);
  margin-right: 0px !important;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.navbar-collapsing {
  bottom: revert-layer;
}

/* .navbar-collapse.in {
  overflow: visible;
  top: 100%; 
} */

@media (min-width: 800px) {
  .navbar {
    border-radius: 0px;
  }
  .navbar-header {
    float: left;
  }
  .navbar-collapse {
    width: 100%;
    margin-top: 0px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    z-index: 1000;
    width: fit-content;
    top: 100%; /* Change from bottom: revert-layer; */
    background-color: var(--main-header-bg);
    min-width: 200px;
    width: fit-content;
    block-size: fit-content;
  }
}

/* @media (max-width: 992px) {
  .navbar-default .navbar-nav > li > a {
    height: 40px;
  }
} */

.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
  max-height: 100%;
}

@media (max-width: 767px) {
  .navbar-middle {
    height: 80px;
  }
  .container-fluid > .navbar-collapse,
  .container-fluid > .navbar-header,
  .container > .navbar-collapse,
  .container > .navbar-header {
    margin-right: 0px;
    margin-left: 0px;
  }

  .navbar-default {
    display: inline !important;
  }

  .navbar-nav .open .dropdown-menu {
    display: contents;
  }

  /* first elemet in > li */
  .navbar-nav .open .dropdown-menu > li:first-child {
    border-top: 1px solid var(--main-polimi-color);
  }

  /* last elemet in > li */
  .navbar-nav .open .dropdown-menu > li:last-child {
    border-bottom: 1px solid var(--main-polimi-color);
  }

  .navbar-deib {
    position: relative;
    display: inline;
    top: 0px;
    width: 100%;
  }

  .container-fluid {
    padding: 0px !important;
  }

  .navbar-collapse {
    z-index: 1000;
    transform: none;
    margin-inline: 0px !important;
    min-height: 100vh;
    background-color: var(--main-header-bg);
    /* left: 5vw; */
  }
}

.navbar-toggle {
  border: none;
  width: 50px;
  height: 100%;
  background-color: transparent !important;
}

.navbar-toggle .icon-bar {
  vertical-align: middle;
  width: 46px;
  height: 4px;
  float: right;
  background-color: var(--main-polimi-color) !important;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 7px;
}

.navbar-nav {
  margin: 0px;
  margin-left: 0px;
}
.navbar-nav > li > a {
  line-height: 20px;
}

@media (min-width: 800px) {
  /* .navbar-nav {
    width: 100%;
    margin-left: 0;
  } */
  .navbar-nav > li > a {
    padding: 0px;
  }
}

.navbar-text a:hover {
  text-decoration: none;
}
.navbar-header {
  margin-right: auto;
  margin-left: auto;
  height: calc(0.9 * var(--main-header));
  line-height: calc(0.9 * var(--main-header));
  vertical-align: middle;
  width: 100%;
}

.navbar-logo {
  margin-top: 10px;
  height: 102px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.navbar-logo #logo_polimi {
  height: 67px;
}

.navbar-logo #logo_deib {
  height: 33px;
}

@media (max-width: 767px) {
  .navbar-default {
    left: 0;
    width: 100% !important;
  }
  .navbar-header {
    position: relative;
    top: calc(-1 * var(--main-header) + 10px);
    margin-top: 10px;
    z-index: 1000;
  }
  .navbar-logo {
    margin-top: 0px;
    float: left;
    padding-top: 0px;
    height: 80px;
    width: 60%;
    vertical-align: middle;
  }

  .navbar-logo #logo_polimi {
    margin-top: 5px;
    height: 47px;
  }

  .navbar-logo #logo_deib {
    height: 23px;
  }

  .navbar-logo img {
    vertical-align: middle;
  }

  .navbar-opacity {
    height: 80px;
  }
}

.navbar-left {
  float: left;
}
.navbar-right {
  float: right;
}

.navbar-right-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5%;
  text-align: center;
  float: right;
  height: 40%;
  width: 5%;
}

.navbar-default--old {
  height: 20%;
  display: flex;
  justify-content: left;
  position: absolute;
  bottom: 0px;
  left: 15%;
  width: 70%;
}
.navbar-default {
  height: 20%;
  display: flex;
  justify-content: right;
  position: absolute;
  bottom: 0px;
  width: inherit;
  /* left: 11%;
  right: 11%; */
}

.navbar-default .navbar-text {
  color: #fff;
}

.navbar-text {
  margin: 0px;
}

@media (min-width: 768px) {
  .navbar-default .navbar-nav > li {
    /* totale 1170 */
    /* width: 13%; */
    width: fit-content;
    padding-inline: 10px;
    /*  margin-right: 0.6%; */
  }
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: var(--main-polimi-color);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #4d4d4d;
  background-color: #e7e7e7;
}

.navbar-default .navbar-nav > li > a {
  color: var(--main-polimi-color);
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
  height: calc(0.9 * var(--main-header));
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: transparent 2px solid;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  text-decoration: none !important;
  color: var(--main-polimi-color) !important;
  background-color: transparent;
  border-bottom: var(--main-polimi-color) 2px solid !important;
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav > li > a:hover,
  .navbar-default .navbar-nav > li > a:focus {
    border-bottom: transparent 1px solid !important;
  }
  .navbar-default .navbar-nav > .active > a {
    color: #4d4d4d;
    background-color: rgba(242, 242, 242, 1);
  }

  .navbar-default .navbar-nav > li > a {
    text-align: right;
    color: var(--main-polimi-color);
    background-color: var(--main-mobile-bg);
  }

  .navbar-default .navbar-nav > li > a:hover,
  .navbar-default .navbar-nav > li > a:focus {
    background-color: var(--main-mobile-bg);
  }

  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: var(--main-polimi-color) !important;
    background-color: var(--main-mobile-bg);
  }

  .navbar-default .navbar-nav > .active > a:hover,
  .navbar-default .navbar-nav > .active > a:focus,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
    color: #4d4d4d;
    background-color: #e7e7e7;
  }

  .navbar-default .navbar-nav > li > a {
    padding-left: 15px;
    justify-content: flex-start;
    align-items: center;
    display: flex;
  }
}

.navbar-default .navbar-nav > li:last-child {
  margin-right: 0;
}

.indropdown-intranet {
  background-color: var(--main-deib-color) !important;
  justify-content: center !important;
}
.lang-mobile-menu {
  background-color: var(--main-mobile-bg);
}
.lang-mobile-mene-container {
  display: flex !important;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-left: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.div-language-mobile {
  float: left;
  text-align: center;
  width: 30px;
  height: 25px;
  font-weight: 700;
  color: #464648;
  display: block;
}

@media (min-width: 767px) and (max-width: 1000px) {
  .container-header {
    width: 99% !important;
  }

  .navbar-default .navbar-nav > li {
    padding-inline: 5px !important;
  }

  .navbar-default .navbar-nav > li > a {
    font-size: 14px;
  }
}

@media (min-width: 1000px) and (max-width: 1316px) {
  .container-header {
    width: 99% !important;
  }

  .navbar-default .navbar-nav > li {
    padding-inline: 5px !important;
  }
}

