/* Amore — Italian Food & Pizza by the Pool · colori del logo: blu maiolica, rosso, limone */
:root {
  --cream: #fbf7ef;
  --paper: #ffffff;
  --ink: #1b2233;
  --muted: #5f6675;
  --red: #d6332b;
  --red-dark: #b0261f;
  --blue: #1d4f91;
  --blue-dark: #143a6c;
  --blue-soft: #e8eff8;
  --lemon: #f6c945;
  --green: #2f7d4a;
  --line: rgba(27, 34, 51, .1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
  --radius: 22px;
  --tile: url("../img/tile.webp");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
a { color: inherit; }
button, select { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; right: 0; left: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(251, 247, 239, .9); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 50px; height: 50px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { color: var(--red); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
.brand small { color: var(--blue); font-size: .56rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { background: rgba(29, 79, 145, .08); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.langs button { padding: 5px 10px; border: 0; border-radius: 999px; color: var(--muted); background: none; font-size: .75rem; font-weight: 700; }
.langs button.on { color: #fff; background: var(--blue); }
.cart-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; color: #fff; background: var(--red); font-size: .9rem; font-weight: 600; }
.cart-btn .count { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; color: var(--red); background: #fff; font-size: .75rem; font-weight: 800; }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.red { border-color: var(--red); color: #fff; background: var(--red); }
.btn.red:hover { background: var(--red-dark); }
.btn.blue { border-color: var(--blue); color: #fff; background: var(--blue); }
.btn.white { border-color: #fff; color: var(--blue); background: #fff; }
.btn.small { padding: 9px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker::before { width: 22px; height: 2px; background: currentColor; content: ""; }

/* ---------- hero ---------- */
.hero h1 { margin: 18px 0 20px; font-family: var(--serif); font-size: clamp(2.9rem, 7vw, 5.8rem); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
.hero h1 em { color: var(--red); font-weight: 400; }
.hero h1 .blue { color: var(--blue); }
.hero .lead { max-width: 520px; color: var(--muted); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.photo-frame { position: relative; padding: 14px; border-radius: 34px; background: var(--tile) center / 90px; box-shadow: 0 40px 70px -40px rgba(20, 58, 108, .6); }
.photo-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 30%; border-radius: 24px; }
.stamp { position: absolute; left: -18px; bottom: -22px; display: grid; width: 132px; height: 132px; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.1; text-align: center; transform: rotate(-10deg); box-shadow: 0 16px 30px -12px rgba(214, 51, 43, .6); }
.academy { position: absolute; top: -16px; right: 18px; padding: 8px 14px; border-radius: 999px; color: var(--blue); background: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .3); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 15px 0; color: #fff; background: var(--blue); }
.marquee div { display: flex; gap: 40px; width: max-content; animation: slide 36s linear infinite; font-family: var(--serif); font-size: 1.35rem; font-style: italic; white-space: nowrap; }
.marquee span::after { margin-left: 40px; color: var(--lemon); content: "✦"; font-style: normal; font-size: .85rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
section.block { padding: 96px 0; }
.head { max-width: 680px; margin-bottom: 36px; }
.head h2 { margin: 12px 0; font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.head h2 em { color: var(--red); font-weight: 400; }
.head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- most loved ---------- */
.loved { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.loved a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 14px; border-radius: var(--radius); background: var(--paper); text-align: center; text-decoration: none; transition: transform .25s; }
.loved a:hover { transform: translateY(-6px) rotate(-1deg); }
.loved img { width: 100%; height: 140px; object-fit: contain; }
.loved b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.15; }
.loved span { color: var(--red); font-weight: 700; font-size: .9rem; }

/* ---------- menu ---------- */
.menu-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.tabs { position: sticky; top: 72px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 26px; padding: 12px 16px; background: var(--cream); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 600; }
.tabs button.on { border-color: var(--blue); color: #fff; background: var(--blue); }
.tabs button small { margin-left: 4px; opacity: .6; font-size: .75em; }
#menuAnchor { scroll-margin-top: 72px; }
.item.noimg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; }
.item.noimg .item-body { flex: 1 1 160px; gap: 3px; }
.item.noimg .pills { margin-top: 4px; }
.item.noimg .side { display: flex; flex: none; align-items: center; gap: 12px; margin-left: auto; }
.next-cat { display: flex; width: 100%; margin-top: 22px; border-color: var(--blue); color: var(--blue); font-weight: 700; }
.next-cat:hover { color: #fff; background: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .82rem; font-weight: 600; cursor: pointer; }
.filters input { width: auto; accent-color: var(--green); }
.cat { margin-bottom: 54px; }
.cat h3 { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.cat h3::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.cat-note { margin: 6px 0 18px; color: var(--muted); font-size: .9rem; }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.item:hover { border-color: rgba(29, 79, 145, .35); box-shadow: 0 14px 30px -24px rgba(20, 58, 108, .6); }
.item.flash { animation: flash 1.4s; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(246, 201, 69, .8); } }
.thumb { display: grid; width: 104px; height: 104px; place-items: center; border-radius: 16px; background: var(--blue-soft); }
.thumb img { width: 92%; height: 92%; object-fit: contain; }
.thumb.none { background: var(--tile) center / 52px; opacity: .35; }
.item-body { display: flex; min-width: 0; flex-direction: column; }
.item-top { display: flex; justify-content: space-between; gap: 10px; }
.item h4 { font-size: 1.02rem; font-weight: 650; line-height: 1.3; }
.item .price { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.item p { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.item-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { padding: 3px 9px; border-radius: 999px; background: rgba(27, 34, 51, .06); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.pill.vegan, .pill.veg { color: var(--green); background: rgba(47, 125, 74, .1); }
.pill.gf { color: #a86a00; background: rgba(246, 201, 69, .22); }
.pill.spicy { color: var(--red); background: rgba(214, 51, 43, .1); }
.pill.badge { color: #fff; background: var(--red); }
.buy { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.buy select { max-width: 190px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .82rem; }
.add { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--red); font-size: 1.3rem; font-weight: 600; transition: transform .15s; }
.add:active { transform: scale(.9); }
.preorder { color: var(--blue); font-size: .8rem; font-weight: 700; }
.pdf-link { font-size: .9rem; font-weight: 600; }

/* ---------- storia ---------- */
.story { position: relative; color: #fff; background: var(--blue); }
.story::before { position: absolute; inset: 0; background: var(--tile) center / 120px; content: ""; opacity: .07; }
.story .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story .kicker { color: var(--lemon); }
.story .head p { color: rgba(255, 255, 255, .82); }
.story .head h2 em { color: var(--lemon); }
.story img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .6); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.feature { padding: 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: .85rem; font-weight: 600; line-height: 1.3; }
.feature i { display: block; margin-bottom: 6px; font-size: 1.4rem; font-style: normal; }

/* ---------- workshop ---------- */
.workshops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ws { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: 0 24px 40px -34px rgba(20, 58, 108, .6); }
.ws img { width: 100%; height: 170px; object-fit: cover; }
.ws > div { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px; }
.ws h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.15; }
.ws p { flex: 1; color: var(--muted); font-size: .88rem; }
.ws .meta { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; }
.ws .meta b { color: var(--red); }
.ws-rules { margin-top: 18px; color: var(--muted); font-size: .88rem; }

/* ---------- prenotazione ---------- */
.booking .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 30px 60px -40px rgba(27, 34, 51, .45); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 1rem; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 79, 145, .1); }
textarea { min-height: 80px; resize: vertical; }
.people { display: flex; align-items: center; gap: 10px; }
.people button { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.2rem; }
.people output { flex: 1; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-align: center; }
.hp { position: absolute; left: -9999px; }
.error { color: var(--red); font-size: .88rem; font-weight: 600; }
.hint { margin-top: -6px; color: var(--muted); font-size: .82rem; }
.success { text-align: center; }
.check { display: grid; width: 70px; height: 70px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 2rem; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0); } }
.success h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.summary { display: grid; gap: 10px; margin: 22px 0; padding: 18px; border-radius: 14px; background: var(--cream); text-align: left; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary span { color: var(--muted); }
.info-list { display: grid; gap: 16px; margin-top: 26px; }
.info-list > div { display: flex; gap: 14px; }
.info-list .ico { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--paper); font-size: 1.2rem; }
.info-list b { display: block; }
.info-list span { color: var(--muted); font-size: .92rem; }

/* ---------- visita ---------- */
.visit { background: var(--blue-soft); }
.visit .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.hours { width: 100%; margin: 18px 0 24px; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 7px 0; border-bottom: 1px dashed rgba(27, 34, 51, .15); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--blue); font-weight: 800; }
.hours .closed { color: var(--red); }
.contacts { display: grid; gap: 8px; margin-bottom: 22px; }
.contacts a { font-weight: 600; text-decoration: none; }
.contacts a:hover { color: var(--red); }
.map { width: 100%; min-height: 420px; height: 100%; border: 0; border-radius: var(--radius); background: #d9e4f2; }

footer.foot { position: relative; padding: 40px 0; color: rgba(255, 255, 255, .75); background: var(--blue-dark); font-size: .88rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer.foot img { width: 64px; height: 64px; padding: 3px; border-radius: 50%; background: #fbf7ef; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
footer.foot a { color: #fff; }

/* ---------- barra in basso (solo telefono) ---------- */
.mobile-bar { display: none; }

/* ---------- carrello ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(27, 34, 51, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; z-index: 70; display: flex; width: min(440px, 100%); height: 100dvh; flex-direction: column; background: var(--paper); transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line small { display: block; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { display: grid; width: 32px; height: 32px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: none; font-weight: 600; }
.qty span { min-width: 22px; font-weight: 700; text-align: center; }
.empty { padding: 50px 0; color: var(--muted); text-align: center; }
.mode-title { display: grid; gap: 2px; margin: 22px 0 14px; font-size: 1.1rem; font-weight: 700; }
.mode-title small { color: var(--muted); font-size: .85rem; font-weight: 500; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: left; transition: border-color .2s, background .2s; }
.mode i { font-size: 1.4rem; font-style: normal; }
.mode small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.mode.on { border-color: var(--blue); background: var(--blue-soft); }
.big-input { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-align: center; letter-spacing: .1em; }
.fields .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .hint { margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 20px 0 14px; padding: 4px; border-radius: 14px; background: var(--cream); }
.seg button { padding: 10px; border: 0; border-radius: 10px; background: none; font-weight: 600; }
.seg button.on { background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.fields { display: grid; gap: 12px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.apple-pay { display: flex; width: 100%; height: 52px; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; color: #fff; background: #000; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; font-size: 1.15rem; font-weight: 500; }
.apple-pay svg { width: 18px; height: 22px; margin-top: -3px; fill: currentColor; }
.apple-pay:disabled { opacity: .4; cursor: not-allowed; }
.pay-card { width: 100%; margin-top: 10px; padding: 13px; }
.secure { margin-top: 12px; color: var(--muted); font-size: .75rem; text-align: center; }

/* ---------- foglio di pagamento (simulato) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-wrap.open { opacity: 1; pointer-events: auto; }
.sheet { width: min(430px, 100%); padding: 18px 22px 28px; border-radius: 20px 20px 0 0; color: #1d1d1f; background: #f2f2f7; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .9, .2, 1); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-top b { display: flex; align-items: center; gap: 4px; font-size: 1.2rem; }
.sheet-top b svg { width: 16px; height: 19px; margin-top: -3px; }
.sheet-top button { border: 0; color: #007aff; background: none; font-size: 1rem; }
.sheet-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: #fff; }
.mini-card { width: 46px; height: 30px; border-radius: 5px; background: linear-gradient(135deg, var(--blue), #4ea1d3); }
.sheet-card small { display: block; color: #8e8e93; }
.sheet-rows { margin: 12px 0; border-radius: 12px; background: #fff; }
.sheet-rows div { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e5e5ea; font-size: .95rem; }
.sheet-rows div:last-child { border: 0; font-weight: 600; }
.sheet-rows span { color: #8e8e93; }
.sheet-confirm { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 10px; }
.faceid { width: 64px; height: 64px; }
.faceid svg { width: 100%; height: 100%; stroke: #007aff; }
.sheet .demo-note { margin-top: 14px; color: #8e8e93; font-size: .72rem; text-align: center; }
.sheet.working .faceid svg { animation: scan 1s ease-in-out infinite; }
@keyframes scan { 50% { opacity: .35; transform: scale(.92); } }
.sheet.done .faceid svg { stroke: #34c759; }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; padding: 12px 20px; border-radius: 999px; color: #fff; background: var(--ink); font-weight: 600; visibility: hidden; transform: translate(-50%, 200%); transition: transform .3s, visibility .3s; }
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- pagine grazie / admin ---------- */
body.thanks { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.thanks-card { width: min(480px, 100%); padding: 40px 32px; border-radius: var(--radius); background: var(--paper); text-align: center; box-shadow: 0 30px 60px -40px rgba(27, 34, 51, .5); }
.thanks-icon { display: grid; width: 70px; height: 70px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 2rem; }
.thanks-card h1 { margin-bottom: 10px; font-family: var(--serif); font-weight: 500; }
.thanks-items { margin: 22px 0; list-style: none; text-align: left; }
.thanks-items li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.thanks-items li.total { border: 0; font-weight: 700; }
.thanks-card .btn { margin-top: 22px; }
body.admin { padding: 30px max(16px, calc((100vw - 1100px) / 2)); }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.admin-head h1 { font-family: var(--serif); font-weight: 500; }
.admin-head em { color: var(--red); }
.admin-head span { color: var(--muted); font-size: .85rem; }
body.admin h2 { margin: 30px 0 12px; font-family: var(--serif); font-weight: 500; }
body.admin h3 { margin: 20px 0 8px; font-size: 1rem; }
body.admin table { width: 100%; overflow: hidden; border-collapse: collapse; border-radius: 14px; background: var(--paper); font-size: .92rem; }
body.admin th, body.admin td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
body.admin th { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .booking .wrap, .visit .wrap, .story .wrap { grid-template-columns: 1fr; }
  .loved { grid-template-columns: repeat(3, 1fr); }
  .workshops { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .langs { margin-left: auto; }
  .items { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 120px; }
  body { padding-bottom: 76px; }
  section.block { padding: 56px 0; }
  .nav .wrap { height: 62px; gap: 10px; }
  .cart-btn { display: none; }
  .tabs { top: 62px; margin-bottom: 14px; }
  #menuAnchor { scroll-margin-top: 62px; }
  .hero h1 { margin: 12px 0 14px; font-size: 2.7rem; }
  .hero .lead { font-size: 1rem; }
  .actions { margin-top: 22px; gap: 10px; }
  .actions .btn { flex: 1; padding: 13px 14px; font-size: .92rem; }
  .photo-frame { padding: 9px; border-radius: 24px; background-size: 60px; }
  .photo-frame img { aspect-ratio: 4 / 3; border-radius: 17px; }
  .academy { top: -12px; right: 12px; font-size: .65rem; }
  .head { margin-bottom: 24px; }
  .head h2 { font-size: 2.2rem; }
  .head p { font-size: .96rem; }
  .marquee div { font-size: 1.1rem; }
  /* carosello orizzontale per i più amati e i workshop */
  .loved, .workshops { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .loved::-webkit-scrollbar, .workshops::-webkit-scrollbar { display: none; }
  .loved a { flex: 0 0 44%; scroll-snap-align: start; padding: 14px 10px; }
  .loved a:last-child { display: flex; }
  .loved img { height: 110px; }
  .loved b { font-size: .98rem; }
  .ws { flex: 0 0 82%; scroll-snap-align: start; }
  .ws img { height: 150px; }
  .menu-top { display: block; }
  .menu-top > div:last-child { justify-items: start !important; margin-bottom: 6px; }
  .cat h3 { font-size: 1.6rem; }
  .items { gap: 10px; }
  .story img { aspect-ratio: 16 / 10; }
  .booking .wrap, .visit .wrap { gap: 26px; }
  .mobile-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border: 0; border-radius: 14px; color: var(--ink); background: none; font-size: .72rem; font-weight: 700; text-decoration: none; }
  .mobile-bar i { font-size: 1.2rem; font-style: normal; line-height: 1; }
  .mobile-bar .bar-cart { position: relative; flex-direction: row; gap: 8px; color: #fff; background: var(--red); font-size: .9rem; }
  .mobile-bar .bar-cart b { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; color: var(--red); background: #fff; font-size: .75rem; }
  .mobile-bar .bar-cart em { font-style: normal; font-weight: 800; }
  .mobile-bar:not(.has-items) .bar-cart { background: var(--ink); }
  .mobile-bar:not(.has-items) .bar-cart b { display: none; }
  .toast { bottom: 90px; }
  .form { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .features { grid-template-columns: 1fr 1fr; }
  .cart-btn .label, .brand small { display: none; }
  .brand img { width: 42px; height: 42px; }
  .thumb { width: 84px; height: 84px; }
  .item { gap: 12px; padding: 12px; }
  .buy select { max-width: 150px; }
  .stamp { width: 100px; height: 100px; left: -6px; font-size: .85rem; }
  .map { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- approvazione prenotazioni ---------- */
.decide h1 { font-size: 1.8rem; }
.decide .thanks-items b { text-align: right; }
.decide-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decide-actions .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
.decision { margin: 6px 0 18px; padding: 16px; border-radius: 14px; font-size: 1.3rem; font-weight: 800; }
.decision.ok { color: var(--green); background: rgba(47, 125, 74, .1); }
.decision.no { color: var(--red); background: rgba(214, 51, 43, .08); }
.decision small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.wa-btn { width: 100%; }
.booking-status { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 16px; border-radius: 14px; text-align: left; }
.booking-status i { font-size: 1.6rem; font-style: normal; }
.booking-status b { display: block; }
.booking-status span { color: var(--muted); font-size: .88rem; }
.booking-status.pending { background: rgba(246, 201, 69, .2); }
.booking-status.pending i { animation: pulse 1.6s ease-in-out infinite; }
.booking-status.approved { background: rgba(47, 125, 74, .12); }
.booking-status.declined { background: rgba(214, 51, 43, .09); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- recensioni ---------- */
section.reviews { padding: 30px 0 70px; background: var(--paper); }
.review-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 38px; border-radius: 28px; color: #fff; background: var(--blue) var(--tile) center / 110px; background-blend-mode: soft-light; box-shadow: 0 30px 60px -36px rgba(20, 58, 108, .7); }
.review-card .kicker { color: var(--lemon); }
.review-card h2 { margin: 10px 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; }
.review-card h2 em { color: var(--lemon); }
.review-card p { color: rgba(255, 255, 255, .85); }
.review-action { display: grid; justify-items: center; gap: 14px; padding: 26px; border-radius: 22px; background: #fff; text-align: center; }
.stars { display: flex; gap: 4px; }
.stars a { color: #e3c25a; font-size: 2.6rem; line-height: 1; text-decoration: none; transition: transform .15s; }
.stars:hover a { color: var(--lemon); }
.stars a:hover ~ a { color: #d8dce4; }
.stars a:hover { transform: scale(1.18); }
.review-action .btn { width: 100%; }
.rev-fb { color: var(--blue); font-size: .9rem; font-weight: 600; }
@media (max-width: 760px) {
  .review-card { grid-template-columns: 1fr; padding: 26px 20px; }
  .stars a { font-size: 2.3rem; }
}

/* ---------- telefono: scorrimento fluido ---------- */
@media (max-width: 640px), (hover: none) {
  .nav, .mobile-bar { background: #fbf7ef; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-bar { background: #fff; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .item, .ws, .card, .photo-frame, .review-card { box-shadow: none; }
  .item:hover { box-shadow: none; }
  .marquee div { will-change: transform; }
  .tabs { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
}

/* ---------- eventi ---------- */
section.events { background: var(--paper); }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ev-img { position: relative; height: 190px; background: var(--blue) var(--tile) center / 90px; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-date { position: absolute; top: 14px; left: 14px; display: grid; width: 62px; padding: 8px 0; place-items: center; border-radius: 14px; background: #fff; line-height: 1; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4); }
.ev-date b { color: var(--red); font-family: var(--serif); font-size: 1.7rem; }
.ev-date span { margin-top: 3px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.ev-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px; }
.ev-when { color: var(--blue); font-size: .82rem; font-weight: 700; text-transform: capitalize; }
.ev-body h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.ev-desc { flex: 1; color: var(--muted); font-size: .92rem; white-space: pre-line; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ev-foot b { color: var(--red); }
/* piatti esauriti */
.item.is-soldout { opacity: .55; }
.item.is-soldout .thumb img { filter: grayscale(1); }
.pill.soldout { color: #fff; background: var(--muted); }
select:disabled, input:disabled { opacity: .7; background: #f3f3f3; }
@media (max-width: 640px) {
  .event-list { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .event { flex: 0 0 86%; scroll-snap-align: start; }
  .ev-img { height: 160px; }
}

.pay-methods { margin-top: 10px; color: var(--blue); font-size: .8rem; font-weight: 700; text-align: center; }
.pay-card.red { margin-top: 0; }

/* ---------- entrata: foto di sera a tutto schermo ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding: 150px 0 130px; overflow: hidden; color: #fff; background: var(--blue-dark); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ""; background:
  linear-gradient(180deg, rgba(8, 18, 38, .45) 0%, rgba(8, 18, 38, 0) 24%, rgba(8, 18, 38, .1) 45%, rgba(8, 18, 38, .72) 78%, rgba(8, 18, 38, .85) 100%); }
.hero .wrap { position: relative; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: var(--red); }
.hero h1 { max-width: 760px; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 em { color: #ef4b40; }
.hero h1 .blue { color: #7cbcf2; }
.hero .lead { max-width: 560px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.hero .btn { gap: 12px; padding: 16px 22px 16px 20px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.hero .btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero .btn .arr { width: 20px; height: 20px; margin-left: 4px; transition: transform .2s; }
.hero .btn:hover .arr { transform: translateX(3px); }
.btn.cream { border-color: var(--cream); color: var(--ink); background: var(--cream); }
.hero-wave { position: absolute; right: 0; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--cream); }

/* barra in alto sopra la foto: trasparente, logo grande */
.nav { transition: background .3s, border-color .3s, box-shadow .3s; }
.nav .brand img { transition: width .3s, height .3s, transform .3s; }
.nav.on-hero { border-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.on-hero .wrap { height: 110px; align-items: flex-start; padding-top: 18px; }
.nav.on-hero .brand img { width: 118px; height: 118px; padding: 4px; border-radius: 50%; background: var(--cream); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); }
.nav.on-hero .brand span { display: none; }
.nav.on-hero .nav-links a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.nav.on-hero .nav-links a:hover { background: rgba(255, 255, 255, .15); }
.nav.on-hero .langs { border-color: transparent; background: var(--cream); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.burger { display: none; flex: none; width: 44px; height: 44px; padding: 11px 9px; border: 0; background: none; }
.burger span { display: block; height: 2.5px; margin: 0 0 6px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s, background .3s; }
.burger span:last-child { margin: 0; }
.nav.on-hero .burger span { background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.nav.open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav .wrap { position: relative; }
  .nav.open .nav-links { position: absolute; top: calc(100% + 6px); right: 0; left: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: var(--cream); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); }
  .nav.open .nav-links a { padding: 13px 16px; color: var(--ink); font-size: 1.05rem; text-shadow: none; }
  .hero h1 { font-size: clamp(2.9rem, 9vw, 4.6rem); }
}
@media (max-width: 640px) {
  .nav.on-hero .wrap { height: 96px; padding-top: 14px; }
  .nav.on-hero .brand img { width: 96px; height: 96px; }
  .nav.on-hero .langs button { padding: 7px 11px; font-size: .8rem; }
  .hero { min-height: calc(100vh - 230px); min-height: calc(100svh - 230px); padding: 120px 0 70px; }
  .hero h1 { margin: 14px 0 16px; font-size: 2.85rem; line-height: 1; }
  .hero .lead { font-size: 1.02rem; }
  .hero .actions { gap: 10px; }
  .hero .btn { flex: 1 1 0; min-width: 0; padding: 14px 14px; font-size: .95rem; line-height: 1.2; }
  .hero .btn span { text-align: left; }
  .hero .btn .arr { display: none; }
  .hero-wave { height: 44px; }
}
@media (max-width: 370px) {
  .hero .btn svg:first-child { display: none; }
}

/* 24h · 100% sotto la foto */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; padding: 8px 0 34px; }
.facts div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px; color: var(--muted); font-size: .95rem; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts svg { width: 34px; height: 34px; margin-bottom: 6px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facts b { color: var(--ink); font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
@media (max-width: 640px) {
  .facts { padding: 4px 0 28px; }
  .facts b { font-size: 1.75rem; }
}

/* pagine ordine (stato per il cliente e conferma per il ristorante) */
.order-sum { margin: 20px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--cream); text-align: left; }
.thanks-card .flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: .9rem; text-align: left; }
.thanks-card .flash.ok { color: #1f5e36; background: #e4f3e9; }
.thanks-card .flash.err { color: #8a1f19; background: #fdecea; }
.thanks-card .price-form { text-align: left; }
.thanks-card .price-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thanks-card .price-form label { display: block; margin: 10px 0 4px; font-size: .85rem; font-weight: 600; }
.thanks-card .price-form input, .thanks-card .price-form textarea { width: 100%; margin-top: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; }
.thanks-card .price-form input[name=total] { font-weight: 700; }
.thanks-card .price-form .decide-actions { margin-top: 14px; }
.thanks-card .price-form .decide-actions .btn { margin-top: 0; }

/* carrello: richiesta d'ordine */
.fee-note { margin: 4px 0 12px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
#sendOrder { margin-top: 4px; font-size: 1.02rem; }

/* foto con la pizza: testo in alto, pizza libera in basso */
.hero { align-items: flex-start; }
.hero-bg img { object-position: 50% 100%; }
.hero::after { background: linear-gradient(180deg, rgba(8, 18, 38, .78) 0%, rgba(8, 18, 38, .62) 34%, rgba(8, 18, 38, .12) 62%, rgba(8, 18, 38, 0) 80%, rgba(8, 18, 38, .15) 100%); }
.hero .wrap { padding-top: 20px; }
@media (min-width: 981px) {
  .hero { min-height: 100vh; padding-top: 140px; }
  .hero::after { background: linear-gradient(100deg, rgba(8, 18, 38, .8) 0%, rgba(8, 18, 38, .55) 38%, rgba(8, 18, 38, 0) 62%), linear-gradient(180deg, rgba(8, 18, 38, .35) 0%, rgba(8, 18, 38, 0) 30%); }
  .hero-bg img { object-position: 50% 80%; }
}
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 76px); padding: 118px 0 0; }
  .hero .wrap { padding-top: 0; padding-bottom: 42%; }
}
