/* Importazione di font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* Stile Generale e Colori */

/*
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), /* filtro scuro per leggibilità 
        url('img/sfondo.png') no-repeat center center fixed; /* immagine centrata e fissa
    background-size: cover; /* l’immagine copre tutto lo schermo
    background-attachment: fixed; /* effetto "parallax"
    background-repeat: no-repeat;
    background-position: center;
}
*/


body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: rgb(202, 188, 144);
    /*background: linear-gradient(135deg, rgba(0, 0, 0, 0.83), rgba(125, 0, 0, 0.822));*/
    box-shadow: 0 8px 25px rgba(199, 0, 57, 0.4),
                0 0 20px rgba(255, 65, 108, 0.6);
    color: #333;
}

p {
    color: #ffffff;

}


html {
  scroll-behavior: smooth;
}

/* Padding della pagina escluso navbar, hero e footer */
.page-container {
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Titoli */
h1, h2, h3, h4 {
    color: #c70039; /* Rosso */
    font-family: 'Playfair Display', serif;
}

/* Link e bottoni */
a {
    text-decoration: none;
    color: #c70039;
    transition: color 0.3s;
}

a:hover {
    color: #ff9191;
}

.cta-button {
    background: linear-gradient(135deg, #ff0000, #80001e);
    box-shadow: 0 0 20px rgba(255, 65, 65, 0.8), 
                0 0 10px rgba(199, 0, 57, 0.6),
                0 0 10px rgba(199, 0, 57, 0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #92002b;
}

/* Header e Navbar */
.main-header {
    background: linear-gradient(135deg, #d60000, #80001e);

    padding: 15px 40px;
    position: sticky;
    top: 0;                   /* Attaccata al bordo alto */
    left: 0;
    z-index: 2000;            /* Rimane sopra tutto */
    transition: transform 0.4s ease, opacity 0.4s ease;
}


.main-nav {
    max-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.main-nav .logo {
    display: flex;
    align-items: center;
}

.main-nav .logo img {
    height: 60px;
    width: auto;
}


@media (max-width: 340px) {
    .main-nav .logo img {
        height: 45px;
        width: auto;
    }
}
    


/* Hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; /* più grande per lo stile */
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 10px;
    z-index: 1100;
    transition-duration: .5s;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 4px;
    transition: all 0.5s ease;
}

/* Stato attivo: animazione stile Universe.io */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    transition-duration: 0.5s;
}

.hamburger.active span:nth-child(2) {
    transform: scaleX(0);
    transition-duration: 0.5s;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    transition-duration: 0.5s;
}

.hamburger.active {
    transform: rotate(180deg);
    transition-duration: 0.5s;
}


/* Nav Links desktop e mobile */
.nav-links {
    display: flex;
    flex-direction: row;
    gap: 25px;
    position: static;
    width: auto;
    max-height: none;
    background: none;
    padding: 0;
    
}

.nav-links.active {
        border-radius: 0px 0 0 20px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 20px 0 30px 0; /* ✅ spazio sotto l’ultimo elemento */
    text-align: right;
}


.nav-links li a {
    color: rgb(255, 255, 255);
    padding-right: 20px; 
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-align: center;
}

li {
    color: rgb(255, 255, 255);
}

.nav-links {
    margin-left: auto; /* This pushes the links to the right */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #c70039;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

@media (min-width: 750px) {
    .nav-links li a:hover::after {
        width: 80%;
    }
}

/* Sezione Hero sopra il menù */
.menu-hero {
    margin-top: -50px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 400px;
    overflow: hidden;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(0, 0, 0, 0.6);
    z-index: 300;
}
body {
    overflow-x: hidden;
}

.menu-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.761);
}

.hero-center-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
    width: 600px;
    max-width: 70%;
    max-height: 50%;
    height: auto;

    opacity: 0;
    animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Sezioni e Menù */
.menu-section {
    text-align: center;
    
}

.menu-section3 {
    text-align: center;
      min-height: 80vh; /* occuperà circa l’80% della finestra, anche se vuota */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.section-title {
  font-size: 3.5em;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #ff0000, #a00000, #cc0000, #ff1a1a);
  text-shadow:
    0 0 5px rgba(255, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.2);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  
  animation: shimmer 4s infinite alternate;
}

/* ✨ Animazione leggera tipo riflesso di luce */
@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 💡 Punti lucidi extra sopra le lettere */
.section-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}





.menu-container5 {
    width: 130%;
    max-width: 900px;
    background-color: #ffffff;
    border: 3px solid #b10000;
    border-radius: 25px;
    padding: 25px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 20px auto; /* ✅ auto = centrato orizzontalmente */
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.483);
    font-family: 'Poppins', sans-serif;

    /* 🔹 Animazione */
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 0.6s ease forwards;
}


@media (min-width: 770px) and (max-width: 100000px) {
    .menu-container5 {
        display: block;
        width: min(150%, 900px); /* 🔹 Si adatta ma resta dentro la pagina */
        background-color: #ffffff;
        border: 3px solid #b10000;
        border-radius: 25px;
        padding: 25px;
        padding-top: 0;
        padding-bottom: 0;
        margin: 20px auto; /* ✅ auto = centrato */
        box-shadow: 0 6px 12px rgba(255, 255, 255, 0.483);
        font-family: 'Poppins', sans-serif;
        box-sizing: border-box;

        /* 🔹 Animazione */
        opacity: 0;
        position: relative;
        left: 78%;
        transform: translateX(-50%) translateY(30px);
        animation: slideUpFadeIn 0.6s ease forwards;
    }
}



/* ✅ Tablet */
@media (max-width: 769px) {
    .menu-container5 {
        width: 85%;
        max-width: 700px;
        padding: 22px;
        margin: 30px auto;

    }
}

/* ✅ Mobile */
@media (max-width: 600px) {
    .menu-container5 {
        width: 92%;
        max-width: 360px;
        padding: 15px;
        margin: 25px auto;
        margin-left: -4px;
    }
}


/* ✨ Animazione */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.section-title5 {
    color: linear-gradient(45deg, #ff0000, #ff0000, #ff0000, #ff0000);
    text-shadow:
    0 0 5px rgba(130, 0, 0, 0.6),
    0 0 0px rgba(0, 0, 0, 0.4),
    0 0 0px rgba(0, 0, 0, 0.2);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.menu-section5 {
    margin-bottom: 20px;
}

.menu-item5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 2px solid #a9a9a9; /* linea continua */
}

.menu-item5:last-child {
    border-bottom: none;
}

.item-name4 {
    flex: 1;
    text-align: left; /* sempre allineato a sinistra */
    padding-right: 10px;
    display: inline-flex;
    align-items: center; /* allinea testo e icona verticalmente */
    gap: 6px; /* spazio tra testo e icona */
}

.item-name5 {
    flex: 1;
    text-align: left; /* sempre allineato a sinistra */
    padding-right: 10px;
    display: inline-flex;
    align-items: center; /* allinea testo e icona verticalmente */
    gap: 6px; /* spazio tra testo e icona */
    font-weight: bold; /* testo in grassetto */
}


.icon-vegetariano {
  height: 1em; /* stessa altezza del testo */
  width: auto; /* mantiene proporzioni */
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* effetto hover elegante */
.item-name5:hover .icon-vegetariano {
  transform: scale(1.1);
}


.item-text5 {
    display: flex;
    flex-direction: column; /* Nome sopra, descrizione sotto */
    align-items: flex-start; /* allinea tutto a sinistra */
    text-align: left; /* forza il testo a sinistra */
}

.item-desc6 {
    font-size: 14px;
    color: #272727;   /* grigio più chiaro */
    margin-top: 3px; /* spazio sotto al nome */
    font-style: italic;
    text-align: left; /* assicura l’allineamento a sinistra */
}

.item-desc5 {
    font-size: 14px;
    color: #272727;   /* grigio più chiaro */
    margin-top: 3px; /* spazio sotto al nome */
    font-style: italic;
    text-align: left; /* assicura l’allineamento a sinistra */
    
    max-width: 250px;      /* 🔹 limite orizzontale del testo */
    word-wrap: break-word; /* 🔹 forza il testo ad andare a capo */
    white-space: normal;   /* 🔹 consente l'andare a capo */
}


.item-price5 {
    white-space: nowrap;
}

.item-note5 {
    font-size: 14px;
    color: #555;
    font-style: italic;
}

.menu-note5 {
    font-size: 12px;
    color: #272727;
    text-align: center;
    margin-top: 15px;
}


.item-text1 {
    display: flex;
    flex-direction: column; /* Nome sopra, descrizione sotto */
    align-items: flex-start; /* Allinea tutto a sinistra */
}

.menu-note1 {
    font-size: 0.9em;
    color: #777;  /* più chiaro del nome */
    margin-top: 2px; /* piccolo spazio sotto il nome */
}

/* Responsive per mobile */
@media (max-width: 600px) {


    .section-title5 {
        font-size: 28px;
    }

    .menu-item5 {
        font-size: 17px;
    }
}


























/* 🔹 Carosello container */
.carousel-container3 {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px auto;
  display: flex;
  align-items: center;
  /* dissolvenza ai bordi */
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* 🔹 Area visibile */
.carousel3 {
  flex: 1;
  overflow: hidden;
  padding: 0px; /* ❌ rimosso padding laterale che spostava il centro */
  scroll-behavior: smooth;
}

/* 🔹 Track scorrevole */
.carousel-track3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  transition: transform 0.3s ease-in-out;
  padding: 30px 40px 30px 40px; /* top, right, bottom, left */
  justify-content: center;
}


/* 🔹 Bottoni in linea */
.carousel-track3 .category-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

/* 🔹 Evita che i bottoni si allarghino */
.carousel-track3 .category-btn,
.carousel-track3 .category-btn-tendina {
  flex: 0 0 auto;
}

/* 🔹 Pulsanti ai lati */
.left3 { margin-right: 30px; }
.right3 { margin-left: 30px; }

/* 🔹 Contenitore bottoni */
.category-buttons-container {
  display: flex;
  gap: 10px;
}

/* 🔹 Dropdown */
.category-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  padding: 0px;
  border-radius: 8px;
}


/* 🔹 Contenitore frecce */
.carousel-arrows3 {
  display: none;
  justify-content: center;
  gap: 50px;
  margin-top: -50px;
}

/* 🔹 Pulsante cerchio */
.arrow3 {
  background: linear-gradient(135deg, #ff0000, #80001e);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.8), 
                0 0 10px rgba(199, 0, 57, 0.6),
                0 0 10px rgba(199, 0, 57, 0.4);
  border: 4px solid #c70000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* 🔹 Stanghetta della freccia */
.arrow3::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* 🔹 Punta della freccia */
.arrow3::after {
  content: '';
  position: absolute;
  padding-left: 1px;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(100% 50%, 0 0, 0 100%);

  
}

/* 🔹 Direzione sinistra (compatibile con .left e .left3) */
.arrow3.left::before,
.arrow3.left3::before {
  transform: rotate(0deg);
  
}
.arrow3.left::after,
.arrow3.left3::after {
  left: 12px;
  transform: rotate(180deg);
}

/* 🔹 Direzione destra (compatibile con .right e .right3) */
.arrow3.right::before,
.arrow3.right3::before {
  transform: rotate(0deg);
}
.arrow3.right::after,
.arrow3.right3::after {
  right: 12px;
  transform: rotate(0deg);
}

/* 🔹 Animazione "gelatina" */
.arrow3.bounce {
  animation: bounce 0.4s;
}

@keyframes bounce {
  0% { transform: scale(1); }
  25% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* 🔹 Mostra SOLO in modalità mobile */
@media (max-width: 768px) {
  .carousel-arrows3 {
    display: flex;
  }
}










.category-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}




.category-dropdown {
    display: inline-block;
    position: relative;
}

/* Tendina nascosta */
.dropdown-content {
    position: absolute;
    top: 50%; /* parte da metà bottone */
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;

    background: linear-gradient(135deg, #7a0023, #80001e);
    box-shadow: 0 0 15px rgba(246, 0, 0, 0.8), 
                0 0 30px rgba(199, 0, 57, 0.6),
                0 0 45px rgba(199, 0, 57, 0.4);
    border-radius: 0 0 20px 20px; /* solo bordi inferiori arrotondati */
    z-index: 5;
}

/* Tendina aperta */
.category-dropdown.open .dropdown-content {
  display: block;
  max-height: 500px;
  opacity: 1;
}

/* Elementi dentro la tendina */
.dropdown-item {
    padding: 12px 20px;
    color: rgb(255, 255, 255);
    font-weight: 500;
    text-align: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.dropdown-item {
    padding: 12px 20px;
    color: rgb(255, 255, 255);
    font-weight: 500;
    text-align: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

/* Riga divisoria */
.dropdown-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 9%;   /* margine dai bordi */
    right: 9%;  /* margine dai bordi */
    height: 1px;
    background: rgb(219, 0, 0);
}

/* Hover sulle sezioni */
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
}









.category-btn-tendina {
    display: flex;                /* per gestire immagine + testo */
    align-items: center;          /* centra verticalmente */
    gap: 10px;                    /* spazio tra immagine e testo */
    background: linear-gradient(135deg, #bc0000, #9f0025);
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.8), 
                0 0 30px rgba(199, 0, 57, 0.6),
                0 0 45px rgba(199, 0, 57, 0.4);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(199, 0, 57, 0.6), 
                0 0 20px rgba(199, 0, 57, 0.4);
    flex: 0 0 auto;
    z-index: 8;
}



/* Icona dentro il bottone */
.category-btn-tendina img {
    width: 50px;       /* dimensione icona */
    height: 50px;      /* mantiene uniforme */
    object-fit: contain;
    display: block;
}

/* Effetto neon al passaggio */
.category-btn-tendina:hover,
.category-btn-tendina.active {
    background: linear-gradient(135deg, #ff0000, #80001e);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.8), 
                0 0 10px rgba(199, 0, 57, 0.6),
                0 0 10px rgba(199, 0, 57, 0.4);
    transform: scale(1.05);
}

/* Glow attorno */
.category-btn-tendina::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(45deg, #ff416c, #c70039, #ff416c);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}
















.category-btn {
    display: flex;                /* per gestire immagine + testo */
    align-items: center;          /* centra verticalmente */
    gap: 10px;                    /* spazio tra immagine e testo */
    background: linear-gradient(135deg, #a50000, #9f0025);
    box-shadow: 0 0 15px rgba(205, 0, 7, 0.8), 
                0 0 30px rgba(199, 0, 57, 0.6),
                0 0 45px rgba(199, 0, 0, 0.858);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(199, 0, 57, 0.6), 
                0 0 20px rgba(199, 0, 57, 0.4);
    flex: 0 0 auto;
}

/* Icona dentro il bottone */
.category-btn img {
    width: 50px;       /* dimensione icona */
    height: 50px;      /* mantiene uniforme */
    object-fit: contain;
    display: block;
}

/* Effetto neon al passaggio */
.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #ff0000, #80001e);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.8), 
                0 0 10px rgba(199, 0, 57, 0.6),
                0 0 10px rgba(199, 0, 57, 0.4);
    transform: scale(1.05);
}

/* Glow attorno */
.category-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(45deg, #ff416c, #c70039, #ff416c);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* Card Menù */
.menu-card {
    
    border: none; /* rimuovo il bianco */
    border-radius: 16px;
    background: linear-gradient(135deg, #ff4141, #c70039); /* sfumato come la tendina */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4); /* ombra neon */
    width: 100%;
    max-width: 250px;
    height: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    border: 4px solid rgba(123, 0, 0, 0.4);
    margin-left: -2px;
}

.menu-carousel-inner {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 card per riga */
    justify-content: center; /* centra le colonne nella pagina */
    gap: 20px; /* spazio verticale e orizzontale tra le card */
    padding: 0px 0px;


    
}

.menu-carousel2-inner {
    
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 55px;
    width: max-content;           /* larghezza intrinseca */
    justify-content: center;      /* ora centra la griglia */
    margin: 0 auto;               /* alternativa: centro con margin */
    margin-top: 20px;
}


.menu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255,65,108,0.8), 0 0 30px rgba(199,0,57,0.6); /* neon più intenso */
}

/* Zona immagine con diffusione bianca sotto */
/* Zona immagine con dimensione fissa */
.menu-card .image-wrapper {
    position: relative;
    width: 100%;
    height: 180px; /* altezza fissa dell'immagine */
    overflow: hidden;
    flex-shrink: 0; /* evita che si riduca se il contenuto cresce */
}

/* Immagine all'interno della card */
.menu-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* mantiene proporzioni e ritaglia se necessario */
    display: block;
    position: relative;
}
.menu-card .image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px; /* 50px di sfumatura + 2px di barra */
    background: 
        linear-gradient(to top, #7d000000 10%, rgba(255, 0, 0, 0) 100%),
        linear-gradient(to top, rgb(141, 0, 0) 4px, transparent 2px); /* barra rossa */
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 50px, 100% 2px;
    pointer-events: none;
}


/* Contenuto card */
.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px 14px 0px; /* spazio per "Scopri di più" */
    background: linear-gradient(135deg, rgba(200, 0, 0, 0.95), rgb(87, 0, 0));
    box-shadow: 0 8px 25px rgba(199, 0, 57, 0.4),
                0 0 20px rgba(255, 65, 108, 0.6);

    position: relative;
}

/* Riga superiore: nome e prezzo */
.card-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px; /* più vicino al testo sotto */
    margin-top: -12px;
}

.info-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.info-left h4 {
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #fff; /* testo bianco per contrasto */
    letter-spacing: 0.5px;
}

.info-left p {
    margin: 0;
    font-size: 0.9em;
    color: #dddddd;
    line-height: 1.3;
}

.price {
    font-weight: bold;
    color: #fff;
    font-size: 1.15em;
    background: rgba(255,65,108,0.3); /* leggermente trasparente rosa/neon */
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(255,65,108,0.4);
}

/* Ingredienti */
.card-content .ingredients {
    margin-top: -8px;
    max-height: calc(100% - 60px - 20px); /* lascia spazio per "Scopri di più" */
    overflow: hidden;
}

/* Footer fisso con "Scopri di più" */
.card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgb(236, 0, 0) 30%, rgba(255,0,0,0) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.95em;
    pointer-events: none;
    z-index: 2;
}

/* Cuore preferiti in alto a destra */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,65,108,0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 0 8px rgba(255,65,108,0.4);
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
}



.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255,65,108,0.5);
}

