/* ==========================================================
   L'arte del dolce di Natale Santoro — stylesheet
   ========================================================== */

:root {
  --cream: #f8f2ea;
  --cream-2: #efe5d7;
  --paper: #fffdf9;
  --cocoa: #2b1a12;
  --cocoa-2: #3d271b;
  --cocoa-3: #5a3f2f;
  --ink: #2a211c;
  --muted: #7a6a5f;
  --gold: #c89b5c;
  --gold-2: #dcb57a;
  --pistachio: #8ea160;
  --rose: #c9776b;
  --line: rgba(43, 26, 18, .12);
  --line-light: rgba(255, 245, 230, .16);
  --wa: #25d366;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(43, 26, 18, .35);
  --shadow-sm: 0 6px 20px -8px rgba(43, 26, 18, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cocoa); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }
.h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05; margin: 0 0 18px; letter-spacing: -.01em; color: var(--cocoa);
}
.h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 6px; line-height: 1.15; }
.h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--cocoa-3); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.break { word-break: break-all; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--cocoa); box-shadow: 0 10px 30px -10px rgba(200, 155, 92, .7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--cocoa); }
.btn--dark { background: var(--cocoa); color: #fff; }
.btn--dark:hover { background: var(--cocoa-3); }
.btn--line { border-color: var(--cocoa); color: var(--cocoa); }
.btn--line:hover { background: var(--cocoa); color: #fff; }
.btn--wa { background: var(--wa); color: #06361a; }
.btn--wa:hover { background: #3ee07b; }
.btn--outline-light { color: var(--cream); border-color: var(--line-light); }
.btn--outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .35s, box-shadow .35s, height .35s;
  color: #fff;
}
.nav.is-solid {
  background: rgba(255, 253, 249, .92); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--cocoa); --nav-h: 66px; height: 66px;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand__mark { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.7rem; letter-spacing: -.01em; }
.brand__sub { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; margin-top: 5px; opacity: .8; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) {
  text-decoration: none; font-size: .9rem; font-weight: 500; position: relative; padding: 6px 0; opacity: .9;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; color: inherit; }
.nav__toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 1020px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--cocoa); color: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav__links a:not(.btn) { font-family: var(--serif); font-size: 1.9rem; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { color: var(--cream); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-open .brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--cocoa);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 14, 9, .9) 0%, rgba(24, 14, 9, .65) 45%, rgba(24, 14, 9, .15) 100%),
    linear-gradient(0deg, rgba(24, 14, 9, .6), transparent 40%);
}
@media (max-width: 700px) {
  .hero__overlay { background: linear-gradient(0deg, rgba(24, 14, 9, .92) 0%, rgba(24, 14, 9, .72) 55%, rgba(24, 14, 9, .45) 100%); }
}
.hero__content { position: relative; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 90px; max-width: 1200px; }
.hero__title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(3.4rem, 10vw, 7.6rem);
  line-height: .92; margin: 0 0 24px; letter-spacing: -.02em;
}
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__lead { max-width: 540px; font-size: 1.12rem; color: rgba(255, 245, 232, .88); margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .3s; }
.hero__content > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.status {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
.status.is-open .status__dot { background: #5bd67f; box-shadow: 0 0 0 0 rgba(91, 214, 127, .6); animation: pulse 2s infinite; }
.status.is-closed .status__dot { background: var(--rose); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(91, 214, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 214, 127, 0); } }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Strip ---------- */
.strip { background: var(--cocoa); color: var(--cream); border-top: 1px solid var(--line-light); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 28px 22px; border-left: 1px solid var(--line-light); }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__item strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--gold-2); }
.strip__item span { font-size: .88rem; color: rgba(248, 242, 234, .7); }
@media (max-width: 820px) {
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__item { padding: 20px 14px; }
  .strip__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--cocoa); color: var(--cream); }
