/* =========================
   MOONVERDE – STYLE (MAX)
   Noir elegante + accento verde
   Mobile-first + swipe gallery
   ========================= */

:root{
  /* Background noir */
  --bg:  #050608;
  --bg2: #111318;

  /* Surface / card */
  --card:  rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);

  /* Text */
  --text:  #eef2ff;
  --muted: rgba(238,242,255,.72);

  /* Lines */
  --line:  rgba(255,255,255,.10);

  /* Brand accent */
  --accent:  #22c55e;
  --accent2: #34d399;

  /* Radius & shadow */
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.55);

  /* Luna (controllo rapido dimensione) */
  --moonPad: clamp(70px, 10vw, 160px);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* ✅ sfondo NOIR (zero verde) */
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(800px 500px at 85% 18%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));

  color:var(--text);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 0 6px rgba(34,197,94,.22);
  border-radius: 14px;
}

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

/* BG glow (solo bianco/grigio) */
.bg-glow{
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.10), transparent 58%),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(circle at 55% 75%, rgba(255,255,255,.06), transparent 62%);
  filter: blur(38px);
  z-index: -1;
  pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite alternate;
}
@keyframes floatGlow{
  from{ transform: translate3d(-10px, -8px,0) scale(1); }
  to{ transform: translate3d(10px, 10px,0) scale(1.03); }
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(7,11,20,.55);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.brand__icon{
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34,197,94,.35));
  transition: transform .3s ease;
}
.brand:hover .brand__icon{
  transform: rotate(-8deg) scale(1.05);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__text small{ color:var(--muted); font-weight:400; }

.nav{ display:flex; align-items:center; gap:16px; }
.nav__toggle{
  display:none;
  width:42px;height:42px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  cursor:pointer;
}
.nav__toggle span{
  display:block;
  width:18px;height:2px;
  background: var(--text);
  margin:5px auto;
  border-radius:10px;
  opacity:.9;
}
.nav__list{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  align-items:center;
}
.nav__list a{
  color:var(--muted);
  font-weight:500;
  padding:10px 12px;
  border-radius:12px;
  transition: all .2s ease;
}
.nav__list a:hover{
  color:var(--text);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

/* Hero */
.hero{
  padding: 34px 0 22px;
  border-bottom:1px solid var(--line);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:start;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  font-weight:500;
  margin: 6px 0 14px;
}
.hero__title{
  margin:0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: -.5px;
}
.hero__title em{
  font-style:normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:800;
}
.hero__subtitle{
  margin:14px 0 18px;
  color:var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 56ch;
}
.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border:1px solid var(--line);
  cursor:pointer;
  font-weight:700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  user-select:none;
}
.btn--primary{
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(52,211,153,.72));
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}
.btn--ghost{
  background: rgba(255,255,255,.06);
}
.btn:hover{ transform: translateY(-2px); }
.btn--ghost:hover{ border-color: rgba(255,255,255,.18); }

