/* --- RESET E BASI (Dallo stile originale) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f7f4; /* Lo sfondo esatto del tuo sito */
    color: #2d3436; /* Il colore del testo principale */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* --- BARRA DI NAVIGAZIONE --- */
.top-nav {
    width: 100%;
    padding: 40px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    flex-wrap: wrap;
}

.nav-container a {
    text-decoration: none;
    color: #1a2a6c; /* Il blu distintivo del tuo sito */
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: opacity 0.3s ease;
}

.nav-container a:hover { opacity: 0.5; }

/* --- HEADER --- */
.index-header {
    text-align: center;
    padding: 60px 20px;
}

.index-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 100;
    color: #1a2a6c;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.index-header p {
    color: #1a2a6c;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- GRIGLIA 10 COLONNE --- */
.index-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 immagini per riga */
    gap: 12px;
    padding: 20px 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.index-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 5px; /* Spessore della cornice */
    border-radius: 4px; /* Leggero arrotondamento come nei tuoi frame */
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.index-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 2px;
}

.index-item:hover {
    transform: scale(1.2);
    z-index: 100;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- 20 COLORI CORNICI (Estratti e completati dai tuoi p-1, p-2...) --- */
.c-1 { background-color: #FAD5A5; }
.c-2 { background-color: #F9E076; }
.c-3 { background-color: #D57169; }
.c-4 { background-color: #D4E09B; }
.c-5 { background-color: #FF8E8E; }
.c-6 { background-color: #A2D2FF; }
/* Colori aggiuntivi per arrivare a 20, mantenendo la tua palette pastello/vivace */
.c-7 { background-color: #BDE0FE; }
.c-8 { background-color: #FFC8DD; }
.c-9 { background-color: #CAFFBF; }
.c-10 { background-color: #FDFFB6; }
.c-11 { background-color: #FFD6A5; }
.c-12 { background-color: #FFADAD; }
.c-13 { background-color: #9BF6FF; }
.c-14 { background-color: #A0C4FF; }
.c-15 { background-color: #BDB2FF; }
.c-16 { background-color: #FFC6FF; }
.c-17 { background-color: #E2ECE9; }
.c-18 { background-color: #DFE7FD; }
.c-19 { background-color: #F0EFEB; }
.c-20 { background-color: #D6E2E9; }

/* --- FOOTER (Stesso stile del tuo originale) --- */
footer {
    padding: 80px 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;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1a2a6c;
    color: #fff;
}

footer p {
    color: #1a2a6c;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}



/* --- RESPONSIVE --- */
@media (max-width: 1400px) {
    .index-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
    .index-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .index-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- STILE BANNER COOKIE --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95); /* Nero quasi totale */
    color: #ffffff;
    padding: 15px 25px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    z-index: 10000; /* Lo tiene sopra a tutto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-top: 1px solid #333;
}

#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%;
    }
}