/* =====================================================================
   DELTA — frontend statico (anteprima di sviluppo QuoLAB, 23/10/2026)

   THESIS     Il triangolo del logo DELTA è la griglia del sito: tagli a
              pendenza del logo, foto ritagliate a delta, il "percorso in
              4 passi" disegnato come le 4 barre del marchio. Rifiuta la
              pagina-consulenza standard (hero centrato + griglia di card).
   OWN-WORLD  Palette approvata da A. Vivi il 22/10: blu notte, blu DELTA,
              ciano, turchese, usati a campi pieni (non come accenti).
              Barlow Condensed maiuscolo enorme + Source Sans 3.
   STORY      Chi arriva capisce in un colpo le due aree (Industrial
              Compliance, Corporate Responsibility), vede il metodo in
              4 passi e trova sempre "Richiedi una consulenza".
   FIRST VIEW Home: titolo gigante a sinistra su blu notte, foto
              d'impianto ritagliata con la pendenza del delta a destra,
              contorno del triangolo che si disegna. CTA sotto il titolo.
   ===================================================================== */

:root {
  --notte: #172331;
  --notte-2: #1d2c3d;
  --blu: #005fa8;
  --blu-2: #004b86;
  --az: #419dd6;
  --ciano: #1ab1e0;
  --tur: #77cdc9;
  --tit: #233e53;
  --txt: #3a4652;
  --gl: #b6b6b6;
  --chiaro: #eef1f4;
  --bianco: #fff;
  --su-notte: #b9c7d3;   /* testo secondario su blu notte (7.9:1) */
  --su-blu: #d6e8f6;     /* testo secondario su blu DELTA (5.0:1) */

  --f-cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-txt: 'Source Sans 3', Arial, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --sec: clamp(72px, 9vw, 132px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-txt);
  font-size: clamp(1.0625rem, .25vw + 1rem, 1.1875rem);
  line-height: 1.6;
  color: var(--txt);
  background: var(--bianco);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 3px; }

h1, h2, h3, h4, .cond, .mega__title, .footer__title {
  font-family: var(--f-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .95;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ciano); color: var(--notte); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Bottoni ---------- */
.btn {
  --b-bg: var(--ciano); --b-fg: var(--notte);
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-txt); font-weight: 600; font-size: 1.0625rem; line-height: 1;
  padding: 1.05em 1.6em; border: 2px solid var(--b-bg); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { --b-bg: var(--bianco); }
.btn--ghost { background: transparent; color: var(--bianco); border-color: rgba(255,255,255,.55); clip-path: none; }
.btn--ghost:hover { background: var(--bianco); color: var(--notte); border-color: var(--bianco); }
.btn--notte { --b-bg: var(--notte); --b-fg: var(--bianco); }
.btn--notte:hover { --b-bg: var(--blu); }
.btn--blu { --b-bg: var(--blu); --b-fg: var(--bianco); }
.btn--blu:hover { --b-bg: var(--notte); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--blu); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--notte);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; height: 100%; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav-top {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 14px; color: var(--bianco); text-decoration: none;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  position: relative;
}
.nav-top::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px;
  background: var(--ciano); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav > ul > li:hover > .nav-top::after,
.nav > ul > li:focus-within > .nav-top::after,
.nav-top[aria-current="page"]::after { transform: scaleX(1); }
.nav-top[aria-current="page"] { color: var(--ciano); }
.nav-top .chev { width: 10px; height: 10px; opacity: .7; }