.favorite-btn.active {
    background: rgba(255,255,255,0.8);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.favorite-btn.active svg {
    fill: #ff4141;
}



/* Cuore preferiti nella navbar */
#navbar-favorite {
    width: 36px;
    height: 36px;
    background: rgba(255,65,108,0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 0 8px rgba(255,65,108,0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
    margin-top: -15px;
    margin-left: 3px;
}

@media (max-width: 768px){
            
        #navbar-favorite {
        width: 36px;
        height: 36px;
        display: flex;
        flex-direction: row;
        gap: 25px;
        position: static;
        width: auto;
        max-height: none;
        background: none;
        padding: 0;
        margin-top: 10px;
        transform: scale(1.1);
        box-shadow: inset 0 0 8px rgb(255, 65, 109);
        margin: 20px
    }
}

#navbar-favorite:hover {
    transform: scale(1.1);
    background: rgba(255,65,108,0.5);
}

#navbar-favorite svg {
    width: 20px;
    height: 20px;
    fill: rgb(255, 0, 0);
}

#navbar-favorite.active svg {
    fill: #ff4141;
}




/* 🔹 Blocca scroll della pagina quando tendina aperta */
body.no-scroll {
    overflow: hidden;
}


/* Tendina laterale */
.slide-panel {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 80vh; /* 🔹 altezza aumentata */

    border-radius: 0 16px 16px 0;
    background: linear-gradient(135deg, rgba(200, 0, 0, 0.95), rgb(76, 0, 0));
    box-shadow: 0 8px 25px rgba(199, 0, 57, 0.4),
                0 0 20px rgba(255, 65, 108, 0.6);
    transition: left 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 20px; /* 🔹 sposta tutto leggermente più in basso */
    border: 4px solid rgb(120, 0, 0);
}

