/* --------------------------------------------------
 * Modern CSS Style Sheet for "I Dù dela Contrada"
 * Built with Vanilla CSS, CSS Grid, Flexbox, & Variables
 * -------------------------------------------------- */

/* --- CSS Variables & Design System --- */
:root {
    /* Colors */
    --bg-primary: #FAF8F5;
    --bg-secondary: #F4EFEB;
    --bg-dark: #1E1713;
    --bg-dark-card: #28201B;
    --text-primary: #2D241E;
    --text-secondary: #6B5B52;
    --text-light: #F4EFEB;
    --accent-gold: #C5A069;
    --accent-gold-hover: #A8834D;
    --accent-sage: #758672;
    --accent-sage-light: #EBF0EA;
    --border-color: rgba(45, 36, 30, 0.08);
    --border-color-light: rgba(244, 239, 235, 0.1);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Layout & Animation */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --shadow-subtle: 0 10px 40px rgba(45, 36, 30, 0.05);
    --shadow-medium: 0 15px 50px rgba(45, 36, 30, 0.12);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.35);
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    
    /* Section heights */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-hover);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Containers & Grids */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

/* --- Buttons & UI Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 105, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(244, 239, 235, 0.4);
}

.btn-secondary:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Section Header Decorators */
.section-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.section-title.text-left {
    text-align: left;
}

.decorative-line {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    color: var(--accent-gold);
}

.decorative-line.text-left {
    justify-content: flex-start;
}

.greca-svg {
    width: 100px;
    height: 12px;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Header state when page is scrolled */
.main-header.scrolled {
    height: 60px;
    background-color: rgba(30, 23, 19, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-link {
    display: none;
}

.header-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1); /* Forces logo to be white initially */
    transition: var(--transition-smooth);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(244, 239, 235, 0.8);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav-reserve {
    border: 1px solid var(--accent-gold);
    padding: 10px 20px !important;
    border-radius: var(--border-radius-sm);
    color: var(--accent-gold) !important;
}

.btn-nav-reserve::after {
    display: none;
}

.btn-nav-reserve:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark) !important;
}

/* Hamburger toggle menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger Active State */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomBg 20s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 23, 19, 0.4) 0%, rgba(30, 23, 19, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.2s ease-out;
}

.hero-logo-wrapper {
    margin-bottom: 24px;
}

.hero-logo {
    max-height: 240px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    color: rgba(244, 239, 235, 0.9);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: 40px;
    position: relative;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: var(--accent-gold);
}

.hero-subtitle::before {
    right: 100%;
    margin-right: 15px;
}

.hero-subtitle::after {
    left: 100%;
    margin-left: 15px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 28px;
    height: 28px;
}

/* --- Osteria Section --- */
.osteria-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.osteria-grid {
    grid-template-columns: 1fr 1fr;
}

.osteria-text-col {
    padding-right: 40px;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.osteria-img-col .image-wrapper {
    position: relative;
}

.osteria-img-col .image-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-gold);
    z-index: 1;
    border-radius: var(--border-radius-md);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.osteria-img-col:hover .image-wrapper::before {
    transform: translate(-8px, -8px);
}

.styled-img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Cucina Section --- */
.cucina-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.cucina-grid {
    grid-template-columns: 1fr 1fr;
}

/* Carousel/Slider Stlying */
.custom-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    height: 450px;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(30, 23, 19, 0.75);
    backdrop-filter: blur(8px);
    color: var(--text-light);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    border-left: 3px solid var(--accent-gold);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(244, 239, 235, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

.cucina-text-col {
    padding-left: 40px;
}

.cucina-cta {
    margin-top: 32px;
    padding: 24px;
    background-color: var(--accent-sage-light);
    border-left: 3px solid var(--accent-sage);
    border-radius: var(--border-radius-sm);
}

.cta-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-sage);
    margin-bottom: 16px;
}

/* --- Menu Preview Section --- */
.menu-preview-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 600px;
    margin: -20px auto 40px auto;
}

/* Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.tab-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tab-btn.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Tab Content animations */
.menu-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Menu Items Details */
.menu-item {
    background-color: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 105, 0.2);
    box-shadow: var(--shadow-subtle);
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.menu-item-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.menu-item-price {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.menu-item-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.menu-bottom-actions {
    text-align: center;
    margin-top: 60px;
}

/* --- Info & Prenotazioni Section --- */
.prenotazioni-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.prenotazioni-grid {
    grid-template-columns: 4.5fr 7.5fr;
    align-items: stretch;
}

.info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-block {
    margin-bottom: 40px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.hours-text {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.hours-time {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--accent-gold);
    font-weight: 400;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
}

.contact-link:hover {
    color: var(--accent-gold);
}

.contact-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.social-icon {
    width: 18px;
    height: 18px;
}

/* Booking Card (Form side) */
.booking-card {
    background-color: var(--bg-dark-card);
    color: var(--text-light);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color-light);
    position: relative;
    overflow: hidden;
}

.booking-card-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.booking-card-subtitle {
    font-size: 0.95rem;
    color: rgba(244, 239, 235, 0.6);
    margin-bottom: 32px;
}

.booking-form {
    transition: var(--transition-smooth);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: rgba(244, 239, 235, 0.8);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    background-color: rgba(244, 239, 235, 0.05);
    border: 1px solid rgba(244, 239, 235, 0.15);
    color: var(--text-light);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    outline: none;
}

/* Style Date Picker icon and Select Arrow */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAF8F5' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-gold);
    background-color: rgba(244, 239, 235, 0.08);
}

textarea {
    resize: vertical;
}

/* Radio Group (Inside/Outside/Any Seating Preference) */
.radio-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group .radio-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: rgba(244, 239, 235, 0.05);
    border: 1px solid rgba(244, 239, 235, 0.15);
    border-radius: var(--border-radius-sm);
    color: rgba(244, 239, 235, 0.8);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}

.radio-group .radio-label:hover {
    background-color: rgba(244, 239, 235, 0.08);
    border-color: rgba(244, 239, 235, 0.3);
}

.radio-group input[type="radio"]:checked + .radio-label {
    background-color: rgba(197, 160, 105, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.radio-group .radio-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.radio-group .radio-text {
    font-weight: 500;
}

/* Form Errors */
.error-msg {
    display: none;
    font-size: 0.75rem;
    color: #E85A5A;
    margin-top: 4px;
}

.form-group.invalid input,
.form-group.invalid select {
    border-color: #E85A5A;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Submit Button & States */
#submitBtn {
    margin-top: 12px;
    position: relative;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(30, 23, 19, 0.3);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

#submitBtn.loading .btn-text {
    visibility: hidden;
}

#submitBtn.loading .btn-loader {
    display: block;
}

/* Success screen styling */
.booking-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 0;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.booking-success.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.booking-success h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.booking-success p {
    color: rgba(244, 239, 235, 0.7);
    margin-bottom: 32px;
    font-size: 1rem;
    max-width: 320px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-area {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 105px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(244, 239, 235, 0.5);
    letter-spacing: 0.05em;
}

.footer-container h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.footer-links-area ul {
    list-style: none;
}

.footer-links-area li {
    margin-bottom: 12px;
}

.footer-links-area a {
    color: rgba(244, 239, 235, 0.6);
    font-size: 0.95rem;
}

.footer-links-area a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact-area p {
    color: rgba(244, 239, 235, 0.6);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-contact-area a {
    color: var(--accent-gold);
}

.footer-contact-area a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(244, 239, 235, 0.35);
}

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

@keyframes zoomBg {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Responsive Layout & Media Queries --- */

/* For screens under 992px (Tablets / Small Desktops) */
@media screen and (max-width: 992px) {
    .osteria-grid,
    .cucina-grid,
    .menu-items-grid,
    .prenotazioni-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .osteria-text-col,
    .cucina-text-col {
        padding-right: 0;
        padding-left: 0;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-logo-area {
        grid-column: span 2;
    }
}

/* For screens under 768px (Mobile Devices) */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    /* Navigation drawer for mobile */
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(30, 23, 19, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-link {
        font-size: 1.35rem;
        color: var(--text-light);
    }
    
    .btn-nav-reserve {
        width: auto;
        text-align: center;
        margin-top: 10px;
        padding: 12px 28px !important;
    }
    
    /* Hero scaling */
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.2em;
    }
    
    .hero-subtitle::before,
    .hero-subtitle::after {
        width: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 12px;
    }
    
    /* Image Wrappers */
    .styled-img {
        height: 280px;
    }
    
    .custom-slider {
        height: 320px;
    }
    
    /* Menu previews list */
    .menu-item {
        padding: 20px;
    }
    
    .menu-item-title {
        font-size: 1.2rem;
    }
    
    .menu-item-price {
        font-size: 1rem;
    }
    
    /* Forms fields size */
    .booking-card {
        padding: 32px 20px;
        border-radius: var(--border-radius-md);
    }
    
    .booking-card-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer columns stacked */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo-area {
        grid-column: span 1;
    }
}
