/* =========================================================
   SM Sartoria – "Warm Industrial"
   Griglia strutturale a 12 colonne · Inter + Playfair Display
   ========================================================= */

:root {
  /* Palette sartoriale: beige caldo + marroni scuri */
  --bg: #EFE8DE;
  --bg-soft: #F6F1EA;
  --ink: #2A1C13;          /* marrone quasi nero: testi e titoli */
  --ink-2: #4E3A2C;        /* marrone medio: paragrafi */
  --ink-3: #6F5B4B;        /* marrone chiaro: etichette */
  --accent: #A3754F;       /* marrone chiaro (cuoio) */
  --accent-dark: #85593A;
  --navy: #1E2A44;         /* blu scuro: pulsanti, stati attivi, footer */
  --navy-2: #2F3F60;
  --navy-deep: #18213A;
  --green: #22C55E;
  --amber: #F59E0B;
  --border: #D9CCBB;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fade: 1.4s cubic-bezier(0.4, 0, 0.2, 1);   /* dissolvenza lenta per foto e scritte */
  --max: 1600px;
  --cols: 12;
  --p: 24px;                 /* distanza del contenuto dalle linee della griglia */
  --header-h: 80px;

  /* alias usati dalle pagine legali */
  --line: var(--border);
  --cream: var(--bg-soft);
  --muted: var(--ink-3);
  --ink-soft: var(--ink-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
::selection { background: var(--navy); color: #fff; }
html { scrollbar-color: var(--ink-3) var(--bg); caret-color: var(--navy); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10001;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  font: 700 11px/1 var(--sans); letter-spacing: .25em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipi di testo UI ---------- */
.label {
  font: 700 11px/1.4 var(--sans);
  letter-spacing: .25em;
  text-transform: uppercase;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Griglia strutturale ---------- */
.wrap {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
}
.grid-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid-lines-inner {
  height: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between;
}
.grid-lines i { width: 1px; height: 100%; background: rgba(42, 28, 19, .1); transform-origin: top; }

/* Grana analogica */
.noise {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: .05;
  transform: translateZ(0); will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- Bottoni ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.btn-pill:hover, .btn-pill-dark { background: var(--navy); border-color: var(--navy); color: var(--bg); }
.btn-pill-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }

.btn-block {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 56px;
  height: 76px; padding: 0 28px 0 32px;
  background: var(--ink); color: var(--bg);
  font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .6s var(--ease);
}
.btn-block:hover { background: var(--accent); }
.btn-arrow { display: inline-flex; transition: transform .7s var(--ease); }
.btn-block:hover .btn-arrow { transform: rotate(45deg); }

.link-caps {
  font: 700 11px/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-caps:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Pulse di stato ---------- */
.pulse-dot {
  position: relative; display: inline-block; flex: none;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse 2s var(--ease) infinite;
}
.pulse-dot.is-closed { background: var(--amber); }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; align-items: center; }
.main-nav { grid-column: 1 / 6; padding-left: var(--p); }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  position: relative; text-decoration: none;
  font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  transition: color .4s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px;
  text-decoration: none; line-height: 1; text-align: center;
}
.logo-serif { font-family: var(--serif); font-style: italic; font-size: 26px; letter-spacing: -.02em; }
.logo-sans { font-weight: 900; font-size: 19px; letter-spacing: -.03em; text-transform: uppercase; }
.logo-sub { grid-column: 1 / -1; font: 700 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

.site-header .btn-pill { grid-column: 9 / 13; justify-self: end; margin-right: var(--p); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--border); }
.hero-grid { min-height: calc(100svh - var(--header-h)); }
.hero-left {
  grid-column: 1 / 8;
  padding: 48px var(--p) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  height: 30px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(246, 241, 234,.6);
  font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(56px, 9vw, 152px);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 900;
}
.hero-line { display: block; overflow: hidden; padding: .02em 0 .06em; margin-bottom: -.06em; }
.hero-line > span { display: inline-block; }
/* outline: il riempimento color sfondo copre i contorni interni sovrapposti del font */
.stroke { color: var(--bg); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.heavy { color: var(--ink); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.04em; padding-right: .06em; }

.hero-sub { max-width: 52ch; font-size: 17px; color: var(--ink-2); }
.hero-sub strong { color: var(--ink); }

.readouts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.readouts > div { padding: 14px 16px 14px 0; }
.readouts > div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.readouts dt { font: 700 11px/1.4 var(--sans); letter-spacing: .25em; text-transform: uppercase; color: var(--ink-3); }
.readouts dd { font: 500 11px/1.5 var(--mono); letter-spacing: .04em; margin-top: 6px; text-transform: uppercase; }

.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }

.hero-right { grid-column: 8 / 13; border-left: 1px solid var(--border); padding: 20px; }
.hero-frame {
  position: relative; height: 100%; min-height: 560px; overflow: hidden;
  border: 1px solid var(--border); background: #E0D5C6;
}
.hero-frame img { will-change: transform;
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1) contrast(1.06);
  transition: filter var(--fade);
}
.hero-frame:hover img { filter: grayscale(0) contrast(1); }
.frame-tag {
  position: absolute; z-index: 2; top: 14px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg); padding: 6px 8px;
}
.tag-tl { left: 14px; }
.tag-tr { right: 14px; }

.glass-card {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px;
  max-width: 360px; padding: 18px 18px 16px;
  background: rgba(246, 241, 234, .9);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 24px 48px -24px rgba(42, 28, 19, .45);
}
.glass-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(42, 28, 19,.14); }
.bar-row { margin-top: 14px; }
.bar-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.bar { height: 4px; background: rgba(42, 28, 19, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--navy); transition: width 1.4s var(--ease); }
.bar i.full { width: 100%; background: var(--accent); }
.glass-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(42, 28, 19,.14); }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 1;
  height: 120px; overflow: hidden; display: flex; align-items: center;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.ticker-track { display: flex; align-items: center; gap: 40px; width: max-content; padding-left: 40px; will-change: transform; }
