/* ================================================================
   FORMA STUDIO - css/style.css
   Stack: HTML5 + CSS3 puro + GSAP/ScrollTrigger via CDN. Zero build.
================================================================ */

/* ----------------------------------------------------------------
   1. RESET & TOKEN
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:root {
  /* Colori brand */
  --blue:       #2E6FE8;
  --blue-deep:  #2557BE;
  --blue-tint:  #E8F0FE;
  --navy:       #1F3A5F;
  --gray:       #5A6B7B;
  --bg:         #F4F6F8;
  --white:      #FFFFFF;

  --ink:        var(--navy);
  --ink-soft:   var(--gray);
  --line:       rgba(31, 58, 95, 0.12);

  /* Tipografia */
  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Manrope", sans-serif;

  /* Raggi (sistema unico, morbido) */
  --radius-sm:  12px;
  --radius:     20px;
  --radius-lg:  28px;
  --radius-pill: 999px;

  /* Ombre tinte navy */
  --shadow-sm: 0 8px 22px -14px rgba(31, 58, 95, 0.35);
  --shadow:    0 24px 50px -22px rgba(31, 58, 95, 0.34);

  --container:   1180px;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Rete di sicurezza per gli elementi decorativi (glow, ombre) che
     sconfinano volutamente oltre il proprio contenitore, es. nella
     hero di pacchetti-tag.html: evita scrollbar orizzontale indesiderata. */
  overflow-x: hidden;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

section { padding-block: var(--section-pad); scroll-margin-top: var(--nav-h); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

p { max-width: 65ch; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------
   2. BOTTONI
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background-color: var(--blue-deep); }
}

.btn-ghost {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--blue); background-color: var(--blue-tint); }
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------
   3. ELEMENTI RICORRENTI
---------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.8rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.7rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; margin-inline: auto; }

/* ----------------------------------------------------------------
   3b. INTRO ANIMATA (tagline su sfondo scuro -> mini-mockup animati)
---------------------------------------------------------------- */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background-color: #05070A;
  overflow: hidden;
  pointer-events: none;
}

.intro-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FASE 1: tagline bianca centrata */
.intro-phase-text {
  padding-inline: 1.5rem;
  text-align: center;
}
#intro-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--white);
}

/* FASE 2: 4 mini-mockup che si costruiscono e si trasformano l'uno
   nell'altro, poi si disgregano in particelle. Tutto HTML/SVG + GSAP. */
