/* Font */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #16151c;              
  --bg-2: #201f28;
  --line: #34323f;
  --field: #4a4757;
  --ink: #f2f0eb;
  --muted: #a3a19a;
  --soft: #c9c7c0;
  --accent: #19f0e1;          
  --on-accent: #0e0e0e;       
  --accent-2: #954ed8;        
  --accent-2-deep: #7a3cc0;   
  --on-accent-2: #ffffff;
  --accent-text: var(--accent);  
  --nav-bg: rgba(32, 31, 40, 0.8);
  --surface-hi: #2e2c38;           
  --surface-hover: #262532;        
  --chip-bg: rgba(255, 255, 255, 0.07);
  --error: #ff8a80;
  color-scheme: dark;
  --paper: #201f29;
  --paper-ink: #f2f0eb;
  --paper-muted: #b9b4c6;
  --paper-line: #393745;
  --radius: 24px;
  --max: 1360px;
  --pad: clamp(20px, 4vw, 40px);
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

/* Tema chiaro */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f5fa;
    --bg-2: #ffffff;
    --line: #e1deea;
    --field: #b8b3c6;
    --ink: #16151c;
    --muted: #5c5868;
    --soft: #3d3a47;
    --accent-text: #007a72;        
    --nav-bg: rgba(255, 255, 255, 0.82);
    --surface-hi: #ece9f3;
    --surface-hover: #ffffff;
    --chip-bg: #f0eef5;
    --error: #c62828;
    --paper: #ecebf3;
    --paper-ink: #16151c;
    --paper-muted: #575363;
    --paper-line: #d6d2e0;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--soft); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.section--tight { padding-top: 48px; }

/* Tipografia */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.h-xl { font-size: clamp(50px, 9.5vw, 160px); line-height: 0.95; letter-spacing: -0.045em; }
@media (max-width: 380px) { .h-xl { font-size: 13vw; } }   /* telefoni piccoli: anche «Cartellonistica» sta in una riga */
.h-l  { font-size: clamp(40px, 5.6vw, 88px); }
.h-m  { font-size: clamp(30px, 3.3vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.h-s  { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; line-height: 1.1; }
.eyebrow {
  margin: 0; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--soft); max-width: 600px; }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }
.count { font-size: 0.32em; vertical-align: super; color: var(--muted); letter-spacing: 0; }

/* Pulsanti  */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: scale(1.03); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { color: var(--on-accent); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--dark { background: var(--paper-ink); color: var(--paper); }
.btn--dark:hover { color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header  */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px clamp(12px, 3vw, 32px); }
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 28px;
  padding: 6px 8px 6px 18px;
}
/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__img { height: 60px; width: auto; }
.logo__name { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.04em; } /* solo se l'immagine manca */
.logo--footer { align-self: flex-start; color: var(--paper-ink); margin-top: 8px; }
.logo--footer .logo__img { height: clamp(96px, 12vw, 140px); }
@media (max-width: 860px) { .logo__img { height: 52px; } }
.nav__toggle {
  display: none; min-width: 48px; min-height: 48px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: block; padding: 12px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__menu a[aria-current="page"] { background: var(--surface-hi); }
.nav__menu .nav__cta { background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 12px 22px; }
.nav__menu .nav__cta:hover,
.nav__menu .nav__cta[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 6px 10px; }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a { font-size: 18px; }
}

/* Hero */
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.hero__title > span { display: block; }

.badge {
  position: relative; flex: none; width: 150px; height: 150px; border-radius: 999px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform .3s;
}
.badge:hover { transform: scale(1.06); }
.badge svg.badge__ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }

