/* STILI PAGINA PROTOCOLLO
------------------------------------ */

/* HERO SECTION */
.page-hero {
    padding: 60px 0;
    text-align: center;
    background-color: var(--rosso-unipd);
    color: var(--text-light);
}

.page-hero h1 {
    font-size: 3rem;
    margin: 0;
}

.page-hero .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* STRUTTURA A DUE COLONNE
------------------------------------ */
.protocollo-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Colonna destra più grande */
    gap: 50px;
    text-align: left;
}

/* COLONNA SINISTRA: INFO BOX */
.colonna-info .info-box {
    background-color: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 30px;
    position: sticky; /* Rende la guida "fluttuante" durante lo scroll */
    top: 120px;
}

.colonna-info .info-box h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--rosso-unipd);
}

.colonna-info .info-box p {
    margin-bottom: 25px;
}

.colonna-info .info-box .btn i {
    margin-right: 8px;
}

/* COLONNA DESTRA: MODULI */
.colonna-moduli h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--rosso-unipd);
    padding-bottom: 10px;
}

.intro-moduli {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

/* --- GRIGLIA MODULI --- */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una sola colonna a destra */
    gap: 30px;
}

.module-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.module-card h3 {
    font-size: 1.5rem; 
    margin: 0 0 5px 0;
    color: var(--rosso-unipd);
}

.module-card h4 {
    font-size: 1.1rem;    
    font-weight: 700;      
    color: #000;          
    margin: 0 0 15px 0;
    min-height: 1.5rem; 
}

.module-card p {
    font-size: 1rem;       
    color: #444;
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1; 
}

.module-card .btn {
    margin-top: auto; 
}

/* --- STILI PER MODULO 2 --- */
.tech-grid-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 15px;
}

.btn.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- STILI PASSWORD BOX --- */
#password-entry {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.password-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.password-icon {
    font-size: 2.5rem;
    color: var(--rosso-unipd);
    margin-bottom: 15px;
}

.password-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.password-box p {
    margin-bottom: 20px;
    color: #666;
}

#password-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1rem;
}

#password-input:focus {
    outline: none;
    border-color: var(--rosso-unipd);
}

.error-message {
    color: #d93025;
    margin-top: 10px;
    min-height: 1.2em;
}


/* RESPONSIVE DESIGN
------------------------------------ */
@media (max-width: 991px) {
    .protocollo-layout {
        grid-template-columns: 1fr; 
    }

    .colonna-info .info-box {
        position: static; 
        margin-bottom: 40px;
    }
}