.section--dark .h2 { color: var(--cream); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--light .section__intro { color: rgba(248, 242, 234, .75); }
.section__intro { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 0 40px 60px 0; }
.about__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 4 / 5; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--paper); }
.about__badge {
  position: absolute; left: -18px; top: 36px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--gold); color: var(--cocoa); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.1; box-shadow: var(--shadow-sm); animation: spinSlow 30s linear infinite;
}
.about__badge span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.about__badge strong { font-family: var(--serif); font-style: italic; font-size: 1.7rem; font-weight: 600; margin: 3px 0; }
@keyframes spinSlow { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.about__text p { margin: 0 0 16px; }
.about__points { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; }
.about__points li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.ico { color: var(--gold); }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--cocoa-3); }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; padding-right: 30px; }
  .about__badge { left: -6px; width: 104px; height: 104px; }
  .about__badge strong { font-size: 1.35rem; }
}

/* ---------- Specialità ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 20px; }
.spec {
  position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: var(--shadow-sm); isolation: isolate;
}
.spec--tall { grid-row: span 2; }
.spec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: -2; }
.spec::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 14, 9, .88) 0%, rgba(24, 14, 9, .15) 55%, transparent); z-index: -1; transition: background .4s; }
.spec:hover img { transform: scale(1.07); }
.spec__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.spec__body h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 8px 0 4px; line-height: 1; }
.spec--tall .spec__body h3 { font-size: 2.8rem; }
.spec__body p { margin: 0; font-size: .92rem; color: rgba(255, 245, 232, .85); max-width: 340px; }
.spec__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .spec--tall { grid-row: span 1; }
  .spec--tall .spec__body h3 { font-size: 2.2rem; }
}

/* ---------- Menu ---------- */
.menu__tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search {
  flex: 1 1 320px; max-width: 460px; display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 155, 92, .18); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: 0; background: none; outline: 0; padding: 14px 0; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-size: .86rem; font-weight: 600;
  color: var(--cocoa-3); transition: all .2s;
}
.chip:hover { border-color: var(--pistachio); }
.chip[aria-pressed="true"] { background: var(--pistachio); border-color: var(--pistachio); color: #fff; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 0 34px;
  background: var(--cream); border-radius: 999px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--cocoa-3); white-space: nowrap; transition: background .25s, color .25s; scroll-snap-align: start;
}
.tab:hover { color: var(--cocoa); background: rgba(255, 255, 255, .6); }
.tab[aria-selected="true"] { background: var(--cocoa); color: var(--cream); }

