/* =====================================================================
   CONSEGNALOO - STILE MODERNO
   Si carica DOPO il tema: arrotonda e ammorbidisce la grafica.
   Non cambia nessuna funzione. Per tornare alla grafica di prima
   basta togliere la riga <link ... moderno.css> dalle pagine.
   Per cambiare quanto sono tondi gli angoli modifica le 3 misure qui sotto.
   ===================================================================== */
:root {
    --r-grande: 22px;   /* riquadri, categorie, menu laterale */
    --r-medio: 14px;    /* foto dei piatti, campi, popup */
    --r-pulsante: 40px; /* pulsanti a pillola */
    --ombra: 0 10px 30px rgba(0,0,0,.08);
    --ombra-forte: 0 18px 45px rgba(0,0,0,.14);
}

/* ---------- PULSANTI: a pillola ---------- */
.btn,
.btn-outline-secondary, .btn-outline-secondary2, .btn-outline-secondary3,
.btn-primary, .btn-secondary {
    border-radius: var(--r-pulsante) !important;
    border-width: 1.5px !important;
    transition: all .2s ease !important;
}
.btn:before, .btn:after { border-radius: var(--r-pulsante) !important; }
.btn:hover { transform: translateY(-1px); }
.btn-scopri-dettaglio { padding-left: 1.1rem !important; padding-right: 1.1rem !important; }

/* Pulsanti MENU / MENU 2 / MENU 3 (telefono) un po' staccati tra loro */
.page-content .row.mobile .btn { margin-bottom: 6px; }
.page-content .row.mobile > div { padding: 0 3px; }

/* ---------- MENU CATEGORIE (riquadro scuro laterale) ---------- */
#menu-navigation .nav-menu {
    border-radius: var(--r-grande) !important;
    overflow: hidden;
    box-shadow: var(--ombra);
}
#menu-navigation .nav-menu + .nav-menu { margin-top: 10px !important; }
#menu-navigation .nav-menu.bg-white { border: 1px solid #e3e3e3 !important; }
#menu-navigation .nav-menu a { border-radius: 10px; transition: background .2s ease, padding .2s ease; }
#menu-navigation .nav-menu.bg-dark a:hover { background: rgba(255,255,255,.08); }

/* ---------- CATEGORIE DEL MENU: schede arrotondate con ombra ---------- */
.menu-category {
    border-radius: var(--r-grande);
    overflow: hidden;
    box-shadow: var(--ombra);
    margin-bottom: 2.2rem;
    background: #fff;
}
.menu-category-title { border-radius: var(--r-grande) var(--r-grande) 0 0; overflow: hidden; }
.menu-category-title .bg-image { border-radius: inherit; }
.menu-category-content {
    border: none !important;
    border-radius: 0 0 var(--r-grande) var(--r-grande);
}
/* legenda e chiama cameriere (senza testata) */
#legenda .menu-category-content, #cameriere .menu-category-content { border-radius: var(--r-grande); }

/* ---------- PIATTI ---------- */
.menu-grid-item img,
.immagine-prodotto-popup img {
    border-radius: var(--r-medio);
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.immagine-prodotto-popup { border-radius: var(--r-medio); }
.immagine-prodotto-popup:hover img { transform: scale(1.02); }
.menu-list-item { border-radius: var(--r-medio); }

/* ---------- POPUP (foto ingrandita, prodotto, login) ---------- */
.modal-content { border-radius: var(--r-grande) !important; overflow: hidden; border: none !important; box-shadow: var(--ombra-forte); }
.modal-header { border-radius: var(--r-grande) var(--r-grande) 0 0; }
#immagineProdotto .modal-content { box-shadow: none; overflow: visible; }
#immagineProdotto .immagine-prodotto-grande { border-radius: var(--r-grande) !important; }
.modal-btn { border-radius: 0 0 var(--r-grande) var(--r-grande) !important; }

/* ---------- CAMPI DEI MODULI ---------- */
.form-control, input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
    border-radius: var(--r-medio) !important;
}

/* ---------- PANNELLO HAMBURGER E CARRELLO ---------- */
#panel-mobile .module-social .btn { margin: 0 6px 8px 0; }
#panel-cart .panel-cart-container { border-radius: 0 0 0 var(--r-grande); }

/* ---------- ICONE CONTATTI (mappa, telefono, whatsapp, sito) ---------- */
.icon-social { box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: transform .2s ease; }
.icon-social:hover { transform: translateY(-2px); }

/* ---------- PIÈ DI PAGINA ---------- */
#footer { border-radius: var(--r-grande) var(--r-grande) 0 0; }

/* ---------- PAGINA VANTAGGI (vantaggio.php) ---------- */
.modulo { border-radius: var(--r-grande) !important; box-shadow: var(--ombra); }
.modulo button, .modulo input[type=email] { border-radius: var(--r-pulsante) !important; }
.modulo input[type=email] { padding-left: 22px !important; }
.messaggio { border-radius: var(--r-medio) !important; }

