/* === RESET GENERALE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

body {
    background-color: #F5F3EE;
    color: #3E3E3E;
    scroll-behavior: smooth;
}

/* === FORZA DIMENSIONE TESTO GENERALE SEZIONI === */
.section, 
.section *, 
#contatti, 
#contatti *, 
.social-container, 
.social-container * {
    font-size: 1.6rem !important;
}

/* === NAVBAR === */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    left: 0;
    background: #7B2C2C;
    backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-img {
    height: 150px;
    width: auto;
}

/* MENU DESKTOP */
.menu {
    display: flex;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #ffffff;           
    font-weight: 700;         
    text-transform: uppercase;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 3px;
}

.menu a:hover {
    color: #C5A46D;
    border-bottom: 2px solid #C5A46D;
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* MENU MOBILE */
.menu.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* === SLIDER === */
.slider {
    margin-top: 140px; /* menu attaccato allo slider */
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
}

.slides {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade {
    animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* === BOTTONE SCARICA BROCHURE === */
.brochure-btn-container {
    text-align: center;
    margin: 30px 0 60px 0;
}

.brochure-btn-container .btn {
    font-size: 1.1rem;
    padding: 14px 30px;
}

/* === SEZIONI === */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
    line-height: 1.8;
}

.section h2 {
    font-size: 2rem;
    color: #7B2C2C;
    margin-bottom: 20px;
    position: relative;
}

.section h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #C5A46D;
    display: block;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.bg-light {
    background-color: #F0EEE9;
}

/* === ANIMAZIONE FADE-UP === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === CONTATTI === */
#contatti a {
    color: #7B2C2C;
    text-decoration: none;
    font-weight: 600;
}

#contatti a:hover {
    color: #C5A46D;
}

/* === MAPPA === */
.map {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* === BOTTONI === */
.btn, .contact-form button {
    display: inline-block;
    background-color: #7B2C2C;
    color: #C5A46D !important;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    min-width: 200px;
    transition: all 0.3s ease;
}

.btn:hover, .contact-form button:hover {
    background-color: #C5A46D;
    color: #7B2C2C !important;
    transform: translateY(-2px);
}

/* === FORM CONTATTI === */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 2px solid #7B2C2C;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #C5A46D;
}

/* === SOCIAL ICONS === */
.social-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.social-container img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-container img:hover {
    transform: scale(1.1);
}

/* === FOOTER IMMAGINE === */
footer {
    width: 100%;
    height: 300px;
    background: url('images/footer.png') no-repeat center center;
    background-size: cover;
    margin-top: 50px;
}

/* === GALLERY SEZIONI EVENTI/STRUTTURA === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .logo-img {
        height: 120px;
        margin-bottom: 10px;
    }

    /* attiva hamburger */
    .hamburger {
        display: flex;
    }

    /* nasconde il menu inizialmente */
    .menu {
        display: none;
        width: 100%;
    }

    /* mostra il menu quando attivo */
    .menu.active {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .menu ul {
        flex-direction: column;
        gap: 15px;
    }

    /* slider più basso */
    .slider {
        height: 400px;
        margin-top: 200px;
    }

    .section {
        padding: 60px 20px;
    }

    .social-container {
        flex-direction: column;
        gap: 30px;
    }

    .social-container img {
        width: 130px;
        height: 130px;
    }
}
