:root{
  --red:#b91c1c; --red-600:#a4161a; --green:#16a34a; --cream:#fff8ee;
  --dark:#111827; --text:#1f2937; --muted:#6b7280; --card:#ffffff;
  --border:rgba(0,0,0,.08); --shadow:0 8px 30px rgba(0,0,0,.10);
  --radius:14px; --focus:0 0 0 3px rgba(22,163,74,.25);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%;background:var(--cream);color:var(--text);font-family:'Inter',system-ui,Segoe UI,Roboto,Arial,sans-serif}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button{font-family:inherit}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;clip:rect(0 0 0 0);overflow:hidden}
.muted{color:var(--muted)}
[hidden]{display:none !important}

/* HEADER */
.topbar{
  position:sticky;
  top:0;
  z-index:20;

  /* Ridotto per eliminare lo spazio verticale eccessivo */
  padding:4px 16px;

  background:linear-gradient(180deg,var(--red),var(--red-600));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.25);
}

.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
}

/* LOGO + INDIRIZZO */
.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;

  /* Avvicina logo e testo */
  gap:0px;
}

.logo{
  display:inline-flex;
  align-items:center;
  filter:drop-shadow(0 2px 8px rgba(201,42,42,.4));
}

/* dimensione del PNG con la foglia */
.logo img{
  /* Ridotto da 120px → 80px per eliminare spazio sotto */
  height:100px;
  width:auto;
  display:block;
}

/* testo indirizzo sotto al logo */
.brand-name{
  font-family:'Playfair Display',serif;
  font-weight:800;
  letter-spacing:0.3px;

  /* leggermente ridotto */
  font-size:12px;

  color:#ffffff;
  text-shadow:0 1px 3px rgba(0,0,0,.35);
}

.brand-sub{
  font-size:12px;
  opacity:.9;
}

.top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:#ffffff;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.3);
  transition:transform .05s ease,opacity .2s ease;
}
.icon-btn:hover{transform:translateY(-1px)}
.icon-btn:active{transform:translateY(0)}
.icon-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.45)}
.icon-phone{width:22px;height:22px;fill:var(--red-600)}

.icon-btn.social{color:var(--red-600);font-size:18px}
.icon-btn.social:hover{color:var(--green)}
.icon-btn.social i{line-height:1}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  cursor:pointer;
  user-select:none;
  box-shadow:var(--shadow);
  transition:transform .05s ease,opacity .2s ease;
  font-weight:600;
  text-align:center;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:var(--green);color:#fff;border:none}
