:root {
  /* Tema nero con scritte bianche */
  --bg: #000;
  --bg-alt: #0c0c0c;
  --ink: #fff;
  --muted: #a6a6a6;
  --line: #2b2b2b;
  --accent: #fff;
  --accent-ink: #000;
  --card: #111;
  --disabled: #4a4a4a;
  --danger: #ff7a6b;
  --ok: #6fcf86;
  color-scheme: dark;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: .85rem 1.5rem; border-radius: 999px; font: 500 .95rem var(--sans); cursor: pointer;
  text-decoration: none; transition: .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: inherit; }
.btn-small { padding: .45rem 1rem; font-size: .85rem; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { display: block; line-height: 0; }
.logo img { height: 38px; width: auto; }
.nav nav { display: flex; gap: 1.4rem; align-items: center; }
.nav nav a:not(.btn) { text-decoration: none; font-size: .92rem; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.6)), #000 center/cover no-repeat;
  padding: 4rem 16px;
}
.hero-inner { max-width: 760px; }
.eyebrow { letter-spacing: .25em; text-transform: uppercase; font-size: .78rem; opacity: .85; margin: 0 0 1rem; }
.hero h1 { margin: 0 auto; line-height: 0; }
.hero-logo { width: min(440px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 18px rgba(0,0,0,.35)); }
.lead { font-size: 1.15rem; opacity: .9; margin: 1rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn { background: #fff; color: #000; border-color: #fff; }
.hero .btn:hover { background: transparent; color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: #000; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 1184px; margin-left: auto; margin-right: auto; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section-head p { flex-basis: 100%; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ---------- Galleria ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .35rem .9rem;
  font: .85rem var(--sans); cursor: pointer; color: var(--muted);
}
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; position: relative; overflow: hidden; border-radius: 10px; cursor: zoom-in; background: var(--line); }
.gallery img { width: 100%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem .9rem .7rem; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: .3s;
}
.gallery figure:hover figcaption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12,11,10,.94); display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; color: #ddd; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { margin-top: .8rem; font-size: .9rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 1rem; }
.lb-close { top: 0; right: .5rem; }
.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.service-card h3 { margin-bottom: .5rem; }
.service-card .meta { color: var(--muted); font-size: .9rem; }
.service-card ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.service-card li { padding: .45rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.service-card li:first-child { border-top: 0; }

/* ---------- Prenotazione ---------- */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 820px) { .booking { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
.step h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.step h3 span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 600 .85rem var(--sans);
}
.service-pick { display: grid; gap: .5rem; }
.service-pick label {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem 1rem; cursor: pointer; transition: .15s;
}
.service-pick label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.service-pick label > span { display: flex; align-items: center; color: var(--ink); font-size: .95rem; }
.service-pick input { accent-color: var(--accent); margin: 0 .6rem 0 0; width: auto; padding: 0; }
.service-pick small { color: var(--muted); white-space: nowrap; }
.service-pick label > span { align-items: flex-start; }
.service-pick input { margin-top: .3rem; }
.service-pick em { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .72rem; color: var(--muted); text-transform: uppercase; padding: .3rem 0; }
.calendar { max-width: 460px; margin: 0 auto; }
.cal-grid button {
  height: 44px; border: 1px solid transparent; border-radius: 8px; background: none; font: .92rem var(--sans);
  cursor: pointer; color: var(--ink);
}
.cal-grid button:not(:disabled):hover { border-color: var(--accent); }
.cal-grid button:disabled { color: var(--disabled); cursor: default; }
.cal-grid button.selected { background: var(--ink); color: var(--bg); }

.slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.slots button {
  border: 1px solid var(--line); background: none; border-radius: 8px; padding: .55rem .9rem; cursor: pointer;
  font: 500 .92rem var(--sans); color: var(--ink);
}
.slots button:hover { border-color: var(--accent); }
.slots button.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }
label { font-size: .85rem; color: var(--muted); display: grid; gap: .3rem; }
input, textarea, select {
  font: 1rem var(--sans); padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.summary { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; background: var(--bg-alt); font-size: .92rem; }
.summary:empty { display: none; }
.error { color: var(--danger); min-height: 1.2em; margin: .5rem 0; font-size: .92rem; }
.success { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; }
.success h3 { font-size: 2rem; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.footer {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
  padding: 3rem clamp(16px, 4vw, 48px); background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem;
}
.footer strong { font: 600 1.1rem var(--serif); color: #fff; }
.footer-logo { width: 150px; height: auto; margin-bottom: .8rem; }
.footer p { margin: .3rem 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer table { border-collapse: collapse; }
.footer td { padding: .1rem 1rem .1rem 0; }
.footer > div > strong { display: block; margin-bottom: .6rem; }
.footer-small { font-size: .82rem; margin-top: 1rem !important; }
.footer-small a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.contact-list a { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; color: var(--ink); }
.contact-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact-list .icon { flex: none; opacity: .9; }
.contact-list b { font-weight: 600; margin-right: .25rem; }

/* ---------- Casella privacy ---------- */
label.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
label.check input { width: 18px; height: 18px; flex: none; margin: .1rem 0 0; padding: 0; accent-color: var(--accent); }
label.check a { color: var(--ink); }

/* ---------- Pagina privacy ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: #d4d4d4; }
.legal ul { padding-left: 1.2rem; }
