/* ==========================================================================
   GARLETTI [LAB] — design system
   Tipografia: TeX Gyre Heros / Heros Cn (GUST Font License)
   ========================================================================== */

@font-face {
  font-family: "Adventor";
  src: url("../fonts/texgyreadventor-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Adventor";
  src: url("../fonts/texgyreadventor-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #fafaf7;
  --paper-2: #f0f0eb;
  --ink: #121212;
  --grey: #5e5e5a;
  --line: #dadad4;
  --accent: #c8005f;
  --on-ink: #fafaf7;
  --on-ink-grey: #a3a39d;

  --f-body: "Adventor", "Century Gothic", "Avenir Next", "Futura", Arial, sans-serif;
  --f-display: "Adventor", "Century Gothic", "Avenir Next", "Futura", Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1rem;
  --t-lg: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --t-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --t-h2: clamp(2.25rem, 1.3rem + 4.2vw, 5.5rem);
  --t-hero: clamp(2.6rem, 1rem + 5.6vw, 7rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --sec: clamp(96px, 12vw, 184px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display .r, .r { font-weight: 400; }
.h-hero { font-size: var(--t-hero); }
.h-sec { font-size: var(--t-h2); }
.display .ln { display: block; }
.lead { font-size: var(--t-lg); line-height: 1.4; max-width: 34ch; }
.muted { color: var(--grey); }
.small { font-size: var(--t-sm); }
.measure { max-width: 58ch; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 0.28em;
}
.logo b { font-weight: 400; color: var(--accent); }

/* --------------------------------------------------------------------------
   Pulsanti
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.25em;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 700; font-size: var(--t-sm);
  text-decoration: none; border: 1px solid var(--bg); border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 0.9em; height: 0.9em; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover { --bg: var(--accent); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.on-ink .btn { --bg: var(--paper); --fg: var(--ink); }
.on-ink .btn:hover { --bg: var(--accent); --fg: #fff; }
.on-ink .btn--ghost { --bg: transparent; --fg: var(--paper); border-color: var(--paper); }

.link {
  font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav a:not(.btn) {
  text-decoration: none; font-size: var(--t-sm); position: relative; padding: 6px 0;
}
.nav a:not(.btn)::before, .nav a:not(.btn)::after {
  position: absolute; top: 50%; transform: translateY(-52%); opacity: 0;
  color: var(--accent); font-weight: 700; transition: opacity 0.2s, transform 0.25s var(--ease);
}
.nav a:not(.btn)::before { content: "["; left: -0.7em; }
.nav a:not(.btn)::after { content: "]"; right: -0.7em; }
.nav a:not(.btn):hover::before, .nav a:not(.btn)[aria-current="page"]::before { opacity: 1; left: -0.6em; }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { opacity: 1; right: -0.6em; }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .nav .nav-link { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: none; border: 1px solid var(--ink); border-radius: 50%;
    cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before {
    display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
    transition: transform 0.3s var(--ease);
  }
  .menu-btn span::before { content: ""; position: absolute; top: 5px; }
  .menu-btn span { transform: translateY(-2.5px); }
  .menu-open .menu-btn span { transform: rotate(45deg); }
  .menu-open .menu-btn span::before { transform: translateY(-5px) rotate(-90deg); }
}
@media (max-width: 520px) {
  .nav-cta .long { display: none; }
}
@media (min-width: 521px) {
  .nav-cta .short { display: none; }
}

.mnav {
  position: fixed; inset: 72px 0 0 0; z-index: 49;
  background: var(--paper);
  padding: 32px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  overflow-y: auto;
}
.menu-open .mnav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.mnav ul a {
  display: block; text-decoration: none;
  font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(2.5rem, 11vw, 4rem);
  line-height: 1; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mnav ul a[aria-current="page"] { color: var(--accent); }
.mnav .mnav-foot { display: grid; gap: 8px; margin-top: 32px; font-size: var(--t-sm); }
.mnav .mnav-foot a { text-decoration: none; }
@media (min-width: 1021px) { .mnav { display: none; } }

/* Segni di taglio (stampa) */
.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 100%; height: 1.5px; }
.crop::after { width: 1.5px; height: 100%; }
.crop.tl::before, .crop.tl::after { top: 0; left: 0; }
.crop.tr::before, .crop.tr::after { top: 0; right: 0; }
.crop.bl::before, .crop.bl::after { bottom: 0; left: 0; }
.crop.br::before, .crop.br::after { bottom: 0; right: 0; }
.crop.tl::after, .crop.br::before { background: var(--accent); }
.frame .crop { transition: opacity 0.4s; }

/* --------------------------------------------------------------------------
   Hero (home) — la cornice che cambia formato
   -------------------------------------------------------------------------- */
.hero { padding: clamp(32px, 5vw, 80px) 0 clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.hero-copy { grid-column: 1 / span 7; min-width: 0; }
.hero .h-hero { font-size: clamp(2.75rem, 0.9rem + 5.2vw, 6.5rem); line-height: 0.98; }
.hero-today {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(1.2rem, 0.9rem + 1.1vw, 1.875rem); line-height: 1.25; letter-spacing: -0.025em;
  min-height: 2.6em;
}
.slot { white-space: normal; }
.slot b { font-weight: 700; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); display: inline; }
.slot b.is-out { opacity: 0; }
.slot .br { color: var(--accent); font-weight: 400; }
.hero-copy .lead { margin-top: clamp(20px, 2.5vw, 32px); font-size: var(--t-md); line-height: 1.62; max-width: 46ch; color: var(--grey); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

.stage { grid-column: 8 / span 5; min-width: 0; display: grid; gap: 18px; }
.stage-box { position: relative; aspect-ratio: 1 / 1.05; max-width: 100%; display: grid; place-items: center; }
.frame {
  position: relative; width: 80%; height: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
  transition: width 0.9s var(--ease), height 0.9s var(--ease), background-color 0.5s, border-color 0.5s, border-radius 0.9s var(--ease);
}
.frame .crop { width: 20px; height: 20px; }
.frame .crop.tl { top: -14px; left: -14px; }
.frame .crop.tr { top: -14px; right: -14px; }
.frame .crop.bl { bottom: -14px; left: -14px; }
.frame .crop.br { bottom: -14px; right: -14px; }
.frame.is-reel { background: var(--ink); border-color: var(--ink); border-radius: 18px; }
.frame.is-sign { background: var(--ink); border-color: var(--ink); }
.frame.is-card { background: #fff; }
.frame.is-rollup { background: #fff; }
.art { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; overflow: hidden; }
.art.is-on { opacity: 1; transition-delay: 0.45s; }
.art i { position: absolute; display: block; background: var(--ink); }
.art i.ac { background: var(--accent); }
.art i.ln1 { height: 6%; }
/* sito */
.art-web .bar { position: absolute; left: 0; right: 0; top: 0; height: 9%; border-bottom: 1px solid var(--line); background: #fff; }
.art-web .bar::before { content: ""; position: absolute; left: 3%; top: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-50%); background: var(--line); box-shadow: 12px 0 0 var(--line), 24px 0 0 var(--line); }
/* reel */
.art-reel .seg { position: absolute; top: 4%; height: 3px; background: rgba(250, 250, 247, 0.35); border-radius: 2px; }
.art-reel .seg.on { background: var(--paper); }
.art-reel .play { position: absolute; left: 50%; top: 44%; transform: translate(-40%, -50%); width: 0; height: 0; border-left: 26px solid var(--paper); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.art-reel i { background: var(--paper); }
/* insegna */
.art-sign .word {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.3em;
  color: var(--paper); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(1.25rem, 0.6rem + 2.2vw, 2.25rem); white-space: nowrap;
}
.art-sign .word span { font-weight: 400; color: var(--accent); }
.stage-cap { display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-sm); border-top: 1px solid var(--ink); padding-top: 12px; }
.stage-cap b { font-weight: 700; }
.stage-cap span { font-variant-numeric: tabular-nums; color: var(--grey); }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.formats button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: var(--t-xs); color: var(--grey);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.formats button:hover { border-color: var(--ink); color: var(--ink); }
.formats button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.hero-meta {
  margin-top: clamp(40px, 5vw, 72px); padding-top: 16px; border-top: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--grey);
  display: flex; flex-wrap: wrap; gap: 6px 28px;
}
.hero-meta b { color: var(--ink); font-weight: 700; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .stage { grid-column: 1; }
  .stage { margin-top: 24px; }
  .stage-box { aspect-ratio: 4 / 3.4; }
}

/* Apertura orchestrata: un solo momento */
.js .hero .h-hero .ln { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .hero .h-hero .ln > span { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.js .hero .h-hero .ln:nth-child(2) > span { transition-delay: 0.08s; }
.js .hero .h-hero .ln:nth-child(3) > span { transition-delay: 0.16s; }
.js .hero .fade-in { opacity: 0; transition: opacity 0.8s 0.5s; }
.js .hero .stage.fade-in { transition-delay: 0.7s; }
.is-ready .hero .h-hero .ln > span { transform: none; }
.is-ready .hero .fade-in { opacity: 1; }

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.sec { padding: var(--sec) 0; }
.sec--tight { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head .h-sec { grid-column: 1 / span 9; }
.sec-head .lead, .sec-head .intro { grid-column: 1 / span 6; margin-top: clamp(20px, 2.5vw, 36px); }
.sec-head--split .h-sec { grid-column: 1 / span 7; }
.sec-head--split .intro { grid-column: 8 / span 5; align-self: end; margin-top: 0; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head > * { grid-column: 1 !important; }
  .sec-head--split .intro { margin-top: 20px; }
}

.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .muted { color: var(--on-ink-grey); }
.on-ink ::selection { background: var(--accent); color: #fff; }

/* reveal dei titoli di sezione */
.js .reveal .ln { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .reveal .ln > span { display: block; transform: translateY(102%); transition: transform 0.85s var(--ease); }
.js .reveal .ln:nth-child(2) > span { transition-delay: 0.07s; }
.js .reveal .ln:nth-child(3) > span { transition-delay: 0.14s; }
.js .reveal.is-in .ln > span { transform: none; }

/* --------------------------------------------------------------------------
   Servizi digitali — elenco con parentesi al passaggio
   -------------------------------------------------------------------------- */
.svc { border-top: 1px solid var(--ink); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a {
  display: grid; grid-template-columns: 72px minmax(0, 6fr) minmax(0, 5fr) 40px;
  gap: 24px; align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0; text-decoration: none;
}
.svc .n { font-size: var(--t-sm); color: var(--grey); font-variant-numeric: tabular-nums; }
.svc h3 {
  font-family: var(--f-display); letter-spacing: -0.035em;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3.25rem); line-height: 1.05;
  position: relative; justify-self: start;
  transition: transform 0.45s var(--ease);
}
.svc h3::before, .svc h3::after {
  position: absolute; top: 0; color: var(--accent); opacity: 0;
  transition: opacity 0.25s, transform 0.45s var(--ease);
}
.svc h3::before { content: "["; left: -0.5em; transform: translateX(-0.3em); }
.svc h3::after { content: "]"; right: -0.5em; transform: translateX(0.3em); }
.svc p { color: var(--grey); max-width: 44ch; margin: 0; }
.svc .go { justify-self: end; width: 22px; height: 22px; transition: transform 0.35s var(--ease); }
.svc a:hover h3, .svc a:focus-visible h3 { transform: translateX(0.55em); }
.svc a:hover h3::before, .svc a:hover h3::after,
.svc a:focus-visible h3::before, .svc a:focus-visible h3::after { opacity: 1; transform: none; }
.svc a:hover .go { transform: translate(3px, -3px); color: var(--accent); }
@media (max-width: 860px) {
  .svc a { grid-template-columns: 40px 1fr 24px; row-gap: 12px; }
  .svc h3 { grid-column: 2; }
  .svc p { grid-column: 2; grid-row: 2; }
  .svc .go { grid-column: 3; grid-row: 1; }
}

.three-ways {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.three-ways div { padding: 28px 28px 0 0; }
.three-ways div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.three-ways strong { display: block; font-size: var(--t-lg); line-height: 1.25; margin-bottom: 8px; }
@media (max-width: 760px) {
  .three-ways { grid-template-columns: 1fr; }
  .three-ways div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .three-ways div { padding: 24px 0; }
}

/* --------------------------------------------------------------------------
   Metodo — sequenza reale, numerata
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: st; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.steps .n { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; color: var(--line); display: block; margin-bottom: 16px; }
.steps li:hover .n { color: var(--accent); }
.steps .n { transition: color 0.3s; }
.steps h3 { font-size: var(--t-lg); line-height: 1.2; margin-bottom: 10px; }
.steps p { color: var(--grey); font-size: var(--t-sm); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.pull {
  margin-top: clamp(64px, 8vw, 120px);
  font-family: var(--f-display); letter-spacing: -0.035em;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem); line-height: 1.02;
  max-width: 22ch;
}
.pull span { display: block; }
.pull span:nth-child(2) { padding-left: 1.2em; }
.pull span:nth-child(3) { padding-left: 2.4em; }

/* --------------------------------------------------------------------------
   Social — timeline orizzontale
   -------------------------------------------------------------------------- */
.social-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.social-grid .h-sec { grid-column: 1 / span 8; }
.social-copy { grid-column: 7 / span 6; margin-top: clamp(40px, 5vw, 72px); font-size: var(--t-lg); line-height: 1.45; }
.social-copy p { margin-bottom: 0.9em; }
.social-copy .closing { color: var(--paper); font-weight: 700; }
@media (max-width: 860px) {
  .social-grid { grid-template-columns: 1fr; }
  .social-grid > * { grid-column: 1 !important; }
}
.flow {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px;
  background: color-mix(in srgb, var(--on-ink) 22%, transparent);
}
.flow::after {
  content: ""; position: absolute; left: 0; top: 7px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 1.6s var(--ease) 0.2s;
}
.flow.is-in::after { width: 100%; }
.flow li { position: relative; padding-top: 36px; padding-right: 16px; }
.flow li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--on-ink);
}
.flow li:first-child::before { background: var(--accent); border-color: var(--accent); }
.flow b {
  display: block; font-family: var(--f-display); letter-spacing: -0.035em;
  font-size: clamp(1.25rem, 0.9rem + 1.2vw, 2rem); line-height: 1; margin-bottom: 8px;
}
.flow span { font-size: var(--t-sm); color: var(--on-ink-grey); display: block; max-width: 22ch; }
.flow-note { margin-top: 40px; font-size: var(--t-sm); color: var(--on-ink-grey); max-width: 60ch; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .flow::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .flow::after { left: 7px; top: 0; width: 1.5px !important; height: 0; transition: height 1.6s var(--ease) 0.2s; }
  .flow.is-in::after { height: 100%; }
  .flow li { padding-top: 0; }
  .flow li::before { left: -36px; top: 4px; }
}

/* --------------------------------------------------------------------------
   Zero vincoli
   -------------------------------------------------------------------------- */
.free { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.free .h-sec { grid-column: 1 / span 7; }
.free .copy { grid-column: 8 / span 5; }
.free .copy p:first-child { font-size: var(--t-lg); line-height: 1.4; }
.free .fine { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--grey); }
@media (max-width: 860px) {
  .free { grid-template-columns: 1fr; }
  .free > * { grid-column: 1 !important; }
}

/* --------------------------------------------------------------------------
   Fascia scorrevole (unica)
   -------------------------------------------------------------------------- */
.ticker {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; padding: 18px 0; white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem);
  padding-right: 0.9em; display: inline-flex; align-items: center; gap: 0.9em;
}
.ticker-track span::after { content: ""; width: 0.32em; height: 0.32em; background: var(--accent); display: inline-block; }
@keyframes tick { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Grafica e stampa
   -------------------------------------------------------------------------- */
.print-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.print-item { position: relative; text-decoration: none; display: flex; flex-direction: column; }
.print-item:nth-child(1) { grid-column: 1 / span 7; }
.print-item:nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(40px, 8vw, 140px); }
.print-item:nth-child(3) { grid-column: 1 / span 5; }
.print-item:nth-child(3) { margin-top: clamp(32px, 4vw, 64px); }
.print-item:nth-child(4) { grid-column: 6 / span 7; margin-top: clamp(96px, 12vw, 220px); }
.print-item .plate {
  position: relative; background: var(--paper-2); aspect-ratio: 4 / 3;
  display: grid; place-items: center; overflow: hidden;
}
.print-item:nth-child(2) .plate, .print-item:nth-child(3) .plate { aspect-ratio: 4 / 5; }
.print-item .plate svg { width: 62%; height: auto; transition: transform 0.7s var(--ease); }
.print-item:hover .plate svg { transform: scale(1.04) rotate(-1deg); }
.print-item .plate .crop { width: 18px; height: 18px; opacity: 0.55; }
.print-item .plate .crop.tl { top: 14px; left: 14px; }
.print-item .plate .crop.tr { top: 14px; right: 14px; }
.print-item .plate .crop.bl { bottom: 14px; left: 14px; }
.print-item .plate .crop.br { bottom: 14px; right: 14px; }
.print-item .cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; align-items: baseline; }
.print-item h3 { font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1; }
.print-item .cap p { color: var(--grey); font-size: var(--t-sm); max-width: 32ch; text-align: right; margin: 0; }
@media (max-width: 860px) {
  .print-grid { grid-template-columns: 1fr; }
  .print-item:nth-child(n) { grid-column: 1; margin-top: 0; }
  .print-item:nth-child(n) .plate { aspect-ratio: 4 / 3; }
  .print-item .cap { flex-direction: column; }
  .print-item .cap p { text-align: left; }
}
.motto {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.motto p.display { grid-column: 1 / span 8; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); }
.motto .side { grid-column: 9 / span 4; }
@media (max-width: 860px) {
  .motto { grid-template-columns: 1fr; }
  .motto > * { grid-column: 1 !important; }
}

/* --------------------------------------------------------------------------
   Progetti
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: var(--t-sm);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.work { grid-column: span 6; text-decoration: none; }
.work:nth-child(3n+1) { grid-column: span 7; }
.work:nth-child(3n+2) { grid-column: span 5; }
.work:nth-child(3n) { grid-column: 3 / span 8; }
.work figure { margin: 0; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 11; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work:hover img { transform: scale(1.03); }
.work .meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: var(--t-sm); }
.work h3 { font-size: var(--t-lg); line-height: 1.2; }
.work .tags { color: var(--grey); }
.work[hidden] { display: none; }
@media (max-width: 760px) { .work:nth-child(n) { grid-column: 1 / -1; } }
.empty {
  border: 1px dashed var(--line); padding: clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.empty h3 { grid-column: 1 / span 7; font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); line-height: 1.02; }
.empty .side { grid-column: 9 / span 4; }
@media (max-width: 860px) { .empty { grid-template-columns: 1fr; } .empty > * { grid-column: 1 !important; } }

/* --------------------------------------------------------------------------
   Territorio — il meridiano
   -------------------------------------------------------------------------- */
.meridian-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.meridian-intro { grid-column: 1 / span 6; }
.meridian-intro .h-sec { margin-bottom: 32px; }
.meridian { grid-column: 8 / span 5; position: relative; height: 560px; margin-top: 40px; }
.meridian .axis { position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: var(--ink); }
.meridian .tick {
  position: absolute; left: -6px; width: 13px; height: 1px; background: var(--grey);
}
.meridian .tick span {
  position: absolute; right: 22px; top: -0.6em; font-size: var(--t-xs); color: var(--grey); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.meridian .pt { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 20px; }
.meridian .pt::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  margin-left: -8.25px; box-shadow: 0 0 0 6px var(--paper); flex: none;
}
.meridian .pt h3 { font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1; }
.meridian .pt p { font-size: var(--t-sm); color: var(--grey); margin: 4px 0 0; }
.meridian .label-e { position: absolute; left: -40px; top: -40px; font-size: var(--t-xs); color: var(--grey); white-space: nowrap; }
@media (max-width: 860px) {
  .meridian-wrap { grid-template-columns: 1fr; }
  .meridian-intro, .meridian { grid-column: 1; }
  .meridian { height: 480px; margin: 40px 0 32px 56px; }
}

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact .h-sec { grid-column: 1 / span 9; }
.contact .intro { grid-column: 1 / span 5; margin-top: 32px; font-size: var(--t-lg); line-height: 1.4; }
.contact-actions { grid-column: 1 / span 5; margin-top: 40px; display: grid; gap: 0; border-top: 1px solid currentColor; align-content: start; }
.contact-actions a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  transition: padding 0.3s var(--ease), color 0.2s;
}
.contact-actions a:hover { padding-left: 12px; color: var(--accent); }
.contact-actions b { font-size: var(--t-lg); display: block; }
.contact-actions small { font-size: var(--t-sm); opacity: 0.7; display: block; }
.contact-actions svg { width: 20px; height: 20px; flex: none; }
.form { grid-column: 7 / span 6; margin-top: 40px; }
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .contact > * { grid-column: 1 !important; }
}

.form { display: grid; gap: 20px; }
.field label { display: block; font-size: var(--t-sm); font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0;
  padding: 10px 0 12px; min-height: 48px;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: inherit; opacity: 0.45; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--t-sm); min-height: 1.5em; }
.form-status.ok { color: inherit; font-weight: 700; }
.form-status.err { color: #ff6fa8; }
.form .btn { justify-self: start; }

/* --------------------------------------------------------------------------
   Pagine interne
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(56px, 9vw, 140px) 0 clamp(56px, 7vw, 104px); }
.page-hero .crumb { font-size: var(--t-sm); color: var(--grey); margin-bottom: 28px; }
.page-hero .crumb a { text-decoration: none; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero .h-hero { font-size: clamp(3rem, 1.4rem + 7.4vw, 9.5rem); }
.page-hero .lead { margin-top: clamp(28px, 3vw, 44px); max-width: 40ch; }

.chapter { padding: clamp(64px, 8vw, 128px) 0; border-top: 1px solid var(--line); }
.chapter-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.chapter-grid .side { grid-column: 1 / span 4; }
.chapter-grid .main { grid-column: 6 / span 7; }
.chapter .n { font-size: var(--t-sm); color: var(--grey); margin-bottom: 12px; display: block; }
.chapter h2 { font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.75rem); line-height: 1.02; }
.chapter .main > p:first-child { font-size: var(--t-lg); line-height: 1.4; }
.chapter .side .btn { margin-top: 28px; }
@media (max-width: 860px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-grid .side, .chapter-grid .main { grid-column: 1; }
  .chapter-grid .main { margin-top: 24px; }
}
.list-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.list-2 li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
@media (max-width: 560px) { .list-2 { grid-template-columns: 1fr; } }
.callout { margin-top: 32px; padding: 24px 0 0; border-top: 1.5px solid var(--accent); }
.callout strong { display: block; margin-bottom: 6px; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: 48px; }
.person { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.person h3 { font-family: var(--f-display); letter-spacing: -0.035em; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.02; }
.person a { display: inline-block; margin-top: 12px; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }

.legal { max-width: 72ch; }
.legal h2 { font-size: var(--t-lg); margin: 40px 0 12px; }
.legal p, .legal li { color: #2a2a28; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.todo { background: #ffe14d; padding: 0 4px; font-weight: 700; }

/* CTA finale pagine interne */
.cta-band { padding: clamp(80px, 10vw, 160px) 0; }
.cta-band .inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.cta-band .h-sec { grid-column: 1 / span 8; }
.cta-band .side { grid-column: 9 / span 4; display: grid; gap: 16px; justify-items: start; }
@media (max-width: 860px) {
  .cta-band .inner { grid-template-columns: 1fr; }
  .cta-band .inner > * { grid-column: 1 !important; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ftr { padding: clamp(64px, 8vw, 112px) 0 32px; border-top: 1px solid var(--ink); }
.ftr-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.ftr-brand { grid-column: 1 / span 4; }
.ftr-brand .logo { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.ftr-brand p { margin-top: 16px; color: var(--grey); font-size: var(--t-sm); max-width: 32ch; }
.ftr-col { grid-column: span 2; font-size: var(--t-sm); }
.ftr-col.wide { grid-column: span 4; }
.ftr-col h4 { font-size: var(--t-sm); margin-bottom: 14px; }
.ftr-col li { margin-bottom: 8px; color: var(--grey); }
.ftr-col a { text-decoration: none; color: var(--ink); }
.ftr-col a:hover { color: var(--accent); }
.ftr-base {
  margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); color: var(--grey);
}
.ftr-base a { text-decoration: none; }
.ftr-base a:hover { color: var(--accent); }
@media (max-width: 960px) {
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-col, .ftr-col.wide { grid-column: span 6; }
}
@media (max-width: 520px) { .ftr-col, .ftr-col.wide { grid-column: 1 / -1; } }

/* Pulsante WhatsApp/chiamata fisso su mobile */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    gap: 8px; transform: translateY(140%); transition: transform 0.4s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1; justify-content: center; box-shadow: 0 6px 24px rgba(18, 18, 18, 0.18); }
  .menu-open .dock { display: none; }
}

/* --------------------------------------------------------------------------
   Movimento ridotto
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .hero .h-hero .ln > span, .js .reveal .ln > span { transform: none; }
  .frame, .art { transition: none !important; }
  .js .hero .fade-in { opacity: 1; }
  .flow::after { width: 100%; }
  @view-transition { navigation: none; }
}

@media print {
  .hdr, .mnav, .dock, .ticker, .form { display: none !important; }
  .on-ink { background: none; color: #000; }
}

/* Hero su mobile: la cornice subito dopo il titolo */
@media (max-width: 960px) {
  .hero-copy { display: contents; }
  .hero .h-hero { order: 1; }
  .hero-today { order: 2; min-height: 0; margin-top: 16px; }
  .stage { order: 3; margin-top: 8px; }
  .hero-copy .lead { order: 4; }
  .hero-actions { order: 5; margin-top: 4px; }
}

/* --------------------------------------------------------------------------
   Banner cookie
   -------------------------------------------------------------------------- */
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--accent); }
.ftr-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.ck {
  position: fixed; z-index: 60; left: 16px; bottom: 16px;
  width: min(520px, calc(100% - 32px));
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); padding: 24px 24px 20px;
  box-shadow: 0 18px 50px rgba(18, 18, 18, 0.16);
  display: grid; gap: 14px;
  animation: ck-in 0.5s var(--ease) both;
}
.ck[hidden] { display: none; }
@keyframes ck-in { from { opacity: 0; transform: translateY(16px); } }
.ck-x {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
  background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--grey);
}
.ck-x:hover { color: var(--ink); }
.ck-title { margin: 0; font-size: var(--t-lg); letter-spacing: -0.03em; }
.ck-text { margin: 0; font-size: var(--t-sm); color: var(--grey); line-height: 1.55; padding-right: 16px; }
.ck-prefs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ck-prefs[hidden] { display: none; }
.ck-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ck-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.ck-row b { display: block; font-size: var(--t-sm); }
.ck-row small { display: block; font-size: var(--t-xs); color: var(--grey); line-height: 1.45; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-actions .btn { min-height: 44px; padding: 0 16px; flex: 1 1 auto; justify-content: center; }
.ck-actions .btn[hidden] { display: none; }
.ck-open .dock { display: none; }
@media (max-width: 520px) {
  .ck { left: 8px; bottom: 8px; width: calc(100% - 16px); padding: 20px 16px 16px; }
}

/* --------------------------------------------------------------------------
   Pagina promo "Conosciamoci meglio"
   -------------------------------------------------------------------------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.promo-hero { padding: clamp(48px, 7vw, 112px) 0 clamp(48px, 6vw, 88px); }
.promo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.promo-copy { grid-column: 1 / span 7; min-width: 0; }
.promo-h { font-size: clamp(3rem, 1rem + 6.4vw, 8rem); line-height: 0.98; }
.promo-lead { margin-top: clamp(24px, 3vw, 40px); font-size: var(--t-lg); line-height: 1.4; max-width: 30ch; }
.price { grid-column: 9 / span 4; display: grid; justify-items: start; position: relative; padding: 24px 0 0 24px; }
.price::before, .price::after { content: ""; position: absolute; left: 0; top: 0; background: var(--accent); }
.price::before { width: 32px; height: 2px; }
.price::after { width: 2px; height: 32px; }
.price-k { font-size: var(--t-sm); color: var(--grey); max-width: 18ch; }
.price-n { font-weight: 700; font-size: clamp(5rem, 2rem + 9vw, 11rem); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.price-c { font-weight: 400; font-size: 0.42em; letter-spacing: 0; margin-left: 0.08em; vertical-align: 0.95em; color: var(--accent); }
.price-v { font-size: var(--t-lg); font-weight: 400; margin-top: 4px; }
@media (max-width: 860px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-copy, .price { grid-column: 1; }
  .price { margin-top: 16px; }
}

/* Prima / dopo */
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  border: 1.5px solid var(--ink); background: #fff; user-select: none;
}
.ba-pane { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; pointer-events: none; z-index: 2;
}
.ba-handle i { display: block; width: 2px; align-self: stretch; background: var(--accent); }
.ba-handle span {
  font-size: var(--t-xs); font-weight: 700; background: var(--ink); color: var(--paper);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none;
}
.ba:has(.ba-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.ba-note { margin-top: 12px; }

/* il sito "prima" */
.old {
  position: absolute; inset: 0; background: #d9dce3;
  font-family: "Times New Roman", Times, serif; color: #222; display: flex; flex-direction: column;
  font-size: clamp(9px, 1.2vw, 16px);
}
.old-top { background: linear-gradient(#3a5fa8, #1d3f86); color: #ffef8a; padding: 1.2em 1.6em; display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; }
.old-logo { font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 1.9em; text-shadow: 2px 2px 0 #000; }
.old-nav { color: #fff; font-size: 0.95em; }
.old-nav u { color: #c9d9ff; }
.old-body { flex: 1; padding: 1.4em 1.6em; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.6em 1.4em; align-content: start; }
.old-h { grid-column: 1 / -1; margin: 0; color: #c00; font-weight: 700; font-size: 1.6em; text-align: center; }
.old-img { border: 3px ridge #999; background: repeating-linear-gradient(45deg, #bbb 0 8px, #ccc 8px 16px); display: grid; place-items: center; min-height: 7em; color: #555; font-family: Arial, sans-serif; font-size: 0.8em; }
.old-p { margin: 0; text-align: justify; line-height: 1.25; }
.old-btn { grid-column: 2; justify-self: start; border: 2px outset #eee; background: #e8e8e8; padding: 0.3em 0.9em; font-family: Arial, sans-serif; font-size: 0.9em; }
.old-foot { background: #1d3f86; color: #9fb4e3; font-size: 0.8em; padding: 0.6em 1.6em; text-align: center; font-family: "Courier New", monospace; }

/* il sito "dopo" */
.new {
  position: absolute; inset: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(9px, 1.15vw, 16px);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;
}
.new-img { grid-column: 1; grid-row: 2; }
.new-body { grid-column: 2; grid-row: 2; }
.new-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 1.4em 2em; gap: 1em; }
.new-logo { font-size: 1.25em; letter-spacing: -0.03em; }
.new-logo b { font-weight: 700; }
.new-nav { display: flex; gap: 1.6em; align-items: center; font-size: 0.85em; }
.new-cta { background: var(--ink); color: var(--paper); padding: 0.55em 1.1em; border-radius: 99px; font-weight: 700; }
.new-body { padding: 1em 2em 2em 3.5em; align-self: center; }
.new-h { margin: 0; font-size: 2.9em; line-height: 1; letter-spacing: -0.045em; }
.new-h b { font-weight: 700; }
.new-p { margin: 1em 0 1.4em; color: var(--grey); font-size: 0.95em; max-width: 26ch; }
.new-btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.7em 1.3em; border-radius: 99px; font-weight: 700; font-size: 0.9em; }
.new-img { margin: 0 0 2em 2em; position: relative; background: var(--paper-2); overflow: hidden; }
.new-img span {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 35%, var(--accent) 0 18%, transparent 18.5%),
    linear-gradient(160deg, transparent 55%, rgba(18,18,18,.08) 55%);
}
.new-img::after { content: ""; position: absolute; left: 1.2em; bottom: 1.2em; width: 40%; height: 0.6em; background: var(--ink); }
@media (max-width: 640px) {
  .ba { aspect-ratio: 4 / 5; }
  .old-body { grid-template-columns: 1fr; }
  .old-btn { grid-column: 1; }
  .new { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .new-body { grid-column: 1; grid-row: 2; padding: 1em 1.5em 1.5em calc(50% + 1.5em); }
  .new-img { grid-column: 1; grid-row: 3; margin: 0 1.5em 1.5em calc(50% + 1.5em); }
  .new-nav span:not(.new-cta) { display: none; }
  .new-h { font-size: 2.1em; }
}

/* cosa cambiamo */
.promo-what { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.promo-what .h-sec { grid-column: 1 / span 5; }
.changes { grid-column: 7 / span 6; border-top: 1.5px solid var(--ink); }
.changes li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.changes b { font-size: var(--t-lg); letter-spacing: -0.03em; }
.changes span { color: var(--grey); font-size: var(--t-sm); }
.changes li:last-child b { color: var(--accent); }
@media (max-width: 860px) {
  .promo-what { grid-template-columns: 1fr; }
  .promo-what > * { grid-column: 1 !important; }
  .changes { margin-top: 24px; }
  .changes li { grid-template-columns: 1fr; gap: 4px; }
}
.promo-after { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.promo-after .h-sec { grid-column: 1 / span 6; }
.promo-after .copy { grid-column: 8 / span 5; font-size: var(--t-lg); line-height: 1.45; }
.promo-after .copy p { margin-bottom: 0.9em; }
.promo-after .copy .muted { font-size: var(--t-md); }
@media (max-width: 860px) {
  .promo-after { grid-template-columns: 1fr; }
  .promo-after > * { grid-column: 1 !important; }
}
.form-btns { display: flex; flex-wrap: wrap; gap: 12px; }
#richiedi .contact-actions { border-top-color: var(--ink); }

/* Barra WhatsApp su mobile: leggibile su fondo chiaro e scuro */
.dock .btn { border-color: var(--ink); }
.dock .btn:first-child { --bg: var(--accent); --fg: #fff; border-color: var(--accent); }
.dock .btn:last-child { --bg: var(--paper); --fg: var(--ink); }

/* --------------------------------------------------------------------------
   Promo: "Un modo per sciogliere il ghiaccio"
   -------------------------------------------------------------------------- */
.ice-hero { padding: clamp(56px, 9vw, 140px) 0 clamp(48px, 6vw, 88px); }
.ice-hi { margin: 0 0 clamp(16px, 2vw, 28px); font-size: clamp(1.25rem, 0.9rem + 1.2vw, 2rem); letter-spacing: -0.03em; }
.ice-hi[hidden] { display: none; }
.ice-hi .br { color: var(--accent); }
.ice-hi b { font-weight: 700; }
.ice-h { font-size: clamp(3rem, 0.8rem + 7.6vw, 9.5rem); line-height: 0.96; }
.ice-sub {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
  margin-top: clamp(32px, 4vw, 64px);
}
.ice-sub .promo-lead { grid-column: 1 / span 6; margin: 0; max-width: 34ch; }
.ice-cue {
  grid-column: 9 / span 4; justify-self: end;
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-weight: 700; font-size: var(--t-md);
}
.ice-cue svg { width: 40px; height: 40px; padding: 11px; border: 1.5px solid var(--ink); border-radius: 50%; transition: background 0.25s, color 0.25s, transform 0.4s var(--ease); }
.ice-cue:hover svg { background: var(--ink); color: var(--paper); transform: translateY(3px); }
@media (max-width: 860px) {
  .ice-sub { grid-template-columns: 1fr; }
  .ice-sub .promo-lead, .ice-cue { grid-column: 1; justify-self: start; }
}

.brief { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.brief-grid > div { padding: 28px 28px 32px 0; }
.brief-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.brief-k { display: block; font-size: var(--t-xs); color: var(--grey); margin-bottom: 10px; }
.brief-grid p { margin: 0; font-size: var(--t-md); line-height: 1.5; }
.brief-grid b { font-weight: 700; }
@media (max-width: 760px) {
  .brief-grid { grid-template-columns: 1fr; }
  .brief-grid > div, .brief-grid > div + div { padding: 20px 0; border-left: 0; }
  .brief-grid > div + div { border-top: 1px solid var(--line); }
}

.offer { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.offer-copy { grid-column: 1 / span 7; min-width: 0; }
.offer-copy .promo-lead { margin-top: clamp(24px, 3vw, 40px); }
.offer .price { grid-column: 9 / span 4; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; }
  .offer-copy, .offer .price { grid-column: 1; }
  .offer .price { margin-top: 24px; }
}

/* Il prezzo è sotto un velo di ghiaccio che si scioglie quando arriva sullo schermo */
.price .frost { display: none; }
.js .price.melt .frost {
  display: block; position: absolute; inset: -12px -8px -12px -4px; z-index: 3; pointer-events: none;
  background-color: rgba(236, 242, 246, 0.72);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 64% 40%, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 74%, rgba(255,255,255,.85) 0 1.5px, transparent 2px),
    radial-gradient(circle at 82% 80%, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    linear-gradient(115deg, rgba(255,255,255,.55) 0 30%, transparent 30% 46%, rgba(255,255,255,.35) 46% 52%, transparent 52%);
  background-size: 60px 60px, 44px 44px, 70px 70px, 52px 52px, 100% 100%;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 24px rgba(160, 190, 210, 0.35);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.8s cubic-bezier(.6, 0, .2, 1) 0.35s, opacity 0.6s 1.9s;
}
.js .price.melt.is-in .frost { clip-path: inset(100% 0 0 0); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .price.melt .frost { display: none; }
}

/* Numeri: dal 1994, oltre 10 persone, 3 sedi */
.facts { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px) clamp(28px, 3.5vw, 48px) 0; }
.fact + .fact { padding-left: clamp(20px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.fact-n { font-weight: 700; font-size: clamp(3.25rem, 1.6rem + 4.4vw, 6.5rem); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.fact-n .plus { font-weight: 400; color: var(--accent); letter-spacing: 0; margin-left: 0.04em; }
.fact-t { font-size: var(--t-sm); color: var(--grey); max-width: 34ch; line-height: 1.55; }
.fact-t b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .fact { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .fact-n { min-width: 4.2ch; }
}
.person-role { display: block; font-size: var(--t-xs); color: var(--accent); margin-bottom: 6px; }

/* Pagine servizio: domande frequenti e altri servizi */
.faq { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 20px 0; font-size: var(--t-lg); letter-spacing: -0.025em; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4em; line-height: 1; transition: transform 0.3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0 0 22px; color: var(--grey); max-width: 60ch; }
.others { border-top: 1.5px solid var(--ink); }
.others li { border-bottom: 1px solid var(--line); }
.others a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; font-size: var(--t-lg); letter-spacing: -0.025em; transition: padding 0.3s var(--ease), color 0.2s; }
.others a svg { width: 18px; height: 18px; flex: none; }
.others a:hover { padding-left: 10px; color: var(--accent); }
.page-hero .crumb a { text-decoration: none; }

/* Progetti: foto, video e podcast */
.work { display: flex; flex-direction: column; min-width: 0; }
.work .work-media { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 11; max-width: 100%; }
.work .work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work:hover .work-media img { transform: scale(1.03); }
.work .work-media.is-video { background: var(--ink); }
.work .work-media video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--ink); }
.work .work-media.is-audio { background: var(--ink); color: var(--paper); }
.pod-mark { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 3vw, 32px); }
.pod-mark b { font-size: var(--t-sm); color: var(--accent); font-weight: 400; }
.pod-mark span { font-weight: 700; font-size: clamp(1.4rem, 0.9rem + 1.8vw, 2.6rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.pod-mark::after {
  content: ""; position: absolute; right: clamp(18px, 3vw, 32px); top: clamp(18px, 3vw, 32px); width: 38%; height: 40%;
  background: repeating-linear-gradient(90deg, var(--paper) 0 3px, transparent 3px 9px);
  -webkit-mask: radial-gradient(ellipse at center, #000 40%, transparent 72%);
  mask: radial-gradient(ellipse at center, #000 40%, transparent 72%); opacity: 0.35;
}
.work-audio { width: 100%; margin-top: 10px; height: 44px; }
.work .meta { padding-top: 14px; }
.work-desc { margin-top: 10px; color: var(--grey); font-size: var(--t-sm); max-width: 62ch; overflow: hidden; }
.work-desc p { margin: 0 0 0.7em; }
.work-desc.is-clamped { max-height: 6.4em; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.work-more { align-self: flex-start; margin-top: 4px; color: var(--ink); }
.work-link { align-self: flex-start; margin-top: 10px; }
