*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    scroll-behavior:smooth;
}
body{
    font-family:"Segoe UI",Arial,sans-serif;
    font-size:18px;
    color:#2c3e50;
    padding-bottom:20px;
    background:
        linear-gradient(
        rgba(255,255,255,.94),
        rgba(255,255,255,.94)),
        url("img/background.jpg");
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}
.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:56px;
    background:#0d3b66;
    margin-bottom:0 !important;
    padding:4px 10px !important;
    box-shadow:
    0 2px 10px rgba(0,0,0,.25);
    z-index:9999;
}
.logo{
    position:absolute;
    left:25px;
    top:12px;
    font-size:30px;
    font-weight:bold;
    color:white;
    letter-spacing:1px;
}
nav{
    position:absolute;
    right:35px;
    top:15px;
}
nav ul{
    display:flex;
    gap:25px;
    list-style:none;
}
nav a{
    color:white;
    text-decoration:none;
    font-size:20px;
    font-weight:600;
    transition:.25s;
}
nav a:hover{
    color:#8fd3ff;
}
.main{
    margin-top:10px;
    margin-bottom:0 !important;
    max-width:1400px;
    margin-left:auto;
    margin-right:auto;
    padding: 0px 10px 25px 20px !important;
}
.hero{
    min-height:450px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:
    linear-gradient(
    rgba(0,0,0,.55),
    rgba(0,0,0,.55)),
    url("img/hero.jpg");
    background-size:cover;
    background-position:center;
    color:white;
}
.hero-overlay{
    max-width:900px;
    padding:30px;
}
.hero-overlay h1{
    font-size:3rem;
    margin-bottom:20px;
}
.hero-overlay p{
    font-size:1.2rem;
    line-height:1.6;
}
.hero-overlay .btn{
    margin-top:30px;
    background:#1E90FF;
    border:none;
    color:white;
    padding:12px 25px;
    font-size:18px;
    border-radius:8px;
    cursor:pointer;
}
/* Stile comune per tutte le sezioni per azzerare i vuoti */
.section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 20px 10px;
}
#section1{
    margin-top:0 !important;
    margin-bottom:0 !important;
    background:#9e9e9e;
    padding:0 10px !important;
}
/* Colore Sezione 2 (Grigio chiaro / Azzurro delicato) */
#sezione2 {
    background: #e0e0e0;
    color: #333;
    padding-top: 20px !important;
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
}

/* Colore Sezione 3 (Grigio scuro / Antracite) */
#sezione3 {
    background: #616161;
    color: #fff;
}
.section-title,
#sezione1 .section-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Stile base comune delle card (se non già presente) */
.card {
    padding: 0 5px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

/* 1. Sottosezione Demografia (es. tonalità azzurra/blu pastello) */
.card-demografia {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-left: 10px solid #2196f3;
    padding-bottom: 10px;
}

/* 2. Sottosezione Test Psicotecnici (es. tonalità verde/menta pastello) */
.card-test {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 10px solid #4caf50;
    padding-bottom: 10px;
}

/* 3. Sottosezione Varie (es. tonalità calda / arancio-pesca pastello) */
.card-varie {
    background-color: #fff3e0;
    color: #e65100;
    border-left: 10px solid #ff9800;
    padding-bottom: 10px;
}

/* Colore dei link interni alle card per renderli ben leggibili */
.card a {
    text-decoration: none;
    font-weight: bold;
}
.card-demografia a { color: #1565c0; }
.card-test a { color: #2e7d32; }
.card-varie a { color: #ef6c00; }
.cards{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));
    align-items:stretch;
    gap: 4px;
    margin-bottom:0 !important;
    padding-bottom: 0px !important;
}
.card:hover{
    transform:translateY(-5px);
    box-shadow:
    0 14px 28px rgba(0,0,0,.18);
}
.card h3{
    color:#0d3b66;
    margin:0;
    line-height:1.15;
    font-size:1.2rem;
}
.card p{
    margin:0;
    line-height:0.95;
    font-size:.95rem;
    padding-bottom: 10px;
}
.card a{
    display:block;
    margin:0;
    padding:0;
    line-height:1.2;
    color:#0066cc;
    text-decoration:none;
}
.card a:hover{
    text-decoration:underline;
}
#loginBox{
    display:none;
    width:400px;
    margin:auto;
    background:white;
    border-radius:15px;
    padding:30px;
    box-shadow:
    0 10px 30px rgba(0,0,0,.25);
}
#loginBox h3{
    text-align:center;
    color:#0d3b66;
    margin-bottom:20px;
}
#loginBox input{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    margin-bottom:12px;
    font-size:18px;
}
.password-wrapper{
    position:relative;
    width:100%;
}
.password-wrapper input{
    padding-right:50px;
}
.toggle-password{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    cursor:pointer;
}
.icon-eye{
    width:22px;
    height:22px;
    fill:#555;
}
.icon-eye-open{
    display:none;
}
.icon-eye-closed{
    display:inline;
}
button{
    background:#0d6efd;
    color:white;
    border:none;
    border-radius:8px;
    padding:10px 18px;
    cursor:pointer;
    font-size:18px;
}
button:hover{
    background:#0b5ed7;
}
.account-box{
    max-width:700px;
    margin:auto;
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:
    0 5px 15px rgba(0,0,0,.12);
}
.account-box h2{
    color:#0d3b66;
    margin-bottom:20px;
}
.account-box label{
    font-weight:bold;
}
.account-box input{
    width:100%;
    padding:10px;
    margin-top:5px;
    margin-bottom:15px;
}
.save-btn{
    width:100%;
}
.logout{
    display:block;
    text-align:center;
    margin-top:20px;
    color:red;
    font-weight:bold;
}
.descrizione{
    background:white;
    max-width:1000px;
    padding:25px;
    border-left:6px solid #0d6efd;
    border-radius:10px;
    box-shadow:
    0 3px 12px rgba(0,0,0,.10);
}
footer{
    margin-top:0 !important;
    background:#0d3b66;
    color:white;
    text-align:center;
    padding:12px 20px;
}
footer a{
    color:#8fd3ff;
    text-decoration:none;
}
footer a:hover{
    text-decoration:underline;
}
@media(max-width:900px){
    .logo{
        position:static;
        text-align:center;
        margin-top:8px;
    }
    nav{
        position:static;
        margin-top:8px;
        text-align:center;
    }
    nav ul{
        flex-direction:column;
        gap:10px;
    }
    .header{
        height:auto;
        padding-bottom:10px !important;
    }
    .main{
        margin-top:140px;
    }
    #loginBox{
        width:95%;
    }
}

