/* --- Fonts --- */
@font-face {
    font-family: 'Cabin';
    src: url('/style/fonts/Cabin-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('/style/fonts/Cabin-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('/style/fonts/Cabin-BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('/style/fonts/Cabin-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lovers Quarrel';
    src: url('/style/fonts/LoversQuarrel-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/* --- CSS Variables --- */
:root {
    --primary-color: #3e1005;
    --secondary-color: #252525;
    --text-color-light: #f4f4f4;
    --text-color-dark: #333;
    --background-color: #ffffff;
    --main-font: 'Cabin', sans-serif;
}

/* --- CSS Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    color: var(--text-color-dark);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

h1 {
    font-size: 3rem;
    margin-right: 0px;
    letter-spacing: .2em;
    font-family: Cabin, sans-serif;
    font-display: swap;
    font-weight: 400;
    color: #252525;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.03128;
}

h2 {
    font-size: 6rem;
    color: var(--primary-color);
    text-align: center;
    font-family: 'Lovers Quarrel', cursive;
    font-display: swap;
    font-weight: 400;
    margin-bottom: -2.5rem;
    margin-top: -2rem;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80%;
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.close-menu-btn {
    display: none;
}

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn-primary:hover {
    background-color: #5a1807;
    color: var(--text-color-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: #444;
    color: var(--text-color-light);
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    background: url('/img/hero/hero.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.5rem;
}

/* --- Content Sections --- */
.separator {
    margin-bottom: 1.2rem;
}
.content-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 1rem;
}

.text-content {
    flex: 1;
    text-align: center;
}

.gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery img {
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Specialties Section --- */
.specialties-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.specialties-list li {
    margin-bottom: 1.5rem;
}

.dish-header {
    display: flex;
    align-items: baseline;
}

.dish-header .dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 0.5rem;
    position: relative;
    bottom: 4px;
}

.dish-header .price {
    font-weight: 700;
    color: var(--primary-color);
}

.dish-description {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.25rem;
    padding-left: 1rem;
    text-align: left;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #f9f9f9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- Parallax Divider --- */
.parallax-divider {
    height: 350px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

#divider {
    background-image: url('/img/hero/muro-1200x469.webp');
}

#divider2 {
    background-image: url('/img/hero/campo_di_grano_esteso-1024x320.webp');
}

.divider-content {
    position: relative;
    z-index: 1;
}

.divider-content h1 {
    color: white;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 1.5rem 1rem;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { 
        line-height: 1.03128;
        font-size: 2rem;
}



    .mobile-nav-toggle {
        display: block; /* Show hamburger icon */
    }

    .main-nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        gap: 2rem;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .main-nav ul.active {
        transform: translateY(0);
        display: flex;
    }

    .close-menu-btn {
        display: none;
    }

    .main-nav ul.active .close-menu-btn {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .close-menu-btn button {
        background: none;
        border: none;
        color: var(--text-color-dark);
        font-size: 3rem;
        cursor: pointer;
    }
    
    .content-section {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }
}