/* =========================================================
   Roberta Wierdis Photography — foglio di stile
   Layout: album fotografico editoriale su carta avorio;
   il cerchio rame con puntini del logo torna come motivo
   ricorrente (hero, chi sono, libro).
   ========================================================= */

:root {
  /* Colori presi dal logo: rame, antracite, avorio */
  --bg: #F8F3EC;           /* carta avorio */
  --surface: #FFFDF9;      /* fogli e card */
  --sand: #F0E6D9;         /* sezioni alternate */
  --ink: #2B2522;          /* antracite calda (scritta del logo) */
  --muted: #6B5E55;
  --copper: #A86A33;       /* rame del cerchio */
  --copper-text: #8B5426;  /* rame leggibile per testi piccoli */
  --copper-soft: #D9A876;
  --line: rgba(43, 37, 34, .14);
  --night: #241E1B;        /* fascia libro e footer */
  --on-night: #F4ECE2;
  --on-night-muted: #CBBBAA;
  --btn-bg: #8B5426;
  --btn-fg: #FFFDF9;
  --shadow: 0 18px 40px -18px rgba(60, 38, 20, .35);

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-body: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --f-script: "Allura", "Segoe Script", "Brush Script MT", cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 92px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1715; --surface: #24201D; --sand: #221D1A; --ink: #F2EAE0; --muted: #B9AA9B;
    --copper: #D39A62; --copper-text: #E0AE7C; --copper-soft: #8A5A33; --line: rgba(242, 234, 224, .14);
    --night: #120F0D; --on-night: #F4ECE2; --on-night-muted: #BFAE9C;
    --btn-bg: #D39A62; --btn-fg: #1B1715; --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1715; --surface: #24201D; --sand: #221D1A; --ink: #F2EAE0; --muted: #B9AA9B;
  --copper: #D39A62; --copper-text: #E0AE7C; --copper-soft: #8A5A33; --line: rgba(242, 234, 224, .14);
  --night: #120F0D; --on-night: #F4ECE2; --on-night-muted: #BFAE9C;
  --btn-bg: #D39A62; --btn-fg: #1B1715; --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--copper); font-weight: 400; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--f-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--copper-text);
  margin-bottom: 14px;
}
.script { font-family: var(--f-script); font-weight: 400; color: var(--copper); font-size: 1.6em; line-height: 1; letter-spacing: 0; }
.script-lg { font-size: 1.45em; vertical-align: -.08em; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 500 .95rem/1 var(--f-body); letter-spacing: .04em;
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-text); }
.btn-small { padding: 11px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--on-night); color: #241E1B; border-color: var(--on-night); }
.text-link { color: var(--copper-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: .95rem; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link-light { color: var(--copper-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 76px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand img { height: 60px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a:not(.btn) { text-decoration: none; font-size: .92rem; letter-spacing: .03em; position: relative; padding-block: 4px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (max-width: 940px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-toggle {
    display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; z-index: 60;
  }
  .menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--bg); padding: 80px var(--gutter); height: 100vh; height: 100dvh; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 2rem; font-weight: 500; }
  .nav-cta { margin-top: 10px; }
  .brand img { height: 62px; }
  :root { --header-h: 80px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 500; }
.lead { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 26px; font-size: .95rem; color: var(--muted); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.hero-note .script { font-size: 1.9rem; }
@media (max-width: 520px) { .hero-note { font-size: .9rem; } .hero-actions .btn { flex: 1 1 100%; } }
.hero-note a { color: var(--ink); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: -4%; width: 108%; height: 108%; fill: none; stroke: var(--copper); stroke-width: 1.2; opacity: .85; }
.orbit .dots circle { fill: var(--copper); stroke: none; }
.hero-visual .orbit { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.print {
  position: absolute; background: var(--surface); padding: 10px 10px 34px;
  box-shadow: var(--shadow); border-radius: 2px; overflow: hidden;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.print img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 44px); object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.print img.is-active { opacity: 1; position: absolute; }
.print-a { width: 42%; aspect-ratio: 4 / 5.6; left: 2%; top: 14%; transform: rotate(-7deg); }
.print-b { width: 50%; aspect-ratio: 4 / 5.6; left: 25%; top: 3%; transform: rotate(1.5deg); z-index: 2; }
.print-c { width: 40%; aspect-ratio: 4 / 5.6; right: 1%; top: 30%; transform: rotate(8deg); z-index: 3; }
.hero-visual:hover .print-a { transform: rotate(-10deg) translateX(-10px); }
.hero-visual:hover .print-c { transform: rotate(11deg) translateX(10px); }
.hero-tag { position: absolute; z-index: 4; left: 6%; bottom: 4%; font-size: clamp(1.7rem, 3vw, 2.4rem); transform: rotate(-6deg); background: var(--bg); padding: 2px 14px 6px; border-radius: 999px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; order: -1; }
}

/* ---------- nastro ---------- */
.ribbon { background: var(--night); color: var(--on-night); overflow: hidden; padding-block: 16px; }
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ribbon 48s linear infinite; }
.ribbon span { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; white-space: nowrap; }
.ribbon i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper-soft); flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sand { background: var(--sand); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head h2, .about h2, .book h2, .contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.section-intro { margin-top: 16px; color: var(--muted); }

/* ---------- servizi ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.service { display: flex; flex-direction: column; min-width: 0; }
.service-img { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--sand); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.service:hover .service-img img { transform: scale(1.06); }
.service-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 1.65rem; }
.service p { margin-top: 8px; font-size: .97rem; color: var(--muted); line-height: 1.6; flex: 1; }
.service-links { display: flex; gap: 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.service-links a { font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--copper-text); }
.service-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .services { gap: 28px 14px; }
  .service h3 { font-size: 1.35rem; }
  .service p { font-size: .9rem; }
  .service-links { flex-direction: column; gap: 6px; }
}

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter {
  font: 400 .9rem/1 var(--f-body); letter-spacing: .02em; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.filter span { font-size: .75rem; color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--copper); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter.is-active span { color: inherit; opacity: .7; }

.gallery { columns: 4 240px; column-gap: 14px; }
.g-item { margin: 0 0 14px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.g-item a { display: block; position: relative; cursor: zoom-in; }
.g-item img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s ease; }
.g-item a::after {
  content: attr(data-title); position: absolute; left: 12px; bottom: 12px;
  font: 500 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  background: var(--surface); color: var(--ink); padding: 7px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.g-item a:hover img { transform: scale(1.04); }
.g-item a:hover::after, .g-item a:focus-visible::after { opacity: 1; transform: none; }
.g-item.is-entering { animation: pop .5s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .g-item { margin-bottom: 8px; } }

.gallery-more { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; text-align: center; }

/* ---------- chi sono ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; max-width: 460px; width: 100%; justify-self: center; aspect-ratio: 1; }
.about-photo img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: cover; object-position: 40% 35%; border-radius: 50%; }
.orbit-small { inset: 0; width: 100%; height: 100%; }
.about-text { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text .eyebrow { margin-bottom: -4px; }
.about-text p:not(.eyebrow) { max-width: 36em; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; transition: border-color .25s, color .25s; }
.chip:hover { border-color: var(--copper); color: var(--copper-text); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }

/* ---------- libro ---------- */
.book-band { background: var(--night); color: var(--on-night); padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
.book { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.book .eyebrow { color: var(--copper-soft); }
.book h2 em { color: var(--on-night); }
.book-text { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.book-text .eyebrow { margin-bottom: -4px; }
.book-text p:not(.eyebrow) { color: var(--on-night-muted); max-width: 34em; }
.book-text .book-lead { font-family: var(--f-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.4; color: var(--on-night); font-style: italic; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 10px; }

.book-visual { perspective: 1400px; display: grid; place-items: center; }
.book-3d { position: relative; display: block; width: min(300px, 70vw); aspect-ratio: 2 / 3; transform: rotateY(-22deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .7, .2, 1); text-decoration: none; }
.book-3d:hover { transform: rotateY(-8deg) rotateX(2deg) translateY(-6px); }
.book-cover {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 2px 6px 6px 2px;
  background: radial-gradient(120% 90% at 30% 20%, #3A302A 0%, #1F1916 70%);
  box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .7), 24px 30px 50px -20px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px;
  color: #F4ECE2; width: 100%; height: 100%; object-fit: cover;
}
.orbit-book { inset: 6%; width: 88%; height: auto; aspect-ratio: 1; top: 18%; stroke: #D39A62; opacity: .9; }
.orbit-book .dots circle { fill: #D39A62; }
.book-kicker { position: relative; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: #D9A876; }
.book-title { position: relative; font-family: var(--f-display); font-size: clamp(2.2rem, 6vw, 3rem); line-height: .95; margin: 14px 0 18px; font-weight: 500; letter-spacing: .01em; }
.book-author { position: relative; font-family: var(--f-script); font-size: 1.7rem; color: #D9A876; }
.book-pages { position: absolute; top: 2%; bottom: 2%; right: -14px; width: 16px; background: repeating-linear-gradient(90deg, #EFE6DA 0 1px, #D9CDBE 1px 2px); transform: rotateY(90deg) translateZ(0); transform-origin: left; border-radius: 0 2px 2px 0; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } .book-text { text-align: left; } }

/* ---------- come lavoro ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: repeating-linear-gradient(90deg, var(--copper) 0 6px, transparent 6px 12px); opacity: .6; }
.steps li { position: relative; min-width: 0; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--copper); background: var(--bg); font-family: var(--f-display); font-size: 1.6rem; font-style: italic; color: var(--copper-text); position: relative; }
.steps h3 { font-size: 1.5rem; margin-top: 20px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .97rem; line-height: 1.6; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-body); font-weight: 300; font-size: 1.6rem; color: var(--copper); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- contatti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-text { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-text .eyebrow { margin-bottom: -4px; }
.contact-text > p:not(.eyebrow) { color: var(--muted); max-width: 32em; }
.contact-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-text); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--copper-text); }
.contact-big { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500; line-height: 1.2; font-variant-numeric: lining-nums; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; min-width: 0; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 22%, transparent); }
.field .is-invalid { border-color: #B3412E; }
.form-error { color: #B3412E; font-size: .92rem; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; border-top: 1px solid rgba(244, 236, 226, .08); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { width: 150px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-nav a { color: var(--on-night); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--copper-soft); }
.footer-services { max-width: 40em; font-size: .88rem; }
.footer-legal { font-size: .8rem; }
.footer-legal a { color: var(--on-night); }

/* ---------- whatsapp flottante ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45);
  transition: transform .25s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18, 14, 12, .94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 8px calc(16px + env(safe-area-inset-bottom, 0px)); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; height: 100%; justify-content: center; }
.lb-figure img { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; max-width: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; color: #F4ECE2; font-family: var(--f-display); font-size: 1.3rem; font-style: italic; text-align: center; }
.lb-figure .btn { font-style: normal; background: #D39A62; color: #1B1715; border-color: #D39A62; }
.lb-close, .lb-nav { background: none; border: 0; color: #F4ECE2; cursor: pointer; font-family: var(--f-body); font-weight: 200; line-height: 1; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; font-size: 2.6rem; width: 48px; height: 48px; z-index: 2; }
.lb-nav { font-size: 3.4rem; width: 56px; height: 80px; opacity: .8; }
.lb-nav:hover, .lb-close:hover { opacity: 1; color: #D39A62; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: 56px; font-size: 2.6rem; z-index: 2; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-figure img { max-height: calc(100dvh - 190px); }
}

/* ---------- comparsa allo scorrimento ---------- */
.js .reveal-pre { opacity: 0; transform: translateY(24px); }
.js .reveal-in { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }

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