body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #fafafa;
    color: #222;
}

body {
    font-size: 16px;
}

header {
    text-align: center;
    padding: 40px 20px;
}

h1 {
    margin: 0;
}

h2 {
    margin-top: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    text-decoration: none;
    color: black;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 10px;
    margin: 0;
}

.card p {
    padding: 0 10px 10px;
    margin: 0;
    color: #666;
}

.category {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    font-size: 20px;
    font-weight: bold;
    background: #f0f0f0;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.category:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    filter: brightness(0.95);
}

.category:nth-child(1) { background: #f5f5f5; }
.category:nth-child(2) { background: #eeeeee; }
.category:nth-child(3) { background: #d0d0d0; }
.category:nth-child(4) { background: #dcdcdc; }

footer {
    text-align: center;
    padding: 40px;
    color: #888;
}

.full {
    width: 100%;
    margin: 30px 0;
    border-radius: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    cursor: pointer;
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

ul {
    background: #f5f5f5;
    padding: 15px;
    list-style: none;
}

ul li {
    margin: 5px 0;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 10px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.menu a:hover {
    text-decoration: underline;
}

.breadcrumb {
    font-size: 14px;
    margin: 10px 20px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.menu {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hero-header {
    height: 60vh;
    background: url('../img/home.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.overlay {
    background: rgba(0,0,0,0.4);
    padding: 20px;
}

main {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    line-height: 1.6;
}

section {
    margin-bottom: 60px;
}

.card img {
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}

.zone-header {
    height: 40vh;
    background: url('../../img/categorie.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.intro {
    font-size: 18px;
    margin-bottom: 30px;
}

.card-overlay {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    color: white;
    text-decoration: none;
}

.card-overlay img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-overlay:hover img {
    transform: scale(1.05);
}

.card-overlay .card-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.card-overlay h3 {
    margin: 0;
}

.card-overlay p {
    margin: 0;
    font-size: 14px;
}

.card-overlay {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-overlay img {
    transition: transform 0.3s;
}

.card-overlay:hover img {
    transform: scale(1.05);
}

.hero-img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 10px;
}

main p {
    margin-bottom: 20px;
}

h2 {
    margin-top: 40px;
}

@media (max-width: 600px) {

    body {
        font-size: 18px;
    }
	
	p {
        font-size: 18px;
    }

    main {
        padding: 15px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 18px;
    }

}

p {
    line-height: 1.7;
}

.gallery img {
    border-radius: 8px;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* Pulsanti */
.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Chiudi */
.close {
    top: 20px;
    right: 30px;
}

/* Freccia sinistra */
.prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Freccia destra */
.next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