.intro-phase-scenes { background-color: #05070A; overflow: hidden; }

.intro-stage {
  position: relative;
  width: min(84vw, 560px);
  height: min(58vh, 360px);
}

.intro-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* SCENA 1: griglia e-commerce */
.shop-card { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.6; }
.shop-thumb { fill: var(--blue); }
.shop-line-lg { fill: rgba(255, 255, 255, 0.55); }
.shop-line-sm { fill: rgba(255, 255, 255, 0.3); }

/* SCENA 2: dashboard */
.intro-scene-dash { display: flex; align-items: center; justify-content: center; gap: 14px; }
.dash-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(46, 111, 232, 0.35) 0%, rgba(46, 111, 232, 0) 70%);
  border-radius: 50%;
  filter: blur(2px);
}
.dash-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}
.dash-panel-side, .dash-panel-small { width: 60px; height: 230px; padding: 16px 10px; display: flex; flex-direction: column; gap: 14px; }
.dash-side-line { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.32); }
.dash-panel-main {
  width: 260px;
  height: 230px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.dash-line-svg { width: 100%; height: 52px; }
.dash-line-path { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.dash-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  border-radius: 4px 4px 0 0;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.dash-bar:nth-child(1) { height: 55%; }
.dash-bar:nth-child(2) { height: 82%; }
.dash-bar:nth-child(3) { height: 44%; }
.dash-bar:nth-child(4) { height: 96%; }
.dash-bar:nth-child(5) { height: 66%; }

/* SCENA 3: app mobile */
.intro-scene-app { display: flex; align-items: center; justify-content: center; }
.app-frame {
  position: relative;
  width: 220px;
  height: 320px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.app-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.app-card {
  margin-top: 22px;
  height: 68px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-card-2, .app-card-3 { margin-top: 0; }
.app-block { display: block; height: 8px; border-radius: 4px; width: 68%; background: rgba(255, 255, 255, 0.42); }
.app-block-sm { width: 38%; background: rgba(255, 255, 255, 0.22); }

/* SCENA 4: portfolio a griglia (masonry) */
.intro-scene-portfolio { position: relative; }
.portfolio-tile {
  position: absolute;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46, 111, 232, 0.35), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pt-1 { left: 0%;   top: 0%;   width: 30%; height: 38%; }
.pt-2 { left: 0%;   top: 42%;  width: 30%; height: 36%; }
.pt-3 { left: 34%;  top: 0%;   width: 30%; height: 24%; }
.pt-4 { left: 34%;  top: 28%;  width: 30%; height: 48%; }
.pt-5 { left: 68%;  top: 0%;   width: 30%; height: 28%; }
.pt-6 { left: 68%;  top: 32%;  width: 30%; height: 18%; }
.pt-7 { left: 68%;  top: 54%;  width: 30%; height: 22%; }

/* CHIUSURA: particelle di luce + gradiente blu del brand */
.intro-scene-particles { pointer-events: none; }
.intro-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
}
.intro-particle:nth-child(even) { width: 4px; height: 4px; background: var(--white); }

.intro-closing-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 55%, var(--blue) 100%);
  opacity: 0;
  pointer-events: none;
}

#skip-intro {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 10;
  pointer-events: auto;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
#skip-intro:hover { background-color: rgba(255, 255, 255, 0.24); }
#skip-intro:active { transform: scale(0.96); }

@media (scripting: none) {
  #intro-overlay { display: none; }
}

/* ----------------------------------------------------------------
   4. NAVBAR
---------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1rem 1.25rem 0;
  pointer-events: none;
}

/* Pillola flottante in vetro: appare con un fade elegante subito dopo
   l'intro (vedi gsap.set/gsap.to su .nav-pill in main.js). Di base resta
   visibile (senza JS/con reduced motion il sito funziona comunque). */
.nav-pill {
  pointer-events: auto;
  width: min(100%, 940px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  min-height: 62px;
  padding: 0.5rem 0.6rem 0.5rem 1.15rem;
  background-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px -20px rgba(31, 58, 95, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Intestazione semplice (solo logo, niente pillola) usata da privacy.html
   e 404.html: #navbar disattiva pointer-events di default e lo riattiva
   solo dentro .nav-pill, quindi senza questa regola il logo qui non era
   ne' stilizzato ne' cliccabile. */
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding-block: 0.6rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo-mark { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--blue); }
}

#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.menu-bar { width: 22px; height: 2px; background-color: var(--navy); border-radius: 2px; }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background-color: var(--bg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
#mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
#mobile-menu a { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); color: var(--navy); }

/* ----------------------------------------------------------------
   5. CHI SIAMO (ex hero: stesso contenuto/mockup, ora a fine percorso)
---------------------------------------------------------------- */
#chi-siamo {
  position: relative;
  background-color: var(--white);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -14%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 111, 232, 0.18) 0%, rgba(46, 111, 232, 0.06) 45%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: chisiamo-glow-drift 17s ease-in-out infinite; }
}
@keyframes chisiamo-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-34px, 28px) scale(1.09); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}

.hero-copy { position: relative; }

/* Dettagli grafici che si muovono in modo continuo e delicato mentre la
   sezione resta visibile (indipendenti dal reveal via GSAP, sempre attivi). */
.chisiamo-ambient { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.chisiamo-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
}
.cd-1 { top: 4%; left: -3%; }
.cd-2 { top: 48%; right: 1%; }
.cd-3 { bottom: 8%; left: 20%; }
.cd-4 { top: 74%; right: 22%; }

.chisiamo-line {
  position: absolute;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: rgba(46, 111, 232, 0.4);
  transform: rotate(var(--rot, 0deg));
}
.cl-1 { top: 20%; right: -3%; --rot: 24deg; }
.cl-2 { bottom: 20%; left: -5%; --rot: -18deg; }
.cl-3 { top: 63%; right: 9%; --rot: 10deg; }