.ticker span { font-size: 72px; line-height: 1; white-space: nowrap; letter-spacing: -.04em; }
.t-stroke { font-weight: 900; text-transform: uppercase; color: var(--bg-soft); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.t-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.ticker b { color: var(--accent); display: inline-flex; }
.star { width: 26px; height: 26px; fill: currentColor; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.link-caps, .map-open, .legal-back { display: inline-flex; align-items: center; gap: 10px; }
.link-caps .ico { transition: transform .6s var(--ease); }
.link-caps:hover .ico { transform: translateY(3px); }
.map-open .ico, .big-link-sm .ico { transition: transform .6s var(--ease); }
.map-open:hover .ico, .big-link-sm:hover .ico { transform: translate(2px, -2px); }

/* ---------- Intestazioni di sezione ---------- */
.section-head { padding: clamp(88px, 10vw, 140px) 0 clamp(48px, 5vw, 72px); row-gap: 24px; }
.section-head .idx { grid-column: 1 / 4; padding-left: var(--p); padding-top: 14px; color: var(--ink-3); }
.section-title {
  grid-column: 4 / 13; padding: 0 var(--p);
  font-size: clamp(44px, 6.2vw, 104px); line-height: .92; letter-spacing: -.04em; font-weight: 900;
}
.section-title em { letter-spacing: -.04em; }
.section-note { grid-column: 4 / 9; padding: 0 var(--p); color: var(--ink-2); max-width: 52ch; font-weight: 500; }

/* ---------- Servizi: intestazione ---------- */
.s-head { padding: clamp(80px, 9vw, 132px) 0 clamp(44px, 5vw, 72px); align-items: end; row-gap: 28px; }
.s-title {
  grid-column: 1 / 10; padding: 0 var(--p);
  font-size: clamp(46px, 6.2vw, 96px); line-height: .92; letter-spacing: -.04em; font-weight: 900;
}
.st-line { display: block; overflow: hidden; padding: .02em 0 .08em; margin-bottom: -.08em; }
.st-inner { display: inline-block; }
.s-title em { color: var(--accent); font-size: .78em; letter-spacing: -.035em; padding-left: .9em; }
.s-note {
  grid-column: 10 / 13; margin: 0 var(--p) .7em; padding-top: 16px;
  font-weight: 500; font-size: 15px; line-height: 1.6; color: var(--navy);
  border-top: 1px solid var(--accent);
}

/* ---------- Servizi (lista interattiva) ---------- */
.service-list { border-top: 1px solid var(--border); }
.service {
  position: relative; display: block; height: 300px; overflow: hidden;
  border-bottom: 1px solid var(--border);
  color: inherit; text-decoration: none;
}
.service-inner { height: 100%; align-items: center; position: relative; z-index: 1; }
.service-body { grid-column: 1 / 8; padding: 0 var(--p); display: block; }
.service-title {
  display: block;
  font-weight: 400; font-size: clamp(30px, 3.5vw, 58px); line-height: 1; letter-spacing: -.035em;
  transition: font-weight var(--fade), transform 1.2s var(--ease);
}
.service-desc { display: block; margin-top: 18px; color: var(--ink-2); max-width: 50ch; }
.service:hover .service-title,
.service:focus-visible .service-title { font-weight: 850; transform: translateX(10px); }
.service-img {
  position: absolute; top: 0; bottom: 0;
  right: max(0px, calc((100% - var(--max)) / 2));
  width: calc(min(100%, var(--max)) * 5 / 12);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s var(--ease);
  overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.12); transition: transform 1.4s var(--ease), filter var(--fade); }
.service:hover .service-img img, .service:focus-visible .service-img img { filter: grayscale(0) contrast(1); }
.service-img::after { content: ""; position: absolute; inset: 0; background: rgba(30, 42, 68, .22); mix-blend-mode: multiply; transition: opacity var(--fade); }
.service:hover .service-img::after, .service:focus-visible .service-img::after { opacity: 0; }
.service:hover .service-img,
.service:focus-visible .service-img { clip-path: inset(0 0 0 0); }
.service:hover .service-img img { transform: scale(1); }


/* ---------- Chi Siamo ---------- */
[data-depth], .about-quote { will-change: transform; }
.about { border-top: 1px solid var(--border); }
.s-head-tight { padding-bottom: clamp(36px, 4vw, 56px); }
.s-title-inline { grid-column: 1 / -1; }
.s-title-inline em { padding-left: .12em; font-size: .86em; }
.about-stage { row-gap: 56px; padding-bottom: clamp(72px, 8vw, 120px); align-items: start; }
.about-img { position: relative; overflow: hidden; background: #E0D5C6; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--fade); }
.about-img:hover img { filter: grayscale(0); }
.about-img figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 8px 10px;
}
.about-img-a { grid-column: 1 / 5; grid-row: 1 / 3; margin: 0 var(--p); aspect-ratio: 3 / 4; }
.about-quote {
  grid-column: 5 / 13; grid-row: 1; padding: 0 var(--p);
  font-weight: 700; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.05; letter-spacing: -.035em;
}
.about-text { grid-column: 5 / 9; grid-row: 2; padding: 0 var(--p); color: var(--ink-2); font-size: 17px; }
.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--ink); }
.about-img-b { grid-column: 9 / 13; grid-row: 2; margin: 0 var(--p); aspect-ratio: 4 / 3; }

