/* Mazzucchi – stile del sito */
:root {
  --ink: #0A0A0A;
  --muted: #6B6B6B;
  --paper: #FFFCFB;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 20px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; text-align: left; }
.linklike:hover { opacity: .6; }

/* ---------- impaginazione con menu a sinistra ---------- */
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; min-height: 100vh; }
.side { flex: 0 0 290px; max-width: 100%; padding: 40px 30px; display: flex; flex-direction: column; gap: 40px; }
.logo img { width: 200px; height: auto; }
.menu { display: flex; flex-direction: column; gap: 20px; }
.menu .group { display: flex; flex-direction: column; }
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.legal { color: var(--muted); }
.content { flex: 999 1 560px; min-width: 0; padding: 40px 30px 60px 0; }

/* ---------- griglia categorie ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 41px; }
.grid figure { margin: 0; }
.grid img { width: 100%; aspect-ratio: 366 / 261; object-fit: cover; }
.grid figcaption { text-align: right; font-size: 13px; padding-top: 6px; }

/* ---------- galleria 3 foto per riga ---------- */
.gallery3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery3 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 700px) { .gallery3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.page-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; margin-bottom: 24px; }
@media (max-width: 700px) { .page-video { margin-bottom: 12px; } }

/* ---------- pagina laboratorio ---------- */
.project { display: flex; flex-wrap: wrap-reverse; align-items: flex-end; gap: 40px 41px; }
.gallery { flex: 1 1 480px; max-width: 690px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 24px; }
.gallery img, .gallery video { width: 100%; height: auto; }
.gallery .wide { grid-column: span 2; }
.text { flex: 1 1 280px; max-width: 366px; display: flex; flex-direction: column; gap: 8px; }
.project .text { position: sticky; top: 40px; }
@media (max-width: 860px) { .project .text { position: static; } }
.text h1 { margin: 0; font-size: 19.5px; line-height: 24px; font-weight: 400; }
.meta, .muted, .label { color: var(--muted); }
.body { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; font-size: 13px; line-height: 20px; text-transform: none; text-align: justify; hyphens: auto; }
.body p { margin: 0; }
.body .label { text-transform: uppercase; font-size: 11px; }
.intro { max-width: 560px; margin-bottom: 40px; }
.sedi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 41px; max-width: 820px; }
.sede { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.sede h2 { margin: 0; font-size: 19.5px; line-height: 24px; font-weight: 400; }
.sede .body { text-align: left; }
.map { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 8px 0 4px; background: #E9E6E1; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; box-sizing: border-box; }
.map .btn { font-size: 11px; text-transform: uppercase; font-weight: 400; color: var(--ink); background: transparent; }
.map a { color: var(--ink); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.85) contrast(1.05); }
.credits { margin: 10px 0 0; font-size: 13px; line-height: 20px; text-transform: none; color: var(--muted); }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.back { align-self: flex-start; margin-top: 16px; padding: 8px 0; }
.note { max-width: 420px; font-size: 13px; text-transform: none; }
.note p { margin: 0 0 10px; }

/* ---------- home ---------- */
.is-home { background: #111; }
.home { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.scroller { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-logo { position: absolute; z-index: 2; left: 30px; top: 40px; width: 220px; line-height: 0; }
.home-logo img { width: 100%; height: auto; transition: opacity .45s ease; }
.home-logo .logo-white { filter: drop-shadow(0 0 8px rgba(0,0,0,.3)); }
.home-logo .logo-black { position: absolute; left: 0; top: 0; opacity: 0; filter: drop-shadow(0 0 8px rgba(255,255,255,.35)); }
.home-menu { position: absolute; z-index: 2; left: 30px; top: 101px; color: #fff; text-shadow: 0 0 10px rgba(0,0,0,.35); transition: color .45s ease; }
.home.is-light .home-menu { color: #111; text-shadow: 0 0 10px rgba(255,255,255,.45); }
.home-menu .legal, .home-menu .legal a { color: inherit; opacity: .9; }

.appointment { position: absolute; z-index: 3; right: 0; bottom: 96px; width: 280px; max-width: calc(100% - 32px); background: #000; color: #fff; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 6px; text-transform: none; }
.appointment[hidden] { display: none; }
.appointment .close { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; background: none; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.appointment-title { font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.appointment-text { font-size: 12px; line-height: 1.4; color: #D9D9D9; }
.appointment-link { align-self: flex-start; margin-top: 10px; padding: 10px 0 4px; text-transform: uppercase; border-bottom: 1px solid #fff; line-height: 1; }

/* ---------- banner cookie ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; color: #0A0A0A; padding: 14px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 12px; line-height: 1.45; text-transform: none; box-shadow: 0 -1px 0 rgba(0,0,0,.08); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 420px; max-width: 760px; font-weight: 700; }
.cookie p a { text-decoration: underline; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { min-height: 36px; padding: 0 14px; background: #fff; color: #0A0A0A; border: 1px solid #0A0A0A; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; }

/* ---------- telefono ---------- */
@media (max-width: 700px) {
  .side { flex-basis: 100%; max-width: none; padding: 24px 16px; gap: 24px; }
  .content { padding: 0 16px 48px; }
  .home-logo { left: 16px; top: 24px; width: 180px; }
  .home-menu { left: 16px; top: 72px; }
  .appointment { bottom: 120px; }
  .cookie { padding: 14px 16px; }
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* dati societari in fondo alla pagina */
.site-footer { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 24px 30px 28px; color: var(--muted); font-size: 10px; line-height: 16px; text-transform: uppercase; border-top: 1px solid rgba(0,0,0,.08); background: var(--bg, #FFFCFB); }
.site-footer a, .site-footer .linklike { color: var(--muted); text-decoration: none; font: inherit; text-transform: inherit; }
.site-footer a:hover, .site-footer .linklike:hover { color: #0A0A0A; }
.home .site-footer { scroll-snap-align: end; border-top: 0; }

/* modulo prenotazione */
.booking { display: flex; flex-direction: column; gap: 22px; max-width: 420px; }
.booking label { display: flex; flex-direction: column; gap: 4px; }
.booking input, .booking select { font: inherit; font-size: 15px; line-height: 22px; text-transform: none; color: #0A0A0A; background: transparent; border: 0; border-bottom: 1px solid #0A0A0A; border-radius: 0; padding: 6px 0; outline: none; -webkit-appearance: none; appearance: none; }
.booking select { background-image: linear-gradient(45deg, transparent 50%, #0A0A0A 50%), linear-gradient(135deg, #0A0A0A 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.booking input:focus, .booking select:focus { border-bottom-width: 2px; padding-bottom: 5px; }
.booking .is-invalid { border-bottom-color: #B3261E; }
.booking .btn { align-self: flex-start; padding: 0 28px; }
.form-error { margin: 0; color: #B3261E; }
.form-note { margin: 0; font-size: 12px; text-transform: none; }
.booking ::placeholder { color: #B5B1AC; opacity: 1; }
.form-note { line-height: 18px; }
.form-phone { font-weight: 700; }
.strong { font-weight: 700; }

/* scelta lingua IT / EN */
.lang { display: flex; gap: 6px; }
.lang a { text-decoration: none; opacity: .55; }
.lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang a:hover { opacity: 1; }

/* ---------- telefono: intestazione compatta con pulsante Menu ---------- */
.menu-toggle { display: none; }
@media (max-width: 700px) {
  .side { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; padding: 20px 16px 8px; gap: 4px; }
  .side .logo img { width: 160px; height: auto; }
  .menu-toggle { display: block; position: relative; z-index: 31; -webkit-appearance: none; appearance: none; border-radius: 0; margin: 0; padding: 8px 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; font-size: 12px; font-weight: 700; line-height: 20px; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; }
  .menu { display: none; }
  .menu-open { overflow: hidden; }
  .menu-open .menu { display: flex; position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: #FFFCFB; color: #0A0A0A; text-shadow: none; padding: 112px 16px 40px; gap: 28px; font-size: 15px; line-height: 34px; }
  .menu-open .menu a { color: #0A0A0A; }
  .menu-open .side .logo { position: relative; z-index: 31; }
  .lang { gap: 10px; }

  /* home: logo e pulsante sopra la foto */
  .home-logo { left: 16px; top: 24px; width: 160px; z-index: 31; }
  .home > .menu-toggle { position: absolute; top: 42px; left: 16px; margin: 0; color: #fff; text-shadow: 0 0 10px rgba(0,0,0,.35); transition: color .45s ease; }
  .home.is-light > .menu-toggle { color: #111; text-shadow: 0 0 10px rgba(255,255,255,.45); }
  .home-menu { position: static; }
  .menu-open .home > .menu-toggle { color: #0A0A0A; text-shadow: none; }
  .menu-open .home-logo .logo-white { opacity: 0; }
  .menu-open .home-logo .logo-black { opacity: 1; filter: none; }
  .appointment { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; padding: 18px 16px 14px; }
  .appointment-title { font-size: 18px; }

  /* testi: allineati a sinistra, numeri di telefono interi */
  .body { text-align: left; hyphens: manual; }
  a[href^="tel:"] { white-space: nowrap; }
  .intro { margin-bottom: 28px; }
  .content { padding-top: 12px; }
  .booking { max-width: none; }

  /* footer: una voce per riga */
  .site-footer { flex-direction: column; gap: 2px; padding: 24px 16px 32px; }
  .site-footer a { padding: 6px 0 0; }

  /* banner cookie: Rifiuta e Accetta affiancati, stessa importanza */
  .cookie { padding: 16px; gap: 12px; }
  .cookie p { flex-basis: 100%; }
  .cookie-buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .cookie-buttons .btn { justify-content: center; min-height: 44px; }
  .cookie-buttons a.btn { grid-column: 1 / -1; order: 3; }
}