/* Ampiezza aumentata rispetto alla versione precedente: traslazioni piu'
   ampie + una leggera pulsazione di scala, per rendere la sezione
   chiaramente viva al primo sguardo, non solo un dettaglio in sottofondo. */
@media (prefers-reduced-motion: no-preference) {
  .cd-1 { animation: chisiamo-float 4.5s ease-in-out infinite; }
  .cd-2 { animation: chisiamo-float 5.8s ease-in-out infinite; animation-delay: -2s; }
  .cd-3 { animation: chisiamo-float 5.2s ease-in-out infinite; animation-delay: -3.5s; }
  .cd-4 { animation: chisiamo-float 6.4s ease-in-out infinite; animation-delay: -1.2s; }
  .cl-1 { animation: chisiamo-pulse 4s ease-in-out infinite; }
  .cl-2 { animation: chisiamo-pulse 5s ease-in-out infinite; animation-delay: -2.5s; }
  .cl-3 { animation: chisiamo-pulse 4.6s ease-in-out infinite; animation-delay: -1.6s; }
}
@keyframes chisiamo-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50%      { transform: translateY(-24px) scale(1.35); opacity: 0.95; }
}
@keyframes chisiamo-pulse {
  0%, 100% { transform: rotate(var(--rot, 0deg)) scaleX(1) translateX(0); opacity: 0.22; }
  50%      { transform: rotate(var(--rot, 0deg)) scaleX(1.7) translateX(6px); opacity: 0.8; }
}

#chi-siamo-name .letter { display: inline-block; will-change: transform, opacity; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-logo-mark { width: 64px; height: 64px; margin-bottom: 1.4rem; }

#chi-siamo h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--blue-deep);
  margin-bottom: 1.1rem;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-visual { display: flex; justify-content: center; }
.hero-mockup {
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 30px 50px -14px rgba(31, 58, 95, 0.32));
}
.mock-frame, .mock-card, .mock-detail { will-change: transform, opacity; }

/* ----------------------------------------------------------------
   6. SERVIZI (ex "Cosa facciamo")
---------------------------------------------------------------- */
#cosa-facciamo { position: relative; background-color: var(--white); overflow: hidden; }

/* Accento di sfondo: un bagliore che deriva lentamente + una texture a
   puntini sfumata ai bordi, per dare profondita' alla sezione intera. */
.servizi-glow-bg {
  position: absolute;
  top: -14%;
  left: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 111, 232, 0.14) 0%, rgba(46, 111, 232, 0.05) 45%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .servizi-glow-bg { animation: servizi-glow-drift 19s ease-in-out infinite; }
}
@keyframes servizi-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(36px, 26px) scale(1.07); }
}

.servizi-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 58, 95, 0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 35%, transparent 88%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 35%, transparent 88%);
  pointer-events: none;
}

.servizi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.servizio-card {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.6rem, 4vw, 2.3rem);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), background-color 250ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .servizio-card:hover { box-shadow: var(--shadow); background-color: var(--white); }
}

.servizio-visual {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--blue-tint), #dbe8ff);
  box-shadow: 0 10px 22px -12px rgba(31, 58, 95, 0.3);
}
.servizio-visual svg { width: 78%; height: 78%; position: relative; z-index: 1; }

.servizio-glow {
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(46, 111, 232, 0.5) 0%, rgba(46, 111, 232, 0) 70%);
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
}

.servizio-content h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.servizio-content p { color: var(--ink-soft); font-size: 0.95rem; }

/* Micro-animazioni per servizio: contorni che si disegnano e forme che
   prendono posto, nello stesso linguaggio visivo dell'intro. Gli stati
   di partenza (scale 0, dasharray) sono impostati via JS in main.js. */
