.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    overflow: hidden;
}

.hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* behind content */
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1; /* in front of canvas */
}


.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.hero .btn {
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero .btn:hover {
    background: #fff;
    color: #203a43;
    transform: scale(1.05);
}
.hero h1, .hero p, .hero .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.hero p {
    animation-delay: 0.3s;
}

.hero .btn {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0% { box-shadow: 0 0 10px #fff; }
    50% { box-shadow: 0 0 20px #fff; }
    100% { box-shadow: 0 0 10px #fff; }
  }

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif; /* pick your font */
}
body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}
body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main-nav a.disabled {
  pointer-events: none;   /* disattiva il clic */
  opacity: 0.4;           /* lo rende "off" */
  cursor: not-allowed;    /* cursore di divieto */
  color: #777 !important; /* colore spento */
}