.btn-white{background:#fff;color:#111}
.btn-secondary{background:#f3f4f6}
.btn-justeat{background:var(--red); color:#fff; border:none;}
.btn-block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn:focus-visible{outline:none;box-shadow:var(--focus)}
.btn-lg{padding:14px 22px;font-size:18px;border-radius:999px}

/* HERO */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:calc(88vh - 60px);
  padding:64px 16px 96px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  row-gap:26px;
  text-align:center;
  background:linear-gradient(180deg,#fff6ee 0%, #ffe9db 45%, #fff8ee 100%);
  background-size:200% 200%;
  animation:hueShift 28s ease-in-out infinite alternate;
}
.hero>*{position:relative;z-index:1}
.hero::before{
  content:"";
  position:absolute;
  inset:-20%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(40% 32% at 20% 8%, rgba(255,77,0,.06), transparent 60%),
    radial-gradient(36% 28% at 82% 38%, rgba(16,163,74,.06), transparent 60%),
    radial-gradient(30% 36% at 44% 92%, rgba(255,255,255,.35), transparent 65%);
  filter:blur(18px);
  animation:floatBg 24s ease-in-out infinite alternate;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.16;
  background:linear-gradient(90deg,#fff2e6,#ffe7d6,#fff7ee);
  background-size:300% 300%;
  animation:slideTint 36s linear infinite;
}
.hero-inner{
  max-width:920px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.hero h1{
  margin:0;
  font-family:'Playfair Display',serif;
  font-weight:800;
  font-size:clamp(30px,5.8vw,48px);
  line-height:1.12;
}
.hero-subcopy p{
  margin:0 auto;
  max-width:760px;
  color:var(--muted);
  font-size:clamp(16px,2.4vw,20px);
  line-height:1.45;
}
.hero .hero-actions{
  width:100%;
  max-width:920px;
  margin:4px auto 0;
  display:flex;
  gap:16px;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
}
.btn-trio .btn-eq{flex:1 1 260px;min-height:56px}

/* GRIGLIA 4 SCHEDE */
.info-grid{
  max-width:1100px;
  margin:18px auto 6px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:0 16px;
}
.footer-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  text-align:left;
  padding:18px;
  min-height:140px;
}
.site-footer h4,.footer-card h4{
  margin:0 0 8px 0;
  font-family:'Playfair Display',serif;
}

/* GALLERY */
.gallery{
  max-width:1100px;
  margin:16px auto 0;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
  padding:0 16px;
}
.gallery-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
  height:160px;
}

/* SEZIONI GENERICHE */
.section{
  max-width:1100px;
  margin:48px auto 96px auto;
  padding:0 16px;
}
.section-title{
  font-family:'Playfair Display',serif;
  margin:6px 0 14px 0;
  font-size:28px;
  font-weight:800;
}

/* MENU */
.menu-title-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.menu-title-bar .section-title{margin:0}
.menu-header{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.field{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:12px 14px;
  box-shadow:var(--shadow);
  font-size:16px;
}
.field:focus{outline:none;box-shadow:var(--focus)}
.cat-bar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.category-btn{
  padding:8px 12px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  cursor:pointer;
}
.category-btn.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* DROPDOWN INGREDIENTI */
.dropdown{position:relative}
.dropdown-toggle{min-width:220px}
.dropdown-count{margin-left:8px;font-weight:700}
.dropdown-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:min(680px,95vw);
  max-height:320px;
  overflow:auto;
  z-index:30;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:10px;
}
.dropdown-menu[hidden]{display:none}
.ing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:8px;
}
.ing-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.ing-item input{accent-color:#16a34a}

/* GRIGLIA PIZZE */
.pizza-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:16px;
}
.skeleton-card{
  height:220px;
  border-radius:var(--radius);
  background:linear-gradient(90deg,#eee 25%,#f8f8f8 37%,#eee 63%);
  background-size:400% 100%;
  animation:skeleton 1.2s ease-in-out infinite;
  box-shadow:var(--shadow);
}
@keyframes skeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}
.pizza-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
.pizza-image{
  height:140px;
  background:linear-gradient(120deg,#f3f4f6,#e5e7eb);
}
.pizza-content{padding:12px}
.pizza-name{font-weight:800;margin-bottom:2px}
.pizza-description{
  color:var(--muted);
  font-size:14px;
  margin-bottom:10px;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
}
.pizza-footer{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}
.pizza-price{font-weight:800}

/* COME ARRIVARE */
.arrive .map-wrap{
  position:relative;
  margin:16px 0 8px;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#fff;
  aspect-ratio:16/9;
}
.arrive .map-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.arrive-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin-top:16px;
}
.cta-card .cta-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.hours-list{
  margin:10px 0 0;
  padding:0 0 0 18px;
}

/* PRIVACY */
.privacy-content{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:18px 20px;
  line-height:1.55;
}
.privacy-content h3,
.privacy-content h4{
  margin-top:16px;
  margin-bottom:6px;
  font-family:'Playfair Display',serif;
}
.privacy-content ul{
  margin-top:6px;
  margin-bottom:10px;
  padding-left:20px;
}

/* FOOTER */
.site-footer{
  background:transparent;
  margin-top:8px;
  text-align:center;
}
.footer-band{
  max-width:1100px;
  margin:0 auto;
  padding:0 16px 30px;
}
.footer-copy{
  margin:16px 0 28px;
  opacity:.7;
}

/* ANIMAZIONI BG */
@keyframes hueShift{0%{background-position:0% 0%}100%{background-position:100% 100%}}
@keyframes floatBg{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(1.5%,-1.5%,0) scale(1.02)}100%{transform:translate3d(-1.5%,1%,0) scale(1)}}
@keyframes slideTint{0%{background-position:0% 50%}100%{background-position:100% 50%}}

/* RESPONSIVE */
@media (max-width:1024px){
  .hero{min-height:calc(84vh - 60px)}
  .info-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .hero{min-height:auto;padding:44px 14px 60px}
  .gallery{grid-template-columns:1fr;gap:12px;margin-top:16px}
  .topbar-inner{justify-content:flex-start;gap:10px}
  .menu-title-bar{flex-direction:column;align-items:flex-start;gap:8px}
  .btn-trio .btn-eq{flex:1 1 100%;width:100%}
  .arrive-grid{grid-template-columns:1fr}
  .info-grid{grid-template-columns:1fr}

  /* logo più contenuto su schermi piccoli */
  .logo img{
    height:70px;
  }
}

/* Bottone Just Eat piccolo */
.btn-justeat-small {
  display: inline-block;
  background-color: #ff7a00;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  transition: 0.2s ease;
  text-decoration: none;
}
.btn-justeat-small:hover {
  background-color: #e56e00;
}