.sv-siti-frame, .sv-siti-topline { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sv-siti-dot { fill: var(--blue); }
.sv-siti-block { fill: var(--blue-deep); opacity: 0.85; }
.sv-siti-block-b { fill: var(--navy); opacity: 0.5; }
.sv-siti-line { fill: rgba(31, 58, 95, 0.25); }

.sv-booking-frame, .sv-booking-tab, .sv-booking-header { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sv-booking-cell { fill: rgba(31, 58, 95, 0.25); }
.sv-booking-selected { fill: var(--blue); }
.sv-booking-check { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.sv-map-link { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; }
.sv-map-pin { fill: var(--blue-deep); }
.sv-map-pin-b { fill: var(--blue); }
.sv-map-ping { fill: none; stroke: var(--blue); stroke-width: 1.6; }

.sv-chat-bubble { fill: var(--blue); }
.sv-chat-line { stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.sv-chat-badge { fill: #E4738C; }
.sv-chat-bell { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }

.sv-logo-shape { fill: var(--blue); }

.sv-biolink-pill { fill: var(--blue-deep); }
.sv-biolink-pill-2 { fill: var(--blue); }
.sv-biolink-pill-3 { fill: var(--navy); opacity: 0.7; }

@media (max-width: 640px) {
  .servizio-card { flex-direction: column; text-align: center; }
}

/* ----------------------------------------------------------------
   7. I NOSTRI LAVORI
---------------------------------------------------------------- */
#lavori { background-color: var(--bg); }

.lavori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.lavoro-card {
  position: relative;
  display: block;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lavoro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .lavoro-card:hover .lavoro-visual { transform: scale(1.04); }
  .lavoro-card:hover .lavoro-arrow { transform: translate(3px, -3px); }
}

.lavoro-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 400ms var(--ease-out);
}
.lavoro-visual svg { width: 56%; height: 56%; }

.lavoro-visual.tone-rosa   { background: linear-gradient(150deg, #f7e4ee, #f1d0e2); color: #b5507e; }
.lavoro-visual.tone-blu    { background: linear-gradient(150deg, #dfe9fb, #cddcf7); color: var(--blue-deep); }
.lavoro-visual.tone-verde  { background: linear-gradient(150deg, #e3efe0, #cee2c8); color: #4c7a3e; }

.lavoro-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem 1.6rem 1.7rem;
}
.lavoro-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}
.lavoro-body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.lavoro-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.9rem; }

.lavoro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.lavoro-arrow { width: 16px; height: 16px; transition: transform 250ms var(--ease-out); }

/* ----------------------------------------------------------------
   7b. IL CONFIGURATORE (sfondo nero come l'intro, mini-mockup live)
---------------------------------------------------------------- */
#configuratore {
  position: relative;
  background-color: #05070A;
  color: var(--white);
  overflow: hidden;
}

.config-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.config-glow-1 {
  top: -18%;
  left: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(46, 111, 232, 0.28) 0%, rgba(46, 111, 232, 0.08) 45%, transparent 72%);
}
.config-glow-2 {
  bottom: -22%;
  right: -12%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(122, 79, 224, 0.2) 0%, rgba(122, 79, 224, 0.06) 45%, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .config-glow-1 { animation: config-glow-drift-1 14s ease-in-out infinite; }
  .config-glow-2 { animation: config-glow-drift-2 17s ease-in-out infinite; animation-delay: -6s; }
}
@keyframes config-glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(26px, 18px) scale(1.06); }
}
@keyframes config-glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-22px, -16px) scale(1.05); }
}

.config-head { position: relative; z-index: 1; }
.config-head .eyebrow { color: #9db8e8; }
.config-head h2 { color: var(--white); }

.config-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.config-group { margin-bottom: 1.8rem; }
.config-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.8rem;
}

.config-swatches { display: flex; gap: 0.7rem; }
.config-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease;
}
.config-swatch.is-active {
  border-color: var(--white);
  transform: scale(1.14);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}
@media (hover: hover) and (pointer: fine) {
  .config-swatch:not(.is-active):hover { transform: scale(1.08); border-color: rgba(255, 255, 255, 0.5); }
}

.config-options { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.config-option {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.config-option.is-active { background-color: var(--white); color: var(--navy); border-color: var(--white); }
.config-option:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .config-option:not(.is-active):hover { border-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.1); }
}

