
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #1C1C1E;
  color: #F4F4F4;
  line-height: 1.6;
}
.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121212;
  gap: 20px;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.arm-animation {
  width: 60px;
  height: auto;
  object-fit: contain;
}
.arm-animation.left {
  transform: scaleX(-1);
}
header {
  background: url("../assets/gym-header.jpg") center/cover no-repeat;
  height: 300px;
  padding: 40px 20px;
  text-align: center;
}
header h1 {
  font-size: 3rem;
  color: #ffffff;
}
header p {
  font-size: 1.2rem;
  color: rgb(221, 228, 222);
}
nav {
  background: #121212;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(120, 113, 113, 0.4);
}
.nav-left {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.nav-title {
    font-size: 24px;
    font-weight: bold;
    color: #9cd7ea;
    animation: pulse 2s infinite;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}
section h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
}
section p, li {
  margin-bottom: 10px;
  color: #d8d2d2;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1f1f1f;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1;
}
.dropdown-content a {
  color: #64EAB7;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64EAB7;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 10px;
  transition: background-color 0.3s;
}
.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1f1f1f;
  min-width: 160px;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1;
}
.dropdown-content a {
  color: #64EAB7;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #292929;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .arrow {
  transform: rotate(90deg);
}
.dropdown-content a:hover {
  background-color: #5f5c5c;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.card {
  background: #2A2A2D;
  border-left: 4px solid #64EAB7;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 0 10px rgba(204, 187, 187, 0.2);
}
footer {
  background: #121212;
  color: #888;
  text-align: center;
  padding: 30px 10px;
  margin-top: 40px;
}
.home-button {
  display: block;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #64EAB7;
  color: white;
  font-size: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}
.home-button:hover {
  background-color: #64EAB7;
}
.presentazione-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}
.presentazione-testo {
    flex: 4;
    min-width: 300px;
}
.presentazione-immagine {
  display: flex;
  flex-direction: column;    
  align-items: center;        
  gap: 20px;                 
  margin-top: 20px;
}
.presentazione-immagine img {
  max-width: 100%;             
  height: auto;
  border-radius: 8px;
}
.funzionalita-container {
    margin-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.funzionalita-container ul {
    list-style-type: disc;
    padding-left: 20px;
}
.funzionalita-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.separatore {
    width: 80%;
    margin: 40px auto;
    border: none;
    border-top: 4px solid #68cab0;
    border-radius: 4px;
    position: relative;
}
.separatore::after {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 12px;
    font-size: 22px;
}
.sviluppo-container {
    margin-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.sviluppo-container ul {
    list-style-type: disc;
    padding-left: 20px;
}
.sviluppo-container li {
    margin-left: 20px;
    padding-left: 20px;
}
#backend ul {
    margin-left: 20px;
    padding-left: 20px;
    list-style-type: disc;
}
#backend code {
    background-color: #0c0c0c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.backend-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}
.backend-testo {
    flex: 1;
    min-width: 300px;
}
.backend-immagine {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.backend-immagine img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.request-json {
    background-color: #111;
    color: #eee;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 10px 0;
}
.inline-ul ul {
    margin-top: 8px;
    margin-bottom: 12px;
    padding-left: 20px;
}
.training-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}
.training-testo {
    flex: 1;
    min-width: 300px;
}
.training-immagini {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.training-immagini img {
    max-width: 100%;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.inline-ul ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    list-style-position: inside;
}
.training-testo ul {
    margin-left: 20px;
    padding-left: 20px;
}
.frontend-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}
.frontend-testo {
    flex: 1;
    min-width: 300px;
}
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}
.team-card {
    background: linear-gradient(to bottom, rgb(80, 79, 79), #2b2a2a);
    border-radius: 16px;
    padding: 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}
.team-card:hover {
    transform: translateY(-6px);
}
.team-card h3 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
}
.team-card p {
    margin: 5px 0 15px;
    font-size: 14px;
    color: #f4f4f4;
}
.team-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.team-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0;
}
.team-contact img {
    width: 18px;
    height: 18px;
}
#team h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}
.team-contact a {
    text-decoration: none;
    font-size: 11.6px;
    color: #64EAB7;
    word-break: break-all;
}
#demo {
  text-align: center;
  padding: 50px 0;
}
.demo-box {
  width: 700px;
  height: 400px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}
.architettura-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.architettura-testo {
    flex: 1 1 50%;
    font-size: 1.05rem;
    line-height: 1.7;
}
.architettura-testo ul {
    margin-left: 20px;
    padding-left: 20px;
}
.architettura-immagine {
    flex: 1 1 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.architettura-immagine img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
.presentazione-testo ul {
    margin-left: 20px;
    padding-left: 20px;
}
@media (max-width: 768px) {
  .navbar {
    display: none;
  }
}
@media (max-width: 768px) {
  .presentazione-immagine {
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .presentazione-immagine img {
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .demo-box iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 9;
  }
  .demo-box {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {

  #funzionalita .funzionalita-container {
    width: 100%;
    text-align: left;
    margin: 0 auto;
    padding: 0 16px;
  }

  #gallery-image {
    max-width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  #usecase-gallery {
    width: 100% !important;
    max-width: 100% !important;
  }
}
