/* ==========================================
   RESET & VARIABLES
   ========================================== */
:root {
    --bg-cream: #FFFFFF;
    --bg-dark: #111111;              /* Nero profondo per le Cards */
    --bg-green: #5f6845;             /* Verde bosco solo per il Footer */
    --text-dark: #111111;
    --text-muted: #777777;
    --accent: #C3A36C;               /* Oro/Bronzo */
    --border: #E5E5E5;
    
    --font-serif: 'Playfair Display', Lora, Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.nav-left a,
.nav-right a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--accent);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    height: 90vh;
    display: flex;
    align-items: flex-end;
    padding: 5rem 3rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.9) 100%),
                url('img/foto2prova.jpeg') center/cover no-repeat;
}

.hero-content .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    max-width: 800px;
    color: #FFFFFF;
}

/* ==========================================
   SEZIONE EDITORIALE
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-editorial {
    padding: 7rem 0;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.sticky-title h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.lead {
    font-size: 1.35rem;
    font-family: var(--font-serif);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.text-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ==========================================
   SEZIONE SCURA (CARDS - NERO)
   ========================================== */
.section-dark {
    background-color: var(--bg-dark);
    color: #FFFFFF;
    padding: 7rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.card {
    border-top: 1px solid rgba(195, 163, 108, 0.3);
    padding-top: 1.5rem;
}

.card-num {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.5rem 0 1rem 0;
    color: #FFFFFF;
}

.card p {
    color: #CCCCCC;
    font-size: 0.95rem;
}

/* ==========================================
   FOOTER (VERDE - 2 COLONNE)
   ========================================== */
.footer {
    padding: 5rem 0 4rem 0;
    background-color: var(--bg-green);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: #D2DAD5;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer p {
    color: #D2DAD5;
    line-height: 1.8;
}

.footer-right .hours {
    margin-bottom: 2rem;
}

.copyright {
    color: #C0C8BF;
    font-size: 0.8rem;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent);
}

/* SOCIAL LINKS FIX */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s, transform 0.2s;
}

.social-links a span {
    display: inline-block;
    color: #FFFFFF;
    visibility: visible;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-links svg {
    stroke: #FFFFFF;
    flex-shrink: 0;
    transition: stroke 0.3s;
}

.social-links a:hover svg {
    stroke: var(--accent);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 1rem;
    }
    .nav-left, .nav-right {
        justify-content: center;
        gap: 1.2rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-right {
        text-align: left;
    }
}/* Stile per il link "Scopri il progetto" sotto al titolo */
.link-progetto {
    display: inline-block;
    margin-top: 0.8rem;
    font-family: var(--font-serif); /* Stesso carattere elegante dei titoli */
    font-size: 1.1rem;             /* Più piccolo del titolo h2 */
    color: var(--text-dark);
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.link-progetto:hover {
    color: var(--accent);          /* Diventa color oro al passaggio del mouse */
    transform: translateX(4px);   /* Piccola animazione verso destra */
}
/* ==========================================
   GALLERIA FOTO A SCHERMO INTERO (100% WIDE)
   ========================================== */
.photo-gallery-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 2rem 0 5rem 0; /* Ridotto lo spazio sopra da 5rem a 2rem */
    overflow: hidden;
}

.photo-gallery-grid {
    display: flex;
    width: 100vw;
    height: 520px; /* Altezza d'impatto */
    margin: 0;
    padding: 0;
    gap: 0; /* Nessuno spazio tra le foto */
}

.gallery-item {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Transizione fluida all'hover */
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Sfumatura scura sopra le foto (stile Hero) */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.25) 0%, rgba(17, 17, 17, 0.75) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Effetto al passaggio del mouse */
.gallery-item:hover {
    flex: 2.5; /* Espansione a fisarmonica */
}

.gallery-item:hover img {
    transform: scale(1.08); /* Zoom leggero */
}

.gallery-item:hover::after {
    opacity: 0.35; /* Si schiarisce al passaggio del mouse */
}

/* Adattamento Mobile */
@media (max-width: 768px) {
    .photo-gallery-grid {
        height: 600px;
        flex-direction: column;
    }
    
    .gallery-item:hover {
        flex: 1.8;
    }
}