/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #faf9f6;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

header.header {
    background: url('immagini/tramonto.JPG') center/cover no-repeat;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    padding: 1rem 3rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #f97316; /* arancione brillante */
}

.btn-prenota {
    background-color: #f97316;
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-prenota:hover {
    background-color: #c75b0c;
}

.header-content {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4); /* leggero sfondo trasparente per leggibilità */
    backdrop-filter: blur(3px); /* sfocatura dietro per effetto elegante */
    max-width: 90%;
    margin: 0 auto 3rem auto;
    padding: 1rem;
    border-radius: 15px;
}



.header-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Main content */
.main-content {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.description {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 3rem;
}

.description h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #f97316;
    margin-bottom: 1rem;
}

.description ul {
    list-style-type: disc;
    margin-left: 1.3rem;
    font-size: 1.1rem;
    color: #555;
}

/* Gallery */
.gallery h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #f97316;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1; /* quadrata */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Close button */
.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 1100;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f97316;
}

/* Navigation frecce lightbox */
.prev, .next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 0 15px;
    transition: color 0.3s ease;
    z-index: 1100;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.prev:hover, .next:hover {
    color: #f97316;
    background-color: rgba(0,0,0,0.6);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* Footer */
footer {
    background-color: #000000; /* nero */
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .header-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .header-content p {
        font-size: 1rem;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
	.header-content {
    padding: 0.5rem;
    margin: 0.5rem auto 2rem auto;
}

}


.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem; /* Aggiungiamo padding per gestire meglio su mobile */
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain; /* fondamentale per non sfasare l'immagine */
    border-radius: 10px;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem; /* titolo più piccolo su mobile */
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
        text-align: center;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .navbar .nav-links li {
        margin: 5px 0;
    }

    .cards, .gallery-grid {
        grid-template-columns: 1fr 1fr; /* solo 2 colonne su mobile */
        gap: 10px;
    }
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    /* nessun menu toggle visibile su desktop */
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: white;
    }
	.menu-toggle {
    display: block;
}
}
