/* --- IMPORTAZIONE FONT MONTSERRAT --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* --- VARIABILI GLOBALI --- */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333;
    --accent-color: #aa4444;
    --header-height: 70px;
    /* Qui impostiamo Montserrat come font principale */
    --font-main: 'Montserrat', sans-serif; 
    --card-radius: 16px; /* Variabile per l'arrotondamento */
}

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

body {
    font-family: var(--font-main); /* Applica Montserrat ovunque */
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-bottom: 50px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* --- TOPBAR --- */
header {
    position: sticky;
    top: 0;
    background: #fff;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600; /* Più spesso grazie a Montserrat */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- CAROSELLO --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: #ddd;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* --- SEZIONI --- */
.bio-section, .collections-section, .container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}
.bio-section { text-align: center; max-width: 800px; }
.section-title { text-align: center; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- CARD COLLEZIONI (ARROTONDATE) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collection-card {
    background: #fff;
    border: 1px solid #eee; /* Bordo sottile */
    border-radius: var(--card-radius); /* ARROTONDAMENTO */
    overflow: hidden; /* Fondamentale: taglia l'immagine che esce dai bordi */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image {
    height: 250px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.collection-card:hover .card-image img { transform: scale(1.05); }

.card-info { padding: 1.5rem; }
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 600; }
.card-desc { font-size: 0.9rem; color: #666; }

/* --- CARD SINGOLE OPERE (ARROTONDATE) --- */
.grid-opere { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.opera-item { 
    background: #fff; 
    border-radius: var(--card-radius); /* ARROTONDAMENTO */
    overflow: hidden; /* Taglia l'immagine */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.opera-item:hover { transform: translateY(-3px); }

.opera-info { padding: 1.5rem; text-align: center; }

/* --- FOOTER --- */
footer {
    background: #222; color: #fff; padding: 3rem 20px; text-align: center; margin-top: 4rem;
}

/* --- ELEMENTI GENERICI --- */
.back-btn { 
    display: inline-block; margin: 20px; padding: 10px 20px; 
    background: #333; color: #fff; border-radius: 50px; /* Bottone rotondo */
    font-size: 0.9rem; font-weight: 600;
}
.header-collezione { text-align: center; padding: 2rem 0 4rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-carousel { height: 40vh; }
    .grid-container { gap: 1rem; }
}