﻿body {
    background-color: #fff;
}

.corsi-page {
    background: url('sfondo.jpg') no-repeat center center;
    background-size: cover;
    padding: 40px;
}

.corsi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.corso-card {
    position: relative; /* serve per il contenitore */
    overflow: hidden; /* impedisce all'immagine di uscire */
    border-radius: 8px;
    padding: 5px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .corso-card img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 183px;
        border-radius: 8px 8px 0 0;
        transition: transform 0.3s ease;
    }

        .corso-card img:hover {
            transform: scale(1.05);
        }

.separatore-moderno {
    position: relative;
    height: 2px;
    background: #eee;
    margin: 20px 0;
}

    .separatore-moderno .linea {
        height: 2px;
        background: linear-gradient(to right, #3b82f6, #06b6d4); /* blu moderno */
        width: 100%;
    }

    .separatore-moderno .punto {
        position: absolute;
        top: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        background: #3b82f6;
        border-radius: 50%;
        box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
        animation: pulse 1.8s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1) translateX(-50%);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.4) translateX(-50%);
        opacity: 0.3;
    }

    100% {
        transform: scale(1) translateX(-50%);
        opacity: 0.9;
    }
}

.descrizione {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

.corso-box {
    position: relative;
    overflow: hidden;
}

    .corso-box img {
        display: block;
        width: 100%;
        height: auto;
    }

    .corso-box button {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.corso-box:hover .overlay {
    opacity: 0.7;
}

.corso-box:hover button {
    opacity: 1;
}

.accedi-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
}

.valutazione {
    font-size: 12px;
    color: #2419b7;
    cursor: pointer;
    text-decoration: none;
}

.caratteri {
    font-size: 12px;
}
