/* STILI SPECIFICI PER LA NUOVA HOME PAGE
------------------------------------ */

/* HERO SECTION */
.hero-section {
    background-color: var(--rosso-unipd);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

/* MODIFICA APPORTATA QUI */
.hero-logo {
    width: 450px; /* Usa 'width' per forzare la dimensione */
    margin-bottom: 10px;
}

.main-title {
    font-size: 3.2rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
}

.main-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}


/* SEZIONI */
.home-section {
    padding: 80px 0;
    text-align: center;
}

.home-section + .home-section {
    border-top: none;
    position: relative;
}

.home-section + .home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}


.home-section h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 50px;
}

/* SEZIONE ATTIVITÀ */
.attivita-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
}

.attivita-card {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attivita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.attivita-icon {
    font-size: 3rem;
    color: var(--rosso-unipd);
    margin-bottom: 20px;
}

.attivita-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.attivita-card p {
    margin-bottom: 30px;
    min-height: 80px;
}

/* SEZIONE CHI SIAMO / TEAM
------------------------------------ */
.chi-siamo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.chi-siamo-image {
    max-width: 150px;
    margin-bottom: 30px;
}

.chi-siamo-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.chi-siamo-container .button-group {
    justify-content: center;
}


/* RESPONSIVE PER LA NUOVA HOME
------------------------------------ */
@media (max-width: 991px) {
    .main-title { font-size: 2.4rem; }
    .main-subtitle { font-size: 1.2rem; }
    
    .attivita-grid {
        grid-template-columns: 1fr;
    }

    .attivita-card p {
        min-height: auto;
    }

    .chi-siamo-container .button-group {
        flex-direction: column;
        align-items: center;
    }

    .chi-siamo-container .button-group .btn {
        margin-bottom: 15px;
    }

    .chi-siamo-container .button-group .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .main-title { font-size: 2rem; }
    .main-subtitle { font-size: 1.1rem; }
}