.mega {
  position: absolute; top: 100%; left: 50%;
  translate: -50% 0;
  min-width: 300px;
  background: var(--bianco); color: var(--txt);
  box-shadow: 0 24px 48px -12px rgba(23,35,49,.35);
  border-top: 4px solid var(--ciano);
  padding: 26px 28px 28px;
  display: grid; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.mega--2 { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
.mega--3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.nav > ul > li:hover > .mega,
.nav > ul > li:focus-within > .mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s;
}
.mega .mega__title {
  font-size: 1.25rem; color: var(--tit); margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--chiaro);
}
.mega .mega__title a { text-decoration: none; }
.mega .mega__title a:hover { color: var(--blu); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a {
  display: block; padding: 5px 0 5px 14px; position: relative;
  font-size: .95rem; line-height: 1.35; text-decoration: none; color: var(--txt);
}
.mega li a::before {
  content: ""; position: absolute; left: 0; top: .78em;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--tur);
  transition: border-bottom-color .2s;
}
.mega li a:hover { color: var(--blu); }
.mega li a:hover::before { border-bottom-color: var(--blu); }
/* pagina in cui ci si trova: sfondo grigio, barretta ciano e freccetta davanti */
.mega li a[aria-current="page"] {
  background: var(--chiaro); color: var(--tit); font-weight: 600;
  box-shadow: inset 4px 0 0 var(--ciano); padding-left: 18px; margin-left: -4px;
}
.mega li a[aria-current="page"]::before { left: 4px; border-bottom-color: var(--ciano); transform: rotate(90deg); }
.mega .mega__title a[aria-current="page"] { color: var(--blu); text-decoration: underline; text-decoration-color: var(--ciano); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.header-cta { flex: none; padding: .85em 1.25em; font-size: .975rem; }
.burger { display: none; }
.sub-toggle, .fab { display: none; }

@media (max-width: 1180px) {
  .nav-top { padding: 0 10px; font-size: .95rem; }
  .nav-top::after { left: 10px; right: 10px; }
  .header-cta { display: none; }
}
@media (max-width: 980px) {
  .site-header .wrap { height: 68px; }
  .brand img { height: 40px; }
  .burger {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: transparent; border: 0; color: var(--bianco); cursor: pointer;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 26px; height: 2px; background: currentColor; position: relative;
    transition: transform .3s var(--ease), background .2s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -8px; } .burger span::after { top: 8px; }
  .nav-open .burger span { background: transparent; }
  .nav-open .burger span::before { transform: translateY(8px) rotate(45deg); }
  .nav-open .burger span::after { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 68px 0 0 0; z-index: 99;
    background: var(--blu); display: block; height: auto;
    overflow-y: auto; padding: 18px var(--gut) 48px;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
  .nav > ul { display: block; height: auto; }
  .nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.18); }
  .nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-top { flex: 1; font-family: var(--f-cond); text-transform: uppercase; font-size: 1.6rem; padding: 10px 0; height: auto; }
  .nav-top::after, .nav-top .chev { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; background: transparent; border: 0; color: var(--bianco); cursor: pointer; }
  .sub-toggle .chev { display: block; width: 16px; height: 16px; opacity: 1; transition: transform .3s var(--ease); }
  .nav > ul > li.open > .sub-toggle .chev { transform: rotate(180deg); }
  .nav > ul > li > .mega { display: none; flex-basis: 100%; }
  .nav > ul > li.open > .mega { display: grid; }
  .mega > div { display: flex; flex-wrap: wrap; align-items: center; }
  .mega > div > .mega__title { flex: 1; margin: 0; padding: 4px 0; border-bottom: 0; }
  .mega > div > ul { display: none; flex-basis: 100%; }
  .mega > div.open > ul { display: block; }
  .mega > div { border-bottom: 1px solid rgba(255,255,255,.2); }
  .sub-toggle--g { width: 40px; height: 40px; margin-right: -8px; }
  .sub-toggle--g .chev { width: 13px; height: 13px; }
  .mega > div.open > .sub-toggle--g .chev { transform: rotate(180deg); }
  .nav-top[aria-current="page"] { color: var(--bianco); text-decoration: underline; text-decoration-color: var(--ciano); text-decoration-thickness: 4px; text-underline-offset: 6px; }
  .mega {
    position: static; translate: none; transform: none; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; border: 0; padding: 0 0 16px; min-width: 0;
    grid-template-columns: 1fr !important; gap: 14px; transition: none;
  }
  .mega .mega__title { color: var(--bianco); border-color: rgba(255,255,255,.2); font-size: 1.15rem; }
  .mega li a { color: var(--su-blu); padding-top: 7px; padding-bottom: 7px; }
  .mega li a::before { border-bottom-color: var(--ciano); top: 1.05em; }
  /* pagina in cui ci si trova, nel menu mobile */
  .mega li a[aria-current="page"] { background: rgba(255,255,255,.14); color: var(--bianco); box-shadow: inset 4px 0 0 var(--ciano); }
  .mega li a[aria-current="page"]::before { border-bottom-color: var(--bianco); }
  .mega .mega__title a[aria-current="page"] { color: var(--bianco); text-decoration-color: var(--ciano); }
  .nav .header-cta-m { display: inline-flex; margin-top: 28px; }
  body.nav-open { overflow: hidden; }

  /* barra di azioni in basso: Chiamaci a sinistra, Contattaci a destra */
  .fab {
    display: flex; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 0 14px calc(12px + env(safe-area-inset-bottom)); pointer-events: none;
  }
  .fab .btn { pointer-events: auto; padding: .95em 1.3em; font-size: 1rem; box-shadow: 0 8px 22px -6px rgba(23,35,49,.55); }
  .fab .btn svg { width: 1.15em; height: 1.15em; transform: none; flex: none; }
  .fab { --fab-blu: #3a86c8; }
  .fab__call { --b-bg: var(--fab-blu); --b-fg: var(--bianco); border-color: var(--fab-blu); }
  .fab__call:hover { --b-bg: var(--blu-2); }
  .fab__form { border-color: var(--fab-blu); }
  .fab__form:hover { --b-bg: var(--bianco); }
  .nav-open .fab { display: none; }
  body { padding-bottom: 84px; }
}
@media (min-width: 981px) { .header-cta-m { display: none !important; } }

/* =====================================================================
   HERO HOME
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--notte); color: var(--bianco);
  min-height: min(860px, calc(100svh - 84px));
  display: flex; align-items: center;
}
.hero__photo {
  position: absolute; inset: 0 0 0 auto; width: 62%;
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
@media (max-width: 860px) { .hero__photo img { object-position: 72% 40%; } }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,35,49,.55), rgba(23,35,49,0) 45%); }
.hero__delta {
  position: absolute; z-index: 1; pointer-events: none;
  /* la base si allinea alla base dei bottoni e il simbolo sta tutto nella prima schermata: --db e --dw li calcola js/site.js (qui i valori di riserva) */
  --dw: min(54vw, 900px, calc((100svh - 84px) * .92));
  right: 7vw; left: auto; width: var(--dw); height: auto;
  top: auto; bottom: var(--db, clamp(64px, 8vw, 120px));
  overflow: visible;
}
.hero__delta path { fill: none; stroke: var(--ciano); stroke-width: 9; stroke-linejoin: miter; }
.hero__body { position: relative; z-index: 2; padding: clamp(64px, 8vw, 120px) 0; width: 100%; }
.hero__body .wrap > div { max-width: 640px; }
.kicker {
  display: inline-block; font-family: var(--f-cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.125rem; color: var(--tur); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(3rem, 6.6vw, 6rem); line-height: .9; }
.hero h1 em { font-style: normal; color: var(--ciano); display: block; }
.hero__lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.375rem); color: var(--su-notte); margin: 26px 0 36px; max-width: 34em; }