.config-outro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.config-outro svg { width: 20px; height: 20px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .config-outro:hover svg { transform: translate(3px, -3px); }
  .config-outro:hover { color: #bcd3fb; }
}

/* Mini-mockup live: cambia colore accento, spaziature e CTA in tempo reale */
.config-preview { display: flex; justify-content: center; }
.config-mock {
  width: min(100%, 380px);
  background-color: var(--white);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-radius 350ms var(--ease-out), padding 350ms var(--ease-out);
}

.config-mock-nav { display: flex; align-items: center; justify-content: space-between; }
.config-mock-dot { width: 10px; height: 10px; border-radius: 50%; background-color: var(--accent, #2E6FE8); transition: background-color 350ms ease; }
.config-mock-navlinks { display: flex; gap: 0.4rem; }
.config-mock-navlink { width: 28px; height: 6px; border-radius: 3px; background-color: #E4E9EF; }

.config-mock-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; padding-block: 0.3rem; }
.config-mock-eyebrow { width: 70px; height: 8px; border-radius: 4px; background-color: var(--accent, #2E6FE8); transition: background-color 350ms ease, border-radius 350ms ease; }
.config-mock-title { width: 88%; height: 16px; border-radius: 5px; background-color: #1F3A5F; transition: height 350ms ease, border-radius 350ms ease; }
.config-mock-title-sm { width: 60%; }
.config-mock-cta {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent, #2E6FE8);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background-color 350ms ease, border-radius 350ms ease;
}
.config-mock-cta-icon { width: 16px; height: 16px; flex-shrink: 0; }

.config-mock-block { height: 60px; border-radius: 12px; background-color: var(--bg); transition: border-radius 350ms ease, height 350ms ease; }

/* Stile "Deciso": angoli piu' netti, elementi piu' grandi e compatti */
.config-mock[data-style="bold"] { border-radius: 8px; padding: 1.15rem; }
.config-mock[data-style="bold"] .config-mock-eyebrow { border-radius: 2px; }
.config-mock[data-style="bold"] .config-mock-title { height: 20px; border-radius: 3px; }
.config-mock[data-style="bold"] .config-mock-cta { border-radius: 8px; padding: 0.8rem 1.4rem; }
.config-mock[data-style="bold"] .config-mock-block { border-radius: 4px; height: 78px; }

@media (max-width: 1024px) {
  .config-grid { grid-template-columns: 1fr; }
  .config-preview { order: -1; max-width: 340px; margin: 0 auto 1rem; }
}

/* ----------------------------------------------------------------
   8. CONTATTACI
---------------------------------------------------------------- */
#contatti {
  position: relative;
  background: linear-gradient(160deg, #16294a 0%, var(--navy) 55%, #132242 100%);
  background-size: 160% 160%;
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(6rem, 14vw, 10rem);
}
@media (prefers-reduced-motion: no-preference) {
  #contatti { animation: contatti-gradient-shift 16s ease-in-out infinite; }
}
@keyframes contatti-gradient-shift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 60%; }
}

.contatti-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.contatti-glow-1 {
  bottom: -22%;
  left: -12%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(46, 111, 232, 0.34) 0%, rgba(46, 111, 232, 0.1) 45%, transparent 72%);
}
.contatti-glow-2 {
  top: -18%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(191, 212, 251, 0.22) 0%, rgba(191, 212, 251, 0.06) 45%, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .contatti-glow-1 { animation: contatti-drift-1 11s ease-in-out infinite; }
  .contatti-glow-2 { animation: contatti-drift-2 13s ease-in-out infinite; animation-delay: -5s; }
}
@keyframes contatti-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.08); }
}
@keyframes contatti-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-24px, 22px) scale(1.06); }
}

.contatti-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .contatti-pattern { animation: contatti-pattern-spin 100s linear infinite; }
}
@keyframes contatti-pattern-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Piccoli punti di luce che fluttuano lentamente sullo sfondo */
.contatti-sparks { position: absolute; inset: 0; pointer-events: none; }
.contatti-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #bcd3fb;
  opacity: 0.5;
}
.cs-1 { top: 16%; left: 9%; }
.cs-2 { top: 62%; left: 44%; }
.cs-3 { top: 28%; right: 14%; }
.cs-4 { bottom: 14%; right: 30%; }
@media (prefers-reduced-motion: no-preference) {
  .cs-1 { animation: contatti-spark-float 6s ease-in-out infinite; }
  .cs-2 { animation: contatti-spark-float 7.5s ease-in-out infinite; animation-delay: -2s; }
  .cs-3 { animation: contatti-spark-float 5.5s ease-in-out infinite; animation-delay: -3.5s; }
  .cs-4 { animation: contatti-spark-float 8s ease-in-out infinite; animation-delay: -1s; }
}
@keyframes contatti-spark-float {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%      { transform: translateY(-14px); opacity: 0.85; }
}

