/* Stili generali */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}

/* Contenitori */
.menu-container, .container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #b2d8b2;
    color: #fff;
    padding: 10px;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* Pulsanti social */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.whatsapp-button {
    width: 150px;
    height: auto;
}

.preferiti-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.preferiti-button:hover {
    background-color: #0056b3;
}

/* Menu */
.menu-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    flex-wrap: wrap;
}

.pizza-image {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    flex-shrink: 0;
}

.menu-link {
    text-decoration: none;
    color: blue;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-word;
}

.price {
    font-weight: bold;
}

.menu-note {
    font-style: italic;
    color: gray;
    margin-top: 10px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Risultati */
.result-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.result-item label {
    font-weight: normal;
}

.result-item p {
    margin: 5px 0;
}

/* Layout grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 10px;
}

/* Cornici */
.cornice {
    border: 2px solid #ccc;
    padding: 10px;
    display: inline-block;
    border-radius: 5px;
}

/* Incipit */
.incipit-box {
    font-size: 12px;
    font-style: italic;
    color: #555;
    margin-top: 10px;
    padding: 8px;
    border-left: 3px solid #ff6347;
    background-color: #f9f9f9;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.incipit-box a {
    color: #ff6347;
    text-decoration: none;
}

.incipit-box a:hover {
    text-decoration: underline;
}

/* Video */
video {
    width: 100%;
    height: auto;
    display: block;
}

/* Allergeni */
.box-allergeni {
    border: 1px solid #eee;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.grid-allergeni {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.allergene {
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.allergene img {
    width: 50px;
    height: 50px;
}

/* Nuovo stile per la sezione finale */
.new-tracked-link {
    margin: 30px auto;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.new-tracked-link img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.new-tracked-link img:hover {
    transform: scale(1.03);
}

.order-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: #333;
}

.order-link::after {
    content: "Ordina al volo da casa con tracciamento";
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    color: #cc0000;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

/* === INIZIO NUOVO CSS - SOSTITUISCI TUTTO IL PRECEDENTE === */
.menu-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.pizza-image-container {
    position: relative;
    width: 120px;
    min-width: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.pizza-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s;
}

.pizza-image:hover {
    transform: scale(1.05);
}

.pizza-text-content {
    flex: 1;
    min-width: 0;
    padding-top: 5px;
}

.menu-link {
    text-decoration: none;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.menu-link b {
    font-size: 1.2em;
    color: #c00;
}

.price {
    float: right;
    font-weight: bold;
    color: #2a7f2f;
    font-size: 1.1em;
}

.pizza-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

.action-btn {
    padding: 6px 12px;
    background: #17a2b8;
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.action-btn:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pizza-ingredients {
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
    clear: both;
    padding-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .pizza-image-container {
        width: 100%;
        height: 180px;
    }
    
    .pizza-image {
        height: 180px;
    }
    
    .pizza-actions {
        bottom: 15px;
        right: 15px;
    }
    
    .menu-link b {
        font-size: 1.1em;
    }
    
    .pizza-ingredients {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .pizza-image-container {
        height: 150px;
    }
    
    .pizza-image {
        height: 150px;
    }
    
    .action-btn {
        padding: 5px 10px;
        font-size: 0.8em;
    }
}
/* === FINE NUOVO CSS === */

/* CONTAINER INGREDIENTI */
.ingredients-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* SINGOLO INGREDIENTE */
.ingredient-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.ingredient-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* IMMAGINE INGREDIENTE */
.ingredient-image-link {
    display: block;
    margin-right: 12px;
}

.ingredient-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* TESTO INGREDIENTE */
.ingredient-text {
    flex: 1;
}

.ingredient-name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}

.ingredient-name:hover {
    color: #c00;
}

.info-icon {
    font-size: 0.8em;
    opacity: 0.7;
}

.ingredient-note {
    display: block;
    font-size: 0.85em;
    color: #666;
}

/* COSTO FINALE */
.pizza-cost-box {
    text-align: center;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 14px;
}

.cost-label {
    color: #555;
}

.cost-value {
    font-weight: bold;
    color: #2a7f2f;
}

/* IMMAGINE PRINCIPALE PIZZA */
.pizza-main-image-container {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pizza-title {
    color: #c00;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.pizza-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.pizza-main-image:hover {
    transform: scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .ingredients-container {
        grid-template-columns: 1fr;
    }
    
    .pizza-main-image {
        max-width: 90%;
    }
}