.values { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value { grid-column: span 4; padding: 40px var(--p) 48px; }
.value + .value { border-left: 1px solid var(--border); }
.value .label { color: var(--accent); }
.value h3 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1; letter-spacing: -.04em; margin: 0 0 14px; }
.value p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Galleria ---------- */
.gallery { border-top: 1px solid var(--border); }
.gallery-grid { padding-bottom: clamp(72px, 8vw, 120px); row-gap: 40px; }
.g { padding: 0 var(--p); display: flex; flex-direction: column; }
.g-media { position: relative; overflow: hidden; background: #E0D5C6; }
.g-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--fade), transform 1.6s var(--ease); }
.g:hover .g-media img { filter: grayscale(0); transform: scale(1.03); }
.g figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 12px; font: 400 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; transition: font-weight var(--fade); }
.g:hover figcaption { font-weight: 800; }
.g figcaption .mono { color: var(--accent); }
.g-1 { grid-column: 1 / 8; grid-row: 1; }
.g-1 .g-media { aspect-ratio: 1360 / 628; }
.g-2 { grid-column: 8 / 13; grid-row: 1 / 3; }
.g-2 .g-media { flex: 1; min-height: 420px; }
.g-3 { grid-column: 1 / 5; grid-row: 2; }
.g-4 { grid-column: 5 / 8; grid-row: 2; }
.g-3 .g-media, .g-4 .g-media { height: clamp(220px, 22vw, 340px); }