.contatti-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.contatti-copy .eyebrow { color: #9db8e8; font-size: 0.85rem; }
.contatti-copy h2 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.03; margin-bottom: 1.3rem; }
.contatti-copy p { color: rgba(255, 255, 255, 0.78); font-size: 1.2rem; line-height: 1.6; max-width: 46ch; }

.contatti-list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.contatti-list li { display: flex; align-items: center; gap: 0.7rem; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.contatti-list svg { width: 19px; height: 19px; color: #7fa6f2; flex-shrink: 0; }

.contatti-form {
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1.3rem;
}

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.field .optional { font-weight: 500; color: rgba(255, 255, 255, 0.55); text-transform: none; letter-spacing: 0; }

.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 220ms ease, transform 180ms var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(46, 111, 232, 0.22);
  transform: translateY(-1px) scale(1.01);
}
.field textarea { resize: vertical; min-height: 110px; }

.field label { transition: color 180ms ease; }
.field:focus-within label { color: var(--white); }

/* Il bottone di invio si illumina di piu' al passaggio del mouse */
@media (hover: hover) and (pointer: fine) {
  .contatti-form .btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 34px 6px rgba(46, 111, 232, 0.55), var(--shadow);
  }
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field-error {
  font-size: 0.82rem;
  color: #ffb4a8;
  min-height: 1.1em;
}

.hp-field { position: absolute; left: -9999px; }

.form-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem) 1rem;
}
.form-success.is-visible { display: block; }
.form-success svg {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  padding: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  color: var(--white);
}
.form-success h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.6rem; }
.form-success p { color: rgba(255, 255, 255, 0.75); margin-inline: auto; }

/* ----------------------------------------------------------------
   9. FOOTER
---------------------------------------------------------------- */
#footer {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; }
.footer-brand .nav-logo-mark { width: 28px; height: 28px; }
.footer-brand .nav-logo-text { font-size: 1.05rem; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-links a { font-weight: 600; color: var(--ink-soft); transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--blue); }
}

.footer-copy { font-size: 0.82rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------
   10. PAGINA LEGALE (privacy) / PAGINA 404
---------------------------------------------------------------- */
.legal-hero, .notfound-hero {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.legal-hero h1, .notfound-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.7rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-deep);
  margin-bottom: 1.1rem;
}
.legal-back svg { width: 18px; height: 18px; }

.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-width: 74ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: 1.1rem 1.3rem;
  background-color: #FFF6E5;
  border: 1px solid #F3D48E;
  border-radius: var(--radius);
  color: #8A5A00;
  font-size: 0.95rem;
  line-height: 1.55;
}
.legal-notice svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; }

.legal-block { max-width: 74ch; }
.legal-block + .legal-block { margin-top: clamp(1.8rem, 4vw, 2.4rem); }
.legal-block h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.legal-block p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 0.5rem; }
.legal-block ul { padding-left: 1.3rem; margin-block: 0.5rem; display: grid; gap: 0.4rem; list-style: disc; }
.legal-block li { color: var(--ink-soft); font-size: 1rem; }
.legal-block a { color: var(--blue-deep); font-weight: 700; }

