/* ==========================================================================
   NOVACQUE — Industrial Water Solutions
   Colori, caratteri e gerarchia dal Manuale di identità visiva
   ========================================================================== */

/* Microgramma Extd D: Bold per titoli e numeri, Medium per occhielli ed etichette.
   Il peso 500 usa Michroma come sostituto provvisorio del Medium:
   prima della pubblicazione entrambi i pesi passano al progetto web di Adobe Fonts. */
@font-face {
  font-family: "Microgramma"; font-weight: 700; font-style: normal; font-display: block;
  src: url("../fonts/Microgramma-BoldExtended.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Microgramma"; font-weight: 500; font-style: normal; font-display: block;
  src: url("../fonts/Michroma-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Barlow-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Barlow-SemiBold.woff2") format("woff2");
}

:root {
  /* Palette del manuale, nessun altro colore */
  --navy: #1E3056;
  --blue: #3970C0;
  --grey: #65696B;
  --navy-ink: #0B1426;
  --blue-soft: #8DA3C8;
  --silver: #D9DDE2;
  --paper: #F7F8F9;
  --white: #FFFFFF;

  /* Sistema alternativo del manuale: Arial */
  --f-display: "Microgramma", Arial, sans-serif;
  --f-body: "Barlow", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --header-h: 84px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
/* la pagina compare quando i font sono pronti: così i titoli non saltano dal carattere di riserva al Microgramma */
html.fx:not(.fonts-ok) body { visibility: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--grey);
  font-family: var(--f-body);
  font-weight: 400;
  font-synthesis: none;
  font-size: 17px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
/* spazio della barra di scorrimento sempre riservato: quando il caricamento finisce e la pagina può scorrere, niente scatto */
html { scrollbar-gutter: stable; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; font-size: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

/* ---------- Gerarchia del manuale (proporzioni 20/24, 7/10, 7,5/10,5, 12/17, 9,5/13,5, 7,5/10,5) ---------- */
.display { font-family: var(--f-display); font-weight: 700; line-height: 1.2; color: var(--navy); }
.h-xl { font-size: clamp(25px, 4vw, 62px); }
.h-lg { font-size: clamp(23px, 3.1vw, 46px); }
.h-md { font-size: clamp(20px, 2.1vw, 32px); }

/* Occhiello: Microgramma Medium maiuscolo */
.eyebrow { display: block; }
.eyebrow, .label {
  font-family: var(--f-display); font-weight: 500; font-size: 12px; line-height: 1.43;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.on-dark .eyebrow { color: var(--blue-soft); }
.on-dark .display { color: var(--white); }

/* Sottotitolo: Microgramma Bold */
.sub { font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.4; color: var(--navy); }

/* Introduzione: Barlow Regular */
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.42; color: var(--grey); }
.on-dark .lead { color: var(--silver); }

/* Nota: Barlow Regular */
.note { font-size: 14px; line-height: 1.4; color: var(--grey); }

.prose p + p { margin-top: 1em; }

/* ---------- Bottoni e link ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px;
  font-family: var(--f-display); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), box-shadow .5s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arr { width: 16px; height: 10px; transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { color: var(--white); }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--blue-soft); }
.btn--line:hover { color: var(--white); box-shadow: inset 0 0 0 1px var(--blue); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.link-arrow span { position: relative; }
.link-arrow span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.link-arrow:hover span::after { transform: scaleX(1); transform-origin: left; }
.link-arrow .arr { width: 16px; height: 10px; flex: none; transition: transform .5s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ==========================================================================
   Preloader (solo home, alla prima visita)
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: grid; place-items: center;
  overflow: hidden;
  transition: clip-path 3s var(--ease-io);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.no-pre .preloader { display: none; }
.preloader.is-done { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
/* logo e percentuale nella stessa cella: il numero grande sta sotto, il logo sopra */
.preloader > * { grid-area: 1 / 1; }
.preloader__logo {
  position: relative; z-index: 1; width: min(420px, 70vw);
  clip-path: inset(0 100% 0 0);
  animation: wipe 3s .55s var(--ease-out) forwards;
}
/* percentuale finta sotto il logo: segue il disegno del logo */
.preloader__pct {
  font-family: 'Microgramma', sans-serif; font-weight: 700;
  font-size: clamp(64px, 21vw, 360px); line-height: 1; letter-spacing: .02em; white-space: nowrap;
  color: #EAEDF0; font-variant-numeric: tabular-nums;
}
/* a fine caricamento logo e percentuale si sfumano piano, poi si apre la tendina */
.preloader__logo, .preloader__pct { transition: opacity 1.8s var(--ease-out); }
.preloader.is-fading .preloader__logo { opacity: 0; }
.preloader.is-fading .preloader__pct { opacity: 0; transition-delay: .2s; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); view-transition-name: header;
  transition: background .5s var(--ease-out), transform .6s var(--ease-out), box-shadow .5s;
}
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  max-width: none; padding: 0 var(--gutter);
}
.header__logo { position: relative; width: 196px; height: 27px; flex: none; }
.header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.header__logo .logo-white { opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); }
.nav a {
  position: relative; font-size: 15.5px;
  color: var(--navy); transition: color .3s;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--blue); }
.header__tools { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 8px; font-size: 14px; color: var(--blue-soft); }
.lang .is-on { color: var(--white); }
.lang a:not(.is-on), .lang span { opacity: .5; transition: opacity .3s; }
.lang a:not(.is-on):hover { opacity: 1; }
.header .lang { color: var(--grey); }
.header .lang .is-on { color: var(--navy); }
.header .btn { height: 36px; padding: 0 14px; font-size: 10.5px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: transform .5s var(--ease-out), opacity .3s, background .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 26px; right: 18px; }

.header.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--silver); }
.header:not(.is-solid) .logo-white { opacity: 1; }
.header:not(.is-solid) .logo-navy { opacity: 0; }
.header:not(.is-solid) .nav a { color: var(--white); }
.header:not(.is-solid) .lang { color: var(--silver); }
.header:not(.is-solid) .lang .is-on { color: var(--white); }
.lang a:not(.is-on), .lang span { opacity: .5; transition: opacity .3s; }
.lang a:not(.is-on):hover { opacity: 1; }
.header:not(.is-solid) .btn--line { color: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.header:not(.is-solid) .burger span { background: var(--white); }
.header.is-hidden { transform: translateY(-100%); }

/* Menu mobile */
.mnav {
  position: fixed; inset: 0; z-index: 99; background: var(--navy-ink);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
  overflow: hidden;
}
.mnav.is-open { clip-path: inset(0 0 0 0); }
.mnav ul li { overflow: hidden; }
.mnav ul a {
  display: block; padding: 8px 0; color: var(--white);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 6vw, 36px);
  transform: translateY(110%); transition: transform .8s var(--ease-out);
}
.mnav.is-open ul a { transform: none; }
.mnav ul li:nth-child(2) a { transition-delay: .05s; }
.mnav ul li:nth-child(3) a { transition-delay: .1s; }
.mnav ul li:nth-child(4) a { transition-delay: .15s; }
.mnav ul li:nth-child(5) a { transition-delay: .2s; }
.mnav ul li:nth-child(6) a { transition-delay: .25s; }
.mnav ul li:nth-child(7) a { transition-delay: .3s; }
.mnav__foot { color: var(--silver); font-size: 14px; }
body.menu-open .header { background: transparent; box-shadow: none; }
body.menu-open .header .logo-white { opacity: 1; }
body.menu-open .header .logo-navy { opacity: 0; }
body.menu-open .burger span { background: var(--white); }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); right: 10px; }