/* Stato attivo */
.slide-panel.active {
    left: -3px;
}

/* Bottone chiudi */
.slide-panel .close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
}

/* Header (titolo e prezzo) */
.slide-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 16px 14px 16px; /* 🔹 più spazio sopra */
}

.slide-panel-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: bold;
    color: #ffffff;
}

.slide-panel-header .price {
    font-weight: bold;
    color: #fff;
    font-size: 1.15em;
    background: rgba(255,65,108,0.3); /* leggermente trasparente rosa/neon */
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(255,65,108,0.4);
}

/* Immagine */
.slide-panel .image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.slide-panel img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    position: relative;
}

/* Dissolvenza sopra e sotto l’immagine */
.slide-panel .image-wrapper::before,
.slide-panel .image-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 1;
}

.slide-panel .image-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, #af000300 10%, rgba(255, 0, 0, 0) 100%);
    
}

.slide-panel .image-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, #af000300 10%, rgba(255, 0, 0, 0) 100%);
}

/* Ingredienti */
.slide-panel .ingredients-title {
    margin: 20px 16px 10px 16px;
    font-size: 1.3em; /* 🔹 più grande */
    font-weight: bold;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center; /* 🔹 centrato */
}

.slide-panel .ingredients {
    margin: 0 20px 30px 20px;
    font-size: 1.15em; /* 🔹 più grande */
    line-height: 1.6;
    color: #ffffff;
    text-align: left; /* 🔹 allineato a sinistra */
}












