/* Reset e stili di base - Mobile-first approach */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFCC00; /* Giallo */
    --secondary-color: #FF0000; /* Rosso */
    --dark-color: #000000; /* Nero */
    --light-color: #FFFFFF; /* Bianco */
    --gray-color: #F5F5F5;
    --dark-gray: #333333;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 50px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Header e Navigazione */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--light-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

.logo img {
    height: 45px;
}

/* Mobile Nav */
.nav-menu {
    position: fixed;
    left: -100%;
    top: 69px; /* Match header height */
    flex-direction: column;
    background-color: var(--light-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    list-style: none;
    z-index: 999;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin: 15px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    display: block;
    padding: 10px;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('kid_pasta.jpg');
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    width: 90%;
    max-width: 800px;
    padding: 0 15px;
}

.hero h1 {
    font-family: 'Italiana', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Italiana', serif;
}

.divider {
    height: 3px;
    width: 50px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Italiana', serif;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Menu Section */
.menu {
    background-color: #fff6d4;
}

.menu-intro {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 30px;
}

.menu-image {
    margin-bottom: 20px;
}

.menu-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.menu-text p {
    font-size: 1.1rem;
    font-style: italic;
}

.menu-category {
    margin-bottom: 30px;
}

.menu-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Italiana', serif;
    color: var(--secondary-color);
    text-align: center;
}

.menu-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-info {
    margin-bottom: 10px;
}

.item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.item-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.item-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    align-self: flex-end;
}

/* Eventi Section */
.events-calendar {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.events-calendar h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Italiana', serif;
    text-align: center;
}

.event-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-date {
    padding: 8px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    align-self: flex-start;
}

.event-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.event-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background-image: url('https://static.wixstatic.com/media/370b37_5cf049d965a249c9a20fe146ca1f8380~mv2.png/v1/fill/w_1905,h_370,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/370b37_5cf049d965a249c9a20fe146ca1f8380~mv2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-color);
    padding: 50px 0;
    position: relative;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-header h2, 
.contact .divider {
    color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.contact-info {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.info-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 25px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* MEDIA QUERIES - Tablet and Desktop */
@media (min-width: 768px) {
    /* Tipografia */
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    /* Navigazione */
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        background-color: transparent;
        width: auto;
        box-shadow: none;
        padding: 0;
        display: flex;
    }
    
    .nav-menu li {
        margin: 0 0 0 25px;
    }
    
    .nav-link {
        padding: 0;
        font-size: 0.95rem;
    }
    
    /* Sezione About */
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-text {
        flex: 1;
        padding-right: 30px;
    }
    
    .about-image {
        flex: 1;
    }
    
    /* Sezione Menu */
    .menu-intro {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .menu-image {
        flex: 1;
        margin-bottom: 0;
        margin-right: 30px;
    }
    
    .menu-text {
        flex: 1;
    }
    
    .menu-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .item-info {
        margin-bottom: 0;
    }
    
    /* Eventi Section */
    .event-card {
        flex-direction: row;
        align-items: center;
    }
    
    .event-date {
        margin-bottom: 0;
        margin-right: 20px;
        min-width: 80px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-logo {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 6rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .nav-menu li {
        margin-left: 30px;
    }
    
    .about-text h3, .menu-category h3, .events-calendar h3 {
        font-size: 1.8rem;
    }
    
    .menu-intro {
        margin-bottom: 50px;
    }
    
    .menu-image img {
        max-width: 400px;
    }
}