/* ==========================================================================
   Hero della home
   ========================================================================== */
/* circa due terzi di schermo: sotto si vede subito la sezione chiara con le bande */
.hero { position: relative; height: 65vh; height: 65svh; min-height: 500px; color: var(--white); background: var(--navy-ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); }
/* la foto compare piano: dissolvenza e leggero allontanamento */
.is-ready .hero__bg { animation: heroIn 8s .6s cubic-bezier(.33, 0, .2, 1) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
/* fascia alta scura e uniforme: il logotipo bianco sta su fondo adeguato (manuale, versione C) */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,20,38,.72) 0, rgba(11,20,38,.58) 96px, rgba(11,20,38,0) 280px),
    linear-gradient(0deg, rgba(11,20,38,.42) 0%, rgba(11,20,38,0) 45%),
    linear-gradient(90deg, rgba(11,20,38,.34) 0%, rgba(11,20,38,.08) 50%, rgba(11,20,38,0) 100%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(44px, 9vh, 92px); }
.hero__title { color: var(--white); text-shadow: 0 2px 24px rgba(11,20,38,.45); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.is-ready .hero__title .line > span { animation: lineUp 2.4s .5s var(--ease-out) forwards; }
.is-ready .hero__title .line:nth-child(2) > span { animation-delay: .7s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__watch { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(24px, 4vh, 40px); color: var(--white); align-self: flex-start; opacity: 0; }
.is-ready .hero__watch { animation: fadeUp 2s 1.4s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--silver); transition: background .4s, color .4s, box-shadow .4s; }
.hero__ring svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.hero__label { font-size: 16px; padding-bottom: 3px; text-shadow: 0 1px 12px rgba(11,20,38,.5); border-bottom: 1px solid var(--silver); }
.hero__watch:hover .hero__ring { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--white); }

.vmodal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: var(--navy-ink); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.vmodal.is-open { opacity: 1; visibility: visible; }
.vmodal[hidden] { display: none; }
.vmodal__player { width: min(1400px, 100%); max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
.vmodal__video { width: 100%; max-height: calc(100svh - 2 * clamp(16px, 4vw, 56px) - 48px); aspect-ratio: 1920 / 816; background: var(--navy-ink); cursor: pointer; }
/* comandi del video: pausa, linea del tempo, muto; sottili, in bianco */
.vctl { display: flex; align-items: center; gap: 14px; color: var(--white); }
.vctl__btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: inherit; opacity: .8; transition: opacity .3s; }
.vctl__btn:hover, .vctl__btn:focus-visible { opacity: 1; }
.vctl__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.vctl__btn .i-play { display: none; fill: currentColor; }
.vctl__btn.is-paused .i-play { display: block; }
.vctl__btn.is-paused .i-pausa { display: none; }
.vctl__btn .i-muto { display: none; }
.vctl__btn.is-muted .i-muto { display: block; }
.vctl__btn.is-muted .i-onde { display: none; }
.vctl__t { flex: none; min-width: 7.5em; text-align: right; font-size: 13px; letter-spacing: .04em; color: var(--silver); font-variant-numeric: tabular-nums; }
.vctl__bar {
  --p: 0%; flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.vctl__bar::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--white) var(--p), rgba(255, 255, 255, .22) var(--p)); }
.vctl__bar::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--white) var(--p), rgba(255, 255, 255, .22) var(--p)); }
.vctl__bar::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--white); border: 0; transform: scale(.6); transition: transform .25s; }
.vctl__bar::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 0; transform: scale(.6); transition: transform .25s; }
.vctl__bar:hover::-webkit-slider-thumb, .vctl__bar:focus-visible::-webkit-slider-thumb { transform: none; }
.vctl__bar:hover::-moz-range-thumb, .vctl__bar:focus-visible::-moz-range-thumb { transform: none; }
.vctl__bar:focus-visible { outline: none; }
@media (max-width: 600px) { .vctl { gap: 8px; } .vctl__t { min-width: 0; font-size: 12px; } }
.vmodal__video::-webkit-media-controls { display: none !important; }
.vmodal__close { position: absolute; top: 14px; right: 20px; width: 48px; height: 48px; color: var(--white); font-size: 34px; line-height: 1; }

/* ==========================================================================
   Sezioni e testata delle pagine interne
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }

.phead { position: relative; isolation: isolate; overflow: hidden; background: var(--white); padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 72px); }
.phead__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.phead h1 { margin-top: 20px; }
.phead .lead { max-width: 46ch; }
.banner { background: linear-gradient(180deg, var(--white) 50%, var(--paper) 50%); }
.banner__img { position: relative; overflow: hidden; aspect-ratio: 21 / 9; }
.banner__img img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* intestazione di sezione: titolo a sinistra, testo a destra */
.shead { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.shead h2 { margin-top: 20px; }
.shead__side { display: grid; gap: 24px; justify-items: start; }
.shead--end { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* blocco a due colonne: etichetta e testo */
.block { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.block__body { max-width: 72ch; }

/* righe numerate: strategia, garanzie, ESG */
.rows { margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--silver); }
.rows > li { display: grid; grid-template-columns: 96px 1fr 1.5fr; gap: 24px clamp(24px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--silver); }
.rows__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--blue); }
.rows__n .ico { margin: 0; }
.rows .sub { font-size: clamp(15px, 1.3vw, 19px); }
.terms { display: grid; gap: 20px; }
.terms dt { font-family: var(--f-display); font-weight: 500; font-size: 12px; line-height: 1.4; color: var(--navy); }
.terms dd { margin: 6px 0 0; }

/* ==========================================================================
   Home: dichiarazione e numeri
   ========================================================================== */
