/* ===== Bartollini Moto Refined Light Theme ===== */
/* Unified neutral gray palette — no beige/orange accents */

/* === Base Layout === */
html,
body {
    margin: 0;
    padding-top: 90px;
    overflow-x: hidden;
    background-color: #f8f9fa;
    color: #333;
    transition:
        background-color 0.5s ease,
        color 0.5s ease;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

h1,
h2 {
    font-family:
        Biotif-Bold,
        Helvetica Neue,
        Helvetica,
        Arial,
        sans-serif;
    font-weight: 700;
    color: #222;
}

p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #444;
}

/* === Logo & Navbar === */
.logo-text {
    font-family: "Yanone Kaffeesatz", sans-serif;
    font-weight: 700;
    font-size: 3vh;
    margin-left: 7px;
    color: #333;
    transition: color 0.3s ease;
}

.navbar {
    background-color: #eaecee;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    /* Add these lines ↓ */
    padding-top: 2.8rem; /* increase top padding */
    padding-bottom: 2.8rem; /* increase bottom padding */
    min-height: 180px; /* ensure navbar stays tall */
}

.navbar.scrolled {
    background-color: #eaecee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 2vh;
    color: #333 !important;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.nav-link:hover {
    color: #555 !important;
    transform: translateY(-2px);
}

/* === Dropdown (blends with navbar ribbon) === */
.dropdown-menu {
    background-color: #eaecee !important; /* match navbar ribbon color (#a8d5ba if mint) */
    border: none !important;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 3px 8px;
    animation: fadeIn 0.4s ease;
    margin-top: 0;
    position: absolute;
    z-index: 2100;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Dropdown items */
.dropdown-item {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 0;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Hover & active states */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Make dropdown toggle feel connected with ribbon */
.nav-item.dropdown:hover .nav-link,
.nav-item.dropdown.show .nav-link {
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

/* Subtle top blend so it attaches perfectly to navbar */
.dropdown-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Responsive fix */
@media (max-width: 992px) {
    .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
    }
}

/* === Video Section === */
.openingvideo {
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
}

.openingvideo video {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 1s ease;
    pointer-events: none;
}

.openingvideo video:hover {
    transform: scale(1.02);
}

/* === Introduction === */
.introduction {
    padding: 4rem 2rem;
    margin: 3rem auto;
    background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Text */
.intro-text {
    flex: 1 1 500px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
}

.intro-p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    line-height: 1.9;
    color: #333;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

.intro-p:hover {
    color: #d8ac9c; /* matches navbar accent */
}

/* Image */
.intro-photos {
    flex: 1 1 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-img {
    width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.6s ease,
        box-shadow 0.6s ease;
}

.intro-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .introduction {
        flex-direction: column;
        padding: 3rem 1rem;
    }

    .intro-text,
    .intro-photos {
        flex: 1 1 100%;
    }

    .intro-p {
        font-size: 1.2rem;
    }

    .intro-img {
        width: 100%;
        margin-top: 1.5rem;
    }
}

/* === Storia === */
.container-storia {
    margin: 4rem 0;
    border-radius: 20px;
}

.storia-titolo {
    font-size: 2.5rem;
    color: #222;
    padding: 5% 10%;
}

.storia-storia {
    padding: 7% 10%;
    line-height: 1.6;
    color: #444;
}

/* ===== GALLERY SECTIONS ===== */

/* --- Homepage Gallery (index.html) --- */
#gallery {
    column-count: 4;
    column-gap: 20px;
    transition: all 0.5s ease;
}

#gallery img,
#gallery video {
    width: 100%;
    height: auto;
    margin: 4% auto;
    border-radius: 10px;
    box-shadow: -3px 5px 15px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

#gallery img:hover {
    transform: scale(1.03);
    box-shadow: -5px 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- Separate Gallery Page (gallery.html) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.4s ease,
        filter 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* === Noi & Contact Pages === */
.contact-form,
.noi-section {
    padding: 3rem 2rem;
    background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 4rem auto;
    max-width: 900px;
}

.contact-form input,
.contact-form textarea {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin-bottom: 1rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #555;
    box-shadow: 0 0 5px rgba(85, 85, 85, 0.3);
    outline: none;
}

button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* === Footer === */
.Footer {
    background-color: #d6d6d6; /* light granite stone */
    color: #222; /* dark text for contrast */
    padding: 3rem 1rem;
    text-align: left;
    animation: fadeIn 1.5s ease;
}

.footname {
    font-family: "Yanone Kaffeesatz", sans-serif;
    font-weight: 800;
    font-size: 6vh;
    color: #222;
}

.Footer a {
    color: #a06c5a; /* warm accent matching navbar ribbon */
    text-decoration: none;
    transition: color 0.3s ease;
}
.Footer a:hover {
    color: #000;
}

/* === Social Icons === */
.social-icon {
    margin: 12px 20px 0;
    font-size: 20px;
    color: #444;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.social-icon:hover {
    color: #000;
    transform: scale(1.2);
}

/* === Hero & Quote (Noi page) === */
.hero-noi {
    background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
    padding: 5rem 0;
}

.hero-noi h1 {
    color: #222;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-noi p {
    color: #444;
    font-size: 1.3rem;
}

.quote-section {
    background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
    color: #333;
    font-style: italic;
    font-size: 1.5rem;
    padding: 4rem 0;
}

/* === Contact Form Container === */
.contact-section .contact-form {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* === Keyframes === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Homepage Gallery === */
@media (max-width: 1200px) {
    #gallery {
        column-count: 3;
    }
}
@media (max-width: 800px) {
    #gallery {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    #gallery {
        column-count: 1;
    }
}

/* Remove the unwanted white space below the navbar */
.hero-noi {
    margin-top: 0 !important;
    padding-top: 40px; /* adjust to control how close text sits under navbar */
    background-color: #eaecee; /* same as navbar */
}

/* === Adjust Hero Sections Spacing Below Fixed Navbar === */
.hero-officina,
.hero-ricambi,
.gallery-hero {
    margin-top: 100px; /* equal to .navbar min-height */
    padding-top: 1.5rem; /* adds breathing room inside the section */
}

/* Optional: make it responsive for smaller screens */
@media (max-width: 768px) {
    .hero-officina,
    .hero-ricambi,
    .hero-gallery {
        margin-top: 150px;
        padding-top: 1.5rem;
    }
}