/* animazione d'apertura: contenuto già visibile senza JS */
.js .hero__photo { animation: photoIn 1.4s var(--ease) both; }
.js .hero__delta path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .35s var(--ease) forwards; }
@keyframes photoIn { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 58% 100%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes photoInM { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } }

@media (max-width: 1280px) and (min-width: 861px) {
  .hero__delta { --dw: min(44vw, calc((100svh - 84px) * .92)); }
  .hero__body .wrap > div { max-width: 52%; }
}
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero__photo { position: relative; width: 100%; height: 78vw; max-height: 460px; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
  .hero__photo::after { background: linear-gradient(180deg, rgba(23,35,49,0) 50%, rgba(23,35,49,.5)); }
  .js .hero__photo { animation-name: photoInM; }
  .hero__delta { left: auto; right: -18%; bottom: auto; top: 18%; width: 90%; opacity: .55; }
  .hero__body { padding: 28px 0 64px; }
}

/* =====================================================================
   HERO PAGINE INTERNE (campo di colore + foto a delta)
   ===================================================================== */
.phero {
  --field: var(--blu); --signal: var(--ciano); --sub: var(--su-blu);
  position: relative; overflow: hidden; color: var(--bianco); background: var(--field);
}
.phero--notte { --field: var(--notte); --signal: var(--ciano); --sub: var(--su-notte); }
.phero--tit { --field: var(--tit); --signal: var(--tur); --sub: #c6d5e0; }
.phero--ciano { --field: var(--ciano); --signal: var(--notte); --sub: var(--notte); color: var(--notte); }
.phero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: clamp(440px, 46vw, 600px); align-items: center; }
.phero__text { padding: clamp(56px, 7vw, 104px) 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: .9375rem; font-weight: 600; color: var(--sub); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phero h1 { font-size: clamp(2.9rem, 6vw, 5.75rem); line-height: .9; }
.phero h1 em { font-style: normal; color: var(--signal); }
.phero__lead { margin: 24px 0 0; font-size: clamp(1.125rem, .5vw + 1rem, 1.3125rem); color: var(--sub); max-width: 32em; }
.phero__photo { position: absolute; inset: 0 0 0 auto; width: 50%; clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); }
.phero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* riga di segnale lungo il taglio del delta */
.phero__slash { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 50%; pointer-events: none; }
.phero__slash svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phero__slash line { stroke: var(--signal); stroke-width: 12; }
.js .phero__slash { animation: fadeIn .6s 1s both; }
@keyframes fadeIn { from { opacity: 0; } }
.js .phero__photo { animation: pphoto 1.2s var(--ease) both; }
@keyframes pphoto { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 66% 100%); } }

