/* ==========================================================================
   Vitale Salon - landing
   Palette: navy del marchio (#2C3E50) + giallo senape della linea Vitale Shop.
   Raggi (regola unica): bottoni e pill = full-pill, card e immagini = 14px,
   input e slot = 10px.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f1f2f0;
  --surface: #fafbfa;
  --surface-2: #e6e9ea;
  --ink: #15202b;
  --muted: #4c5866;
  --brand: #2c3e50;
  --brand-ink: #f1f2f0;
  --line: rgb(44 62 80 / 0.14);
  --accent: #e9b52f;
  --accent-hover: #f0c24a;
  --accent-ink: #15202b;
  --error: #b3261e;
  --focus: #2c3e50;
  --shadow: 0 1px 2px rgb(44 62 80 / 0.06), 0 12px 32px -12px rgb(44 62 80 / 0.22);

  --r-card: 14px;
  --r-ctl: 10px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* z-index scale */
  --z-nav: 20;
  --z-menu: 30;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e151d;
    --surface: #152029;
    --surface-2: #1c2935;
    --ink: #eceeec;
    --muted: #a4afbb;
    --brand: #22313f;
    --brand-ink: #eceeec;
    --line: rgb(236 238 236 / 0.12);
    --accent: #edbd3c;
    --accent-hover: #f4ca5a;
    --error: #ff8a80;
    --focus: #edbd3c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e151d;
  --surface: #152029;
  --surface-2: #1c2935;
  --ink: #eceeec;
  --muted: #a4afbb;
  --brand: #22313f;
  --brand-ink: #eceeec;
  --line: rgb(236 238 236 / 0.12);
  --accent: #edbd3c;
  --accent-hover: #f4ca5a;
  --error: #ff8a80;
  --focus: #edbd3c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.section { padding: 72px 0; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2, .h3, .hero__title, .tile h3, .duo__item h3, .brands__statement {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 760;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; max-width: 18ch; text-wrap: balance; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; }
