/* ==========================================================================
   CSS GLOBALE - LUNGOLAGO 64
   ========================================================================== */

:root {
    --primary-color: #333;
    --bg-color: #f8f9fa;
}

html {
    /* Abilita lo scorrimento verticale fluido */
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 76px; /* Compensa lo spazio per l'header fisso */
    background-color: var(--bg-color);
}

/* ==========================================================================
   1. CARICAMENTO LOCALE DI MONTSERRAT (Zero Cookie / Privacy Compliant)
   ========================================================================== */
/* montserrat-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/montserrat-v31-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100;
  src: url('../fonts/montserrat-v31-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/montserrat-v31-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 200;
  src: url('../fonts/montserrat-v31-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/montserrat-v31-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/montserrat-v31-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/montserrat-v31-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/montserrat-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/montserrat-v31-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ==========================================================================
   2. FONT PRINCIPALE PER TUTTO IL SITO
   ========================================================================== */
body, h1, h2, h3, h4, h5, h6, p, ul, card-text {
    font-family: "Montserrat", Arial, sans-serif;
}

/* ==========================================================================
   3. ECCEZIONI: LOGO E MENU MANTENGONO GENEVA
   ========================================================================== */
.navbar-brand {
    font-family: "Geneva", Tahoma, Verdana, sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link,
.dropdown-menu .dropdown-item {
    font-family: "Geneva", Tahoma, Verdana, sans-serif;
}


/* Stile per il Logo nella Navbar */
.navbar-brand {
    font-family: "Geneva", Tahoma, Verdana, sans-serif;
    font-weight: bold; /* Opzionale: per renderlo bello marcato */
    letter-spacing: 1px; /* Opzionale: per dare un po' di respiro alle lettere */
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sottomenù a comparsa al passaggio del mouse (solo su schermi grandi) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* --- Struttura Layout --- */
main {
    flex: 1;
}

/* --- Footer --- */
footer {
    background-color: #f5f5f5;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6; /* Opzionale: aggiunge un delicato separatore superiore */
}

footer strong {
    color: #000; /* Rende il brand leggermente più marcato rispetto al testo normale */
}

footer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

footer a:hover {
    color: #000;
    text-decoration: none;
}


/* ==========================================================================
   CSS SPECIFICO - HOME PAGE
   ========================================================================== */

/* --- Carosello Testata --- */
#heroCarousel .carousel-item {
    height: 60vh; /* Altezza dello slider: 60% dell'altezza dello schermo */
    min-height: 400px;
    background-color: #000;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.8; /* Immagini leggermente scurite per un effetto più elegante */
}

/* --- Sezione Benvenuto --- */
.welcome-section {
    text-align: center;
    padding: 3rem 1rem;
}

.welcome-title {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.closing-day {
    display: inline-block;
    background-color: #dc3545; /* Rosso Bootstrap */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
}

/* --- Griglia Categorie Cibo (Sostituisce i vecchi mini-slider) --- */
.food-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.food-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay scuro per far leggere bene il testo */
    transition: background 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.food-card:hover::before {
    background: rgba(0, 0, 0, 0.2); /* Si schiarisce al passaggio del mouse */
}

.food-card h3 {
    position: relative;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    z-index: 1;
    margin: 0;
    text-align: center;
}

/* --- Sezione Alta Digeribilità (Effetto Parallasse Full Row) --- */
.digeribilita-box {
    background-image: url('../images/backgrounds/bg_blogpost.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 6rem 0; /* Più spazio verticale, zero spazio laterale */
    text-align: center;
    margin: 4rem 0; /* Distanza sopra e sotto */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.digeribilita-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
}

.digeribilita-content {
    position: relative;
    z-index: 1;
}

/* --- Box Obblighi Normativi --- */
.legal-box {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Modifica le icone precedentemente blu (text-primary) in un grigio elegante */
i.text-primary {
    color: #7c838a !important; /* Grigio medio-chiaro, molto elegante e visibile sia su bianco che su #f5f5f5 */
}

/* ==========================================================================
   BANNER ZERO COOKIE (Privacy Compliant)
   ========================================================================== */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Opacizzazione delicata del sito */
    backdrop-filter: blur(3px); /* Leggero effetto sfocato moderno */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.cookie-overlay.show .cookie-box {
    transform: scale(1);
}

.cookie-logo {
    font-family: "Geneva", Tahoma, Verdana, sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.cookie-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.cookie-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookie-btn:hover {
    background-color: #000;
}

.cookie-btn:active {
    transform: scale(0.98);
}

/* Blocca lo scroll del body quando il banner è attivo */
body.cookie-open {
    overflow: hidden;
}


/* ==========================================================================
   PERSONALIZZAZIONE STATI ATTIVI / FOCUS MENÙ (Rimozione flash blu)
   ========================================================================== */

/* Cambia lo sfondo delle voci del menu a tendina quando cliccate o attive */
.dropdown-menu .dropdown-item:active, 
.dropdown-menu .dropdown-item.active {
    background-color: #f0f0f0 !important; /* Grigio molto tenue */
    color: var(--primary-color) !important; /* Mantiene il testo scuro anziché bianco */
}

/* Rimuove l'alone o il flash blu sui link e bottoni della navbar al click */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.dropdown-item:focus {
    background-color: #f5f5f5; /* Grigio chiaro delicato */
    color: #000 !important;
    outline: none;
    box-shadow: none !important; /* Elimina l'eventuale ombra blu di Bootstrap */
}

/* Rimuove il flash blu di selezione nativo sui dispositivi Mobile (Chrome/Safari su iOS/Android) */
.navbar-brand,
.nav-link,
.dropdown-item,
.cookie-btn {
    -webkit-tap-highlight-color: rgba(220, 220, 220, 0.3) !important; /* Sostituisce il blu mobile con un grigio trasparente */
}

/* ==========================================================================
   SELETTORE DELLA LINGUA (IT | EN)
   ========================================================================== */

/* Crea il contenitore arrotondato per le lingue */
.navbar .d-flex.align-items-center.border-start {
    border-start: none !important; /* Rimuove la vecchia linea verticale dritta se preferisci */
    background-color: #f5f5f5; /* Sfondo grigio molto tenue di base */
    padding: 4px 8px;
    border-radius: 30px; /* Bordino completamente arrotondato (stile pillola) */
    border: 1px solid #dee2e6; /* Un delicato bordino grigio chiaro attorno */
}

/* Stile per i link interni IT / EN */
.navbar .d-flex.align-items-center a {
    border-radius: 20px; /* Arrotonda anche il singolo link quando si attiva */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Gestione della lingua attiva (quella con classe .text-primary) */
.navbar .d-flex.align-items-center a.text-primary {
    color: #000 !important; /* Rende il testo della lingua attiva nero anziché blu */
    background-color: #e0e0e0; /* Sfondo grigio leggermente più evidente per la lingua attiva */
}

/* Gestione al passaggio del mouse (hover) e al click (focus/active) sui link lingua */
.navbar .d-flex.align-items-center a:hover,
.navbar .d-flex.align-items-center a:focus,
.navbar .d-flex.align-items-center a:active {
    background-color: #e8e8e8 !important; /* Grigio chiaro al passaggio del mouse */
    color: #000 !important; /* Testo sempre scuro */
    text-decoration: none !important;
    box-shadow: none !important; /* Rimuove l'alone blu di Bootstrap */
}