.statement__grid { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.statement__text { font-size: clamp(26px, 3.1vw, 48px); line-height: 1.22; color: var(--navy); }
/* il payoff a sinistra scende a metà strada tra l’inizio del testo e la linea di base della prima riga */
.statement__grid .eyebrow { padding-top: calc((1.02 * clamp(26px, 3.1vw, 48px) - 14.4px) / 2); }
.statement__text .w { opacity: .14; transition: opacity .4s linear; }
.statement__text .w.is-lit { opacity: 1; }
.statement__more { grid-column: 2; }

.numbers { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 0 24px; position: relative; text-align: center; }
.num + .num { border-left: 1px solid var(--silver); }
.num__v {
  display: flex; align-items: flex-start; justify-content: center; gap: 6px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(34px, 4.2vw, 66px); line-height: 1; color: var(--navy);
}
.num__v sup { font-weight: 500; font-size: .28em; margin-top: .3em; color: var(--blue); line-height: 1; }
.num__l { margin: 18px auto 0; font-size: 17px; max-width: 24ch; line-height: 1.4; }
.num__l strong { font-weight: 600; color: var(--navy); }

/* ==========================================================================
   Azienda
   ========================================================================== */
.mv { display: grid; grid-template-columns: 1fr 1fr; }
.mv__item { padding: 0 clamp(24px, 4vw, 64px) 0 0; }
.mv__item + .mv__item { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--silver); }
.mv__item .eyebrow { margin-bottom: 16px; }

/* ==========================================================================
   Tecnologie: mosaico e schede
   ========================================================================== */
/* Griglia regolare: otto schede uguali. A riposo grigio chiaro; il colore si apre
   come un cerchio di luce dal punto in cui entra il cursore. */
@property --r { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.mosaic { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 100%; --r: 0%;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--silver); color: var(--navy); outline: none;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  transition: color .5s var(--ease-out) .08s, --r 1.15s cubic-bezier(.3, .6, .2, 1);
}
.tile.rv { opacity: 0; transform: none; }
.tile.rv.is-in { animation: tileIn 1s var(--ease-out) calc(var(--i) * 75ms) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.12) contrast(.78); transition: transform 1.8s var(--ease-out); }
/* al passaggio la foto non torna a colori: viene virata nei blu del marchio (ombre navy, luci azzurre) */
.tile .tile__color {
  filter: grayscale(1) sepia(.85) hue-rotate(178deg) saturate(1.7) contrast(.95) brightness(1.07); z-index: 2;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) - 14%), transparent var(--r));
  mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) - 14%), transparent var(--r));
}
/* velo chiaro a riposo */
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(247,248,249,.28) 0%, rgba(247,248,249,.82) 100%); transition: opacity .9s var(--ease-out); }
/* sfumatura scura per il testo, solo sulla foto virata */
.tile::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(11,20,38,0) 38%, rgba(11,20,38,.82) 100%); opacity: 0; transition: opacity .8s var(--ease-out) .1s; }
/* anello di luce sul bordo del cerchio */
.tile__glow {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--r) - 18%), rgba(141,163,200,.55) calc(var(--r) - 7%), rgba(255,255,255,.75) calc(var(--r) - 2%), transparent var(--r));
}
/* onda di luce all'ingresso nella sezione, con la stessa inclinazione delle bande */
.tile__glow::after {
  content: ""; position: absolute; inset: -30% -60%; transform: translateX(-75%);
  background: linear-gradient(109deg, transparent 38%, rgba(255,255,255,.2) 45%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.2) 55%, transparent 62%);
}
/* il riflesso riparte ogni volta che si arriva al mosaico, scendendo o salendo */
.mosaic.is-sheen .tile__glow::after { animation: sheen 1.5s var(--ease-io) calc(.25s + var(--i) * 110ms) both; }
@keyframes sheen { to { transform: translateX(75%); } }
.tile__n { position: absolute; z-index: 5; top: 18px; left: 20px; font-family: var(--f-display); font-weight: 500; font-size: 12px; }
.tile__body { position: relative; z-index: 5; padding: 20px; }
.tile__body h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.4; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.tile__body p { font-size: 14.5px; line-height: 1.42; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease-out), opacity .5s .08s, margin .5s; }
/* i riquadri sono sempre accesi (foto virata in blu, testo bianco, descrizione visibile): al passaggio solo un leggero zoom */
.tile { --r: 125%; color: var(--white); }
.tile::before { opacity: 0; }
.tile::after { opacity: 1; }
.tile__body p { max-height: 150px; opacity: 1; margin-top: 10px; }
.tile:hover img, .tile:focus-visible img, .tile.is-lit img { transform: scale(1.04); }

.techdoc { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.techdoc__index { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 2px; }
.techdoc__index a { display: flex; gap: 14px; padding: 7px 0; font-size: 15.5px; color: var(--grey); transition: color .3s; }
.techdoc__index a span { font-family: var(--f-display); font-weight: 500; font-size: 11px; line-height: 2; color: var(--blue-soft); transition: color .3s; }
.techdoc__index a:hover, .techdoc__index a.is-active { color: var(--navy); }
.techdoc__index a.is-active span { color: var(--blue); }
.techrow { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--silver); align-items: start; }
.techrow:first-child { border-top: 0; padding-top: 0; }
.techrow__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--silver); }
.techrow__img img { width: 100%; height: 100%; object-fit: cover; }
.techrow .eyebrow { margin-bottom: 14px; }
.techrow h2 { margin-bottom: 18px; }
.techrow__ref { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--silver); }

.procs { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--silver); border: 1px solid var(--silver); }
.proc { background: var(--white); padding: 28px 26px 32px; }
.proc p { margin-top: 10px; font-size: 15.5px; }
.procs--ico .proc { padding: 32px 28px 36px; }
.procs--4 { grid-template-columns: repeat(4, 1fr); }
.proc__n { display: block; margin-bottom: 30px; font-family: var(--f-display); font-weight: 500; font-size: 12px; color: var(--blue); }
@media (max-width: 1100px) { .procs--4 { grid-template-columns: 1fr 1fr; } }
.procs--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .procs--5 { grid-template-columns: 1fr 1fr; } .procs--5 .proc:last-child { grid-column: 1 / -1; } }
/* sezioni blu: dallo studio al software (home) e il software di gestione (tecnologie) */
.section--navy { background: var(--navy); color: var(--white); }
.on-dark .procs { background: rgba(217,221,226,.2); border-color: rgba(217,221,226,.2); }
.on-dark .proc { background: var(--navy); }
.on-dark .proc .sub { color: var(--white); }
.on-dark .proc p { color: var(--silver); }
.on-dark .proc__n, .on-dark .link-arrow { color: var(--blue-soft); }
.sw { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sw figure { margin: 0; }
.sw img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1096; object-fit: cover; background: var(--white); }
.sw figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--silver); }
@media (max-width: 840px) { .sw { grid-template-columns: 1fr; } }
.ico { display: block; width: 34px; height: 34px; margin-bottom: 20px; color: var(--blue); }