/* Slider della home */
.hero-slider { padding: 0 clamp(8px, 1.6vw, 20px); margin-top: -4px; }
.hero-slider__frame {
  position: relative; overflow: hidden; border-radius: 32px;
  min-height: clamp(560px, 88vh, 900px); display: flex; background: var(--bg-2);
}
.hero-slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-active { opacity: 1; }
.slide img, .slide .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6.5s ease-out; }
.slide.is-active img, .slide.is-active .ph { transform: scale(1); }
.slide .ph { align-items: flex-start; justify-content: flex-end; padding: 96px 32px; }
.hero-slider__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(16,15,22,.9) 0%, rgba(16,15,22,.45) 45%, rgba(16,15,22,.15) 70%, rgba(16,15,22,.45) 100%);
}
.hero-slider__content {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(96px, 9vw, 120px);
}
.hero-slider__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-slider__text { display: flex; flex-direction: column; gap: 24px; }
.hero-slider .hero__title { font-size: clamp(46px, 8.4vw, 140px); }
.hero-slider .lead { color: #e4e2dc; }
.hero-slider__content { color: #f2f0eb; }
.hero-slider__content .eyebrow { color: #cfcbd8; }
.hero-slider .accent { color: var(--accent); }
.hero-slider__controls {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 var(--pad) 24px;
}
.hero-slider__caption { margin: 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #e4e2dc; }
.hero-slider__buttons { display: flex; align-items: center; gap: 8px; }
.ctrl {
  width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(32,31,40,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); color: #f2f0eb; cursor: pointer; transition: background .25s, color .25s;
}
.ctrl:hover { background: var(--accent); color: var(--on-accent); }
.ctrl .ico-play { display: none; }
.ctrl.is-paused .ico-play { display: block; }
.ctrl.is-paused .ico-pausa { display: none; }
.dots { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.dot { width: 18px; height: 44px; display: flex; align-items: center; justify-content: center; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.dot[aria-current="true"]::before { width: 24px; background: var(--accent); }
.hero-slider__frame { touch-action: pan-y; cursor: grab; }
.hero-slider__frame a, .hero-slider__frame button { cursor: pointer; }
.hero-slider__frame.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hero-slider__frame.is-dragging .slide.is-active img,
.hero-slider__frame.is-dragging .slide.is-active .ph {
  transform: translateX(calc(var(--trascina, 0px) * .25)) scale(1.04);
  transition: transform .1s linear;
}
@media (max-width: 600px) {
  .hero-slider .badge { display: none; }
  .hero-slider__caption { width: 100%; }
  .hero-slider__content { padding-bottom: 150px; }
}

/* Hero */
.page-hero { padding-top: clamp(32px, 6vw, 80px); padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.page-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.crumbs { font-size: 15px; }
.crumbs a { text-decoration: none; color: var(--muted); }

/*  Nastro scorrevole */
.marquee {
  background: var(--accent-2); color: var(--on-accent-2);
  transform: rotate(-2deg); margin: 24px -40px 0; padding: 18px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 44px; padding-right: 44px;
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 70px); letter-spacing: -0.04em;
  animation: marquee 34s linear infinite;
}
.marquee__dot { width: 0.32em; height: 0.32em; border-radius: 999px; background: var(--accent); flex: none; }

/* Griglie*/
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
@media (max-width: 860px) {
  .bento > * { grid-column: span 12; }
}

.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }

/* Segnaposto immagini */
.ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #2a2933; color: #d9d6cf; font-size: 13px;
}
.ph span { border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; }
.tone-1 { background: #2b3a2e; } .tone-2 { background: #3b2b24; } .tone-3 { background: #262c3d; }
.tone-4 { background: #35283a; } .tone-5 { background: #3a3527; } .tone-6 { background: #24363a; }

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-wide { aspect-ratio: 7 / 5; }
.r-square { aspect-ratio: 1 / 1; }
.r-photo { aspect-ratio: 4 / 3; }
.r-cinema { aspect-ratio: 16 / 8; min-height: 260px; }
@media (max-width: 600px) { .r-cinema { aspect-ratio: 4 / 3; min-height: 0; } }

/* Card servizi (home)*/
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 420px; padding: 32px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: background .35s, color .35s, transform .35s;
}
.service-card:hover { background-color: var(--surface-hover); border-color: var(--accent); color: var(--ink); transform: translateY(-4px); }
.service-card:hover .service-card__arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service-card__num { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.04em; line-height: 1; color: var(--accent-2); }
.service-card__arrow { width: 56px; height: 56px; border-radius: 999px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; transition: background .3s, color .3s, border-color .3s; }
.service-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--ink); }

/* Sfondi delle card servizi (home) */
.service-card {
  background: var(--bg-2) var(--sfondo, none) right bottom / cover no-repeat;
  transition: background-color .35s, color .35s, transform .35s, box-shadow .35s;
}
.service-card:hover { background-color: var(--bg-2); box-shadow: 0 18px 50px -24px rgb(25 240 225 / .45); }
.service-card[href="pellicole-solari.html"] { --sfondo: url("../img/sfondi/servizio-1.webp"); }
.service-card[href="car-wrapping.html"]     { --sfondo: url("../img/sfondi/servizio-2.webp"); }
.service-card[href="insegne.html"]          { --sfondo: url("../img/sfondi/servizio-3.webp"); }
.service-card[href="cartellonistica.html"]  { --sfondo: url("../img/sfondi/servizio-4.webp"); }
.service-card li { background: rgb(12 13 31 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.service-card p.muted { color: var(--soft); }

@media (prefers-color-scheme: light) {
  .service-card[href="pellicole-solari.html"] { --sfondo: url("../img/sfondi/servizio-1-chiaro.webp"); }
  .service-card[href="car-wrapping.html"]     { --sfondo: url("../img/sfondi/servizio-2-chiaro.webp"); }
  .service-card[href="insegne.html"]          { --sfondo: url("../img/sfondi/servizio-3-chiaro.webp"); }
  .service-card[href="cartellonistica.html"]  { --sfondo: url("../img/sfondi/servizio-4-chiaro.webp"); }
  .service-card:hover { box-shadow: 0 18px 50px -24px rgb(149 78 216 / .35); }
  .service-card li { background: rgb(255 255 255 / .72); }
}

/* Card lavori */
.work { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.work .media img, .work .ph { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.work:hover .media img, .work:hover .ph { transform: scale(1.05); }
.work__meta { display: flex; flex-direction: column; gap: 6px; }
.work__tag { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.work__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 36px; }
.chip {
  min-height: 44px; padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; background: transparent; color: var(--ink); border: 1.5px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { color: var(--muted); }

/*  Passaggi del lavoro */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0; counter-reset: step; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -0.04em; color: var(--accent-2); line-height: 1;
}
.step h3 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--soft); }

/* Vetrina a scorrimento (pagine servizio) */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
.showcase__list { display: flex; flex-direction: column; }
.sc-item {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 48px 0; border-top: 1px solid var(--line);
  opacity: .32; transition: opacity .6s ease;
}
.sc-item:last-child { border-bottom: 1px solid var(--line); }
.sc-item { scroll-margin-top: 110px; }
.sc-item.is-active { opacity: 1; }
.sc-item__media { display: none; }
.sc-item__num { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; color: var(--accent-2); }
.sc-item__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.035em; line-height: 1.02; }
.sc-item__text { margin: 0; font-size: 18px; color: var(--soft); max-width: 460px; }
.sc-item__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-item__list li { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--chip-bg); }
.sc-item__link { align-self: flex-start; font-weight: 600; text-decoration: none; padding: 10px 0; color: var(--accent-text); }

.showcase__stage {
  position: sticky; top: 112px; height: calc(100vh - 150px); min-height: 420px;
  border-radius: 32px; overflow: hidden; background: var(--bg-2);
}
.sc-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.12); filter: blur(14px);
  transition: opacity .8s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}
.sc-slide.is-active { opacity: 1; transform: none; filter: none; }
.sc-slide .ph, .sc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase__hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 28px 28px 34px; color: #f2f0eb;
  background: linear-gradient(to top, rgba(16,15,22,.75), rgba(16,15,22,0));
  font-family: var(--display); font-weight: 700;
}
.showcase__count { font-size: 15px; letter-spacing: .1em; color: var(--accent); }
.showcase__label { font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.02em; text-align: right; }
.showcase__bar { position: absolute; left: 28px; right: 28px; bottom: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); z-index: 3; overflow: hidden; }
.showcase__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__stage { display: none; }
  .sc-item { min-height: 0; opacity: 1; padding: 36px 0; }
  .sc-item__media { display: block; margin-bottom: 8px; }
}

