/* FONTS */

@font-face {
  font-family: "IntegralCF-Medium";
  src: url("../fonts/Webfont/IntegralCF-Medium.woff") format("woff"),
    url("../fonts/OTF/IntegralCF-Medium.otf") format("opentype");
}

@font-face {
  font-family: "IntegralCF-Bold";
  src: url("../fonts/Webfont/IntegralCF-Bold.woff") format("woff"),
    url("../fonts/OTF/IntegralCF-Bold.otf") format("opentype");
}

@font-face {
  font-family: "IntegralCF-Regular";
  src: url("../fonts/Webfont/IntegralCF-Regular.woff") format("woff"),
    url("../fonts/OTF/IntegralCF-Regular.otf") format("opentype");
}

@font-face {
  font-family: "IntegralCF-Heavy";
  src: url("../fonts/Webfont/IntegralCF-Heavy.woff") format("woff"),
    url("../fonts/OTF/IntegralCF-Heavy.otf") format("opentype");
}

@import url("https://fonts.googleapis.com/css2?family=Scope+One&display=swap");

.body {
  overflow: hidden;
}

.h1 {
  font-size: 40px;
}

/* Stili per la navbar */
.navbar-container {
  position: fixed;
  top: 50%;
  right: 10px;
  width: 200px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  padding: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Allinea gli elementi nella parte superiore */
  align-items: flex-end;
  z-index: 2;
}

.navbar {
  background-color: rgba(0, 0, 0, 0);
  height: 60%;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  margin-right: 16px;
}

.navbar a {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 8px;
  font-family: "IntegralCF-Medium", sans-serif;
  font-size: 30px;
  color: rgba(51, 51, 51, 1);
  background-color: transparent;
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.navbar a.active-section {
  margin-top: 11px;
  margin-bottom: 5px;
  transition: transform 0.3s ease-in-out;
}

/* Stili per il logo */
.navbar-container img {
  width: 100%;
  height: auto;
  padding-top: 16px;
  padding-left: 16px;
  margin-bottom: 20px; /* Aggiungi margine sotto il logo */
}

.navbar-container .checkbox {
  display: none; /* Nascondi il checkbox */
}

.burger-menu {
  display: none; /* Hide the checkbox initially */
}

@media screen and (max-width: 768px) {
  .burger-menu {
    display: block; /* Show the checkbox on smaller screens */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.8;
  }

  .burger-menu:checked + .navbar-links {
    /* Style the navigation links when the menu is open */
    display: block;
  }
}

/* Hamburger menu lines styles */
.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  position: relative;
}

.line {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-bottom: 5px;
}

.burger-menu:checked .line1 {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu:checked .line2 {
  opacity: 0;
}

.burger-menu:checked .line3 {
  transform: translateY(-8px) rotate(-45deg);
}


.navbar-container .hamburger-lines {
  display: none; /* Nascondi le linee del burger */
}

/* Media query per schermi con larghezza massima di 1096px */

@media screen and (max-width: 764px) {
  .navbar-container {
    position: fixed;
    width: 85%;
    background-color: rgba(0, 0, 0, 0);
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    height: 0px;
    top: 5%;
    left: 3%;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* .navbar-links {
    display: none;
  } */
  .navbar-container .navbar-links {
    display: flex;
    transform: translate(+250%);
    transition: transform 0.5s ease-in-out;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 160%;
    background-color: white; /* Aggiungi il background bianco */
  }

  .navbar-container img {
    width: 20%; /* Modifica questa riga */
    padding-top: 35px;
    padding-left: 0;
    margin-bottom: 0;
  }

  .navbar-container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 10px;
    right: 10px;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
  }

  .navbar-container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .navbar-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .navbar-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .navbar-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .navbar-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .navbar-container input[type="checkbox"]:checked ~ .navbar-links {
    transform: translateX(0);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }

}

@media screen and (max-width: 768px) {

  .navbar-container img {
    width: 30%; /* Modifica questa riga */
    padding-top: 35px;
    padding-left: 0;
    margin-bottom: 0;
  }
}

/* Stili per le sezioni */
.section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.5s;
  max-height: 100%; /* Altezza massima della sezione */
  overflow-y: scroll
}

.section.home-section {
  background-color: #f9f9f9;
  z-index: 1;
}

.section.about-section {
  background-color: #eef9f0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section.project-section {
  background-color: #f0f0ff;
  z-index: 1;
}

.section.contact-section {
  background-color: rgb(250, 194, 194);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.section.hidden {
  transform: translateY(100%);
}

/* HOME SECTION */

.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  height: 100%;
  margin-left: 5%;
}

.home-title {
  font-family: "IntegralCF-Medium", sans-serif;
  width: 80%;
  display: flex;
  margin-top: 60px;
  justify-content: center;
}

.oncoming-event {
  width: 100%;
  /* border-style: dashed; */
  border-color: black;
  height: 70%;
  display: flex;
  justify-content: center;
}

.oncoming-event img {
  width: 80%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 764px) {
  .home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    margin-left: 0;
  }

  .oncoming-event {
    width: 95%;
  }

  .home-title {
    margin-top: 100px;
  }
}

/* ABOUT SECTION */

.about-title {
  display: flex;
  margin-left: 60px;
  margin-top: 60px;
  font-family: "IntegralCF-Regular", sans-serif;
}

.about-page {
  display: flex;
  flex-direction: row;
  height: 70%;
  width: 75%;
  margin-bottom: 80px;
  margin-left: 30px;
  justify-content: space-between;
}