/* ---------- PAGINA NOVITÀ (offerta.php) ---------- */
.immagine-wrap { background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
.immagine-wrap img { border-radius: 22px !important; box-shadow: 0 14px 34px rgba(0,0,0,.14) !important; }

/* ---------- TESTATA (immagine grande in alto) ---------- */
.page-title { margin: 12px 12px 0; border-radius: var(--r-grande); overflow: hidden; }
.page-title .bg-image { border-radius: inherit; }

/* ---------- PC: menu laterale staccato dalle schede ---------- */
@media (min-width: 768px) {
    .page-content .col-md-3 { padding-right: 18px !important; }
    #menu-navigation .nav-menu { margin-right: 0; }
}

/* ---------- PC: riquadro del logo ("bandiera") in alto a sinistra ---------- */
#header .module-logo {
    border-radius: 0 0 var(--r-grande) var(--r-grande) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
/* il logo resta intero, come caricato (PNG trasparente): niente angoli tagliati */
#header .module-logo a, #header .module-logo img { border-radius: 0 !important; overflow: visible !important; }

/* ---------- ALLERGENI IN PILLOLE ---------- */
.allergeni-prodotto { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.all-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 2px; border-radius: 30px;
    background: #f4efe6; font-size: 11px; line-height: 1.5; color: #6b6e72; font-weight: 600; white-space: nowrap; max-width: 100%; }
.all-pill { white-space: normal; } /* un nome lungo va a capo invece di uscire dallo schermo */
.all-pill b { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: normal; flex: 0 0 auto; }

/* Griglia piatti: riquadri della stessa altezza, prezzo e pulsante sempre in fondo */
.row > [class*="col-"]:has(> .menu-grid-item) { display: flex; flex-direction: column; }
.row > [class*="col-"] > .menu-grid-item { display: flex; flex-direction: column; flex: 1 1 auto; }
.row > [class*="col-"] > .menu-grid-item > .row.mt-4 { margin-top: auto !important; padding-top: 14px; }
.row > [class*="col-"] > .menu-grid-item > .row.mt-2:last-child { margin-top: auto !important; }
.row > [class*="col-"] > .menu-grid-item > .row.mt-4 + .row.mt-2 { margin-top: 8px !important; }

/* ---------- RECENSIONE GOOGLE ---------- */
#recensione { max-width: none; margin: 0 0 2.2rem; border-radius: var(--r-grande); background: #fff;
    box-shadow: var(--ombra); padding: 26px 22px; text-align: center; }
#recensione .stelle { font-size: 30px; letter-spacing: 4px; color: #f2b33d; line-height: 1; }
#recensione h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 28px; margin: 10px 0 6px; color: #292b2e; }
#recensione p { color: #6b6e72; font-size: 15px; margin: 0 0 16px; }
#recensione a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 40px; background: #292b2e;
    color: #fff !important; font-weight: 700; text-decoration: none; font-size: 15px; }
#recensione a:hover { opacity: .9; }
#recensione a i { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285F4; font-style: normal;
    font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: Arial, sans-serif; }

/* ---------- SELETTORE LINGUA IT | EN (solo se attivo da admin) ---------- */
#selettore-lingua { position: fixed; top: 14px; right: 14px; z-index: 1001; display: flex; background: #fff;
    border-radius: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.15); padding: 3px; }
#selettore-lingua a { padding: 4px 10px; border-radius: 30px; font-size: 12px; font-weight: 700; color: #292b2e; letter-spacing: .5px; }
#selettore-lingua a.attiva { background: #292b2e; color: #fff; }
@media (max-width: 767px) { #selettore-lingua { top: 21px; right: 8px; padding: 2px; } #selettore-lingua a { padding: 3px 7px; font-size: 11px; } }
body:has(#header-mobile .module-cart) #selettore-lingua { right: 64px; }

/* ---------- RECENSIONI: due pulsanti (Google e messaggio privato al locale) ---------- */
#recensione .rec-pulsanti { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#recensione a.rec-privato { background: #6e3b5b !important; color: #fff !important; }
#recensione a.rec-privato b { font-weight: normal; margin-right: 8px; }
#recensione .rec-nota { font-size: 12px; color: #999; margin-top: 12px; }
@media (max-width: 600px) { #recensione .rec-pulsanti a { width: 100%; justify-content: center; } }

/* ---------- LEGENDA E COPERTO: testo su tutta la larghezza ---------- */
#legenda .col-sm-6 { flex: 0 0 100% !important; max-width: 100% !important; }

/* ---------- TITOLO E TESTO DEL MENU (riquadro bianco) ---------- */
.menu-intro { background: #fff; border-radius: 24px; box-shadow: 0 10px 28px rgba(39,43,46,.08); padding: 14px 18px 13px; margin: 4px 0 16px; text-align: center; }
.menu-intro-titolo { font-family: 'Oswald', Arial, sans-serif; font-weight: 500; font-size: 19px; letter-spacing: 2.2px; text-transform: uppercase; color: #272B2E; line-height: 1.2; }
.menu-intro-linea { width: 40px; height: 2px; background: #a8762f; margin: 7px auto 6px; }
.menu-intro-testo { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 18px; color: #5b5f63; line-height: 1.3; }
.menu-intro-titolo + .menu-intro-testo { margin-top: 6px; }
/* pulsante del menu aperto */
a.btn.btn-outline-secondary.menu-attivo { background: #272B2E !important; border-color: #272B2E !important; color: #fff !important; }
a.btn.btn-outline-secondary.menu-attivo span { color: #fff !important; }