@media (max-width: 860px) {
  .phero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .phero__photo { position: relative; width: 100%; height: 56vw; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
  .phero__slash { display: none; }
  .phero__text { padding: 30px 0 64px; }
  .js .phero__photo { animation-name: photoInM; }
}

/* =====================================================================
   SEZIONI
   ===================================================================== */
.sec { padding: var(--sec) 0; position: relative; }
.sec--chiaro { background: var(--chiaro); }
.sec--notte { background: var(--notte); color: var(--su-notte); }
.sec--blu { background: var(--blu); color: var(--su-blu); }
.sec--notte h2, .sec--blu h2, .sec--notte h3, .sec--blu h3 { color: var(--bianco); }
.sec--tight { padding: clamp(56px, 6vw, 88px) 0; }

.h2 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); color: var(--tit); }
.h2 em { font-style: normal; color: var(--blu); }
.sec--notte .h2 em, .sec--blu .h2 em { color: var(--ciano); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head p { font-size: 1.1875rem; max-width: 36em; }
.sec-head--solo { grid-template-columns: 1fr; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* marchio triangolo nei titoli */
.tri { display: inline-block; width: .62em; height: .52em; margin-right: .18em; vertical-align: .04em;
  background: var(--ciano); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* intro grande */
.lede { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 40px; align-items: start; }
.lede__mark { width: 140px; }
.lede__mark img { width: 100%; }
.lede p:first-child { font-family: var(--f-cond); text-transform: none; font-weight: 600; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.15; color: var(--tit); letter-spacing: 0; margin-bottom: .6em; }
.lede p { max-width: 42em; font-size: 1.1875rem; }
@media (max-width: 700px) { .lede { grid-template-columns: 1fr; gap: 20px; } .lede__mark { width: 72px; } }

/* =====================================================================
   TILE AREA (foto + taglio delta)
   ===================================================================== */
.tiles { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(380px, 36vw, 520px); overflow: hidden; text-decoration: none; color: var(--bianco);
  background: var(--notte); isolation: isolate;
}
.tile__img { position: absolute; inset: 0; z-index: -2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23,35,49,.05) 20%, rgba(23,35,49,.92) 88%);
}
.tile::after { /* lama di colore che sale col taglio del delta */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blu); opacity: .94;
  clip-path: polygon(0 100%, 0 100%, 0 100%); transition: clip-path .7s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { clip-path: polygon(0 -40%, 140% 100%, 0 100%); }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__body { padding: clamp(26px, 3vw, 40px); }
.tile__tag { font-family: var(--f-cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--tur); }
.tile h3 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); margin: 8px 0 12px; }
.tiles--3 .tile h3 { font-size: clamp(2rem, 2.8vw, 2.6rem); }
.tile p { color: #d5e1ea; max-width: 30em; margin-bottom: 18px; }
.tile__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ciano); }
.tile:hover .tile__go { color: var(--bianco); }
.tile__go::after { content: ""; width: 58px; height: 2px; background: currentColor; transform: scaleX(.6); transform-origin: left; transition: transform .4s var(--ease); }
.tile:hover .tile__go::after { transform: none; }
@media (max-width: 980px) { .tiles--3 { grid-template-columns: 1fr; } .tiles--3 .tile { min-height: 340px; } }

/* griglia servizi di un hub (7 voci: la prima e l'ultima larghe) */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc .tile { min-height: 340px; }
.svc .tile--wide { grid-column: span 2; }
.svc .tile h3 { font-size: clamp(1.75rem, 2.3vw, 2.3rem); }
.svc .tile--wide h3 { font-size: clamp(2.1rem, 3vw, 3rem); }
.svc .tile p { font-size: 1rem; }
.svc .tile__n { font-family: var(--f-cond); font-weight: 700; font-size: 1rem; letter-spacing: .1em; color: var(--ciano); }
@media (max-width: 980px) { .svc { grid-template-columns: 1fr 1fr; } .svc .tile--wide { grid-column: 1 / -1; } }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; } .svc .tile { min-height: 300px; } }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 360px; } }

/* =====================================================================
   AREA CON ELENCO SERVIZI (pagine hub)
   ===================================================================== */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--bianco); box-shadow: 0 30px 60px -30px rgba(23,35,49,.35); }
.area + .area { margin-top: clamp(32px, 4vw, 56px); }
.area__img { position: relative; min-height: 420px; overflow: hidden; }
.area__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area__img::after { content: ""; position: absolute; inset: 0 -1px 0 auto; width: 26%; background: var(--bianco); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.area--rev .area__img { order: 2; }
.area--rev .area__img::after { inset: 0 auto 0 -1px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.area__body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; }
.area__num { font-family: var(--f-cond); font-weight: 700; font-size: 1rem; letter-spacing: .1em; color: var(--blu); text-transform: uppercase; }
.area h3 { font-size: clamp(2.1rem, 3.4vw, 3rem); color: var(--tit); margin: 8px 0 14px; }
.area h3 a { text-decoration: none; }
.area__list { list-style: none; margin: 22px 0 28px; padding: 0; columns: 2; column-gap: 28px; }
.area__list li { break-inside: avoid; border-top: 1px solid #dbe2e8; }
.area__list a { display: flex; gap: 10px; padding: 10px 0; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--tit); transition: color .2s, transform .3s var(--ease); }
.area__list a::before { content: ""; flex: none; margin-top: .38em; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--ciano); }
.area__list a:hover { color: var(--blu); transform: translateX(6px); }
.area .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .area { grid-template-columns: 1fr; }
  .area__img { min-height: 240px; }
  .area--rev .area__img { order: 0; }
  .area__img::after, .area--rev .area__img::after { inset: auto 0 -1px 0; width: auto; height: 22%; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
  .area__list { columns: 1; }
}

/* =====================================================================
   IL PERCORSO CON DELTA — le 4 barre del logo
   ===================================================================== */