.about-img {
  max-width: 60%;
  /* max-height: 10%; */
  border-color: black;
  /* border-style: groove; */
  margin-left: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 500px;
}

.about-descripton {
  width: 40%;
  border-color: black;
  /* border-style: dashed;   */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* justify-items: center; */
  font-family: "Scope One", serif;
}

.about-descripton p {
  font-size: 20px;
}

@media screen and (max-width: 764px) {

	.section.about-section {
		background-color: #eef9f0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
	}

	.about-page {
		display: flex;
		flex-direction: column;
		height: auto;
		width: 90%;
		margin-bottom: 0;
		margin-left: 0;
		align-items: center;
	}

	.about-descripton p {
		font-size: 25px!important;
	}

	.about-title {
		font-family: "IntegralCF-Medium", sans-serif;
		width: 100%;
		display: flex;
		margin-top: 100px;
		justify-content: center;
		margin-left: 0;
	}

	.about-img {
		height: 500px;
		max-width: 100%!important;
		min-width: 100%;
		margin-left: 0;
		margin-top: 16px;
		margin-bottom: 20%;
	}

  .about-descripton {
    width: 100%;
    border-color: black;
    /* border-style: dashed; */
    display: flex;
    justify-content: center;
    font-family: "Scope One", serif;
    margin-bottom: 20%;
  }
}

@media screen and (max-width: 768px) {

  .about-descripton a {
    font-size: 15px!important;
  }
}

/* PROJECT SECTION */

.project-title {
  display: flex;
  margin-left: 60px;
  margin-top: 60px;
  font-family: "IntegralCF-Regular", sans-serif;
}

.project-page {
  display: flex;
  height: 70%;
  width: 75%;
  margin-top: 15px;
  margin-left: 30px;
  justify-content: space-between;
}

.event {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 40%;
  justify-content: space-around;
}

.event img {
  width: 100%;
  max-width: 1000px;
  /* border-style: dashed; */
}

.event p {
  font-family: "IntegralCF-Regular", sans-serif;
  font-size: 20px;
  text-align: center;
}

@media screen and (max-width: 764px) {

	.project-title {
		font-family: "IntegralCF-Medium", sans-serif;
		width: 100%;
		display: flex;
		margin-top: 100px;
		justify-content: center;
		margin-left: 0;
	}

	.project-page {
		display: flex;
		height: auto;
		width: 100%;
		margin-top: 0;
		margin-left: 0;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
    margin-bottom: 15%;
	}

	.event {
		width: 90%;
    height: 500px;
		margin-top: 32px;
    height: auto;
    display: flex;
    flex-direction: column-reverse
	}
}

/* CONTACT SECTION */

.contact-title {
  display: flex;
  margin-left: 60px;
  margin-top: 60px;
  font-family: "IntegralCF-Regular", sans-serif;
}

.contact-page {
  height: 65%;
  width: 75%;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.contact-info {
  display: flex;
  flex-direction: row;
  /* border-style: dashed; */
  width: 45%;
}

.contact-sponsor {
  font-family: "IntegralCF-Medium", sans-serif;
  /* border-style: dashed; */
  width: 45%;
  display: flex;
  flex-direction: column; /* Mostra i loghi in una colonna */
  align-items: center; /* Centra i contenuti orizzontalmente */
}

.loghi-container {
  display: flex;
  flex-wrap: wrap; /* Fai sì che i loghi si avvolgano su più righe */
  justify-content: center; /* Centra i loghi orizzontalmente */
  align-items: center; /* Centra i loghi verticalmente */
}

.logo {
  max-width: 30%; /* Imposta la larghezza massima per adattare il logo al contenitore */
  max-height: 100px; /* Imposta l'altezza massima desiderata per il logo */
  margin: 10px; /* Aggiunge margine tra i loghi per separarli */
}

@media screen and (max-width: 764px) {

  .contact-title {
    font-family: "IntegralCF-Medium", sans-serif;
    width: 100%;
    display: flex;
    margin-top: 100px;
    justify-content: center;
    margin-left: 0;
  }

  .contact-page {
    height: auto;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 15%;
    align-items: center;
  }

  .contact-info {
    display: flex;
    flex-direction: row;
    /* border-style: dashed; */
    width: 90%;
    height: 500px;
  }

  .contact-sponsor {
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    /* border-style: dashed; */
    width: 90%;
    height: 500px;
    flex-direction: column; /* Cambia direzione in una colonna */
    align-items: center; /* Centra orizzontalmente */
    height: auto; /* Rimuovi altezza fissa */ 
  }
}

/* FOOTER */

.contact-footer {
  height: 90px;
  background-color: rgb(229, 229, 229);
  z-index: 1;
  position: relative;
}

/* NEWS BAR */

.news-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 120%;
  height: 40px;
  background-color: #000;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.news-bar p {
  margin-top: 10px;
  padding: 0 10px;
  font-size: 20px;
  font-family: "IntegralCF-Medium", sans-serif;
  position: absolute;
  animation: newsScroll 20s linear infinite;
  transform: translateX(
    100%
  ); /* Imposta il punto di partenza del testo oltre il bordo della barra */
  width: 100%;
}

@keyframes newsScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media screen and (max-width: 764px) {
	.scrollable-section {
		max-height: 100%; /* Imposta l'altezza massima desiderata */
		overflow-y: scroll;
	}
}
