@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #0D1B2A;
    overflow-x: hidden;
    margin: 0;
}

.centrato {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cantiere-back{
    width: 100%;
    background-color: white;
    padding-top: 100px;
    flex-direction: column;
}
    .cantiere-box{
        max-width: 1000px;
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 30px;
        width: 80%;
    }
    .cantiere-box h2{
        width: 100%;
        font-weight: 500;
        font-size: 1.5rem;
        color: #005EE9;
        margin-left: 20px;
        text-align: center;
    }
    .cantiere-box p{
        width: 80%;
        font-size: 1rem;
        text-align: center;
        padding-bottom: 40px;
    }
    .cantiere-box-img{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 200px;
        background-color: #cf2e2e;
        overflow: hidden;
    }

    #back-progetti{
        color: #005EE9;
        font-size: 1rem;
        margin-top: -30px;
        margin-bottom: 40px;
    }
    #back-progetti:hover{
        color: #cf2e2e;
        transition: 0.3s ease;
    }
        /* Sovrascrittura per il contenitore della Slideshow */

.cantiere-box-img{
    /* Mantieni altezza, ma imposta posizione relativa per i pulsanti */
    position: relative; 
    height: 400px; /* Altezza maggiore per una visualizzazione migliore */
    background-color: #ffff;
}

/* Container principale della Slideshow */
.slideshow-container-js {
    max-width: 100%;
    position: relative;
    height: 100%;
    margin: auto;
}

/* Slide singola */
.mySlides {
    display: none; /* Inizialmente nascosta */
    height: 100%;
    width: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Adatta l'immagine coprendo l'area */
}


/* Pulsanti Prev/Next */
.prev-js, .next-js {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    user-select: none;
    background-color: #005EE9;
    z-index: 100; /* Assicura che i pulsanti siano sopra l'immagine */
}

.next-js {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev-js {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev-js:hover, .next-js:hover {
    background-color: #cf2e2e;
}

/* Contenitore per i puntini */
.dot-container {
    text-align: center;
    padding: 15px 0 15px 0;
    width: 80%;
}

/* I puntini indicatori */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.dot:hover {
    background-color: #cf2e2e;
    transition: background-color 0.6s ease;
}

/* Animazione di fade (dissolvenza) */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.progetti-table-container {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff; /* Sfondo bianco per staccare dal cantiere-back */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.progetti-table-container h2 {
    color: #0D1B2A;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.progetti-table-container table {
    width: 100%;
    border-collapse: collapse; /* Rimuove lo spazio tra le celle */
}
/* Intestazioni (thead) */
.progetti-table-container th {
    background-color: #005EE9; /* Il tuo colore primario blu */
    color: white;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.progetti-table-container td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #0D1B2A;
    text-align: center;
}

.progetti-table-container tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
.progetti-table-container tbody tr:hover {
    background-color: #e6f0ff; /* Leggero hover blu */
    transition: background-color 0.3s ease;
}
/* Rimuovi il bordo inferiore dall'ultima riga */
.progetti-table-container tbody tr:last-child td {
    border-bottom: none;
}