/* ==========================================================================
   Soluzioni modulari
   ========================================================================== */
.modular__img { position: relative; overflow: hidden; aspect-ratio: 16/8.2; margin-top: clamp(40px, 5vw, 72px); }
.modular__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.reveal-mask { clip-path: inset(18% 12% 18% 12%); transition: clip-path 1.6s var(--ease-out); }
.reveal-mask.is-in { clip-path: inset(0 0 0 0); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: var(--white); }
.spec { padding: 34px 30px; border-left: 1px solid var(--blue); }
.spec:first-child { border-left: 0; }
.spec__k { font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); }
.spec__v { margin-top: 10px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 24px; }
.gallery--3 { grid-template-columns: 1.3fr 1fr 1fr; }
.gallery figure { margin: 0; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform 1.4s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--navy);
  padding: 10px 16px; font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}

/* ==========================================================================
   Presenza globale
   ========================================================================== */
.map { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .dots { fill: none; stroke: var(--silver); stroke-linecap: round; }
.map .dots--d { stroke-width: 4.32; }
.map .dots--m { stroke-width: 5.76; display: none; }
.map .pin circle.core { fill: var(--blue); stroke: var(--white); stroke-width: 1.5; }
.map .pin circle.halo { fill: none; stroke: var(--blue-soft); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: halo 2.8s var(--ease-out) infinite; }
.map .pin.hq circle.core { fill: var(--white); stroke: var(--blue); stroke-width: 3; }
.map .pin text { fill: var(--navy); stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--f-display); font-weight: 500; }
.map .arc { fill: none; stroke: url(#arcGrad); stroke-width: 1.2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.map.is-in .arc { transition: stroke-dashoffset 2.2s var(--ease-out); stroke-dashoffset: 0; }
.map .pin { opacity: 0; transition: opacity .6s var(--ease-out); }
.map.is-in .pin { opacity: 1; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.countries { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.countries li {
  font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--silver); color: var(--navy);
}
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.office { padding: 36px; background: var(--paper); }
.section--paper .office { background: var(--white); }
.office h3 { margin: 12px 0 14px; font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 23px); line-height: 1.2; color: var(--navy); }
.office a { color: var(--blue); }

/* ==========================================================================
   Referenze
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 16px;
  font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--blue-soft); color: var(--navy); transition: all .35s var(--ease-out);
}
.filter:hover { border-color: var(--navy); }
.filter.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.refs__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.ref {
  grid-column: span 4; position: relative; display: flex; flex-direction: column; background: var(--paper);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.section--paper .ref { background: var(--white); }
.ref.is-hidden { display: none; }
.refs__grid--home { margin-top: clamp(40px, 5vw, 64px); }
.refs__grid--home .ref__title::after { content: " →"; color: var(--blue); }
.ref__img { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--silver); }
.ref__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.ref:hover .ref__img img { transform: scale(1.06); }
.ref__tag {
  position: absolute; top: 0; left: 0; z-index: 1;
  background: var(--navy); color: var(--white); padding: 8px 14px;
  font-family: var(--f-display); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.ref__body { flex: 1; padding: 22px 24px 26px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; border-bottom: 2px solid transparent; transition: border-color .5s; }
.ref:hover .ref__body { border-color: var(--blue); }
.ref__loc { font-family: var(--f-display); font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.ref__title { font-family: var(--f-display); font-weight: 700; font-size: 14.5px; line-height: 1.4; color: var(--navy); }
.ref__cap { font-size: 15px; font-variant-numeric: tabular-nums; }
/* foto e titolo aprono la scheda di dettaglio */
.ref__img[data-ref-open] { cursor: pointer; }
.ref__btn { font: inherit; color: inherit; text-align: left; line-height: inherit; cursor: pointer; transition: color .3s; }
.ref__btn:hover, .ref__btn:focus-visible { color: var(--blue); }
.ref__btn::after { content: " →"; color: var(--blue); }

/* referenza in evidenza: foto grande a sinistra, testi a destra */
.ref--big { grid-column: 1 / -1; flex-direction: row; }
.ref--big .ref__img { flex: 1.7; aspect-ratio: 16 / 9; }
.ref--big .ref__body { flex: 1; padding: clamp(24px, 3vw, 44px); align-content: center; grid-template-rows: auto auto auto; gap: 14px; }
.ref__primato { font-size: 15px; line-height: 1.45; color: var(--blue); text-wrap: balance; }
.ref__primato b { font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ref--big .ref__title { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.25; }
/* tipologie di trattamento */
.tipi { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tipo { display: flex; flex-direction: column; background: var(--paper); color: inherit; }
.tipo__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--silver); }
.tipo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tipo:hover .tipo__img img { transform: scale(1.06); }
.tipo__body { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 20px 22px 24px; border-bottom: 2px solid transparent; transition: border-color .5s; }
.tipo:hover .tipo__body { border-color: var(--blue); }
.tipo__body p { font-size: 15px; line-height: 1.5; }
.tipo__n { font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 1100px) { .tipi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .ref--big { flex-direction: column; }
  .ref--big .ref__img { flex: none; aspect-ratio: 4 / 3; }
  .tipi { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scheda di dettaglio della referenza (popup)
   ========================================================================== */
html.rmod-open { overflow: hidden; }
.rmod { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); background: rgba(14, 26, 48, .74); opacity: 0; transition: opacity .35s var(--ease-out); }
.rmod.is-open { opacity: 1; }
.rmod[hidden] { display: none; }
.rmod__box { position: relative; width: min(1120px, 100%); max-height: 100%; display: flex; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(24px); transition: transform .45s var(--ease-out); outline: none; }
.rmod.is-open .rmod__box { transform: none; }
.rmod__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4.5vw, 64px); }
.rmod__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--silver); transition: background .3s, color .3s; }
.rmod__x:hover, .rmod__x:focus-visible { background: var(--navy); color: var(--white); }
.rmod__x svg { width: 14px; height: 14px; }
.rmod__head { padding-right: 56px; }
.rmod__head h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 40px); line-height: 1.15; }
/* primato del progetto (A2A): frase in evidenza sotto il titolo della scheda */
.rx__primato { margin: clamp(20px, 2.6vw, 32px) 0 clamp(28px, 3.5vw, 44px); padding: 4px 0 4px clamp(18px, 2vw, 28px); border-left: 3px solid var(--blue); display: grid; gap: 12px; max-width: 980px; }
.rx__primato .eyebrow { color: var(--blue); }
.rx__primato b { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.8vw, 38px); line-height: 1.14; color: var(--navy); text-wrap: balance; }
.rx__primato em { font-style: normal; color: var(--blue); }
.rx__primato > span:last-child { font-size: 16px; line-height: 1.5; color: var(--grey); max-width: 64ch; }
.rmod__facts { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
.rmod__big { padding: 26px 32px 26px 0; border-right: 1px solid var(--silver); display: grid; align-content: center; gap: 10px; }
.rmod__big b { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums; }
.rmod__big span { font-size: 15px; color: var(--grey); }
.rmod__facts dl { margin: 0; padding: 18px 0 18px 32px; display: grid; gap: 12px; align-content: center; }
.rmod__facts dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.rmod__facts dt { font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.rmod__facts dd { margin: 0; font-size: 15px; color: var(--navy); }
.rmod__desc { margin-top: 28px; max-width: 70ch; font-size: 17px; line-height: 1.6; }
.rmod__more { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* galleria fotografica della scheda: una foto alla volta, frecce, miniature, trascinamento */
.rgal { margin-top: clamp(24px, 3vw, 36px); }
.rgal__stage { position: relative; aspect-ratio: 3 / 2; max-height: 58vh; width: 100%; overflow: hidden; background: var(--paper); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rgal__track { display: flex; height: 100%; transition: transform .6s var(--ease-out); will-change: transform; }
.rgal__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.rgal__slide img { width: 100%; height: 100%; display: block; object-fit: contain; -webkit-user-drag: none; }
.rgal__slide.is-drawing { background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.rgal__slide.is-drawing img { padding: clamp(10px, 2vw, 24px); }
.rgal__nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: inset 0 0 0 1px var(--silver); transition: background .3s, color .3s, opacity .3s; }
.rgal__nav svg { width: 18px; height: 10px; }
.rgal__nav:hover, .rgal__nav:focus-visible { background: var(--navy); color: var(--white); }
.rgal__nav:disabled { opacity: 0; pointer-events: none; }
.rgal__prev { left: 12px; }
.rgal__next { right: 12px; }
.rgal__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 10px; background: rgba(255, 255, 255, .94); font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--grey); font-variant-numeric: tabular-nums; }
.rgal__count b { color: var(--navy); font-weight: 500; }
.rgal__cap { margin-top: 12px; min-height: 1.5em; font-size: 14px; color: var(--grey); }
.rgal__thumbs { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 6px; scrollbar-width: thin; }
.rgal__th { flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: var(--paper); opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; cursor: pointer; }
.rgal__th img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rgal__th.is-drawing { background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.rgal__th:hover, .rgal__th:focus-visible { opacity: 1; }
.rgal__th.is-on { opacity: 1; outline-color: var(--blue); }
.rgal--uno .rgal__nav, .rgal--uno .rgal__count { display: none; }
.rgal--uno .rgal__cap:empty { display: none; }
.rmod__cta { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--silver); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.rmod__cta p { font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); color: var(--navy); }
@media (max-width: 720px) {
  .rmod { padding: 0; }
  .rmod__box { height: 100%; }
  .rmod__scroll { padding: 72px 20px 32px; }
  .rmod__x { top: 12px; right: 12px; }
  .rmod__head { padding-right: 0; }
  .rmod__facts { grid-template-columns: 1fr; }
  .rmod__big { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--silver); }
  .rmod__facts dl { padding: 18px 0; }
  .rmod__facts dl div { grid-template-columns: 96px 1fr; }
  .rgal__stage { aspect-ratio: 4 / 3; }
  .rgal__nav { width: 40px; height: 40px; margin-top: -20px; }
  .rgal__prev { left: 8px; } .rgal__next { right: 8px; }
  .rgal__th { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .rmod, .rmod__box, .rgal__track { transition: none; } }

/* ==========================================================================
   Referenze: elenco dei progetti a lato e scheda del progetto scelto (sostituisce il popup)
   ========================================================================== */
.rx { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(36px, 4.5vw, 72px); align-items: start; }
.rx__side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column; min-height: 0; }
.rx__filters { margin-bottom: clamp(28px, 3vw, 40px); }
.rx__count { margin: 0 0 10px; font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.rx__count b { color: var(--navy); font-weight: 500; }
.rx__list { list-style: none; margin: 0; padding: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--silver); scrollbar-width: thin; scrollbar-color: var(--silver) transparent; }
.rx__li.is-hidden { display: none; }
.rx__item { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--silver); color: var(--grey); transition: background .3s; }
.rx__item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--blue); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.rx__item:hover { background: var(--paper); }
.rx__li.is-on .rx__item { background: var(--paper); }
.rx__li.is-on .rx__item::before { transform: none; }
.rx__thumb { width: 68px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--silver); filter: grayscale(1) contrast(.9) brightness(1.05); transition: filter .4s; }
.rx__item:hover .rx__thumb, .rx__li.is-on .rx__thumb { filter: none; }
.rx__txt { display: grid; gap: 3px; min-width: 0; }
.rx__loc { font-family: var(--f-display); font-weight: 500; font-size: 9.5px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.rx__t { font-family: var(--f-display); font-weight: 700; font-size: 12px; line-height: 1.4; color: var(--navy); transition: color .3s; }
.rx__item:hover .rx__t, .rx__li.is-on .rx__t { color: var(--blue); }
.rx__cap { font-size: 13px; font-variant-numeric: tabular-nums; }
.rx__main { min-width: 0; min-height: 70vh; scroll-margin-top: calc(var(--header-h) + 16px); }
.rx__view { transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
.rx__view.is-out { opacity: 0; transform: translateY(10px); transition-duration: .2s; }
.rx__view.is-in { opacity: 0; transform: translateY(14px); transition: none; }
.rx__head h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; }
.rx__view .rgal { margin-top: clamp(22px, 2.6vw, 32px); }
.rx__view .rgal:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.rmod__facts--solo { grid-template-columns: 1fr; }
.rmod__facts--solo dl { padding-left: 0; }
.rx__text { max-width: 74ch; margin-top: clamp(28px, 3vw, 40px); }
.rx__lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--navy); }
.rx__text h3 { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--silver); font-family: var(--f-display); font-weight: 700; font-size: 14px; line-height: 1.45; letter-spacing: .02em; color: var(--navy); }
.rx__text h3 + p { margin-top: 12px; }
.rx__text p:not(.rx__lead) { margin-top: 16px; font-size: 16.5px; line-height: 1.65; }
.rx__text ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 1px; background: var(--silver); border: 1px solid var(--silver); counter-reset: fase; }
.rx__text ol li { counter-increment: fase; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 13px 16px 13px 0; background: var(--white); font-size: 15.5px; line-height: 1.5; color: var(--navy); }
.rx__text ol li::before { content: counter(fase, decimal-leading-zero); justify-self: center; font-family: var(--f-display); font-weight: 500; font-size: 11px; color: var(--blue); }
.rx__text ul { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--silver); }
.rx__text ul li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--silver); font-size: 15.5px; line-height: 1.5; color: var(--navy); }
.rx__text ul li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 12px; height: 1.5px; background: var(--blue); }
.rx3d { position: relative; margin-top: clamp(22px, 2.6vw, 32px); background: var(--paper); }
.rx3d__poster { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; text-align: left; }
.rx3d__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.rx3d__poster:hover img, .rx3d__poster:focus-visible img { transform: scale(1.03); }
.rx3d__cta { position: absolute; left: 0; bottom: 0; display: grid; gap: 8px; max-width: 440px; padding: clamp(20px, 2.4vw, 32px); padding-right: 76px; background: var(--navy); color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.45; }
.rx3d__cta .eyebrow { color: var(--blue-soft, #8DA3C8); }
.rx3d__cta b { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; color: var(--white); }
.rx3d__cta i { position: absolute; right: 24px; bottom: 26px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); color: var(--white); transition: background .3s, border-color .3s; }
.rx3d__cta i svg { width: 16px; height: 9px; }
.rx3d__poster:hover .rx3d__cta i { background: var(--blue); border-color: var(--blue); }
.rx3d iframe { display: block; width: 100%; height: clamp(560px, 74vh, 780px); border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.rx3d__full { position: absolute; right: 0; top: -38px; height: 30px; padding: 0 12px; font-family: var(--f-display); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue-soft, #8DA3C8); cursor: pointer; transition: background .3s, color .3s; }
.rx3d__full:hover, .rx3d__full:focus-visible { background: var(--navy); border-color: var(--navy); color: var(--white); }
.rx3d.is-on { margin-top: calc(clamp(22px, 2.6vw, 32px) + 38px); }
@media (max-width: 720px) {
  .rx3d__poster { aspect-ratio: 4 / 3; }
  .rx3d__cta { position: relative; max-width: none; padding-right: 64px; }
  .rx3d__poster { display: flex; flex-direction: column; aspect-ratio: auto; }
  .rx3d__poster img { aspect-ratio: 16 / 10; height: auto; }
  .rx3d iframe { height: min(680px, 86vh); }
}
/* 3D nel popup a tutto schermo (computer) */
html.r3m-open { overflow: hidden; }
.r3m { position: fixed; inset: 0; z-index: 400; display: flex; padding: 24px; background: rgba(14, 26, 48, .78); opacity: 0; transition: opacity .3s var(--ease-out); }
.r3m.is-open { opacity: 1; }
.r3m[hidden] { display: none; }
.r3m__box { position: relative; flex: 1; display: flex; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(18px); transition: transform .4s var(--ease-out); }
.r3m.is-open .r3m__box { transform: none; }
.r3m__box iframe { flex: 1; width: 100%; height: 100%; border: 0; }
.r3m__x { position: absolute; top: 14px; left: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--silver); transition: background .3s, color .3s; }
.r3m__x:hover, .r3m__x:focus-visible { background: var(--navy); color: var(--white); }
.r3m__x svg { width: 14px; height: 14px; }
.rx__pager { margin-top: clamp(44px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rx__pg { display: grid; gap: 8px; padding: 20px 22px; text-align: left; border: 1px solid var(--silver); cursor: pointer; transition: border-color .3s, background .3s; }
.rx__pg--next { text-align: right; justify-items: end; }
.rx__pg:hover, .rx__pg:focus-visible { border-color: var(--blue); background: var(--paper); }
.rx__pgl { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.rx__pgl svg { width: 16px; height: 9px; }
.rx__pgt { font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1.4; color: var(--navy); }
.rx__view .rmod__cta { margin-top: 32px; }
@media (max-width: 1100px) {
  .rx { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rx__side { position: static; max-height: none; }
  .rx__filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter, 20px)) 22px; padding: 0 var(--gutter, 20px) 4px; scrollbar-width: none; }
  .rx__filters::-webkit-scrollbar { display: none; }
  .rx__filters .filter { flex: none; }
  .rx__list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; border-top: 0; margin: 0 calc(-1 * var(--gutter, 20px)); padding: 2px var(--gutter, 20px) 10px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter, 20px); }
  .rx__li { flex: 0 0 210px; scroll-snap-align: start; }
  .rx__item { height: 100%; grid-template-columns: 1fr; align-items: start; gap: 0; padding: 0; border: 1px solid var(--silver); }
  .rx__item::before { top: auto; left: -1px; right: -1px; bottom: -1px; width: auto; height: 3px; transform: scaleX(0); }
  .rx__li.is-on .rx__item::before { transform: none; }
  .rx__thumb { width: 100%; }
  .rx__txt { padding: 12px 12px 14px; }
  .rx__main { min-height: 0; }
}
@media (max-width: 560px) {
  .rx__li { flex-basis: 172px; }
  .rx__t { font-size: 11.5px; }
  .rx__pager { grid-template-columns: 1fr; }
  .rx__pg--next { text-align: left; justify-items: start; }
  .rx__text ol li { grid-template-columns: 38px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rx__view, .rx__item::before { transition: none; } }

/* ==========================================================================
   Assistenza
   ========================================================================== */
.svc__nav { display: flex; align-items: center; gap: 10px; }
.svc__count { font-family: var(--f-display); font-weight: 500; font-size: 12px; margin-right: 10px; }
.svc__count b { font-weight: 500; color: var(--navy); }
.svc__btn { width: 52px; height: 52px; display: grid; place-items: center; color: var(--navy); box-shadow: inset 0 0 0 1px var(--blue-soft); transition: background .3s, color .3s, opacity .3s; }
.svc__btn svg { width: 18px; height: 10px; }
.svc__btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.svc__btn:disabled { opacity: .35; cursor: default; }
.svc__track {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  margin-top: clamp(36px, 4.5vw, 56px); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge); padding: 0 var(--edge); scrollbar-width: none;
}
.svc__track::-webkit-scrollbar { display: none; }
.svc__card { flex: none; width: min(860px, 80vw); display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); scroll-snap-align: start; }
.svc__img { position: relative; min-height: 400px; overflow: hidden; }
.svc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; }
.svc__n { font-family: var(--f-display); font-weight: 500; font-size: 12px; color: var(--blue); margin-bottom: auto; }
.svc__body h3 { margin: 24px 0 12px; }
.svc__body p { font-size: 15.5px; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.split__media img { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; will-change: transform; }
.split__body h2 { margin: 20px 0 26px; }

/* ==========================================================================
   Chiusura e contatti
   ========================================================================== */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.cta__row { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
/* da tablet in su il pulsante sta a destra della frase, allineato alla sua ultima riga */
@media (min-width: 901px) {
  .cta .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .cta .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .cta__row { margin-top: 0; padding-bottom: .4em; }
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.contact__lines { display: grid; gap: 20px; align-content: start; }
.contact__lines a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(20px, 1.8vw, 26px); color: var(--navy); transition: color .3s; }
.contact__lines a:hover { color: var(--blue); }
.contact__lines .is-segnaposto, .contact__lines .is-segnaposto:hover { color: var(--grey); }
.contact__lines small { width: 156px; flex: none; white-space: nowrap; font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { position: relative; display: grid; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--navy); background: transparent;
  border: 0; border-bottom: 1px solid var(--blue-soft); padding: 10px 0; border-radius: 0;
  outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__foot small { font-size: 14px; max-width: 40ch; }

/* ==========================================================================
   Privacy e consenso cookie
   ========================================================================== */
.legal__row { padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--silver); }
.legal .note { margin-bottom: 28px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal__list { display: grid; gap: 10px; margin-bottom: 1em; }
.legal__list li { position: relative; padding-left: 18px; }
.legal__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--blue); }
.legal__table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: 15.5px; }
.legal__table th, .legal__table td { padding: 10px 14px 10px 0; text-align: left; border-bottom: 1px solid var(--silver); vertical-align: top; }
.legal__table th { font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.cookie { position: fixed; z-index: 200; right: var(--gutter); bottom: var(--gutter); width: min(460px, calc(100vw - 2 * var(--gutter))); padding: 24px; background: var(--white); border: 1px solid var(--silver); font-size: 15.5px; color: var(--grey); transform: translateY(16px); opacity: 0; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.cookie.is-on { opacity: 1; transform: none; }
.cookie a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cookie__actions .btn { height: 44px; justify-content: center; padding: 0 12px; font-size: 10.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-ink); color: var(--silver); padding: 88px 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr 1fr; gap: 40px; }
.footer__logo { width: 240px; }
.footer__claim { margin-top: 26px; max-width: 34ch; font-size: 15px; }
.footer h4 { font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer li { margin: 8px 0; font-size: 14.5px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--white); }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--navy); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal button { font-size: inherit; color: inherit; transition: color .3s; }
.footer__legal button:hover { color: var(--white); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--navy); transition: background .3s, border-color .3s; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   Diagramma 3D dell'impianto
   ========================================================================== */
