:root {
    --primario: #fe5722;
    --scuro: #272d36;
    --sfondo: #ffffff;
    --chiaro: #fff5f2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
}

body {
    background-color: var(--sfondo);
    color: var(--scuro);
    padding-top: 100px;
}

.transizione-schermo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primario);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.transizione-schermo.ritiro {
    transform: translateX(-100%);
}

.transizione-schermo.attiva {
    transform: translateX(0);
}

.sfondo-animato {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ffffff, #fff5f2, #ffe0d6, #ffffff);
    background-size: 400% 400%;
    animation: movimentoSfondo 15s ease infinite;
}

@keyframes movimentoSfondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.barra-ritorno {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 90%;
    max-width: 300px;
}

.link-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--scuro);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--chiaro);
}

.contenitore-menu {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

.titolo-sezione {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.titolo-sezione span {
    color: var(--primario);
    font-size: 16px;
    display: block;
    font-weight: 400;
}

.griglia-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.card-popolare {
    background: var(--scuro);
    color: white;
    padding: 40px 25px 30px;
    border-radius: 35px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.badge-popolare {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primario);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.card-popolare h3 { color: var(--primario); font-size: 24px; margin-bottom: 10px; }
.card-popolare p { font-size: 15px; opacity: 0.85; margin-bottom: 20px; line-height: 1.4; }
.prezzo { font-size: 26px; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }

.piatto-riga {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 80px 30px 30px 80px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.cerchio-foto {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primario);
}

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

.info-piatto { flex-grow: 1; overflow: hidden; }

.nome-prezzo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.nome-prezzo h3 { font-size: 19px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.costo { 
    font-weight: 700; 
    color: var(--primario); 
    font-size: 18px; 
    white-space: nowrap;
}

.costo small { font-size: 13px; font-weight: 400; opacity: 0.8; }

.info-piatto p { font-size: 14px; color: #666; line-height: 1.3; }

.sezione-vegana {
    margin-top: 60px;
    background: #f1f9f2;
    padding: 40px 20px;
    border-radius: 40px;
    border: 2px dashed #4caf50;
    margin-bottom: 40px;
}

.testa-vegana h2 { color: #2e7d32; font-size: 28px; text-align: center; margin-bottom: 30px; }

.griglia-vegana { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.card-vegana { background: white; padding: 25px; border-radius: 25px; }
.card-vegana h3 { color: #4caf50; font-size: 20px; }
.footer-vegan { display: flex; justify-content: space-between; margin-top: 15px; border-top: 1px solid #eee; padding-top: 10px; }

@media (max-width: 600px) {
    .titolo-sezione { font-size: 28px; }
    
    .piatto-riga {
        border-radius: 30px;
        padding: 12px;
        gap: 15px;
    }

    .cerchio-foto {
        width: 75px;
        height: 75px;
        min-width: 75px;
    }

    .nome-prezzo h3 { font-size: 17px; white-space: normal; }
    
    .nome-prezzo {
        flex-direction: row; 
        justify-content: space-between;
    }

    .costo { font-size: 16px; }
}