html {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    scroll-padding-top: var(--nav-h);
}

:root { --nav-h: 60px; }    

section[id], [id="about"] { 
  scroll-margin-top: var(--nav-h);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%); 
  display: flex;
  flex-direction: column;
  margin: 0;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
}

main.page-content { flex: 1; }

.container {
  max-width: 1400px;     
  margin: 0 auto;
}

.custom-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 0;
  background: rgba(10, 14, 39, 0.8);

}

/* Struttura interna navbar */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 16px; 
}

.logo img {
  display: block;
}

.logo-text {
 font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #afc4cf 30%, #6c4f8e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.navbar-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.navbar-menu li a:hover { opacity: .3; }

/* ========== FOOTER ========== */
.site-footer{
  margin-top: auto;
  padding: 1.5rem 0;
  background-color: #0b0f28; 
  color: #fff;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-text {
  margin: 0 !important;
}

/* ========== LOADING OVERLAY ========== */
#loading-screen{
  position: fixed; inset: 0;
  background-color: rgba(255,255,255,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loading-content{ text-align:center; font-size:20px; color:#333; }
.loader{
  width:48px;height:48px;border:5px solid #ccc;border-top-color:rgba(104,4,104,.59);
  border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.hidden{ display:none !important; }

.feature-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.feature-card p {
  color: #a5b4fc;
  line-height: 1.6;
}

.feature-card h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.feature-card span {
  color: #a5b4fc;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}