@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'Ananda';
    src: url('fonts/Ananda-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Poppins', sans-serif; /* FONT MODERNO */
    line-height: 1.6;
    color: #fff;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #d4af37;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Ananda', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
}

.logo span {
    font-size: 1rem;
    color: #ccc;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #d4af37;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION MODIFICATA ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 2rem;
    background: #1a1a1a;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonne */
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px; /* Adattato per 2 immagini */
    padding: 0 2rem;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    aspect-ratio: 3 / 4;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

.hero-image:hover img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); /* Gradiente più marcato */
    color: white;
    padding: 1.5rem;
    text-align: center;
    transform: translateY(0); /* SEMPRE VISIBILE */
    transition: background 0.3s ease; /* Transizione solo per lo sfondo */
}

.hero-overlay h3 {
    font-family: 'Ananda', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #d4af37;
    margin-bottom: 1rem;
}

.gallery-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif; /* FONT MODERNO */
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-btn:hover {
    background: #d4af37;
    color: #1a1a1a;
}

/* Intro Section */
.intro-section {
    padding: 6rem 0;
    background: #1a1a1a;
}

.intro-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

.intro-text h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #d4af37;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.intro-text h2 {
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: #ccc;
    margin-bottom: 2rem;
}

.intro-description {
    font-size: 1rem; /* Leggermente ridotto per il nuovo font */
    line-height: 1.8;
    color: #fff;
    font-weight: 300; /* Più leggibile per Poppins */
}

.intro-description p {
    margin-bottom: 1.5rem;
}

/* Services Section */
.main-content {
    background: #1a1a1a;
}

.services {
    padding: 6rem 0;
}

.services .hero-images {
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #d4af37;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 3rem;
    font-style: italic;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border: 2px solid #d4af37;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: #fff;
}

.btn:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}


/* ===== STILI GALLERIA GRID ===== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
}

.gallery-modal.show {
    display: block;
}

.gallery-close {
    position: fixed; /* Fisso rispetto alla finestra */
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.gallery-close:hover {
    color: #d4af37;
}

.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 6rem 2rem 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-grid-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-grid-container img:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

/* ===== STILI ZOOM MODAL ===== */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 3000; /* Superiore alla galleria a griglia */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.zoom-modal.show {
    display: flex;
}

.zoom-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.zoom-close:hover {
    color: #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        height: auto;
        padding-top: 80px;
    }
    
    .hero-images {
        grid-template-columns: 1fr;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .intro-text h1 {
        font-size: 2rem;
    }
    
    .services {
        padding: 3rem 0;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
        justify-content: center;
    }

    nav {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}