.menu__panel { min-height: 300px; }
.mcat { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; animation: fadeUp .5s var(--ease); }
.mcat + .mcat { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mcat__aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.mcat__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.mcat__title { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--cocoa); margin: 0 0 8px; line-height: 1.05; }
.mcat__count { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mcat__note { margin-top: 14px; font-size: .9rem; background: var(--cream); border-left: 3px solid var(--gold); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--cocoa-3); }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.mitem { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.mitem__top { display: flex; align-items: baseline; gap: 10px; }
.mitem__name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--cocoa); line-height: 1.2; }
.mitem__dots { flex: 1; border-bottom: 1px dotted rgba(43, 26, 18, .3); transform: translateY(-5px); min-width: 16px; }
.mitem__price { font-weight: 700; color: var(--cocoa); white-space: nowrap; font-size: .95rem; }
.mitem__desc { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.mitem__all { margin: 4px 0 0; font-size: .78rem; color: var(--muted); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.tag--sg { background: #eef2e2; color: #55662a; }
.tag--sl { background: #e8eff6; color: #3c5c7c; }
.tag--vg { background: #e6f3ea; color: #2d6a40; }
.tag--disp { background: #f6ece0; color: #8a5a24; }
mark { background: rgba(200, 155, 92, .3); color: inherit; border-radius: 3px; padding: 0 2px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--cocoa); margin-bottom: 6px; }

.addons {
  margin-top: 70px; padding: 34px 38px; border-radius: var(--radius); background: var(--cream);
  display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center;
}
.addons p { margin: 0; }
.addons ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.addons li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.addons li b { color: var(--cocoa); white-space: nowrap; }
@media (max-width: 960px) {
  .mcat { grid-template-columns: 1fr; gap: 24px; }
  .mcat__aside { position: static; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
  .mcat__img { margin: 0; aspect-ratio: 1; }
  .mlist { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 560px) {
  .mcat__aside { grid-template-columns: 1fr; }
  .mcat__img { aspect-ratio: 16 / 9; }
  .addons ul { grid-template-columns: 1fr; }
  .mcat__title { font-size: 1.9rem; }
}

/* ---------- Cake builder ---------- */
.cake { background:
  radial-gradient(1000px 500px at 90% 0%, rgba(200, 155, 92, .16), transparent 60%),
  radial-gradient(800px 500px at 0% 100%, rgba(142, 161, 96, .1), transparent 60%),
  var(--cocoa); }
.cake__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.cake__form { display: grid; gap: 18px; }
.step {
  border: 1px solid var(--line-light); border-radius: var(--radius); padding: 26px 26px 22px; margin: 0;
  background: rgba(255, 255, 255, .03); display: grid; gap: 18px; min-width: 0;
}
.step legend { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; padding: 0 10px; margin-left: -10px; display: flex; align-items: center; gap: 12px; color: var(--cream); }
.step__n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--cocoa); font-family: var(--sans); font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: rgba(248, 242, 234, .75); }
.field output { color: var(--gold-2); font-weight: 700; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .8rem; color: rgba(248, 242, 234, .55); }
.cake input[type="text"], .cake input[type="number"], .cake input[type="date"], .cake select,
.cform input, .cform select, .cform textarea {
  width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-light); color: var(--cream);
  border-radius: var(--radius-sm); padding: 13px 14px; outline: 0; transition: border-color .2s, background .2s;
  color-scheme: dark;
}
.cake select option, .cform select option { background: var(--cocoa-2); color: var(--cream); }
.cake input:focus, .cake select:focus, .cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .09); }
.cake ::placeholder, .cform ::placeholder { color: rgba(248, 242, 234, .35); }
.is-invalid { border-color: var(--rose) !important; }

.seg { display: inline-flex; flex-wrap: nowrap; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 4px; border: 1px solid var(--line-light); max-width: 100%; }
.seg--wrap { flex-wrap: wrap; border-radius: 18px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: rgba(248, 242, 234, .75); cursor: pointer; transition: all .2s; white-space: nowrap; }
.seg input:checked + span { background: var(--gold); color: var(--cocoa); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: .95rem; }
.switch small { color: rgba(248, 242, 234, .55); }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 46px; height: 26px; flex: none; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; transition: background .25s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--gold); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; font-size: .92rem; }
.check:hover { border-color: rgba(220, 181, 122, .5); }
.check input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.check em { font-style: normal; color: var(--gold-2); font-weight: 700; font-size: .82rem; margin-left: 4px; white-space: nowrap; }
.check:has(input:checked) { border-color: var(--gold); background: rgba(200, 155, 92, .1); }
.check--prosecco { border-style: dashed; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); outline: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: 4px solid var(--cocoa); box-shadow: 0 0 0 2px var(--gold); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 4px solid var(--cocoa); box-shadow: 0 0 0 2px var(--gold); cursor: pointer; }