.percorso { background: var(--blu); color: var(--su-blu); overflow: hidden; }
.percorso .h2 { color: var(--bianco); }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: end; margin-top: 12px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; }
.bar__text { padding-bottom: 22px; }
.bar__text h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); color: var(--bianco); margin-bottom: 8px; }
.bar__text p { font-size: 1rem; line-height: 1.5; }
.bar__col {
  position: relative; background: var(--ciano); color: var(--notte);
  height: calc(var(--h) * 1px); min-height: 96px;
  clip-path: polygon(0 0, 100% calc(var(--h) * .07px + 26px), 100% 100%, 0 100%);
  transform-origin: bottom;
}
.bar:last-child .bar__col { background: var(--bianco); }
.bar__col span { position: absolute; left: 18px; bottom: 10px; font-family: var(--f-cond); font-weight: 700; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; }
.js .bars.armed .bar__col { transform: scaleY(.12); transition: transform 1s var(--ease); }
.js .bars.armed .bar__text { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js .bars.armed.in .bar__col, .js .bars.armed.in .bar__text { transform: none; opacity: 1; }
.js .bars.armed.in .bar:nth-child(2) * { transition-delay: .12s; }
.js .bars.armed.in .bar:nth-child(3) * { transition-delay: .24s; }
.js .bars.armed.in .bar:nth-child(4) * { transition-delay: .36s; }
.bars-base { height: 10px; background: var(--notte); margin-top: 0; }
@media (max-width: 860px) {
  .bars { grid-template-columns: 1fr; gap: 16px; }
  .bar { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: stretch; }
  .bar__col { height: auto; min-height: 0; clip-path: none; order: -1; }
  .bar__col { width: calc(40px + var(--h) * .1px); }
  .bar__col span { font-size: 2.6rem; left: 10px; bottom: 6px; }
  .bar__text { padding: 6px 0; }
  .bars-base { display: none; }
  .js .bars.armed .bar__col { transform: scaleX(.1); transform-origin: left; }
}

/* =====================================================================
   A CHI È RIVOLTO — righe tipografiche
   ===================================================================== */
.chi { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tit); }
.chi li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 48px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid #cdd6de; position: relative; }
.chi li::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ciano); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.chi li:hover::before { transform: scaleX(1); }
.chi h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--tit); }
.chi p { font-size: 1.1875rem; margin: 0; }
@media (max-width: 760px) { .chi li { grid-template-columns: 1fr; padding: 22px 0; } }

/* =====================================================================
   PUNTI DI FORZA (home)
   ===================================================================== */
.forza { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-left: 1px solid rgba(255,255,255,.16); }
.forza li { padding: 8px 22px 6px; border-right: 1px solid rgba(255,255,255,.16); }
.forza b { display: block; font-family: var(--f-cond); text-transform: uppercase; font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1; color: var(--bianco); }
.forza i { display: block; width: 34px; height: 28px; background: var(--ciano); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-bottom: 26px; }
.forza li:nth-child(even) i { background: var(--tur); }
@media (max-width: 980px) { .forza { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } }
@media (max-width: 520px) { .forza { grid-template-columns: 1fr; } }

/* =====================================================================
   NEWS
   ===================================================================== */
.news-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--bianco); color: var(--txt);
  padding: 30px 28px 28px; position: relative; min-height: 260px;
  box-shadow: 0 18px 40px -24px rgba(23,35,49,.4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.news-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--ciano); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgba(23,35,49,.5); }
.news-card--web { background: var(--notte); color: var(--su-notte); }
.news-card--web h3 { color: var(--bianco) !important; }
.chip { display: inline-block; align-self: flex-start; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; background: var(--chiaro); color: var(--blu-2); margin-bottom: 18px; }
.news-card--web .chip { background: var(--ciano); color: var(--notte); }
.news-card h3 { font-size: clamp(1.6rem, 2.1vw, 1.95rem); line-height: 1.02; color: var(--tit); margin-bottom: 14px; }
.news-card p { font-size: 1rem; }
.news-card .link-arrow { margin-top: auto; padding-top: 16px; }
.news-card--web .link-arrow { color: var(--ciano); }
@media (max-width: 980px) { .news-feat { grid-template-columns: 1fr; } .news-card { min-height: 0; } }