/* Schede (pellicole) */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 48px; align-items: start; }
.split__aside { grid-column: span 4; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 16px; }
.split__main { grid-column: span 8; display: flex; flex-direction: column; gap: 20px; }
.split__aside, .split__main { min-width: 0; }   /* le colonne non si allargano oltre lo schermo */
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); column-gap: 0; }   /* 12 colonne con 48px di spazio non stanno su un telefono */
  .split__aside, .split__main { grid-column: 1 / -1; position: static; }
}
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.035em; line-height: 1.05; }
.card p { margin: 0; color: var(--soft); }
.card ul { margin: 4px 0 0; padding-left: 20px; color: var(--soft); }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-2-deep); color: var(--on-accent-2); }

.toc { display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: 15px; }
.toc a:hover { border-color: var(--ink); color: var(--ink); }

/* Sezione network */
.network__photo { margin-top: clamp(24px, 3vw, 44px); }

/* Contatti*/
.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__info { flex: 1 1 300px; display: flex; flex-direction: column; gap: 26px; }
.contact__form { flex: 999 1 540px; min-width: 0; }
.info-item .eyebrow { font-size: 13px; margin-bottom: 6px; }
.info-item a { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }
.copy-btn {
  margin-top: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); cursor: pointer;
}

.form { display: flex; flex-direction: column; gap: 32px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field textarea {
  min-height: 52px; padding: 8px 0; border: none; border-bottom: 1.5px solid var(--field);
  background: transparent; color: var(--ink); font: inherit; font-size: 20px; border-radius: 0;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--error); }