.notfound-wrap {
  min-height: 65dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound-wrap svg { width: 80px; height: 80px; color: var(--blue); margin-bottom: 1.3rem; }
.notfound-wrap p { color: var(--ink-soft); max-width: 46ch; margin: 0.6rem auto 1.8rem; }

/* ----------------------------------------------------------------
   11. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto 1rem; }
  .lavori-grid { grid-template-columns: repeat(2, 1fr); }
  .contatti-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(3.2rem, 10vw, 4.5rem); }

  .nav-links, .nav-pill > .btn-primary { display: none; }
  #menu-toggle { display: flex; }

  .lavori-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  #chi-siamo h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
}

/* ----------------------------------------------------------------
   12. RIDUZIONE DEL MOVIMENTO
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-hero, .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Prospect Detail — modale dossier azienda (lead.html + sala-controllo)
   Mobile-first: bottom-sheet a tutta larghezza; ≥768px scheda centrata.
   Aggiunto 24/7/2026. Vedi js/prospect-detail.js.
   ============================================================ */
.pd-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 26, 45, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 0;
}
.pd-overlay[hidden] { display: none; }
.pd-panel {
  position: relative; width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -18px 50px -20px rgba(15,26,45,0.5);
  outline: none;
}
.pd-close {
  position: sticky; top: 0.6rem; float: right; margin: 0.6rem 0.6rem 0 0;
  width: 44px; height: 44px; min-width: 44px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; color: #fff;
  background: rgba(15,26,45,0.35); border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color .18s ease;
}
.pd-close:hover, .pd-close:focus-visible { background: rgba(15,26,45,0.6); outline: none; }
.pd-body { padding-bottom: 1.5rem; }
.pd-loading { padding: 2.5rem 1.5rem; color: var(--ink-soft); text-align: center; }

.pd-head {
  color: #fff; padding: clamp(1.4rem,4vw,2rem) clamp(1.2rem,4vw,1.8rem) clamp(1.1rem,3vw,1.5rem);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(155deg, #16294a 0%, var(--navy) 70%);
}
.pd-head.t-caldo   { background: linear-gradient(155deg, #7c2740 0%, #3a2036 60%, var(--navy) 100%); }
.pd-head.t-tiepido { background: linear-gradient(155deg, #7a5410 0%, #2f2c36 60%, var(--navy) 100%); }
.pd-head.t-freddo  { background: linear-gradient(155deg, #1c3f77 0%, var(--navy) 70%); }
.pd-head-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.pd-temp { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.65rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.16); color: #fff; }
.pd-stato { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.pd-head h2 { font-family: var(--font-display); font-size: clamp(1.3rem,4.5vw,1.7rem); font-weight: 700; margin: 0 0 0.3rem; color: #fff; line-height: 1.2; }
.pd-meta { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

.pd-block { padding: clamp(1rem,3.5vw,1.4rem) clamp(1.2rem,4vw,1.8rem); border-top: 1px solid var(--line); }
.pd-block:first-of-type { border-top: none; }
.pd-block h3 { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-deep); margin: 0 0 0.9rem; }
.pd-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem 0.9rem; padding: 0.4rem 0; font-size: 0.9rem; line-height: 1.5; }
.pd-row + .pd-row { border-top: 1px dashed var(--line); }
.pd-k { color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; }
.pd-v { color: var(--ink); word-break: break-word; }
.pd-v a { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.pd-v a:hover, .pd-v a:focus-visible { border-bottom-color: var(--blue); outline: none; }
.pd-target { color: var(--blue); }
.pd-longtext { margin-top: 0.8rem; }
.pd-longtext p, .pd-seg p { font-size: 0.9rem; line-height: 1.6; color: var(--ink); margin: 0 0 0.6rem; }
.pd-seg { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--bg); border-radius: var(--radius-sm); border-left: 3px solid var(--blue-tint); }
.pd-seg h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--blue-deep); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pd-seg p:last-child { margin-bottom: 0; }

/* Bottone "Vedi scheda" nelle card lead + focus pipeline */
.pd-openbtn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; padding: 0.5rem 0.9rem; margin-top: 0.9rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  color: var(--blue-deep); background: var(--blue-tint);
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.pd-openbtn:hover, .pd-openbtn:focus-visible { background: var(--blue); color: #fff; outline: none; }
.pd-openbtn svg { width: 15px; height: 15px; }

@media (min-width: 768px) {
  .pd-overlay { align-items: center; padding: 1.5rem; }
  .pd-panel { border-radius: var(--radius); max-height: 88vh; }
  .pd-head { border-radius: var(--radius) var(--radius) 0 0; }
}
