@import url("https://fonts.googleapis.com/css?family=Allura&family=Libre+Caslon+Condensed:ital,wght@0,400..700;1,400..700&family=Montserrat:300,400,500,600,700,800|Open+Sans:400,600,700&family=Playfair+Display:ital,wght@0,300,400..900;1,400..900&display=swap");

/* ==========================================================================
   1. RESET E STILI BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #39001d;
    line-height: 1.6;
    background-color: #f4f7fb;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. BARRA DI NAVIGAZIONE (#NAVBAR)
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(57, 0, 29, 0.95) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo a {
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    transition: color 0.3s;
}

.nav-menu ul {
    display: flex;
    gap: 22px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.3px;
    padding-bottom: 3px;
    transition: color 0.3s, border-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom: 2px solid #ed5342;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-search button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s;
}

.nav-search button:hover {
    color: #ed5342;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #fff;
    transition: color 0.3s;
}

/* ==========================================================================
   3. ELEMENTI COMUNI DI TESTO / TESTATE
   ========================================================================== */
.section-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: #39001d;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(36px, 4.5cqw, 64px);
    font-family: 'Playfair Display', Georgia, serif;
    color: #39001d;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 15px;
}

.tratto {
    height: 2px;
    background-color: #39001d;
    max-width: 120px;
    margin-bottom: 20px;
}

/* ==========================================================================
   4. SEZIONE CONTATTI
   ========================================================================== */
.contact-section {
    padding: 80px 20px;
    background-color: #dadada;
    display: flex;
    justify-content: center;
}

.contact-card {
    background-color: #d1d0d0;
    padding: 60px 80px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 12px;
}

.contact-info h2 {
    font-size: clamp(32px, 4.5cqw, 45px);
    font-family: 'Playfair Display', Georgia, serif;
    color: #39001d;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.1;
}

.contact-buttons {
    display: flex;
    gap: 18px;
}

.contact-btn {
    width: 65px;
    height: 65px;
    background-color: #33061b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-btn:hover {
    background-color: #ed5342;
    transform: translateY(-3px);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #39001d;
    color: #dadada;
    padding: 35px 20px;
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #ffffff;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ed5342;
}

/* ==========================================================================
   6. MEDIA QUERIES COMUNI (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 15px 25px;
    }

    .contact-card {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    /* Menu Mobile */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #39001d;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
    }

    .nav-menu.active {
        max-height: 450px;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 16px;
    }

    .nav-menu a {
        color: #fff !important;
        font-size: 1.1rem;
    }

    /* Contatti e Footer Mobile */
    .contact-card {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}