fieldset.field { border: none; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s;
}
.pill input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--soft); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; color: var(--error); font-weight: 500; }
.form__hint { margin: 0; font-size: 14px; color: var(--muted); }
.success {
  background: var(--accent); color: var(--on-accent); border-radius: 32px;
  padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.success h2 { margin: 0; }
.success p { margin: 0; font-size: 18px; }
[hidden] { display: none !important; }

.map-link {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 260px; padding: 28px;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none;
}

/* Footer  */
.site-footer { background: var(--paper); color: var(--paper-ink); border-radius: 40px 40px 0 0; margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--paper-ink); }
.site-footer a:hover { color: var(--paper-muted); }
.footer__inner { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 36px; display: flex; flex-direction: column; gap: 56px; }
.footer__cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__cta .eyebrow { color: var(--paper-muted); }
.footer__sub { margin: 0; font-size: 19px; color: var(--paper-muted); max-width: 560px; }
.btn--line { border-color: var(--paper-ink); color: var(--paper-ink); background: transparent; }
.site-footer .btn--dark, .site-footer .btn--dark:hover { background: var(--accent); color: var(--on-accent); }
.site-footer .btn--line:hover { color: var(--paper-ink); }
.footer__big { transition: color .3s; }
.footer__big:hover { color: var(--accent-text) !important; }
.footer__big {
  font-family: var(--display); font-weight: 700; font-size: clamp(60px, 12vw, 200px);
  letter-spacing: -0.06em; line-height: 0.85; text-decoration: none;
}
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer__cols h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); margin: 0 0 12px; font-weight: 600; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__cols p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--paper-line); padding-top: 24px; font-size: 14px; color: var(--paper-muted); }

/* Animazioni */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

.up { animation: up 1s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; } .d4 { animation-delay: .5s; }