.lead { margin: 16px 0 0; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.section-head { margin-bottom: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap;
  min-height: 50px; padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn i { font-size: 1.2em; }
.btn:active { transform: scale(0.98) translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px rgb(233 181 47 / 0.8); }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.94rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--sm { width: 36px; height: 36px; font-size: 1rem; }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- logo (SVG originale usato come maschera, segue il colore del tema) ---------- */
.logo {
  display: block; width: 52px; height: 52px;
  background: currentColor;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
          mask: url("../img/logo.svg") center / contain no-repeat;
}
.logo--lg { width: 132px; height: 132px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__brand { color: var(--brand); display: block; }
:root[data-theme="dark"] .nav__brand { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav__brand { color: var(--ink); } }
.nav__links { display: none; gap: 30px; margin-left: 24px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}
.mobile-menu {
  position: absolute; inset: 72px 0 auto 0; z-index: var(--z-menu);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 16px 20px; display: grid;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 0; text-decoration: none; font-family: var(--display); font-stretch: 80%;
  font-size: 1.5rem; font-weight: 700; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: 32px 0 64px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 40px 0 88px; min-height: calc(100dvh - 72px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.hero__title {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  font-stretch: 72%;
  font-weight: 800;
}
.hero__title em {
  font-style: italic; font-weight: 700; color: var(--muted);
  display: inline-block; line-height: 1.1; padding-bottom: 0.08em; /* spazio per la discendente di "prodotti" */
}
.hero__sub { margin: 24px 0 0; max-width: 42ch; font-size: 1.12rem; color: var(--muted); }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; padding-bottom: 48px; }
.hero__main {
  border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow);
  margin-left: 12%;
}
.hero__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__aside {
  position: absolute; left: 0; bottom: 0; width: 42%;
  aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.hero__aside img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 60%; }
@media (max-width: 767px) {
  .hero__main { margin-left: 0; aspect-ratio: 4 / 3.6; }
  .hero__aside { width: 38%; }
}

/* ---------- booking widget ---------- */
.bk {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) { .bk { grid-template-columns: 0.9fr 1.35fr 0.95fr; } }
.bk__col { background: var(--surface); padding: 24px; margin: 0; border: 0; min-width: 0; }
@media (min-width: 768px) { .bk__col { padding: 28px; } }
.bk__label {
  display: block; padding: 0; margin: 0 0 14px;
  font-size: 0.86rem; font-weight: 600; color: var(--muted);
}
.bk__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk__head .bk__label { margin: 0; }
.bk__arrows { display: flex; gap: 6px; }

.bk__services > legend { float: left; width: 100%; }
.bk__service-list { clear: both; display: grid; gap: 8px; }
.svc {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.svc:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.svc:active { transform: scale(0.99); }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc__name { font-weight: 600; }
.svc__dur { font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc:has(input:checked) { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.svc:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.bk__days {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 8px) / 7);
  gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-bottom: 26px; padding: 2px;
}
.bk__days::-webkit-scrollbar { display: none; }
@media (max-width: 520px) { .bk__days { grid-auto-columns: calc((100% - 4 * 8px) / 5); } }
.day {
  scroll-snap-align: start;
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 0; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.day:active { transform: scale(0.97); }
.day__dow { font-size: 0.74rem; text-transform: capitalize; color: var(--muted); }
.day__num { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-checked="true"] .day__dow { color: inherit; opacity: 0.75; }
.day.is-closed .day__num { opacity: 0.45; }

.bk__slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px;
  min-height: 188px; align-content: start;
}
.slot {
  padding: 10px 0; border-radius: var(--r-ctl); text-align: center;
  border: 1px solid var(--line); background: var(--bg);
  font-variant-numeric: tabular-nums; font-weight: 500; font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
  animation: slot-in 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 18ms);
}
.slot:hover:not([disabled]) { border-color: var(--ink); }
.slot:active:not([disabled]) { transform: scale(0.96); }
.slot[disabled] { color: var(--muted); text-decoration: line-through; opacity: 0.5; cursor: not-allowed; background: transparent; }
.slot[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
@keyframes slot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.skeleton {
  height: 42px; border-radius: var(--r-ctl);
  background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.bk__empty {
  grid-column: 1 / -1;
  display: grid; justify-items: start; gap: 6px;
  padding: 22px; border-radius: var(--r-ctl);
  border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--muted);
}
.bk__empty i { font-size: 1.5rem; color: var(--ink); }
.bk__empty strong { color: var(--ink); }
.bk__empty button {
  margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}

.bk__summary { display: flex; flex-direction: column; }
.bk__recap { margin: 0 0 22px; display: grid; gap: 12px; }
.bk__recap div { display: grid; gap: 2px; }
.bk__recap dt { font-size: 0.8rem; color: var(--muted); }
.bk__recap dd { margin: 0; font-weight: 600; }
.bk__recap dd.is-empty { font-weight: 400; color: var(--muted); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input {
  height: 48px; padding: 0 14px;
  border-radius: var(--r-ctl);
  border: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__help { margin: 0; font-size: 0.84rem; color: var(--muted); }
.field__error { margin: 0; font-size: 0.86rem; color: var(--error); font-weight: 500; }
.field__error:empty { display: none; }
.field__error--block { margin-bottom: 12px; }

.bk__done { display: grid; justify-items: start; gap: 10px; animation: slot-in 0.5s var(--ease) both; outline: none; }
.bk__done[hidden] { display: none; }
.bk__done-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-size: 1.4rem;
}
.bk__done-title { margin: 6px 0 0; font-family: var(--display); font-stretch: 80%; font-weight: 750; font-size: 1.6rem; line-height: 1.1; }
.bk__done-text { margin: 0 0 12px; color: var(--muted); }
.bk__note { margin: 16px 0 0; font-size: 0.86rem; color: var(--muted); }

.spin { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- bento ---------- */
.bento { margin-top: 44px; display: grid; gap: 14px; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; }
  .tile--a { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 460px; }
  .tile--b { grid-column: 3; grid-row: 1; }
  .tile--c { grid-column: 3; grid-row: 2; }
  .tile--d { grid-column: 1 / 4; grid-row: 3; }
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 240px;
}
.tile h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.05; max-width: 20ch; }
.tile p { margin: 10px 0 0; max-width: 40ch; }
.tile__icon { font-size: 1.8rem; margin-bottom: auto; padding-bottom: 28px; }
.tile--photo { color: #f1f2f0; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(21 32 43 / 0.15) 0%, rgb(21 32 43 / 0.88) 100%); }
.tile--photo:hover img { transform: scale(1.04); }
.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.tile--photo p { color: rgb(241 242 240 / 0.85); }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--plain { background: var(--surface); border: 1px solid var(--line); }
.tile--plain p { color: var(--muted); }
.tile--brand {
  background: var(--brand); color: var(--brand-ink);
  padding: 0; display: grid; min-height: 0;
}
.tile--brand .tile__body { padding: 28px; justify-content: flex-end; }
.tile--brand p { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.tile--brand img { width: 100%; height: 220px; object-fit: cover; filter: grayscale(0.4); }
@media (min-width: 768px) {
  .tile--brand { grid-template-columns: 1fr 1.2fr; }
  .tile--brand img { height: 100%; min-height: 260px; }
}

/* ---------- vetrina ---------- */
.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 32px; padding: 2px 16px;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; white-space: nowrap;
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .products { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product { animation: prod-in 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes prod-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.product__img {
  aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden;
  background: #e9eaec;
}
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__name { margin: 14px 0 2px; font-weight: 600; line-height: 1.3; }
.product__meta { margin: 0; font-size: 0.88rem; color: var(--muted); }
.products__empty { padding: 32px; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--muted); }
.products__empty[hidden] { display: none; }

/* ---------- duo ---------- */
.duo__grid { margin-top: 44px; display: grid; gap: 40px; }
@media (min-width: 768px) {
  .duo__grid { grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: end; }
  .duo__item--tall { margin-bottom: 64px; }
}
.duo__img { border-radius: var(--r-card); overflow: hidden; }
.duo__item--wide .duo__img { aspect-ratio: 4 / 3; }
.duo__item--tall .duo__img { aspect-ratio: 3 / 4; }
.duo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.duo__item--tall .duo__img img { object-position: 38% 50%; }
.duo__item:hover .duo__img img { transform: scale(1.04); }
.duo__item h3 { margin-top: 20px; font-size: 1.6rem; line-height: 1.1; }
.duo__item p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }

/* ---------- marchi ---------- */
.brands { border-top: 1px solid var(--line); }
.brands__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .brands__inner { grid-template-columns: 1fr auto; gap: 72px; } }
.brands__statement { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.12; font-weight: 650; max-width: 26ch; color: var(--muted); }
.brands__hl { color: var(--ink); font-weight: 800; }
.brands__logos { display: flex; align-items: center; gap: 32px; color: var(--ink); }
.brands__proraso {
  width: 192px; height: 120px; object-fit: contain; padding: 10px;
  border-radius: var(--r-card); background: #fff;
}

/* ---------- dove siamo ---------- */
.where { position: relative; }
.where__map { height: 460px; background: var(--surface-2); }
.where__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.85) contrast(1.05); }
:root[data-theme="dark"] .where__map iframe { filter: grayscale(1) invert(0.9) hue-rotate(180deg) contrast(0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .where__map iframe { filter: grayscale(1) invert(0.9) hue-rotate(180deg) contrast(0.9); } }
.where__wrap { position: relative; margin-top: -96px; padding-bottom: 72px; }
.where__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 28px; max-width: 460px;
}
@media (min-width: 1024px) {
  .where__wrap { position: absolute; inset: 0; margin: 0 auto; padding-bottom: 0; display: flex; align-items: center; pointer-events: none; }
  .where__card { pointer-events: auto; padding: 36px; }
  .where__map { height: 540px; }
}
.where__card address {
  margin: 18px 0 0; font-style: normal; display: flex; gap: 12px; font-size: 1.06rem; font-weight: 500;
}
.where__card address i { font-size: 1.4rem; margin-top: 2px; }
.where__hint { margin: 14px 0 0; color: var(--muted); font-size: 0.94rem; }
.where__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.footer { background: var(--brand); color: var(--brand-ink); padding: 56px 0 40px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__brand .logo { width: 64px; height: 64px; flex: none; }
.footer__brand p { margin: 0; font-size: 0.92rem; color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.footer__nav { display: grid; gap: 8px; }
.footer__nav a, .footer__ig { text-decoration: none; color: color-mix(in srgb, var(--brand-ink) 86%, transparent); }
.footer__nav a:hover, .footer__ig:hover { color: var(--accent); }
.footer__ig { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer__ig i { font-size: 1.3rem; }
.footer__copy { margin: 12px 0 0; font-size: 0.86rem; color: color-mix(in srgb, var(--brand-ink) 65%, transparent); }

/* ---------- motion: entrata hero + reveal allo scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__in { animation: rise 0.9s var(--ease) both; animation-delay: calc(0.08s + var(--i, 0) * 0.09s); }
  .hero__main { animation: unveil 1.2s var(--ease) 0.1s both; }
  .hero__main img { animation: settle 1.6s var(--ease) 0.1s both; }
  .hero__aside { animation: rise 1s var(--ease) 0.45s both; }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0 round var(--r-card)); } to { clip-path: inset(0 0 0 0 round var(--r-card)); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

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

/* ---------- pagina "stiamo arrivando" (index.html) ---------- */
.soon-page { min-height: 100dvh; display: flex; flex-direction: column; }
.soon-top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.soon-logo { color: var(--brand); width: 56px; height: 56px; }
:root[data-theme="dark"] .soon-logo { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soon-logo { color: var(--ink); } }

.soon { flex: 1; display: grid; gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 1024px) { .soon { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 16px; } }
.soon__title { font-size: clamp(3.4rem, 8vw, 6.4rem); }
.soon__title em { padding-bottom: 0.1em; } /* discendente della "g" */

.soon__next {
  list-style: none; margin: 44px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 20px;
}
@media (min-width: 640px) { .soon__next { grid-template-columns: 1fr 1fr; gap: 28px; } }
.soon__next li { display: flex; gap: 14px; align-items: flex-start; }
.soon__next i {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 1.2rem;
}
.soon__next span { display: grid; gap: 2px; font-size: 0.94rem; color: var(--muted); line-height: 1.45; }
.soon__next strong { color: var(--ink); font-weight: 600; font-size: 1rem; }

@media (max-width: 1023px) { .soon__media { max-width: 560px; } }

.soon-foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.soon-foot address { font-style: normal; display: inline-flex; align-items: center; gap: 8px; }
.soon-foot p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .soon__next.hero__in { animation-delay: 0.5s; }
}
@media (min-width: 1024px) {
  .soon__media .hero__main { aspect-ratio: auto; height: clamp(380px, calc(100dvh - 250px), 620px); }
  .soon__next { margin-top: 32px; }
  .soon { padding-bottom: 32px; }
}