.imp { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; background: var(--white); }
/* il riquadro 3D non segue l'altezza dei testi a fianco: se cambiasse misura la tela si svuoterebbe per un istante */
.imp__stage { position: relative; min-height: 620px; height: 640px; align-self: start; overflow: hidden; background: var(--white); }
.imp__stage canvas { position: absolute; inset: 0; display: block; cursor: grab; }
.imp__stage canvas:active { cursor: grabbing; }
.imp__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .8s var(--ease-out); pointer-events: none; }
.imp.is-ready .imp__poster { opacity: 0; }
.imp__load { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--silver); overflow: hidden; transition: opacity .5s; }
.imp__load i { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.imp.is-ready .imp__load, .imp.is-static .imp__load { opacity: 0; }

.imp__pins { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s .6s; }
.imp.is-open .imp__pins { opacity: 1; }
.imp__pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; pointer-events: auto; color: var(--navy); }
.imp:not(.is-open) .imp__pin { pointer-events: none; }
.imp__pin.is-out { opacity: 0; pointer-events: none; }
.imp__pin span {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 1px var(--blue-soft);
  font-family: var(--f-display); font-weight: 500; font-size: 11px;
  transition: background .35s, color .35s, box-shadow .35s;
}
.imp__pin em {
  position: absolute; left: 40px; white-space: nowrap; padding: 6px 10px; background: var(--white); font-style: normal;
  font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .06em;
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none;
}
.imp__pin:hover span, .imp__pin:focus-visible span { box-shadow: 0 0 0 2px var(--blue); }
.imp__pin:hover em, .imp__pin:focus-visible em { opacity: 1; transform: none; }
.imp__pin.is-on span { background: var(--blue); color: var(--white); box-shadow: 0 0 0 5px rgba(57,112,192,.18); }

