/* ------------------------------------------
   Layout Styles – PVDE Website
------------------------------------------- */

/* Matrix canvas */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;  /* ERA -5 o 0: lo portiamo sopra il background ma sotto tutto il resto */
    pointer-events: none;
}



/* NAVBAR */
.pv-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(15px);
    background: rgba(13, 15, 23, 0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 2000;
}

.pv-nav-inner {
    max-width: 1300px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pv-nav-links a {
    color: #FFF;
    margin-left: 28px;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.pv-nav-links a:hover {
    color: #3F8CFF;
}

/* =======================================
   NAVBAR ACTIVE LINK
======================================= */

.pv-nav-links a.active {
    color: #8C4BFF;
    font-weight: 600;
    position: relative;
}

.pv-nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3F8CFF, #8C4BFF);
    border-radius: 3px;
}

/* CTA primarie e secondarie nella navbar */
.nav-cta-primary,
.nav-cta-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    margin-left: 10px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

/* CTA primaria – viola */
.nav-cta-primary {
    background: linear-gradient(45deg, #8C4BFF, #3F8CFF);
    color: #fff !important;
    border: none;
}

.nav-cta-primary:hover {
    filter: brightness(1.15);
}

/* CTA secondaria – bordo sottile */
.nav-cta-secondary {
    border: 1px solid rgba(140,75,255,0.4);
    color: #BDA9FF !important;
}

.nav-cta-secondary:hover {
    background: rgba(140,75,255,0.15);
}

/* Active link */
.pv-nav-links a.active {
    color: #8C4BFF;
    font-weight: 700;
}

/* Responsive (hamburger) */
@media (max-width: 900px) {
    .nav-cta-primary,
    .nav-cta-secondary {
        margin: 10px 0;
        width: 100%;
    }
}



/* FOOTER */
.pv-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: rgba(13, 15, 23, 0.85);
    border-top: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    z-index: 2000;
    color: #A7A7A7;
    font-size: 14px;
}


/* CONTAINER */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}


/* HERO */
.hero {
    padding: 160px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #A7A7A7;
    max-width: 700px;
    margin: 0 auto;
}


/* BUTTONS */
.btn-primary {
    display: inline-block;
    padding: 12px 26px;
    background: #3F8CFF;
    color: #FFF;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s;
}

.btn-primary:hover {
    background: #7AB3FF;
}


/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

@media (max-width: 900px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }
}
 

.area-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 25px;
    text-align: center;
}

.area-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.area-subtitle {
    opacity: .7;
    margin-bottom: 40px;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.area-card {
    padding: 40px 25px;
    text-decoration: none;
    color: white;
    border-radius: 14px;
    transition: .3s;
}

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

.area-card-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.area-card.disabled {
    opacity: .4;
    cursor: default;
}

@media(max-width: 900px) {
    .area-grid {
        grid-template-columns: 1fr;
    }
}