.news-tools { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border: 2px solid var(--tit); background: transparent; color: var(--tit); border-radius: 2px;
  transition: background .2s, color .2s;
}
.filters button:hover { background: var(--chiaro); }
.filters button[aria-pressed="true"] { background: var(--tit); color: var(--bianco); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; font: inherit; padding: 11px 14px 11px 42px; border: 2px solid #c3ccd5; border-radius: 2px; background: var(--bianco); color: var(--txt); }
.search input:focus { border-color: var(--blu); outline: none; box-shadow: 0 0 0 3px rgba(26,177,224,.35); }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: #6b7782; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tit); }
.news-list li a { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid #d3dbe2; text-decoration: none; transition: background .25s; }
.news-list li a:hover { background: var(--chiaro); box-shadow: -14px 0 0 var(--chiaro), 14px 0 0 var(--chiaro); }
.news-list .chip { margin: 0; justify-self: start; }
.news-list b { font-size: 1.1875rem; color: var(--tit); line-height: 1.3; font-weight: 600; }
.news-list .arr { justify-self: end; color: var(--blu); font-size: 1.4rem; transition: transform .3s var(--ease); }
.news-list a:hover .arr { transform: translateX(4px); }
.news-empty { padding: 30px 0; font-size: 1.125rem; color: var(--tit); }
@media (max-width: 700px) { .news-list li a { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 12px; } .news-list .chip { grid-column: 1 / -1; } }

/* =====================================================================
   PROFILE — dichiarazioni
   ===================================================================== */
.pmv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.pmv article { padding: 8px clamp(20px, 3vw, 44px) 8px 0; }
.pmv article + article { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid rgba(255,255,255,.18); }
.pmv h3 { font-size: clamp(2.6rem, 4.4vw, 4rem); color: var(--ciano) !important; margin-bottom: 18px; }
.pmv article:nth-child(2) h3 { color: var(--tur) !important; }
.pmv article:nth-child(3) h3 { color: var(--bianco) !important; }
.pmv p { font-size: 1.125rem; }
@media (max-width: 900px) { .pmv { grid-template-columns: 1fr; gap: 40px; } .pmv article, .pmv article + article { padding: 0; border: 0; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value { background: var(--bianco); padding: 34px 30px; position: relative; overflow: hidden; }
.value::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 120px; background: var(--chiaro); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.value h3 { font-size: 2.1rem; color: var(--blu); margin-bottom: 12px; }
.value p { position: relative; z-index: 1; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); color: var(--tit); margin-bottom: 14px; }
.split .block + .block { margin-top: 44px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.links-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .links-3 { grid-template-columns: 1fr; } }

/* =====================================================================
   CONTATTI
   ===================================================================== */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--tit); border-bottom: 2px solid var(--tit); }
.channel { padding: 30px 28px 32px 0; text-decoration: none; display: block; position: relative; }
.channel + .channel { padding-left: 28px; border-left: 1px solid #cdd6de; }
.channel small { display: block; font-family: var(--f-cond); text-transform: uppercase; font-weight: 600; letter-spacing: .08em; color: var(--blu); font-size: 1.0625rem; margin-bottom: 8px; }
.channel b { font-family: var(--f-cond); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; color: var(--tit); overflow-wrap: anywhere; transition: color .2s; }
.channel:hover b { color: var(--blu); }
@media (max-width: 860px) { .channels { grid-template-columns: 1fr; } .channel, .channel + .channel { padding: 22px 0; border-left: 0; } .channel + .channel { border-top: 1px solid #cdd6de; } }
/* Contatti: il riferimento commerciale con la sua foto accanto ai recapiti */
.refer { display: grid; grid-template-columns: minmax(200px, 290px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.refer__foto { margin: 0; position: relative; }
.refer__img { position: relative; }
.refer__img::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--ciano); clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 86%); }
.refer__img img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 86%); }
.refer__foto figcaption { position: relative; margin-top: 30px; }
.refer__foto figcaption b { display: block; font-family: var(--f-cond); text-transform: uppercase; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--tit); }
.refer__foto figcaption span { display: block; margin-top: 6px; color: var(--txt); }
.refer .channels { grid-template-columns: 1fr; }
.refer .channel, .refer .channel + .channel { padding: 20px 0; border-left: 0; }
.refer .channel + .channel { border-top: 1px solid #cdd6de; }
@media (max-width: 720px) { .refer { grid-template-columns: 1fr; } .refer__foto { max-width: 260px; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--notte); color: var(--su-notte); padding: clamp(28px, 4vw, 52px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); }
.form h2 { color: var(--bianco); font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 10px; }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; margin-top: 26px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9375rem; color: var(--bianco); margin-bottom: 6px; }
.field label i { font-style: normal; color: var(--ciano); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--bianco);
  background: var(--notte-2); border: 2px solid #3a4c60; border-radius: 2px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ciano) 50%), linear-gradient(135deg, var(--ciano) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: var(--txt); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(26,177,224,.3); }
.field.err input, .field.err textarea, .field.err select { border-color: #ff8f80; }
.field .msg { display: none; color: #ffb3a8; font-size: .875rem; margin-top: 6px; }
.field.err .msg { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ciano); flex: none; }
.check a { color: var(--ciano); }
.form .btn { margin-top: 26px; }
.form-ok { display: none; margin-top: 22px; padding: 16px 18px; background: rgba(26,177,224,.14); color: var(--bianco); border-top: 3px solid var(--ciano); }
.form-ok.show { display: block; }
@media (max-width: 600px) { .form .grid { grid-template-columns: 1fr; } }

.sedi { list-style: none; margin: 0; padding: 0; }
.sede { padding: 26px 0; border-bottom: 1px solid #cdd6de; }
.sede:first-child { padding-top: 0; }
.sede small { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--blu); font-size: 1rem; }
.sede h3 { font-size: 2rem; color: var(--tit); margin: 4px 0 6px; }
.sede p { margin: 0 0 8px; }
.map { margin-top: 30px; position: relative; aspect-ratio: 4 / 3; background: var(--chiaro); clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 86%); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75); }