/* Apri e Chiudi: stesso posto, in basso a sinistra; se ne vede uno alla volta. Accanto, le porte */
.imp__ctl { position: absolute; left: 24px; bottom: 24px; z-index: 3; display: grid; gap: 12px; justify-items: start; align-items: end; }
.imp__ctl > .btn { grid-row: 1; }
.imp__open, .imp__close { grid-column: 1; justify-self: stretch; }
.imp__doors { grid-column: 2; height: 60px; padding: 0 26px; font-size: 13px; gap: 14px; box-shadow: inset 0 0 0 1px var(--navy), 0 10px 30px rgba(30,48,86,.16); transition: color .5s var(--ease-out), opacity .4s, visibility .4s; }
.imp__doors .ico-porte { width: 17px; height: 13px; }
.imp:not(.is-ready) .imp__doors, .imp.is-static .imp__ctl { opacity: 0; visibility: hidden; }
.imp__open, .imp__close { position: relative; height: 60px; padding: 0 30px; font-size: 13px; gap: 14px; transition: color .5s var(--ease-out), box-shadow .5s, opacity .4s, visibility .4s; }
.imp__open { background: var(--blue); box-shadow: 0 10px 30px rgba(30,48,86,.28); animation: impInvito 2.4s var(--ease-out) 1.2s infinite; }
.imp__open::before { background: var(--navy); }
.imp__open:hover { animation: none; }
@keyframes impInvito { 0% { box-shadow: 0 10px 30px rgba(30,48,86,.28), 0 0 0 0 rgba(57,112,192,.55); } 70%, 100% { box-shadow: 0 10px 30px rgba(30,48,86,.28), 0 0 0 16px rgba(57,112,192,0); } }
.imp__close { box-shadow: inset 0 0 0 1px var(--navy), 0 10px 30px rgba(30,48,86,.16); }
.imp__close .ico-x { width: 12px; height: 12px; }
.imp:not(.is-ready) .imp__open, .imp.is-open .imp__open { opacity: 0; visibility: hidden; animation: none; }
.imp:not(.is-open) .imp__close { opacity: 0; visibility: hidden; }
/* avanzamento del percorso automatico: un segmento per ogni fase */
.imp__bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.imp__bar i { display: block; height: 4px; background: var(--silver); overflow: hidden; }
.imp__bar b { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.imp__count { position: absolute; top: 14px; right: 16px; padding: 6px 10px; background: var(--white); font-family: var(--f-display); font-weight: 500; font-size: 12px; color: var(--grey); opacity: 0; transition: opacity .5s; pointer-events: none; }
.imp__count b { font-weight: 500; color: var(--blue); }
.imp.is-touring .imp__bar, .imp.is-touring .imp__count { opacity: 1; }
.imp__legend { position: absolute; left: 24px; top: 20px; right: 120px; display: flex; flex-wrap: wrap; gap: 8px 18px; opacity: 0; transition: opacity .6s .4s; pointer-events: none; }
.imp.is-open .imp__legend { opacity: 1; }
.imp__legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey); }
.imp__legend span::before { content: ""; width: 18px; height: 3px; background: var(--c); }