.notice { margin: 0; font-size: .9rem; padding: 12px 14px; border-radius: var(--radius-sm); }
.notice--soft { background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3); color: #bff0cf; }
.form-error { margin: 0; color: #ffb4a8; font-size: .9rem; font-weight: 600; }

.cake__summary { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }
.ticket {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 30px 28px; position: relative;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
  -webkit-mask: radial-gradient(circle 12px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket__label { margin: 0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.ticket__title { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 6px 0 16px; line-height: 1.05; color: var(--cocoa); }
.ticket__list { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9rem; }
.ticket__list dt { color: var(--muted); }
.ticket__list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ticket__price { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 2px dashed var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ticket__price span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ticket__price strong { font-family: var(--serif); font-size: 2rem; color: var(--cocoa); }
.ticket__fine { font-size: .78rem; color: var(--muted); margin: 0 0 18px; }
.ticket .btn--outline-light { color: var(--cocoa); border-color: var(--line); margin-top: 10px; }
.ticket .btn--outline-light:hover { border-color: var(--cocoa); color: var(--cocoa); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; color: rgba(248, 242, 234, .75); }
.rules li { padding-left: 20px; position: relative; }
.rules li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: .75rem; top: 3px; }
.rules strong { color: var(--cream); }
.rules a { color: var(--gold-2); }
@media (max-width: 960px) {
  .cake__grid { grid-template-columns: 1fr; }
  .cake__summary { position: static; }
}
@media (max-width: 560px) {
  .step { padding: 22px 16px 18px; }
  .row, .checks { grid-template-columns: 1fr; }
  .seg:not(.seg--wrap) span { padding: 9px 13px; }
}

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.g { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.g:hover img { transform: scale(1.06); filter: saturate(1.1); }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
@media (max-width: 820px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15, 9, 6, .92); display: grid; place-items: center; padding: 30px; animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: min(1100px, 100%); border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; font-size: 1.8rem; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Info ---------- */
.info__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 90px); }
.hours { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 1rem; }
.hours th, .hours td { padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--rose); font-weight: 600; }
.hours tr.is-today { background: linear-gradient(90deg, rgba(200, 155, 92, .18), transparent); }
.hours tr.is-today th::after { content: 'Oggi'; margin-left: 10px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: var(--cocoa); color: var(--cream); padding: 3px 8px; border-radius: 999px; vertical-align: 2px; }
.hours tr.is-today th { padding-left: 12px; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.service { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 18px; box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.service__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; flex: none; }
.service__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service strong { display: block; font-size: .98rem; color: var(--cocoa); }
.service span { font-size: .85rem; color: var(--muted); line-height: 1.45; display: block; }
.pay { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.pay__list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.pay__list li { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.pay__list .ok { background: #eef2e2; color: #55662a; }
.pay__list .ok::before { content: '✓ '; }
.pay p { margin: 0; }
@media (max-width: 900px) { .info__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* ---------- Where ---------- */
.where__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.where__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }
@media (max-width: 900px) { .where__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.ccard {
  text-decoration: none; padding: 26px 22px; border: 1px solid var(--line-light); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), border-color .3s, background .3s; min-width: 0;
}
.ccard:hover { transform: translateY(-4px); border-color: var(--gold); background: rgba(200, 155, 92, .08); }
.ccard__ico { width: 46px; height: 46px; border-radius: 50%; background: rgba(200, 155, 92, .16); display: grid; place-items: center; margin-bottom: 10px; }
.ccard__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ccard__label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(248, 242, 234, .6); font-weight: 600; }
.ccard strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--cream); line-height: 1.2; }
.ccard strong.break { font-size: 1.1rem; }
.cform { max-width: 780px; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; background: rgba(255, 255, 255, .03); }
.cform label { font-size: .82rem; font-weight: 600; color: rgba(248, 242, 234, .75); }
.cform textarea { resize: vertical; }
.cform__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact__grid { grid-template-columns: 1fr; } .cform { padding: 22px 16px; } .cform .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #1f130d; color: rgba(248, 242, 234, .8); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--cream); margin: 0 0 12px; }
.footer .muted { color: rgba(248, 242, 234, .6); font-size: .92rem; line-height: 1.9; margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.brand--footer { margin-bottom: 16px; color: var(--cream); }
.footer__bottom { padding-top: 24px; font-size: .82rem; color: rgba(248, 242, 234, .45); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__bottom p { margin: 0; }
.credits summary { cursor: pointer; }
.credits p { max-width: 640px; margin-top: 10px; line-height: 1.6; }
.credits a { text-decoration: underline; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fab.is-visible { transform: scale(1); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
