.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #f8f9fa;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Hero Section */
.hero-progetti {
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.85), rgba(30, 39, 56, 0.85)); /* Sfondo simile al hero-home */
    color: var(--text-color);
    padding: 80px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-gold-medium); /* Aggiunto bordo inferiore */
}

.hero-progetti::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(212,175,55,0.15)"/></svg>'); /* Pattern come nel secondo CSS */
    background-size: cover; /* Mantenuto cover */
    background-position: bottom;
    animation: float 6s ease-in-out infinite; /* Animazione float dal secondo CSS */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-progetti h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Ombra dal secondo CSS */
}

.hero-progetti p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-light); /* Colore testo leggero dal secondo CSS */
}

/* Filtri */
.projects-filters {
    background: rgba(15, 18, 25, 0.95); /* Simile al background di sections del secondo CSS */
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-gold-medium);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg); /* Sfondo simile alle card del secondo CSS */
    border: 2px solid var(--border-gold-light);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombra simile ai bottoni secondari */
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px); /* Effetto dal secondo CSS */
    box-shadow: var(--shadow-hover-gold);
}

.filter-btn.active {
    background: var(--gradient-gold); /* Sfondo gradiente oro */
    border-color: var(--accent-gold);
    color: var(--primary-bg); /* Testo scuro su sfondo oro */
    box-shadow: var(--shadow-hover-gold);
}

/* Gallery dei progetti */
.projects-gallery {
    padding: 4rem 0;
    background: var(--tertiary-bg); /* Sfondo scuro come il body */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-gold-light); /* Bordo leggero */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); /* Ombra più pronunciata come nei testimonial */
    border-color: var(--border-gold-medium); /* Bordo accentato all'hover */
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Gradiente più scuro */
    color: var(--text-color);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-info p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.project-category {
    background: var(--accent-gold); /* Colore accento oro */
    color: var(--primary-bg); /* Testo scuro */
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius-large);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); /* Ombra più scura */
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border-gold-medium); /* Bordo accento */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    background: var(--card-bg); /* Sfondo simile alla card */
    border-radius: var(--border-radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombra leggera */
    transition: var(--transition);
    border: 1px solid var(--border-gold-light); /* Bordo leggero */
}

.close-modal:hover {
    color: var(--accent-gold);
    transform: rotate(90deg) translateY(-3px); /* Effetto combinato */
    box-shadow: var(--shadow-hover-gold);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-gold-medium);
}

.modal-header h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold-light);
}

.main-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--accent-gold);
    transform: scale(1.05); /* Piccolo ingrandimento all'hover/active */
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-description h3,
.project-specs h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-gold); /* Linea oro */
    padding-bottom: 0.5rem;
}

.project-description p {
    line-height: 1.8;
    color: var(--text-light);
}

.project-specs ul {
    list-style: none;
    padding: 0;
}

.project-specs li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-gold-light);
    color: var(--text-light);
}

.project-specs li:last-child {
    border-bottom: none;
}

.project-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(40, 49, 66, 0.9); /* Sfondo più scuro per le info grid */
    padding: 1.5rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-gold-light);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-item strong {
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-progetti {
    background: linear-gradient(135deg, var(--secondary-bg), var(--tertiary-bg)); /* Gradiente scuro */
    color: var(--text-color);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-gold-medium); /* Bordo accento */
}

.cta-progetti h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-progetti p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-light);
}