body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  transition: color 0.3s ease;
}



.fade-in img {
  width: 70px;
  height: 70px !important;
  margin-right: 20px;
  animation: bounceLogo 3s infinite ease-in-out;
}

@keyframes bounceLogo {
  0%, 100% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.slide-up {
  opacity: 0;
  transform: translateY(0);
  animation: slideUp 0.8s ease-out forwards;
}



/* Animazioni */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Header */
.header {
  background-color: #111; /* più scuro */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #222;
  animation-delay: 0.2s;
 
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff9800;
  margin-left: 1rem; /* spacing from the left */
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}

.nav a {
  color: #ccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: #ff9800;
}

.nav a i {
  margin-right: 0.5rem;
}

/* Nascondi hamburger e sideMenu su schermi grandi */
.hamburger {
  display: none;
}

/* Tendina overlay */

.side-menu {
  background-color: #111;
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  padding: 2rem 1.5rem;
  box-shadow: -5px 0 15px rgba(0,0,0,0.7);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  color: #e5e5e5;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Mostra menu */
.side-menu.active {
  transform: translateX(0);
}

/* Pulsante X */
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
  padding: 0.25rem;
}

.close-btn:hover {
  color: #eab308;
}

/* Link nel menu */
.side-menu a {
  color: #ccc;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateX(20px);
  animation-fill-mode: forwards;
}

.side-menu a i {
  font-size: 1.2rem;
  color: #ff9800;
}

/* Animazione link (tenendo conto della X come primo elemento) */
.side-menu.active a:nth-child(2) {
  animation: slideFadeIn 0.35s 0.05s ease forwards;
}
.side-menu.active a:nth-child(3) {
  animation: slideFadeIn 0.35s 0.15s ease forwards;
}
.side-menu.active a:nth-child(4) {
  animation: slideFadeIn 0.35s 0.25s ease forwards;
}
.side-menu.active a:nth-child(5) {
  animation: slideFadeIn 0.35s 0.35s ease forwards;
}

/* Hover */
.side-menu a:hover {
  background-color: #ff9800;
  color: #0a0a0a;
}

/* Icone link */
.side-menu a i {
  font-size: 1.2rem;
  color: #ff9800;
}

/* Hover su link ? icona bianca */
.side-menu a:hover i {
  color: #fff;
}

/* Click/focus su link ? icona bianca */
.side-menu a:active i,
.side-menu a:focus i {
  color: #fff;
}


@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Hamburger button */
.hamburger {
  background: none;
  border: none;
  color: #ff9800;
  font-size: 1.8rem;
  cursor: pointer;
  display: none; 
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.hamburger:hover {
  color: #eab308;
}

/* Media query per mostrare hamburger e nascondere nav */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav {
    display: none;
  }
}




/* Hero Section */
.hero {
  text-align: left;
  padding: 1rem 1rem;
  background-color: #ff9500;
  animation-delay: 0.4s;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: -1.9rem;
  color: #fff; /* opzionale, se vuoi testo chiaro */
  padding: 0rem 5rem 0rem;
}

.hero p {
  max-width: none;           /* Nessun limite */
  white-space: nowrap;          /* Nessun a capo */
  overflow: hidden;             /* Nasconde testo che esce */
  text-overflow: ellipsis;      /* Aggiunge "..." se esce */
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  padding: 0rem 5rem 0rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  color: #555;
  border-top: 1px solid #222;
  background-color: #0a0a0a;
  animation-delay: 1s;
}



@keyframes slideInRight {
  from {
    transform: translateX(150%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.minimize-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: white;
}



#background {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0a0a0a;
  z-index: -10;
  transition: z-index 0.4s ease-out;
}

 /* WebKit scrollbar styles */
    ::-webkit-scrollbar {
      width: 12px;
    }
    ::-webkit-scrollbar-track {
      background: #ff9800;
    }
    ::-webkit-scrollbar-thumb {
      background-color: #ff9800;
      border-radius: 6px;
      border: 3px solid #ff9800;
    }
    ::-webkit-scrollbar-thumb:hover {
      background-color: #ff9800;
    }

    /* Firefox scrollbar styles */
    * {
      scrollbar-width: thin;
      scrollbar-color: #ff9800 #222;
    }





.card-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem;
  background-color: #0a0a0a;
}

.card {
  background-color: #181818;
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card:hover .card-title {
  color: #ff9800;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}


.card h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  text-align: center;
}

.card p {
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-btn {
  background-color: #ff9800;
  color: #0a0a0a;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
}

.card-btn:hover {
  background-color: #eab308;
}



.card-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}


.tag-blue {
  background-color: #007BFF;
  color: white;
}

.tag-red {
  background-color: #ff0000;
  color: white;
}

.tag-gray {
  background-color: #868686;
  color: white;
}

.tag-green {
  background-color: #00ff1a9e;
  color: white;
}

.learn-more {
  color: #ffa443;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  margin: 1rem 0 auto;
}


.learn-more:hover {
  color: #fec486;
}

.notification {
  position: relative;
  background-color: #222;
  color: #fff;
  padding: 1rem 1.5rem;
  border-left: 5px solid #ffa443;
  border-radius: 0.5rem;
  font-size: 1rem;
  max-width: 500px;
  margin: 1rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.notification-text {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.close-btn-1 {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn-1:hover {
  color: #ffa443;
}

.notifica {
  color: #ffa443;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.notifica:hover {
  color: #fec486;
}
@media (max-width: 500px) {
  .notification {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 2rem; 
  }

  .notification-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .close-btn-1 {
    top: 8px;
    right: 10px;
  }
}