/* Animazioni allo scorrimento*/
.js-anim .reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js-anim .reveal.display { transform: translateY(70px); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* Immagini */
.js-anim .media--reveal {
  clip-path: inset(12% 8% 12% 8% round var(--radius));
  transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js-anim .media--reveal > * { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js-anim .media--reveal.is-visible { clip-path: inset(0 round var(--radius)); }
.js-anim .media--reveal.is-visible > * { transform: scale(1); }

/* Titoli */
.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; }
.split-word { display: inline-block; white-space: nowrap; }
.split-ch { display: inline-block; will-change: transform, opacity; }
.js-anim .is-split .split-ch {
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(.6);
  transition: opacity .5s ease, transform 1s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
}
.js-anim .is-split.is-in .split-ch { opacity: 1; transform: none; }

.is-scrambling { font-variant-numeric: tabular-nums; }

/* Righello di scorrimento */
.ruler {
  position: fixed; top: 0; bottom: 0; right: 0; width: 34px; z-index: 40; pointer-events: none;
  display: none; color: var(--muted);
}
.ruler::before {
  content: ""; position: absolute; top: 96px; bottom: 24px; right: 0; width: 14px;
  background:
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 10px) right / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 50px) right / 14px 100% no-repeat;
  opacity: .55;
}
.ruler__mark {
  position: absolute; right: 0; top: 96px; width: 34px; height: 2px; background: var(--accent);
  transform: translateY(0); box-shadow: 0 0 12px var(--accent);
}
@media (min-width: 1180px) {
  .ruler { display: block; }
  .scroll-progress { display: none; }
}

/* Effetto profondità sulle foto grandi */
.parallax > * { will-change: transform; scale: 1.14; }

/* Barra di avanzamento in alto */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Menu più compatto quando si scorre */
.site-header { transition: padding .35s ease; }
.nav { transition: padding .35s ease, box-shadow .35s ease; }
.logo__img { transition: height .35s ease; }
.site-header.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-scrolled .nav { box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.site-header.is-scrolled .logo__img { height: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide { transition: opacity .6s ease !important; }
  .slide img, .slide .ph { transform: none !important; }
}

/* Testi presi da Sanity (indirizzo, orari) */
.pre { white-space: pre-line; }
.footer__cols li:has(> a[hidden]) { display: none; }

/* Novità */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .35s;
}
.news-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-4px); }
.news-card .media { border-radius: 0; }
.news-card .media img, .news-card .ph { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.news-card:hover .media img, .news-card:hover .ph { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.news-card__date { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.news-card__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.025em; line-height: 1.15; }
.news-card__text { margin: 0; color: var(--soft); }
.news-card__more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent-text); }

.article { max-width: 920px; padding-top: clamp(32px, 6vw, 80px); padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.article__date { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); min-height: 1.2em; }
.article__title { margin-bottom: 8px; }
.article__cover { margin: 8px 0 16px; }
.article__body { display: flex; flex-direction: column; gap: 18px; font-size: 19px; line-height: 1.7; color: var(--soft); max-width: 720px; }
.article__body p { margin: 0; }
.article__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

/*  Pulsanti social */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.social__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px 10px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px;
  color: inherit; transition: border-color .25s, background .25s, color .25s;
}
.social__btn:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.social__ico { width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.social__ico--facebook { --ico: url("../img/social/facebook.png"); }
.social__ico--instagram { --ico: url("../img/social/instagram.png"); }
.site-footer .social__btn { border-color: var(--paper-line); color: var(--paper-ink); }
.site-footer .social__btn:hover { border-color: var(--accent); color: var(--on-accent); }
.footer__social { margin-top: 28px; }
.info-item--social:not(:has(.social__btn:not([hidden]))) { display: none; }
.footer__social:not(:has(.social__btn:not([hidden]))) { display: none; }
.info-item .social__btn { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.footer__cols .pre + .pre { margin-top: 12px; }