/* =====================================================================
   PAGINE DI SERVIZIO (generate dal wireframe)
   ===================================================================== */
.blk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.blk > .h2 { position: sticky; top: 112px; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.blk--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.blk__body > * + * { margin-top: 1.1em; }
.blk__body p { max-width: 42em; }
.blk__body a, .lede__body a { color: var(--blu); font-weight: 600; }
.norme .blk__body a { color: var(--ciano); }
.h3 { font-size: 1.7rem; color: var(--tit); margin-top: 1.4em !important; }
@media (max-width: 900px) { .blk { grid-template-columns: minmax(0, 1fr); } .blk > .h2 { position: static; } }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid #d8e0e7; }
.ticks li:last-child { border-bottom: 1px solid #d8e0e7; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 11px solid var(--ciano); }
ol.ticks { counter-reset: t; }
ol.ticks li { counter-increment: t; padding-left: 44px; }
ol.ticks li::before { content: counter(t); border: 0; top: .55em; left: 0; font-family: var(--f-cond); font-weight: 700; font-size: 1.7rem; color: var(--blu); }

.defs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.defs li { padding: 20px 0 22px; border-top: 2px solid var(--tit); }
.defs h3 { font-size: 1.45rem; line-height: 1.05; color: var(--tit); margin-bottom: 8px; }
.defs p { margin: 0; font-size: 1.0625rem; }
.defs--dark li { border-top-color: rgba(255,255,255,.22); }
.defs--dark h3 { color: var(--ciano); }
.defs--dark p { color: var(--su-notte); }
@media (max-width: 700px) { .defs { grid-template-columns: 1fr; } }

.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.tbl th { text-align: left; font-family: var(--f-cond); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; background: var(--tit); color: #fff; padding: 12px 14px; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #d8e0e7; vertical-align: top; }
.tbl tr:nth-child(even) td { background: var(--chiaro); }

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 2px solid var(--tit); }
.faq__item { border-bottom: 1px solid #cdd6de; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); line-height: 1.1; color: var(--tit); }
.faq__item summary::after { content: ""; flex: none; width: 16px; height: 14px; background: var(--blu); clip-path: polygon(50% 100%, 0 0, 100% 0); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(180deg); background: var(--ciano); }
.faq__item summary:hover h3 { color: var(--blu); }
.faq__a { padding: 0 0 24px; max-width: 42em; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

.lede__body p:first-child { font-family: var(--f-cond); font-weight: 600; font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.15; color: var(--tit); }

.related { background: var(--bianco); }
.related .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.related__t { font-family: var(--f-cond); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--tit); font-size: 1.15rem; }
.related__l { display: flex; flex-wrap: wrap; gap: 10px; }
.rel { display: inline-block; padding: 9px 16px; border: 2px solid var(--blu); color: var(--blu); font-weight: 600; text-decoration: none; font-size: .975rem; transition: background .2s, color .2s; }
.rel:hover { background: var(--blu); color: #fff; }

/* =====================================================================
   CTA + FOOTER
   ===================================================================== */
.cta { background: var(--ciano); color: var(--notte); position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: center; padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .92; }
.cta p { font-size: 1.25rem; margin: 18px 0 0; max-width: 32em; }
.cta__act { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta__act a.small { font-weight: 600; color: var(--notte); }
.cta__tri { position: absolute; right: -4%; top: -30%; width: 46%; max-width: 640px; aspect-ratio: 1.12; background: rgba(255,255,255,.18); clip-path: polygon(50% 0, 100% 100%, 0 100%, 0 100%, 50% 0, 50% 22%, 19% 84%, 81% 84%, 50% 22%); }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } .cta__tri { width: 90%; right: -40%; } }

.site-footer { background: var(--notte); color: var(--su-notte); font-size: 1rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 42px; background: var(--ciano); clip-path: polygon(0 0, 100% 0, 0 100%); }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 96px; padding-bottom: 48px; }
.foot img { height: 60px; width: auto; margin-bottom: 22px; }
.foot .footer__title { font-size: 1.25rem; color: var(--bianco); letter-spacing: .04em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ciano); }
.foot address { font-style: normal; line-height: 1.65; }
.foot-base { border-top: 1px solid #2c3d50; padding-top: 18px; padding-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .875rem; color: #8fa1b1; }
.foot-base a { color: inherit; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

.dev-note { background: #fff7e0; color: #5b4300; font-size: .875rem; text-align: center; padding: 8px var(--gut); }

/* ---------- reveal leggero (contenuto visibile di default) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .bars.armed .bar__col, .js .bars.armed .bar__text { opacity: 1 !important; transform: none !important; }
  .js .hero__delta path { stroke-dashoffset: 0; }
}
.bars--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bars--5 .bar__text h3 { font-size: clamp(1.3rem, 1.7vw, 1.65rem); }
@media (max-width: 860px) { .bars--5 { grid-template-columns: 1fr; } }
.tiles--plain .tile { min-height: 300px; background: var(--notte); }
.tiles--plain .tile::before { background: none; }
.tiles--plain .tile:nth-child(3n+2) { background: var(--blu); }
.tiles--plain .tile:nth-child(3n+3) { background: var(--tit); }
.tiles--plain .tile:nth-child(3n+2)::after { background: var(--notte); }
.tiles--plain .tile__body { position: relative; }
.tiles--plain .tile { justify-content: flex-start; }
.tiles--plain .tile__body { display: flex; flex-direction: column; height: 100%; }
.tiles--plain .tile__body::before { content: ""; display: block; width: 30px; height: 26px; margin-bottom: 22px; background: var(--ciano); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tiles--plain .tile__go { margin-top: auto; }
.tiles--plain .tile:nth-child(3n+2) .tile__go { color: var(--bianco); }
.tiles--plain .tile p { color: #d5e1ea; }
@media (max-width: 980px) { .tiles--plain { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tiles--plain { grid-template-columns: 1fr; } }

/* =====================================================================
   RICERCA NEL SITO (lente nel menu + pannello a comparsa; logica in js/site.js)
   ===================================================================== */
.brand { order: 0; } .nav { order: 1; } .gs-btn { order: 2; } .header-cta { order: 3; } .burger { order: 4; }
.gs-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: 6px; padding: 0; background: transparent; border: 0;
  color: var(--bianco); cursor: pointer; border-radius: 2px; transition: color .2s var(--ease);
}
.gs-btn svg { width: 24px; height: 24px; }
.gs-btn:hover, .gs-btn[aria-expanded="true"] { color: var(--ciano); }
@media (max-width: 980px) {
  .gs-btn { margin-left: auto; margin-right: 0; }
  .burger { margin-left: 0 !important; }
}

.gs { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 7vh 16px 16px; }
.gs[hidden] { display: none; }
.gs__bd { position: absolute; inset: 0; background: rgba(23, 35, 49, .8); backdrop-filter: blur(3px); }
.gs__panel {
  position: relative; width: 100%; max-width: 820px; max-height: calc(100svh - 7vh - 16px); display: flex; flex-direction: column;
  background: var(--bianco); border-top: 6px solid var(--ciano); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.gs__form { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px 20px; border-bottom: 2px solid var(--chiaro); transition: border-color .2s; }
.gs__form:focus-within { border-bottom-color: var(--ciano); }
.gs__form svg { flex: none; width: 26px; height: 26px; color: var(--blu); }
.gs__form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--tit);
  font: inherit; font-size: 1.35rem; padding: 10px 4px;
}
.gs__form input::placeholder { color: #6b7886; opacity: 1; }
.gs__form input::-webkit-search-cancel-button { display: none; }
.gs__close { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--tit); font-size: 2rem; line-height: 1; cursor: pointer; }
.gs__close:hover { color: var(--blu); }
.gs__res { overflow-y: auto; padding: 4px 20px 44px; overscroll-behavior: contain; }
.gs__grp { margin: 20px 0 4px; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blu); }
.gs__grp span { margin-left: 6px; padding: 1px 8px; background: var(--chiaro); color: var(--tit); font-size: .85rem; letter-spacing: 0; }
.gs__list { list-style: none; margin: 0; padding: 0; }
.gs__list a { display: block; padding: 11px 14px; margin: 0 -14px; text-decoration: none; border-left: 4px solid transparent; }
.gs__list a:hover, .gs__list a:focus-visible { background: var(--chiaro); border-left-color: var(--ciano); outline: 0; }
.gs__area { display: block; font-size: .8rem; font-weight: 600; color: var(--blu); }
.gs__t { display: block; margin: 2px 0 3px; font-family: var(--f-cond); font-weight: 700; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; color: var(--tit); }
.gs__s { display: block; font-size: .95rem; line-height: 1.45; color: var(--txt); }
.gs mark { background: rgba(26, 177, 224, .28); color: inherit; padding: 0 1px; }
.gs__hint { margin: 18px 0 8px; color: var(--txt); }
.gs__hint a { color: var(--blu); font-weight: 600; }
.gs__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gs__chips button { padding: 8px 14px; font: inherit; font-size: .95rem; color: var(--blu); background: transparent; border: 2px solid var(--blu); border-radius: 2px; cursor: pointer; }
.gs__chips button:hover, .gs__chips button:focus-visible { background: var(--blu); color: var(--bianco); }
body.gs-open { overflow: hidden; }
body.gs-open .fab { display: none; }
@media (max-width: 640px) {
  .gs { padding: 0; }
  .gs__panel { max-height: none; height: 100%; clip-path: none; }
  .gs__form input { font-size: 1.2rem; }
  .gs__t { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .gs:not([hidden]) .gs__panel { animation: searchIn .28s var(--ease); }
  @keyframes searchIn { from { opacity: 0; transform: translateY(-14px); } }
}