.hero__meta{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.meta-card{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.meta-label{ color:var(--muted); font-size:13px; display:block; }
.meta-value{ font-weight:700; display:block; margin-top:2px; }

.hero__media{ display:flex; flex-direction:column; gap:14px; }

/* ✅ HERO IMAGE WRAP: altezza controllata e pulita */
.hero__imgwrap{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  height: 340px; /* desktop */
}

/* ✅ Luna: centrata su desktop */
.hero__imgwrap{
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__imgwrap img.hero-moon-main{
  width: min(420px, 92%);     /* <<< qui decidi la grandezza su PC */
  height: auto;
  max-height: 100%;
  padding: 0;                /* stop al padding enorme */
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 38px rgba(0,0,0,.55));
}


/* Badge menu */
.hero__badge{
  position:absolute;
  left:14px;
  bottom:14px;
  background: rgba(7,11,20,.70);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
}
.hero__badge strong{ display:block; }
.hero__badge span{ color:var(--muted); font-size:13px; }

/* Quick cards */
.hero__quick{
  display:grid;
  gap:10px;
}
.hero__quick--wide{
  margin-top: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.quick-card{
  display:flex;
  gap:12px;
  align-items:center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.quick-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.quick-emoji{
  width:40px;height:40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.quick-card small{ color:var(--muted); display:block; margin-top:2px; }

/* Scroll hint */
.hero__scroll{
  display:flex;
  justify-content:center;
  padding: 18px 0 4px;
}
.hero__scroll a{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
}
.scroll-dot{
  width:10px;height:10px;
  border-radius:99px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: translateY(0); opacity:.8; }
  50%{ transform: translateY(4px); opacity:1; }
}
.scroll-text{ font-weight:700; }

/* Sections */
.section{ padding: 54px 0; }
.section--alt{
  background: rgba(255,255,255,.03);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head h2{
  margin:0;
  font-size: 30px;
}
.section__head h2 span{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.section__head p{
  margin:0;
  color:var(--muted);
  max-width: 58ch;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top: 14px;
}
.card{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.chip{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-size: 13px;
}
.icon{
  width:40px;height:40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.card h3{ margin: 6px 0 8px; }
.card p{ margin:0; color:var(--muted); line-height: 1.55; }

/* Gallery (desktop 4 colonne) */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.gallery__item{
  padding:0;
  border:0;
  background: transparent;
  cursor:pointer;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .2s ease, border-color .2s ease;
}
.gallery__item:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}
.gallery__item:active{ transform: scale(.99); }
.gallery__item img{
  width:100%;
  height: 220px;
  object-fit: cover;
}

/* scrollbar galleria */
.gallery::-webkit-scrollbar{ height: 8px; }
.gallery::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.gallery{
  scrollbar-color: rgba(255,255,255,.18) transparent;
  scrollbar-width: thin;
}

/* Menu grid */
.menu-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
.menu-day, .menu-info{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.menu-day__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
.tag{
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.05);
}
.menu-day__list{
  display:grid;
  gap:10px;
  margin-top: 8px;
}
.menu-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: background .2s ease, border-color .2s ease;
}
.menu-item:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.menu-item strong{ display:block; }
.menu-item small{ color:var(--muted); display:block; margin-top:2px; }
.price{ font-weight:800; white-space:nowrap; }

.menu-day__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

/* Mini list */
.mini-list{ display:grid; gap:10px; margin-top:14px; }
.mini-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.mini-item small{ color:var(--muted); display:block; margin-top:2px; }

/* Hours */
.hours{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.hours__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.hour-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.hour-row span{ color:var(--muted); }
.hours__note{ color:var(--muted); margin:12px 0 0; }

/* evidenzia oggi */
.hour-row.is-today{
  border-color: rgba(34,197,94,.55) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.hour-row.is-today strong{ color: rgba(52,211,153,1); }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.contact__card, .social__card{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.contact__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.contact__meta{ margin-top:12px; display:grid; gap:8px; color:var(--muted); }

/* Social buttons */
.social__buttons{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.socialbtn{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  font-weight:800;
}
.socialbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.sicon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.sicon img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display:block;
}
.sicon svg{
  display:block;
  fill: var(--text);
  opacity: .95;
}

/* pin google */
.sicon--pin{
  background: linear-gradient(135deg, rgba(34,197,94,.20), rgba(52,211,153,.10));
}
.pinicon{
  fill: var(--accent);
  filter: drop-shadow(0 0 10px rgba(34,197,94,.35));
}
.socialbtn:hover .sicon{
  box-shadow: 0 0 0 6px rgba(34,197,94,.10);
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding: 18px 0;
  background: rgba(7,11,20,.55);
  backdrop-filter: blur(14px);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--muted);
}
.footer__links{ display:flex; gap:12px; }
.footer__links a{ padding:8px 10px; border-radius:12px; }
.footer__links a:hover{ background: rgba(255,255,255,.06); color:var(--text); }

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(10px);
  z-index:100;
}
.lightbox.is-open{ display:grid; }
.lightbox__img{
  width: min(920px, calc(100% - 40px));
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.lightbox__close{
  position:fixed;
  top:16px;
  right:16px;
  width:46px;height:46px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:var(--text);
  font-size: 28px;
  cursor:pointer;
}

/* Reveal anim */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Luna mini */
.moon-in-badge{
  width: 18px;
  height: auto;
  display: block;
  margin-bottom: 6px;
  opacity: .95;
}
.moon-in-quick{
  width: 28px;
  height: auto;
  display: block;
  opacity: .95;
}

/* Menu del giorno (pulito) */
#menuDayList { margin-top: 10px; }
.md-item { margin: 14px 0; }
.md-top  { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.md-name { font-weight: 900; }
.md-price{ font-weight: 800; opacity: .95; white-space: nowrap; }
.md-desc { margin-top: 2px; opacity: .85; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__imgwrap{ height: 300px; }
  :root{ --moonPad: clamp(52px, 12vw, 120px); }

  .cards{ grid-template-columns: 1fr; }
  .menu-grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .hours__grid{ grid-template-columns: 1fr; }
  .hero__meta{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction:column; align-items:flex-start; }
  .hero__quick--wide{ grid-template-columns: 1fr; }

  /* ✅ Galleria SWIPE su verticale (mobile + tablet) */
  .gallery{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    gap: 12px;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-padding: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .gallery__item{ scroll-snap-align: start; }
  .gallery__item img{ height: 260px; }

  /* mobile nav */
  .nav__toggle{ display:inline-block; }
  .nav__list{
    position:fixed;
    top:66px;
    right:18px;
    left:18px;
    display:none;
    flex-direction:column;
    padding: 12px;
    gap:6px;
    background: rgba(7,11,20,.80);
    border:1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    backdrop-filter: blur(14px);
  }
  .nav__list.is-open{ display:flex; }
  .nav__list a{ width:100%; }
}
/* =========================
   GALLERY DOTS (mobile/tablet)
   ========================= */
.gallery-dots{
  display:none; /* visibili solo sotto 980px */
  justify-content:center;
  gap:10px;
  margin-top: 12px;
  padding: 2px 0 0;
}

.gd-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.16);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, width .18s ease;
}

.gd-dot:hover{
  transform: scale(1.05);
  background: rgba(255,255,255,.22);
}

.gd-dot.is-active{
  width:22px; /* pill */
  background: linear-gradient(90deg, rgba(34,197,94,.85), rgba(52,211,153,.65));
  border-color: rgba(255,255,255,.25);
}

/* mostra i pallini solo quando la galleria è swipe */
@media (max-width: 980px){
  .gallery-dots{ display:flex; }
}

/* ultra mobile */
@media (max-width: 420px){
  .container{ width: min(1120px, calc(100% - 28px)); }
  .hero__subtitle{ font-size: 16px; }
  .btn{ width: 100%; }
}

/* motion reduce */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