/* Prenota ora WhatsApp CSS */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

.prenota-container {
  position: fixed;
  bottom: 20px;
  right: 0;
  font-family: 'Poppins', sans-serif;
  z-index: 100;
}

/* Wrapper: larghezza iniziale corta */
.prenota-toggle-wrapper {
  overflow: hidden;
  max-width: 130px; /* larghezza iniziale visibile */
  transition: max-width 0.5s ease;
  border-radius: 25px 0 0 25px;
}

/* Quando si apre: larghezza maggiore per includere il bottone */
.prenota-toggle-wrapper.open {
  max-width: 380px; /* larghezza totale con bottone WhatsApp */
}

/* Barra rossa principale */
.prenota-toggle {
  background: linear-gradient(135deg, #ff0000, #80001e);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.8), 
                0 0 10px rgba(199, 0, 57, 0.6),
                0 0 10px rgba(199, 0, 57, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* testo e simbolo vicini al bordo sinistro */
  height: 50px;
  padding: 10px 20px; /* padding generale */
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.5s ease;
}

.prenota-toggle .arrow {
  font-weight: bold;
  margin-right: 10px; /* aumenta lo spazio tra simbolo e testo */
  margin-left: -9px;   /* riduce lo spazio dal bordo sinistro */
}


/* Testo su due righe */
.prenota-toggle .text {
  line-height: 1.2;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding-left: 0; /* possiamo gestire lo spazio con margin-right della freccia */
}

/* Bottone WhatsApp dentro la barra rossa */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #10d658;
  background: linear-gradient(135deg, #10d658, #02c54a);
    box-shadow: 0 8px 25px #10d658,
                0 0 20px #10d658;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  border-radius: 20px;
  margin-left: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  flex-shrink: 0; /* evita che si riduca nella barra */
}

.whatsapp-btn:hover {
  color: #ffffff;
  cursor: pointer;
}


.whatsapp-icon {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .prenota-toggle-wrapper {
    max-width: 110px;
  }
  .prenota-toggle-wrapper.open {
    max-width: 335px;
  }
  .prenota-toggle {
    height: 40px;
    padding: 8px 15px;
    font-size: 14px;
  }
  .whatsapp-btn {
    font-size: 14px;
    padding: 5px 10px;
    height: 35px;
  }
}


















/* floating-pizza */

/* 🍕 PIZZA ROTANTE - DESKTOP */
.floating-pizza {
    position: fixed;
    top: 50%;
    right: -100px; /* metà fuori dallo schermo */
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
}

.floating-pizza img {
    width: 200px;
    height: auto;
    border-radius: 50%;
    transform-origin: center;
    transition: transform 0.1s linear;
    pointer-events: none;
}

/* Rotazione al passaggio del mouse */
.floating-pizza img:hover {
    transform: rotate(360deg);
}



/* 🔹 PIZZA MOBILE (angolo in basso a destra, solo 1/4 visibile) */
@media (max-width: 768px) {
    .floating-pizza {
        top: auto;
        bottom: -80px; /* metà fuori in basso */
        right: -70px;  /* metà fuori a destra */
        transform: none;
    }

    .floating-pizza img {
        width: 140px;
        height: auto;
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    .floating-pizza {
        display: none;
    }
}








/* Footer */
.main-footer {
    position: relative; /* assicurati sia posizionato */
    z-index: 1000; /* molto più alto della pizza */
    background-color: #000;
    color: #ddd;
    padding: 10px 90px 20px;
    border-top: 5px solid #b50000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    text-align: left;
}

.footer-col {
    padding: 10px;
}

.footer-logo {
    font-size: 2em;
    font-weight: bold;
    color: #c70039;
    margin-bottom: 10px;
    display: block;
}

.footer-col h4 {
    font-size: 1.2em;
    color: #f7f7d3;
    margin-bottom: 15px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: #c70000;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li i {
    color: #c70000;
    margin-right: 10px;
}

.social-icons a {
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #c70039;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 20px;
}


.footer-logo-img{
    width: 325px;
    height: 70px;
    padding-top: 35px;
}






.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
}

.footer-bottom .developer-note {
    margin: 0;
    font-size: 13px;
}

.footer-bottom .developer-note a {
    color: #ba0000; /* rosso come il nome */
    text-decoration: underline;
    text-decoration-color: #ba0000;
    text-decoration-thickness: 1px; /* sottolineatura più spessa */
    text-underline-offset: 3px; /* distanza dal testo */
    font-weight: 600;
    transition: 0.3s;
}

.footer-bottom .developer-note a:hover {
    text-decoration-color: rgb(255, 0, 0); /* cambia colore al passaggio */
    color: rgb(255, 0, 0);
}


.footer-map {
    position: relative;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    margin-top: 30px;
    overflow: hidden;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}



/* 🔥 Sfumatura superiore (dall'alto verso la mappa) */
.footer-map::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* regola l'altezza della dissolvenza */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* 🔥 Sfumatura inferiore (dal basso verso la mappa) */
.footer-map::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events: none;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column; /* mette gli elementi uno sotto l’altro */
    text-align: center;     /* centra il testo su schermi piccoli */
    gap: 5px;               /* piccolo spazio tra le due righe */
  }

  .footer-bottom p {
    margin: 5px 0; /* evita che restino troppo vicini */
  }
}