/* ---------- Scheda tecnica ---------- */
.journal { border-top: 1px solid var(--border); }
.journal-grid { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.entry { grid-column: span 4; display: flex; flex-direction: column; padding: 36px var(--p) 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.entry + .entry { border-left: 1px solid var(--border); }
.entry-head { display: flex; flex-direction: column; gap: 18px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.entry-half { grid-column: span 6; padding-bottom: 56px; }
.entry-lead { min-height: 64px; display: flex; align-items: center; margin: 14px 0 6px; }
.entry-lead.entry-note { margin-top: 14px; max-width: 54ch; }
.entry-lead .badge { margin: 0; }
/* orari: righe compatte, orario subito accanto al giorno, blocco centrato nella colonna */
.table-fill { flex: 1; display: flex; }
.table-fill .spec-table { height: 100%; }
.spec-table.hours-table th { width: 11em; vertical-align: middle; }
.spec-table.hours-table td { text-align: left; vertical-align: middle; }
.entry-head h3 { font-size: clamp(28px, 2.4vw, 40px); line-height: 1; letter-spacing: -.035em; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 6px;
  height: 28px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.badge[hidden] { display: none; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: baseline; }
.spec-table th { text-align: left; font-weight: 400; color: var(--ink-2); padding-right: 12px; }
.spec-table td { text-align: right; font: 500 13px/1.4 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec-table tr { transition: background-color .4s var(--ease); }
.spec-table tr:hover { background: rgba(139, 90, 52, .05); }
.hours-table tr.is-today th { color: var(--ink); font-weight: 700; }
.hours-table tr.is-today th::after {
  content: "Oggi"; margin-left: 10px; padding: 3px 6px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font: 700 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; vertical-align: 2px;
}
.hours-table tr.is-today td { color: var(--navy); }
.price-table td { color: var(--ink); }

.entry-photo { position: relative; margin-top: 20px; aspect-ratio: 4 / 3; overflow: hidden; background: #E0D5C6; }
.entry-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--fade); }
.entry-photo:hover img { filter: grayscale(0); }
.entry-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 7px 9px; }
.spec-list > div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.spec-list dt { font: 700 11px/1.4 var(--sans); letter-spacing: .25em; text-transform: uppercase; color: var(--ink-3); }
.spec-list dd { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.spec-list a { text-decoration: none; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.entry-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

.location { padding: clamp(56px, 6vw, 88px) 0 clamp(88px, 9vw, 128px); row-gap: 32px; align-items: stretch; }
.location-info { grid-column: 1 / 7; padding: 0 var(--p); display: flex; flex-direction: column; }
.location-info .spec-list > div + div { margin-top: 12px; }
.location-info .entry-actions { margin-top: 20px; }
.location-info h3 { font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -.04em; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.location-map { grid-column: 7 / 13; padding: 0 var(--p); }
.map { width: 100%; height: clamp(300px, 30vw, 500px); border: 1px solid var(--border); background: var(--bg-soft); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.25) saturate(.9); }
.map-open {
  display: inline-flex; gap: 8px; margin-top: 16px; text-decoration: none;
  font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.map-open:hover { background-size: 0 1px; background-position: 100% 100%; }
.map-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 20px; text-align: center;
  background-image: linear-gradient(rgba(42, 28, 19,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 28, 19,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.map-consent .label { color: var(--ink-3); }
.map-consent small { font-size: 11px; color: var(--ink-3); max-width: 32ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--bg); overflow: hidden; }
.site-footer > .wrap {
  background-image: linear-gradient(to right, rgba(239, 232, 222, .08) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-right: 1px solid rgba(239, 232, 222, .08);
}
.site-footer a { text-decoration: none; }
.footer-top { padding: clamp(88px, 10vw, 140px) 0 64px; row-gap: 48px; }
.footer-contact { grid-column: 1 / 7; padding: 0 var(--p); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-contact .label { color: rgba(239, 232, 222, .55); }
.big-link {
  font-weight: 900; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.04em;
  padding-bottom: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .7s var(--ease), color .5s var(--ease);
}
.big-link:hover { background-size: 100% 2px; }
.big-link-sm { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.02em; background-size: 0 1px; }
.big-link-sm:hover { background-size: 100% 1px; color: #fff; }
.footer-col { grid-column: span 2; padding: 0 var(--p); font-size: 14px; color: rgba(239, 232, 222, .72); }
.footer-col .label { color: var(--bg); margin-bottom: 16px; }
.footer-col p + p { margin-top: 10px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { transition: color .4s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-marquee { overflow: hidden; opacity: .1; user-select: none; border-top: 1px solid rgba(239, 232, 222,.6); }
.footer-marquee-track { display: flex; width: max-content; will-change: transform; }
.footer-marquee span { font-size: 20vw; line-height: .9; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; padding: .02em 0 .06em; }
.footer-marquee em { text-transform: none; letter-spacing: -.03em; }
.fm-star { display: inline-flex; align-items: center; padding: 0 .25em; }
.fm-star .star { width: .32em; height: .32em; fill: currentColor; }

.footer-bottom { padding: 22px 0 26px; border-top: 1px solid rgba(239, 232, 222, .12); row-gap: 12px; }
.footer-bottom p { grid-column: span 4; padding: 0 var(--p); font: 700 11px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(239, 232, 222, .55); }
.footer-bottom p:last-child { text-align: right; }
.footer-bottom .sys { display: flex; align-items: center; gap: 12px; color: var(--bg); }

/* ---------- Barra mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Base animazioni (nascosti solo con JS attivo) ---------- */
html.has-motion [data-split],
html.has-motion [data-reveal],
html.has-motion [data-reveal-item],
html.has-motion [data-reveal-row],
html.has-motion [data-image-reveal],
html.has-motion [data-hero-item],
html.has-motion [data-hero-media],
html.has-motion [data-hero-line] { visibility: hidden; }

html.has-motion [data-st-line] { transform: translateY(110%); }

.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em 0; margin-bottom: -.1em; }
.word { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .location-info, .location-map { grid-column: 1 / -1; }
  .location-info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: end; }
  .location-info .entry-actions { margin-top: 20px; }
  .location-info h3 { grid-column: 1 / -1; }
  .map { height: clamp(260px, 46vw, 520px); }
  .main-nav ul { gap: 16px; }
  .main-nav a { letter-spacing: .14em; white-space: nowrap; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-col { grid-column: span 4; }
}

@media (max-width: 900px) {
  :root { --cols: 4; --p: 16px; --header-h: 64px; }
  .grid-lines i:not(:nth-child(3n + 1)) { display: none; }
  .site-footer > .wrap { background-size: 25% 100%; }

  /* Header */
  .nav-toggle { display: block; grid-column: 1 / 2; margin-left: 4px; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    padding: 8px var(--p) 24px; background: var(--bg); border-bottom: 1px solid var(--border);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--ink); }
  .main-nav a::after { display: none; }
  .logo-serif { font-size: 22px; }
  .logo-sans { font-size: 16px; }
  .logo-sub { display: none; }
  .site-header .btn-pill { grid-column: 3 / 5; padding: 0 14px; }
  .btn-pill-txt { display: none; }
  .site-header .btn-pill::after { content: "Chiama"; }

  /* Hero */
  .hero-grid { min-height: 0; }
  .hero-left, .hero-right { grid-column: 1 / -1; }
  .hero-left { padding-top: 32px; gap: 28px; }
  .hero-title { font-size: clamp(48px, 15.5vw, 120px); }
  .readouts { grid-template-columns: 1fr; }
  .readouts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .btn-block { width: 100%; }
  .hero-right { border-left: 0; border-top: 1px solid var(--border); padding: 16px; }
  .hero-frame { min-height: 0; aspect-ratio: 4 / 5; }
  .glass-card { left: 12px; right: 12px; bottom: 12px; }

  /* Ticker */
  .ticker { height: 88px; }
  .ticker span { font-size: 48px; }

  /* Sezioni */
  .section-head .idx, .section-title, .section-note { grid-column: 1 / -1; }
  .section-head .idx { padding-top: 0; }


  .about-img-a, .about-quote, .about-text, .about-img-b { grid-column: 1 / -1; grid-row: auto; }
  .about-img-a { aspect-ratio: 4 / 3; }
  .value { grid-column: 1 / -1; padding-bottom: 36px; }
  .value + .value { border-left: 0; border-top: 1px solid var(--border); }
  .value h3 { margin-top: 28px; }

  .g-1, .g-2, .g-3, .g-4 { grid-column: 1 / -1; grid-row: auto; }
  .g-2 .g-media { flex: none; min-height: 0; aspect-ratio: 3 / 4; }
  .g-3 .g-media, .g-4 .g-media { height: auto; aspect-ratio: 4 / 3; }

  .entry, .entry-half { grid-column: 1 / -1; }
  .entry-lead { min-height: 0; }
  .s-title, .s-note { grid-column: 1 / -1; }
  .s-title em { padding-left: 0; }
  .s-note { border-left: 0; padding-bottom: 0; }
  .location-info, .location-map { grid-column: 1 / -1; }
  .map { height: clamp(240px, 70vw, 420px); }
  .location-info { display: block; }
  .entry + .entry { border-left: 0; border-top: 1px solid var(--border); }

  .footer-contact, .footer-col, .footer-bottom p { grid-column: 1 / -1; }
  .footer-bottom p:last-child { text-align: left; }
  .site-footer { padding-bottom: 60px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1.4fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    border-top: 1px solid var(--ink);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; height: 60px; text-decoration: none;
    font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  }
  .mb-call { background: var(--navy); color: var(--bg); }
  .mb-map { background: var(--bg); color: var(--ink); }
}

@media (max-width: 900px) and (hover: none) {
  .service { height: auto; }
  .service-inner { padding: 28px 0 0; }
  .service-body { grid-column: 1 / -1; }
  .service-title { font-weight: 800; }
  .service:hover .service-title { transform: none; }
  .service-img { position: relative; display: block; right: auto; width: auto; height: 180px; margin: 22px var(--p) 24px; clip-path: none; }
  .service-img img { transform: none; }
}
@media (max-width: 900px) and (hover: hover) {
  .service { height: 240px; }
  .service-body { grid-column: 1 / 3; }
  .service-desc { font-size: 14px; }
  .service-img { right: 0; width: 50%; }
}

@media (hover: none) {
  .g figcaption { font-weight: 700; }
  .hero-frame img, .service-img img, .about-img img, .g-media img, .entry-photo img { filter: none; }
  .service-img::after { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