.imp__panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--silver); }
.imp__item { border-top: 1px solid var(--silver); position: relative; }
.imp__item:first-child { border-top: 0; }
.imp__item > button { width: 100%; display: flex; gap: 14px; align-items: baseline; padding: 13px 0; text-align: left; color: var(--grey); transition: color .3s; }
.imp__item > button:hover { color: var(--blue); }
.imp__n { font-family: var(--f-display); font-weight: 500; font-size: 11px; color: var(--blue-soft); transition: color .3s; }
.imp__t { font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1.4; }
.imp__item.is-on > button { color: var(--navy); }
.imp__item.is-on .imp__n { color: var(--blue); }
.imp__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.imp__desc p { overflow: hidden; min-height: 0; font-size: 15.5px; padding-left: 32px; opacity: 0; transition: opacity .4s; }
.imp__item.is-on .imp__desc { grid-template-rows: 1fr; }
.imp__item.is-on .imp__desc p { opacity: 1; padding-bottom: 16px; }
.imp__actions { display: grid; gap: 14px; justify-items: start; margin-top: 20px; }
.imp__actions .btn { height: 46px; padding: 0 18px; font-size: 10.5px; }
.imp__actions .btn .arr { display: inline-block; }
.imp__all { font-size: 15.5px; color: var(--blue); }
.imp__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.imp.is-static .imp__actions, .imp.is-static .imp__pins { display: none; }

