/* ==========================================================================
   PAGINA NATURA - CSS COMPLETO (Layout 8 Polaroid Ordinato)
   ========================================================================== */

/* 1. Stile Base e Hero */
#nature-page #first-section .hero-overlay {
    background-color: rgba(0, 0, 0, 0.35);
}

#nature-page .letter-spacing-3 {
    letter-spacing: 3px;
}

#nature-page .short-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

/* 2. GRIGLIA POLAROID (Third Section) */

#nature-page #polaroid-container-full {
    display: grid;
    /* 4 colonne fisse per un ordine perfetto */
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px; 
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Stile Base Polaroid */
#nature-page .polaroid {
    padding: 10px 10px 45px 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    margin: 0;
}

/* Polaroid Grandi (2x2) */
#nature-page .polaroid.size-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Polaroid Medie (2x1) */
#nature-page .polaroid.size-medium {
    grid-column: span 2;
    grid-row: span 1;
}

/* Polaroid Piccole (1x1) */
#nature-page .polaroid.size-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Rotazioni leggere per naturalezza */
#nature-page .polaroid:nth-child(even) { transform: rotate(2deg); }
#nature-page .polaroid:nth-child(odd) { transform: rotate(-2deg); }

/* Effetto Hover */
#nature-page .polaroid:hover {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

/* Immagine interna */
#nature-page .polaroid-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f4f1ea;
}

#nature-page .polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. RESPONSIVE */
@media (max-width: 768px) {
    #nature-page #polaroid-container-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    /* Su mobile le polaroid tornano uguali per leggibilità */
    #nature-page .polaroid.size-large,
    #nature-page .polaroid.size-medium {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* 4. SEZIONE RISPETTO */
#nature-page #fourth-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}