/* Reset di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fdfaf6;
}

header.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('immagini/tramonto.JPG') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffd700;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 15vh 10% 5vh;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: #c59d5f;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #b5894f;
}

.section {
    padding: 4rem 10%;
    text-align: center;
}

.light-bg {
    background-color: #f7f1e3;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.card p {
    padding: 0 1rem 1rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card:hover img {
    transform: scale(1.05);
}

.servizi-list {
    list-style: none;
    font-size: 1.2rem;
}

.servizi-list li {
    margin: 1rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.map-container {
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

footer {
    background-color: #222;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.lightbox {
    display: none; /* nascosta di default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
}

.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.close {
    top: 20px;
    right: 30px;
    font-size: 3rem;
    transform: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


.prev:hover, .next:hover, .close:hover {
    color: #bbb;
}

/* RESPONSIVE MIGLIORATO */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    .hero-content {
        padding: 10vh 5% 5vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cards, .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cards, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.7rem;
    }
}
