:root {
    --rosso-pomodoro: hsla(5, 85%, 50%, 1);
    --verde-basilico: hsla(85, 60%, 40%, 1);
    --giallo-dorato: hsla(45, 90%, 60%, 1);
    --nero-carbone: hsla(0, 0%, 10%, 1);
    --bianco-puro: hsla(0, 0%, 100%, 1);
    --grigio-cenere: hsla(0, 0%, 20%, 0.8);
    --avorio: hsla(40, 30%, 95%, 1);
    --grigio-chiaro: hsla(30, 10%, 92%, 1);
}

/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--grigio-chiaro);
    color: var(--nero-carbone);
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    background-color: var(--nero-carbone);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--bianco-puro);
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s;
}

.navbar-brand:hover {
    color: var(--giallo-dorato);
}

.navbar-brand:hover img {
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--bianco-puro);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--giallo-dorato);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rosso-pomodoro);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--bianco-puro);
    font-size: 1.8rem;
    background: none;
    border: none;
}

/* Sezioni contenuto */
.content-section {
    display: none;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

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

/* Stile per le sezioni */
.contact-info, .location-info {
    background: var(--bianco-puro);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 1rem auto;
}

/* Form per pizze */
.pizza-form {
    background: var(--bianco-puro);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: var(--rosso-pomodoro);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: block;
    width: 100%;
}

.btn-submit:hover {
    background: var(--giallo-dorato);
}

/* Griglia pizze */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pizza-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pizza-card:hover {
    transform: translateY(-5px);
}

.pizza-image {
    height: 180px;
    overflow: hidden;
}

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

.pizza-info {
    padding: 15px;
}

.pizza-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--nero-carbone);
}

.pizza-price {
    color: var(--rosso-pomodoro);
    font-weight: bold;
    font-size: 1.2em;
    margin: 10px 0;
}

.pizza-desc {
    color: var(--grigio-cenere);
    margin-bottom: 1rem;
}

.pizza-ingredients {
    font-style: italic;
    color: var(--verde-basilico);
}

.no-pizzas {
    text-align: center;
    padding: 20px;
    color: var(--grigio-cenere);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nero-carbone);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

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