/* --- Responsive Design --- */
@media (max-width: 768px) {

        
    .footer-logo-img{
        width: 310px;
        height: 60px;


    }

    
/* ✅ Spazio vuoto dopo l’ultimo bottone */
.carousel-track3::after {
  content: "";
  flex: 0 0 70px; /* spazio vuoto personalizzabile */
}


    .main-footer {
        padding: 10px 10px 20px;
    }


    .page-container {
        padding: 50px 20px;
    }

    .main-header {
        padding: 15px 20px;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .hamburger {
        display: flex;
    }

    .hero-center-img {
        width: 600px;
        max-width: 100%;
        max-height: 50%;
        height: auto;
    }

    .nav-links {
    flex-direction: column;
    position: fixed;
    top: 64px;
    right: 0; /* tutta l'altezza dello schermo */
    background: linear-gradient(135deg, #ff000095, #590000b7);
    border-radius: 0px 0 0 20px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 500;
    backdrop-filter: blur(10px);
    padding: 20px 0 30px 0; /* ✅ spazio sotto l’ultimo elemento */
    text-align: right;
  }

  .nav-links.active {
    transform: translateX(0); /* entra da destra */
    transition: transform 0.4s ease-in-out;
  }

  /* Singolo link */
  .nav-links li {
    list-style: none;
    margin: 0px 0; /* spazio tra i link */
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px; /* spazio tra freccia e testo */
    padding: 10px 25px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
  }

  /* Freccetta verso sinistra */
  .nav-links a::before {
    content: "➜";
    transform: rotate(180deg); /* la fa puntare a sinistra */
    font-size: 1rem;
    color: #ffb3b3;
    opacity: 0.8;
  }

  /* Riga divisoria tra link */
  .nav-links li:not(:last-child)::after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    width: 70%;
    margin: 10px auto 0 auto;
  }

  /* Effetto hover */
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffb3c6;
    text-shadow: 0 0 8px #ff416c, 0 0 15px #c70039;
  }

 .carousel-track3 {
    justify-content: flex-start; /* ✅ sinistra su telefono */
  }




    .category-buttons-container {
        flex-wrap: wrap;
    }

    .footer-grid {
        text-align: center;
    }
    

    .footer-col h4::after {
        left: 10.5%;
        width: 70px;
        transform: translateX(-50%);
    }

    .footer-col{
        
        text-align: left;
        padding-left: 40px;

    }

    /* Mobile: card impilate una sotto l’altra */
    .menu-carousel-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-carousel-wrapper {
        display: flex;
        flex-direction: column; /* una sotto l'altra */
        align-items: center;   /* centra le card orizzontalmente */
        gap: 20px;             /* spazio verticale tra le card */
        padding: 20px 0;
    }

        /* Mobile: card impilate una sotto l’altra */
    .menu-carousel2-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-carousel2-wrapper {
        display: flex;
        flex-direction: column; /* una sotto l'altra */
        align-items: center;   /* centra le card orizzontalmente */
        gap: 20px;             /* spazio verticale tra le card */
        padding: 20px 0;
    }

    .menu-card {
        width: 400%;  /* o 300px se preferisci fisso */
        height: 350px;
        margin-bottom: 0; /* già gestito dal gap */
    }

    .menu-hero {
        height: 200px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
        color: #d80028;
    }

}


/* Navbar nascosta quando si scrolla in basso */
.main-header.hidden {
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

/* Navbar visibile (scroll up) */
.main-header.visible {
    transform: translateY(0);
    opacity: 1;
}


@media (max-width: 380px) {
    .footer-logo-img{
        width: 225px;
        height: 50px;
        padding-top: 35px;
    }
}











/* Layout preferiti: uguale a menu-carousel2-inner */
#favorites-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 55px;
  width: max-content;
  justify-content: center;
  margin: 0 auto;
  margin-top: 20px;
}


/* Responsivo per mobile */
@media (max-width: 768px) {
  #favorites-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}











*:focus {
    outline: none !important; /* L'uso di !important garantisce la priorità */
}