/* --- RESET E BASI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0f7f4; 
    color: #2d3436;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- BARRA DI NAVIGAZIONE --- */
.top-nav {
    width: 100%;
    padding: 40px 0;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    flex-wrap: wrap;
}

.nav-container a {
    text-decoration: none;
    color: #1a2a6c;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: opacity 0.3s ease;
}

.nav-container a:hover { opacity: 0.5; }

/* --- HEADER --- */
.header-invisible {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 100;
    letter-spacing: -5px;
    color: #1a2a6c;
    margin-bottom: 2.5rem;
}

.btn-explore {
    text-decoration: none;
    color: #1a2a6c;
    border: 1.5px solid #1a2a6c;
    padding: 15px 50px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: all 0.4s ease;
}

/* --- GRIGLIA GALLERIA (MODIFICATA PER UNIFORMITÀ) --- */
.gallery-grid {
    display: grid;
    /* Crea 3 colonne uguali */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    padding: 100px 8% 50px; 
    max-width: 1600px;
    margin: 0 auto;
}

/* Rende le immagini tutte della stessa dimensione */
.frame img {
    width: 100%;
    height: 350px; /* Altezza fissa per tutte le anteprime */
    object-fit: cover; /* Taglia l'immagine senza deformarla */
    display: block;
    border-radius: 2px;
}

/* Rimuoviamo gli offset manuali per avere tutto allineato */
.pos-top, .pos-high, .pos-offset, .pos-bottom-left, .pos-bottom-right {
    margin-top: 0 !important;
    grid-column: auto !important;
}

/* --- CONTENITORE PULSANTE (SOTTO LA GRIGLIA) --- */
.cta-container {
    grid-column: 1 / -1; /* Occupa tutta la larghezza della griglia */
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Spazio ridotto tra immagini e tasto */
    padding-bottom: 60px;
}

/* --- STILE CORNICE --- */
.frame {
    background-color: #000000 !important;
    padding: 4px; 
    border-style: solid;
    border-width: 15px; 
    border-radius: 10px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.frame:hover {
    transform: translateY(-10px);
}

/* Colori cornici */
.frame.p-1 { border-color: #FAD5A5 !important; }
.frame.p-2 { border-color: #F9E076 !important; }
.frame.p-3 { border-color: #D57169 !important; }
.frame.p-4 { border-color: #D4E09B !important; }
.frame.p-5 { border-color: #FF8E8E !important; }
.frame.p-6 { border-color: #A2D2FF !important; } /* Colore per Surreali */

.artwork-info {
    text-align: center;
    margin-top: 15px;
}

.artwork-info h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- PULSANTE CONTINUA --- */
.btn-continue {
    text-decoration: none;
    color: #1a2a6c;
    border: 1.5px solid #1a2a6c;
    padding: 18px 50px; 
    font-size: 1.1rem; 
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background-color: #1a2a6c;
    color: #fff;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    text-align: center;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid #1a2a6c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a2a6c;
    border-radius: 4px;
}



/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gallery-grid { 
        grid-template-columns: 1fr; 
        padding-top: 50px;
    }
    .frame img { height: 300px; }
}

/* --- STILE BANNER COOKIE --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* BLU TRASPARENTE: 0, 48, 143 è un blu classico, 0.8 è l'opacità */
    background: rgba(0, 48, 143, 0.8); 
    
    /* EFFETTO VETRO SFOCATO: rende lo sfondo sotto il banner "blurrato" */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Per compatibilità Safari */

    color: #ffffff;
    padding: 15px 25px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    
    /* BORDINO SUPERIORE: lo rendiamo leggermente chiaro invece che scuro (#333) */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#cookie-banner p {
    margin: 0;
    line-height: 1.4;
}

#cookie-banner button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1px;
    transition: background 0.3s;
    margin-left: 20px;
    white-space: nowrap; /* Evita che il testo del bottone vada a capo */
}

#cookie-banner button:hover {
    background: #cccccc;
}

/* OTTIMIZZAZIONE MOBILE */
@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    #cookie-banner button {
        margin-left: 0;
        width: 100%;
    }
}