/* ==========================================================================
   Bande diagonali di sfondo (PROVA, da valutare): cinque bande del manuale,
   stessa inclinazione e ordine, alleggerite. Per toglierle basta cancellare questo blocco.
   ========================================================================== */
:root { --bande-chiaro: .06; --bande-scuro: .12; }
.phead::after, .cta::after, .section--bande::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: url("../img/bande.svg") right top / auto 150% no-repeat;
  opacity: var(--bande-chiaro); pointer-events: none;
}
.section--bande { isolation: isolate; overflow: hidden; }
.phead::after, .section--bande::after { -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.cta::after { opacity: var(--bande-scuro); }
html[data-bande="off"] .phead::after, html[data-bande="off"] .cta::after, html[data-bande="off"] .section--bande::after { display: none; }

/* ==========================================================================
   Comparsa allo scorrimento
   ========================================================================== */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
/* già in vista all'apertura della pagina: nessuna animazione (vedi main.js) */
.is-subito, .is-subito .line > span { transition: none !important; animation: none !important; }
/* titolo della home dalla seconda visita in poi: fermo, per lo stesso motivo */
.no-pre .hero__title .line > span { transform: none; animation: none !important; }
.no-pre .hero__watch { opacity: 1; animation: none !important; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
.lines .line { display: block; overflow: hidden; padding-bottom: .05em; }
.lines .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.lines.is-in .line > span { transform: none; }
.lines.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.lines.is-in .line:nth-child(3) > span { transition-delay: .16s; }
.img-rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.img-rv.is-in { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .imp { grid-template-columns: 1fr; }
  .imp__stage { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .imp__panel { border-left: 0; border-top: 1px solid var(--silver); }
  .imp__actions { order: -1; margin: 0 0 16px; }
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .techdoc { grid-template-columns: 1fr; }
  .techdoc__index { display: none; }
}
@media (max-width: 900px) {
  .map .dots--d { display: none; }
  .map .dots--m { display: inline; }
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .header__logo { width: 156px; height: 22px; }
  .phead__grid, .shead, .block, .split, .contact__grid, .statement__grid { grid-template-columns: 1fr; gap: 28px; }
  .statement__more { grid-column: 1; }
  .statement__grid .eyebrow { padding-top: 0; }
  .banner__img { aspect-ratio: 16 / 10; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .num { padding: 0 12px; }
  .num:nth-child(3) { border-left: 0; }
  .num__l { font-size: 15.5px; }
  .split__media { aspect-ratio: 4/3; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(3) { border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--blue); }
  .gallery { grid-template-columns: 1fr; }
  .modular__img { aspect-ratio: 4/3; }
  .offices, .procs { grid-template-columns: 1fr; }
  .rows > li { grid-template-columns: 56px 1fr; }
  .rows > li > :nth-child(3) { grid-column: 2; }
  .techrow { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(11,20,38,.72) 0, rgba(11,20,38,.56) 80px, rgba(11,20,38,0) 34%, rgba(11,20,38,.6) 100%); }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile__n { top: 12px; left: 14px; font-size: 11px; }
  .tile__body { padding: 14px; }
  .tile__body h3 { font-size: 12.5px; }
  .tile__body p { display: none; }
  .svc__card { width: 84vw; grid-template-columns: 1fr; }
  .svc__img { min-height: 220px; }
  .svc__nav { display: none; }
  .ref { grid-column: span 12; }
  .form { grid-template-columns: 1fr; }
}
/* su schermi stretti e alti il modello resta visibile mentre si sceglie la fase */
@media (max-width: 1180px) and (min-height: 600px) {
  .imp__stage { position: sticky; top: var(--header-h); z-index: 2; }
}
@media (max-width: 560px) {
  .imp__stage { aspect-ratio: 1 / 1; }
  .imp__legend { left: 12px; right: 12px; top: 10px; gap: 4px 12px; }
  .imp__ctl { left: 12px; bottom: 12px; gap: 8px; }
  .imp__open, .imp__close, .imp__doors { height: 48px; padding: 0 20px; font-size: 11.5px; }
  .imp__doors { grid-column: 1; }
  .imp__ctl > .imp__open, .imp__ctl > .imp__close { grid-row: 2; }
  .imp__legend span { font-size: 12.5px; }
  .imp__pin span { width: 28px; height: 28px; }
  .mv { grid-template-columns: 1fr; gap: 28px; }
  .mv__item, .mv__item + .mv__item { padding: 0; border-left: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .spec { border-left: 0 !important; border-top: 1px solid var(--blue); }
  .spec:first-child { border-top: 0; }
  .header .lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .rv, .lines .line > span, .img-rv, .reveal-mask, .hero__watch, .hero__bg { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
