/* FONT E COLORI */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}

/* HERO */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../img/hero-acciaio.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin: 0;
    white-space: nowrap; /* Mantiene tutto su una riga */
}

.hero h1 .sub-title {
    font-size: 1.2rem; /* più piccolo */
    margin-left: 10px; /* piccolo spazio tra i testi */
    font-weight: normal;
}

.hero p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* SEZIONI */
section {
    padding: 3% 10%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TITOLI SEZIONI */
section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #1f3c88;
    margin-bottom: 15px;
}

/* LISTE */
ul {
    list-style: square;
    padding-left: 20px;
    margin: 10px 0;
}

ul li {
    margin: 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

ul li i {
    color: #1f3c88;
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Galleria immagini */
#foto-progetti .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#foto-progetti .img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

#foto-progetti .img-wrapper img.clickable {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#foto-progetti .img-wrapper img.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Overlay immagini */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#overlay.hidden {
    display: none;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1f3c88;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

#cookie-banner p {
    margin: 0;
}

#cookie-banner a {
    color: #ffdd57;
    text-decoration: underline;
}

#cookie-banner button {
    background: #ffdd57;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}