/* ==========================================================================
   1. FONT E SETUP DI BASE
   ========================================================================== */
@font-face {
  font-family: Highline;
  src: url(../fonts/Highline.otf);
}

@font-face {
  font-family: Antipasto;
  src: url(../fonts/Antipasto-Pro-Regular-trial.ttf);
}

@font-face {
  font-family: Folks;
  src: url(../fonts/Folks-Normal.ttf);
}

/* Scrollbar personalizzata per un look da App nativa */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
  background: #00b0c7; 
  border-radius: 10px;
}

body {
  margin: 0;
  padding: 0;
  background-image: url('../images/menu/Sfondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Mukta Mahee', sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. HEADER E LOGO 
   ========================================================================== */
header {
  /* Header in vetro semitrasparente ciano che segue lo scroll */
  background: rgba(0, 176, 199, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  position: sticky; 
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  width: 250px;
  margin: 15px 0;
  filter: drop-shadow(0px 2px 6px rgba(0,0,0,0.15));
}

.logomenu {
  height: 40px;
  width: auto;
}

/* ==========================================================================
   3. MENU PRINCIPALE (EFFETTO GLASSMORPHISM)
   ========================================================================== */
.menu {
  margin-top: 2.5em;
  margin-bottom: 5em;
  width: 90%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  
  /* Magia del vetro smerigliato */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* ==========================================================================
   4. TIPOGRAFIA
   ========================================================================== */
h1 {
  font-family: 'Highline', sans-serif;
  font-size: 28px;
  margin: 0;
  color: #0f172a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

h1 img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

h2 {
  font-family: 'Antipasto', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  line-height: 1.4em;
  color: #1e293b;
}

h3 {
  font-family: 'Highline', sans-serif;
  font-size: 21px;
  color: #00b0c7;
  letter-spacing: 1px;
  margin: 0;
}

h4 {
  font-family: 'Folks', sans-serif;
  font-size: 18px;
  color: #475569;
  letter-spacing: 1px;
  margin: 0;
}

h2 span, h2 span font, .bevande h2 span {
  font-family: 'Folks', sans-serif;
  font-size: 16px;
  color: #64748b;
}

p {
  font-family: 'Mukta Mahee', sans-serif;
  font-size: 15px;
  color: #334155;
  line-height: 1.6em;
  margin: 0;
}

ul, li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   5. BOTTONI FISARMONICA (ACCORDION PREMIUM)
   ========================================================================== */
button {
  background: none;
  border: none;
  outline: none;
}

.collapsible {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  margin-top: 16px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.active, .collapsible:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 176, 199, 0.15);
  border-color: #00b0c7;
}

.active h1, .collapsible:hover h1 {
  color: #00b0c7;
}

.content {
  padding: 0 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ==========================================================================
   6. LE SCHEDE DEI PIATTI (HOVER 3D)
   ========================================================================== */
#PaniniGourmet, #Hamburger, #AntipastiTerra, #AntipastiMare, #PrimiTerra, #PrimiMare, #SecondiTerra, #SecondiMare, #Rossi, #Bianchi, #Rosati, #Prosecchi {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-top: 16px;
}

.piatto {
  width: calc(50% - 8px);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.piatto:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: rgba(0, 176, 199, 0.3);
}

.foto {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ingr {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 14px;
}

.ingr img {
  width: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ==========================================================================
   7. SEZIONI SPECIALI: DEL GIORNO E AGGIUNTE
   ========================================================================== */
.delgiorno {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
  border: 2px solid #f6ad55;
  border-radius: 24px;
  padding: 24px;
  margin: 1.5em auto 2.5em auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(246, 173, 85, 0.15);
  position: relative;
  overflow: hidden;
}

.delgiorno::before {
  content: '★ STAR';
  position: absolute;
  top: -10px;
  right: -20px;
  font-size: 80px;
  color: rgba(246, 173, 85, 0.1);
  font-weight: bold;
  pointer-events: none;
}

.delgiorno h2 {
  color: #dd6b20;
  font-size: 24px;
}

.delgiorno h3 {
  font-size: 22px;
  color: #e65100;
  margin-top: 5px;
}

.delgiorno .foto {
  max-width: 100%;
  height: 220px;
  margin-top: 15px;
}

.aggiunte {
  width: 100%;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.8), rgba(255, 255, 255, 0.5));
  backdrop-filter: blur(8px);
  border-left: 5px solid #00b0c7;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 1.5em 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.aggiunte h1 {
  font-size: 22px;
  color: #0f766e;
  margin-bottom: 8px;
}

.aggiunte p {
  color: #115e59;
  font-weight: 500;
  margin: 5px 0;
}

/* ==========================================================================
   8. COCKTAILS, CAFFETTERIA E BEVANDE
   ========================================================================== */
#Caffetteria.content {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
}

#Caffetteria.content li {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 176, 199, 0.15);
}

#Caffetteria.content li:last-child {
  border-bottom: none;
}

.cocktails {
  width: 100%;
  background: rgba(240, 253, 250, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  margin: 16px 0;
  padding: 24px;
  box-shadow: 0 8px 25px rgba(0, 176, 199, 0.05);
  box-sizing: border-box;
}

.cocktails h1 {
  font-size: 26px;
  color: #0f766e;
  border-bottom: 2px solid rgba(0, 176, 199, 0.2);
  padding-bottom: 8px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.cocktails h1:first-child {
  margin-top: 0;
}

.cocktails .drink {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.bevande {
  width: 100%;
  margin-top: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bevande h1 {
  font-size: 22px;
  color: #00b0c7;
  border-bottom: 2px solid rgba(0, 176, 199, 0.2);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.bevande li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.bevande h3 {
  font-weight: bold;
}

.bevande br {
  display: none;
}

.bibite {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* ==========================================================================
   9. EXTRA E TORNA SU
   ========================================================================== */
.legenda {
  margin-top: 3em;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.8);
  font-size: 15px;
  text-align: center;
}

.legenda img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin: 0 6px;
}

.legenda span {
  white-space: nowrap;
  display: inline-block;
  margin: 4px 10px;
}

.tornasu {
  width: 100%;
  text-align: center;
  margin: 20px 0;
  clear: both;
}

.tornasu a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.tornasu a:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 176, 199, 0.2);
}

.tornasu img {
  width: 30px !important;
  height: 30px !important;
}

.due {
  width: 100%;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (Smartphone & Tablet)
   ========================================================================== */
@media screen and (max-width: 1250px) {
  .menu {
    width: 95%;
    padding: 24px;
  }
}

@media screen and (max-width: 900px) {
  .header {
    padding: 0 15px;
  }
  
  .logo {
    width: 200px;
  }

  .piatto {
    width: 100%; /* Passaggio a colonna singola */
  }

  .bevande {
    flex-direction: column;
    gap: 16px;
  }

  .bibite {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .menu {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.85); /* Leggermente più coprente su schermi piccoli */
  }

  h1 { font-size: 24px; }
  
  .collapsible {
    padding: 14px 18px;
    border-radius: 14px;
  }

  .piatto {
    padding: 16px;
    border-radius: 16px;
  }

  .bevande h2, .bevande h3, .cocktails .drink h2, .cocktails h3 {
    font-size: 15px;
  }
  
  .foto {
    height: 160px;
  }
}