body {
    background: #f9fafb;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    height: 45vh;
    background-image: url("../img/HeroImgIndex.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    max-width: 800px;
    color: white;
    margin: 0;
    text-align: left;
}

#redText {
    margin-top: -15px;
    font-size: 34px;
    color: red;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

section {
    display: flex;
    gap: 30px;
}

.contenitore {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 500px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.contenitore:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #ef4444;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    text-align: left;
}

.testo-card p {
    margin: 0;
}

.btn-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #dc2626;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
    transition: 0.2s ease;
}

.btn-link:hover {
    background: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(185, 28, 28, 0.35);
}

.card-img img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

a {
    text-decoration: none;
}

footer {
    background: #ffffff;
    color: #6b7280;
    text-align: center;
    padding: 25px 15px;
    font-size: 0.85rem;
    border-top: 1px solid #e5e7eb;
}