
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000000;
    scroll-behavior: smooth;
}

header {
    background: #148f01;
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span { 
    color: rgb(136, 255, 118); 
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active { 
    color: rgb(136, 255, 118); 
    font-weight: bold;
}

.logo-img {
    transition: transform 0.5s ease;
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.hero {
    background: url('copertina-due.jpg');
    background-size: cover;
    background-position: center;
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
}

.hero-content p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
}

.btn {
    background: #148f01;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn:hover { 
    background: rgb(136, 255, 118); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(20, 143, 1, 0.3);
}

.container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    background: rgb(136, 255, 118);
    height: 3px;
    width: 50px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-section {
    background: #f4f4f4;
    padding: 4rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item img:hover { 
    transform: scale(1.08); 
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

footer {
    background: #148f01;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.titolo-pagina {
    margin-top: 2rem;
    font-size: 2.5rem;
}

.Sottotitolo {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

.progetto-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.progetto-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    background: rgb(136, 255, 118);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.progetto-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.progetto-immagini img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.mini-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.separatore {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 4rem 0;
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-buttons {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    z-index: 99999 !important;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn img {
    width: 32px;
    height: 32px;
}

.whatsapp-btn {
    background-color: #25d366;
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #df3456 45%, #d62976 60%, #9025b5 90%);
}

.float-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

@media (max-width: 900px) {
    .progetto-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav { 
        flex-direction: column; 
    }
    nav ul { 
        margin-top: 1rem; 
    }
    .contact-wrapper { 
        grid-template-columns: 1fr; 
    }
    .hero-content h1 { 
        font-size: 2rem; 
    }
    .floating-buttons {
        bottom: 20px !important;
        right: 20px !important;
        gap: 10px !important;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
    .float-btn img {
        width: 26px;
        height: 26px;
    }
}

.works-grid-large {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Esattamente 2 colonne per riga */
    gap: 2.5rem;
}

.work-block-large {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.large-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.large-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.large-img-wrap img {
    width: 100%;
    height: 220px; /* Foto molto più grandi e ben visibili */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.large-img-wrap img:hover {
    transform: scale(1.04);
}

/* Etichette Prima / Dopo sopra le foto */
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: white;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.prima {
    background-color: #e74c3c; /* Rosso */
}

.badge.dopo {
    background-color: #148f01; /* Verde brand */
}

.work-block-large .work-text {
    margin-top: 1.2rem;
    text-align: center;
}

.work-block-large .work-text h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.4rem;
}

.work-block-large .work-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Responsive per smartphone: le 2 colonne diventano 1 sola colonna in verticale */
@media (max-width: 900px) {
    .works-grid-large {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .large-img-wrap img {
        height: 200px;
    }
}

.immagine-centrata {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

body.project-page {
    background-color: #f9fbf9;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.project-header {
    background-color: #2c3e50;
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.project-header .back-link {
    display: inline-block;
    color: #a3e4d7;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-header .back-link:hover {
    text-decoration: underline;
}

.project-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

.project-header .subtitle {
    font-size: 1.1rem;
    color: #bdc3c7;
}

.project-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.project-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
}

.project-section h2 {
    color: #148f01; /* Verde coordinato al tuo brand */
    border-bottom: 2px solid #eef2f3;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.project-section h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background: #fdfefe;
    border: 1px solid #e1e8e8;
    padding: 1.5rem;
    border-radius: 8px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.spec-item {
    background: #f7f9f9;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #148f01;
}

.spec-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

/* Tabella Costi */
.table-responsive {
    overflow-x: auto;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cost-table th, .cost-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8e8;
}

.cost-table th {
    background-color: #f2f4f4;
    color: #2c3e50;
}

.total-row {
    background-color: #e8f8f5;
    font-size: 1.1rem;
}

.project-footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: white;
    font-size: 0.9rem;
}

/* Responsive per smartphone */
@media (max-width: 768px) {
    .grid-2, .specs-grid {
        grid-template-columns: 1fr;
    }
}