/*
  Cappello S.r.l. — Design system
  Mobile-first. Palette derivata dal logo (navy + grigio) con accento oro/ambra.
  Font: Sora (titoli) + Inter (testo), self-hosted come variable font.
*/

/* ============ FONT FACES ============ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 380 800;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2-variations'), url('../fonts/inter-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 380 800;
  font-display: swap;
  src: url('../fonts/sora-var-latin.woff2') format('woff2-variations'), url('../fonts/sora-var-latin.woff2') format('woff2');
}

/* ============ DESIGN TOKENS ============ */
:root{
  /* Blu elettrico più presente e navy più chiari (richiesta Valentina) */
  --navy-950:#0d2748;
  --navy-900:#184a7a;
  --navy-800:#2260a8;
  --navy-700:#2f74c8;
  --navy-600:#3f88e0;
  --navy-500:#5a9ef0;

  --electric:#2b8cff;
  --electric-soft:#62b0ff;
  --electric-glow: rgba(43,140,255,.38);
  /* Stesso blu elettrico del banner partner Vimar */
  --vimar-electric:
    radial-gradient(120% 90% at 0% 0%, rgba(227,165,61,.22), transparent 55%),
    linear-gradient(160deg, #1c62c0 0%, #2f82e8 55%, #1a58ad 100%);

  --slate-700:#3f454c;
  --slate-500:#6c7075;
  --slate-300:#aeb4bb;
  --slate-150:#e2e6ea;
  --slate-100:#eef1f4;
  --slate-50:#f7f8fa;
  --white:#ffffff;

  --gold-600:#c78a26;
  --gold-500:#e3a53d;
  --gold-400:#f0c274;

  --success:#2fae6c;
  --danger:#e5484d;

  --ink: var(--navy-900);
  --muted: var(--slate-500);

  --glass-light-bg: rgba(255,255,255,.58);
  --glass-light-bg-strong: rgba(255,255,255,.78);
  --glass-light-border: rgba(255,255,255,.75);
  --glass-dark-bg: rgba(8,20,40,.42);
  --glass-dark-bg-strong: rgba(7,17,34,.62);
  --glass-dark-border: rgba(255,255,255,.14);
  --blur-md: blur(18px) saturate(150%);
  --blur-sm: blur(10px) saturate(140%);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-full: 999px;

  --shadow-soft: 0 24px 60px -24px rgba(7,19,36,.35);
  --shadow-sm: 0 10px 28px -14px rgba(7,19,36,.3);
  --shadow-gold: 0 14px 30px -10px rgba(199,138,38,.45);

  --font-head: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-section: clamp(4.5rem, 8vw, 8rem);
  --space-section-sm: clamp(3rem, 5vw, 5rem);
  --container-w: 1360px;

  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
/* Sito one-page: evita che le sezioni finiscano sotto la navbar flottante fissa. */
section[id], main [id]{ scroll-margin-top: 96px; }
@media (min-width:640px){ section[id], main [id]{ scroll-margin-top: 108px; } }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--slate-50);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; height:auto; }
svg{ display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font:inherit; cursor:pointer; }
input, textarea, select{ font:inherit; }
h1,h2,h3,h4{ font-family:var(--font-head); line-height:1.15; margin:0; letter-spacing:-.01em; font-weight:700; }
p{ margin:0; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy-900); color:#fff; padding:.8em 1.2em;
  border-radius:0 0 var(--r-sm) 0; z-index:999;
}
.skip-link:focus{ left:0; }

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

/* ============ LAYOUT ============ */
.container{ width:100%; max-width:var(--container-w); margin-inline:auto; padding-inline:1.25rem; }
@media (min-width:640px){ .container{ padding-inline:2rem; } }

.section{ padding-block: var(--space-section); position:relative; }
.section-sm{ padding-block: var(--space-section-sm); }
.section-tight{ padding-block: clamp(2.5rem, 4vw, 3.5rem); }

.section-head{ max-width:640px; margin-bottom: clamp(2rem,4vw,3.25rem); }
.section-head.center{ margin-inline:auto; text-align:center; }

/* Articolo Elettro: sotto il testo "Competenza tecnica", colonna destra */
.press-aside{
  width:100%;
  min-width:0;
  margin-top: 1rem;
  display:grid;
  grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
  align-items:stretch;
  border-radius: var(--r-lg);
  overflow:hidden;
  background: #fff;
  border:1px solid rgba(7,19,36,.08);
  box-shadow: var(--shadow-soft);
}
.press-aside__cover{
  position:relative;
  display:block;
  height:100%;
  min-height: 220px;
  background: #0b1220;
  overflow:hidden;
}
.press-aside__cover img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position: top center;
  display:block;
  transition: transform .55s var(--ease-soft);
}
.press-aside__cover::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 70%, rgba(7,19,36,.28));
  pointer-events:none;
}
.press-aside:hover .press-aside__cover img{ transform: scale(1.04); }

.press-aside__meta{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:.55rem;
  padding: clamp(1.15rem, 2.2vw, 1.65rem) clamp(1.15rem, 2vw, 1.5rem);
  background: linear-gradient(165deg, #fbfcfe 0%, #f3f6fa 100%);
}
.press-aside__label{
  font-size:.72rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--gold-600); line-height:1.3;
}
.press-aside__title{
  margin:0;
  font-family:var(--font-head);
  font-size:clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight:700;
  line-height:1.28;
  color:var(--navy-900);
  max-width:18ch;
}
.press-aside__lead{
  margin:0 0 .35rem;
  font-size:.92rem;
  line-height:1.5;
  color:var(--muted);
  max-width:28ch;
}
.press-aside__meta .btn{ margin-top:.25rem; }

@media (max-width:559px){
  .press-aside{
    grid-template-columns:1fr;
    min-height:0;
  }
  .feature-text .feature-list + .press-aside{
    flex:none;
    min-height:0;
  }
  .press-aside__cover{
    aspect-ratio: 16 / 11;
    min-height:0;
    height:auto;
  }
  .press-aside__title,
  .press-aside__lead{ max-width:none; }
}
.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--font-head); font-weight:600; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase;
  color: var(--gold-600); margin-bottom:.9em;
}
.eyebrow::before{ content:''; width:22px; height:2px; background:var(--electric-soft); border-radius:2px; }
.section-head h2{ font-size:clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head p{ margin-top:.9em; color:var(--muted); font-size:1.05rem; line-height:1.65; }

.bg-navy{ background: linear-gradient(160deg, var(--navy-800), var(--navy-950) 75%); color:#fff; position:relative; overflow:hidden; }
.bg-navy .muted-on-navy{ color: rgba(255,255,255,.68); }
.bg-slate{ background: var(--slate-100); position:relative; overflow:hidden; }
.bg-white{ background: var(--white); position:relative; overflow:hidden; }

/* Texture decorativa "elettrica": bagliori morbidi + trama a punti stile circuito.
   Applicata via pseudo-elemento cosi' da variare il ritmo di tutte le sezioni
   senza dover toccare il markup di ogni pagina. Le classi .glow-* permettono di
   dare a ciascuna sezione un'identita' cromatica diversa (richiesta: "sfondi
   con effetti e colori diversi"). */
.bg-white, .bg-slate{
  --glow-1: rgba(227,165,61,.10);
  --glow-2: rgba(31,74,143,.09);
  --glow-3: rgba(227,165,61,.07);
}
.glow-blue{ --glow-1: rgba(43,140,255,.22); --glow-2: rgba(98,176,255,.16); --glow-3: rgba(47,116,200,.12); }
.glow-teal{ --glow-1: rgba(45,182,158,.13); --glow-2: rgba(94,211,182,.10); --glow-3: rgba(31,120,110,.08); }
.glow-purple{ --glow-1: rgba(139,92,199,.12); --glow-2: rgba(180,140,220,.10); --glow-3: rgba(94,60,150,.08); }
.glow-gold{ --glow-1: rgba(227,165,61,.14); --glow-2: rgba(240,194,116,.11); --glow-3: rgba(199,138,38,.08); }
.bg-white::before, .bg-slate::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 6% 0%, var(--glow-1), transparent 34%),
    radial-gradient(circle at 96% 18%, var(--glow-2), transparent 40%),
    radial-gradient(circle at 88% 96%, var(--glow-3), transparent 32%);
}
.bg-slate::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.6;
  background-image: radial-gradient(circle, rgba(13,43,92,.10) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 90%);
}
.bg-navy::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(227,165,61,.14), transparent 40%),
    radial-gradient(circle at 92% 85%, rgba(111,168,232,.14), transparent 45%);
}
.bg-navy::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.5;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 40%, transparent 90%);
}
.bg-white > *, .bg-slate > *, .bg-navy > *{ position:relative; z-index:1; }

/* ============ GRID HELPERS ============ */
.grid{ display:grid; gap:1.5rem; }
.grid-2{ grid-template-columns:1fr; }
.grid-3{ grid-template-columns:1fr; }
.grid-4{ grid-template-columns: repeat(2,1fr); }
@media (min-width:700px){
  .grid-2{ grid-template-columns:1fr 1fr; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:1000px){
  .grid-3{ grid-template-columns:repeat(3,1fr); }
  .grid-4{ grid-template-columns:repeat(4,1fr); }
}

.flow > * + *{ margin-top:1em; }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  font-family:var(--font-head); font-weight:600; font-size:.98rem;
  padding:.95em 1.7em; border-radius:var(--r-full); border:1px solid transparent;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), background-color .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn .icon{ width:1.05em; height:1.05em; }
.btn-primary{
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color:#211404; box-shadow: var(--shadow-gold);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 18px 36px -12px rgba(199,138,38,.55); }
.btn-ghost{
  background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.35);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
}
.btn-ghost:hover{ background: rgba(255,255,255,.18); transform:translateY(-2px); }
.btn-outline-dark{
  background: transparent; border-color: var(--navy-800); color: var(--navy-800);
}
.btn-outline-dark:hover{ background: var(--navy-800); color:#fff; transform:translateY(-2px); }
.btn-sm{ padding:.7em 1.35em; font-size:.9rem; }
.btn-block{ width:100%; }

/* ============ GLASS COMPONENTS ============ */
.glass{
  background: var(--glass-light-bg);
  border: 1px solid var(--glass-light-border);
  backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.glass-dark{
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
  border-radius: var(--r-lg);
  color:#fff;
}
.glass-card{
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .45s;
}
.glass-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }

/* ============ HEADER / NAV ============ */
/* Navbar "flottante": staccata dal bordo superiore, forma a pillola, sempre in vetro. */
.site-header{
  position:fixed; inset-inline:0; top:0; z-index:200;
  padding: 1.5rem 1.25rem 0;
  transition: padding .35s var(--ease-soft);
}
@media (min-width:640px){ .site-header{ padding-inline:2rem; } }
.site-header.is-scrolled{ padding-top:.9rem; }

.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  max-width: var(--container-w); margin-inline:auto;
  padding: 0.85rem 1.25rem 0.85rem 1.45rem;
  min-height: 5.5rem;
  background: rgba(34,96,168,.55);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--r-full);
  backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.55);
  transition: background-color .35s, box-shadow .35s, padding .35s var(--ease-soft);
  overflow:visible;
}
.site-header.is-scrolled .header-inner{
  background: rgba(34,96,168,.78);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.6);
  padding-block: .7rem;
  min-height: 5rem;
}

.brand{ display:flex; align-items:center; gap:.65rem; flex-shrink:0; line-height:0; overflow:visible; }
.brand-logo{
  height: clamp(46px, 5.5vw, 56px);
  width: auto;
  max-width: min(420px, 78vw);
  display:block;
  object-fit: contain;
  object-position: left center;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,.35))
    drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.brand-mark{ width:38px; height:auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand-word{ font-family:var(--font-head); font-weight:700; font-size:1.18rem; color:#fff; line-height:1.05; display:flex; flex-direction:column; }
.brand-word em{ font-style:normal; font-weight:500; font-size:.56rem; letter-spacing:.16em; color:var(--gold-400); text-transform:uppercase; }
.footer-brand__logo{
  height: auto;
  width: min(280px, 78%);
  max-width: 260px;
  margin-bottom: 1rem;
  display:block;
}

.main-nav ul{ display:flex; align-items:center; gap:1.5rem; }
.main-nav a{ display:inline-flex; align-items:center; gap:.45em; font-family:var(--font-head); font-weight:600; font-size:.95rem; color:rgba(255,255,255,.86); position:relative; padding-block:.3rem; white-space:nowrap; }
.main-nav a:not(.nav-cta)::after{ content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--gold-500); transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease-soft); }
.main-nav a:not(.nav-cta):hover, .main-nav a:not(.nav-cta).is-active{ color:#fff; }
.main-nav a:not(.nav-cta):hover::after, .main-nav a:not(.nav-cta).is-active::after{ transform:scaleX(1); }
.nav-link-icon{ width:16px; height:16px; color:var(--gold-400); flex-shrink:0; opacity:.85; transition:opacity .25s, color .25s; }
.main-nav a:hover .nav-link-icon, .main-nav a.is-active .nav-link-icon{ opacity:1; }
/* Il bottone CTA nel menu usa l'hover standard dei bottoni (lift + glow), non l'underline dei link */
.main-nav a.nav-cta:hover{ color:#211404; }
.nav-cta{ margin-left:.5rem; }
.nav-mobile-contacts{ display:none; }
[x-cloak]{ display:none !important; }

.header-actions{ display:flex; align-items:center; gap:.75rem; flex-shrink:0; }
.header-phone{ display:none; align-items:center; gap:.4em; color:#fff; font-family:var(--font-head); font-weight:600; font-size:.86rem; white-space:nowrap; flex-shrink:0; }
.header-phone .icon{ width:1.05em; height:1.05em; color:var(--gold-400); flex-shrink:0; }

.menu-toggle{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:var(--r-full); border:1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); color:#fff;
}
.menu-toggle .icon{ width:22px; height:22px; }

.nav-backdrop{ position:fixed; inset:0; background:rgba(6,14,28,.6); opacity:0; pointer-events:none; transition:opacity .3s; z-index:-1; }
.nav-backdrop.is-open{ opacity:1; pointer-events:auto; }

@media (max-width:1199px){
  .header-inner,
  .site-header.is-scrolled .header-inner{
    background: var(--vimar-electric);
  }
  .main-nav{
    position:fixed; top:0; right:0; height:100vh; width:min(86vw, 380px);
    background: var(--vimar-electric);
    backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
    border-left:1px solid rgba(255,255,255,.12);
    padding: 6.5rem 2rem 2.5rem;
    /* Extra offset: backdrop-filter sul pill rende fixed relativo alla navbar,
       quindi translateX(100%) lasciava una fascia blu a destra (tipo scrollbar). */
    transform: translate3d(calc(100% + 3rem), 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform .45s var(--ease-soft), visibility 0s linear .45s;
    overflow-y:auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .main-nav::-webkit-scrollbar{ display:none; width:0; height:0; }
  .main-nav.is-open{
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .45s var(--ease-soft), visibility 0s linear 0s;
    box-shadow:-24px 0 60px rgba(0,0,0,.35);
  }
  .main-nav{ z-index:1; }
  .header-actions{ position:relative; z-index:5; }
  .menu-toggle{ position:relative; z-index:6; }
  .main-nav ul{ flex-direction:column; align-items:stretch; gap:0; width:100%; }
  .main-nav ul li{ width:100%; }
  .main-nav ul a{
    display:flex; align-items:center; justify-content:flex-start; gap:.75rem;
    padding:.9rem 0; font-size:1.15rem;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .main-nav ul a .nav-link-icon{
    display:block; width:20px; height:20px; flex:0 0 20px; opacity:1;
  }
  .main-nav ul a span{ min-width:0; }
  .main-nav ul a::after{ display:none; }
  .nav-cta{ margin:1.6rem 0 0; width:100%; justify-content:center; }
  .nav-mobile-contacts{ display:flex; flex-direction:column; gap:.8rem; margin-top:1.6rem; padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.12); }
  .nav-mobile-contacts a{ display:flex; align-items:center; gap:.6em; color:rgba(255,255,255,.8); font-size:.92rem; }
}
@media (min-width:1200px){
  .main-nav{
    display:flex; align-items:center; gap:.7rem;
    flex:1 1 auto; min-width:0; justify-content:center;
  }
  .main-nav ul{ gap:.55rem; }
  .main-nav a{ font-size:.8rem; gap:.32em; }
  .nav-link-icon{
    display:inline-block;
    width:14px; height:14px;
    flex-shrink:0;
  }
  .nav-cta{
    margin-left:.15rem;
    padding-inline: .9rem;
    font-size:.78rem;
    flex-shrink:0;
    gap:.4em;
  }
  .nav-cta .icon{ width:14px; height:14px; }
  .menu-toggle{ display:none; }
  .nav-backdrop{ display:none; }
}
/* Telefono solo quando c'è spazio con icone + CTA */
@media (min-width:1580px){
  .header-phone{ display:inline-flex; }
}

/* ============ HERO ============ */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:center;
  padding-top: 6.5rem; padding-bottom: 3.5rem;
  overflow:hidden; background: var(--navy-950); color:#fff;
}
@media (max-width:1199px){
  .hero{ padding-bottom: 6.5rem; }
}
.hero-media{ position:absolute; inset:0; z-index:0; background:var(--navy-950); }
.hero-media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero-media video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition: opacity 1.1s ease;
}
.hero-media video.is-ready{ opacity:1; }
@media (max-width:760px), (prefers-reduced-motion: reduce){
  .hero-media video{ display:none; }
}
@keyframes kenburns{ from{ transform:scale(1.02) translate3d(0,0,0);} to{ transform:scale(1.14) translate3d(-1%,-1%,0);} }
.hero-scrim{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 15%, rgba(227,165,61,.16), transparent 55%),
    linear-gradient(200deg, rgba(7,19,36,.55) 10%, rgba(7,19,36,.86) 55%, rgba(7,19,36,.97) 100%);
}
.hero .container{ position:relative; z-index:2; }

/* ============ SPOTLIGHT: effetto "faro" (hero + card CTA) ============
   Due fasci di luce sfocati (SVG + Gaussian blur) che si accendono con un
   fade-in/scale all'attivazione, incrociandosi come la luce di un faro.
   Tecnica adattata dal componente open-source "Spotlight" di Aceternity UI. */
.spotlight-wrap{ position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; }
.spotlight-beam{
  position:absolute; top:-25%; left:-15%; width:145%; height:165%;
  opacity:0; mix-blend-mode:screen;
}
.spotlight-beam-2{ left:auto; right:-15%; }
.spotlight-wrap.is-active .spotlight-beam-1{
  animation: spotlight-in-1 2.2s cubic-bezier(.16,1,.3,1) .2s forwards, spotlight-breathe-1 7s ease-in-out 2.4s infinite;
}
.spotlight-wrap.is-active .spotlight-beam-2{
  animation: spotlight-in-2 2.2s cubic-bezier(.16,1,.3,1) .55s forwards, spotlight-breathe-2 7s ease-in-out 2.75s infinite;
}
@keyframes spotlight-in-1{
  0%{ opacity:0; transform:translate(-8%,-10%) scale(.6); }
  100%{ opacity:1; transform:translate(0,0) scale(1); }
}
@keyframes spotlight-in-2{
  0%{ opacity:0; transform:scaleX(-1) translate(-8%,-10%) scale(.6); }
  100%{ opacity:1; transform:scaleX(-1) translate(0,0) scale(1); }
}
/* leggero "respiro" continuo una volta accesi, come una luce di faro che pulsa */
@keyframes spotlight-breathe-1{
  0%,100%{ opacity:1; transform:translate(0,0) scale(1); }
  50%{ opacity:.78; transform:translate(1.5%,1%) scale(1.05); }
}
@keyframes spotlight-breathe-2{
  0%,100%{ opacity:1; transform:scaleX(-1) translate(0,0) scale(1); }
  50%{ opacity:.78; transform:scaleX(-1) translate(1.5%,1%) scale(1.05); }
}
@media (max-width:640px){ .spotlight-beam{ width:220%; left:-55%; } .spotlight-beam-2{ left:auto; right:-55%; } }
@media (prefers-reduced-motion: reduce){
  .spotlight-wrap.is-active .spotlight-beam{ animation:none; opacity:1; transform:none; }
  .spotlight-wrap.is-active .spotlight-beam-2{ transform:scaleX(-1); }
}

/* Hero: card unica centrata */
.hero-card-wrap{ display:flex; justify-content:center; }
.hero-card{
  max-width:800px; width:100%; padding: clamp(2.2rem, 4vw, 3.6rem);
  text-align:center; display:flex; flex-direction:column; align-items:center;
}
.hero-card h1{ font-size:clamp(2.1rem, 4.6vw, 3.4rem); }
.hero-card .lede{ margin-top:1.1rem; font-size:clamp(1.02rem, 1.4vw, 1.2rem); color:rgba(255,255,255,.82); line-height:1.65; max-width:52ch; }
.eyebrow.center{ justify-content:center; }
.hero-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:.9rem; margin-top:1.9rem; }

.trust-pills{ display:flex; flex-wrap:wrap; justify-content:center; gap:.7rem; margin-top:2.4rem; }
.trust-pill{
  display:inline-flex; align-items:center; gap:.55em; font-size:.85rem; font-weight:600;
  padding:.55em 1.05em; border-radius:var(--r-full);
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); color:rgba(255,255,255,.88);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
}
.trust-pill .icon{ width:1em; height:1em; color:var(--gold-400); }

.scroll-cue{
  position:absolute; left:50%; bottom:1.8rem; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.4rem; color:rgba(255,255,255,.6);
  font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; z-index:2;
}
.scroll-cue .icon{ width:18px; height:18px; animation: bob 2s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(6px);} }

/* Page header (sottopagine, hero più basso) */
.page-hero{
  position:relative; min-height:52vh; display:flex; align-items:flex-end;
  padding-top:8.5rem; padding-bottom:3.5rem; overflow:hidden; color:#fff; background:var(--navy-950);
}
.page-hero .hero-media img{ animation-duration:30s; }
.page-hero h1{ font-size:clamp(2rem, 4.6vw, 3.1rem); }
.breadcrumbs{ display:flex; align-items:center; gap:.5em; font-size:.85rem; color:rgba(255,255,255,.65); margin-bottom:1rem; }
.breadcrumbs .icon{ width:14px; height:14px; }
.page-hero .lede{ margin-top:.9rem; color:rgba(255,255,255,.8); max-width:60ch; font-size:1.05rem; line-height:1.6; }

/* ============ SEZIONE FOTO IMMERSIVA (stile hero, per spezzare sezioni piatte) ============ */
.section-photo{
  position:relative; overflow:hidden; color:#fff;
  min-height:66vh; display:flex; align-items:center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section-photo .hero-media img{ animation-duration:28s; }
.section-photo .container{ position:relative; z-index:2; }
.section-photo-card{ max-width:600px; padding: clamp(1.8rem, 3vw, 2.6rem); }
.section-photo-card h2{ font-size:clamp(1.75rem, 3.2vw, 2.35rem); }
.section-photo-card .h2-sub{
  margin-top:.4rem;
  font-family:var(--font-head);
  font-size:clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight:500;
  letter-spacing:-.01em;
  line-height:1.3;
  color:rgba(255,255,255,.78);
}
.section-photo-card .h2-sub + .lede{ margin-top:1rem; }
.section-photo-card .feature-list{ margin-top:1.3rem; }
.section-photo-card .btn{ margin-top:1.7rem; }
.section-photo-card.align-right{ margin-left:auto; }

.scrim-purple{
  background:
    radial-gradient(ellipse 65% 55% at 82% 15%, rgba(139,92,199,.30), transparent 55%),
    linear-gradient(200deg, rgba(7,19,36,.6) 10%, rgba(7,19,36,.9) 58%, rgba(7,19,36,.97) 100%);
}
.scrim-gold{
  background: linear-gradient(200deg, rgba(7,19,36,.6) 10%, rgba(7,19,36,.9) 58%, rgba(7,19,36,.97) 100%);
  -webkit-mask-image: radial-gradient(circle at 34% 21%, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 80px, rgba(0,0,0,.5) 200px, rgba(0,0,0,1) 400px);
  mask-image: radial-gradient(circle at 34% 21%, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 80px, rgba(0,0,0,.5) 200px, rgba(0,0,0,1) 400px);
}
.scrim-teal{
  background:
    radial-gradient(ellipse 65% 55% at 82% 85%, rgba(45,182,158,.26), transparent 55%),
    linear-gradient(200deg, rgba(7,19,36,.6) 10%, rgba(7,19,36,.9) 58%, rgba(7,19,36,.97) 100%);
}

/* Bagliore che pulsa sopra il lampione nella foto della sezione Illuminazione
   (solo lato sinistro, dove non c'è la card di testo): si dilata e schiarisce
   come se stesse davvero illuminando quel punto della scena, "bucando" l'overlay. */
.illum-glow{
  position:absolute; z-index:1; pointer-events:none;
  left:34%; top:21%; width:clamp(520px, 52vw, 1000px); height:clamp(520px, 52vw, 1000px);
  transform:translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,244,222,.75) 0%, rgba(250,220,165,.5) 12%, rgba(240,194,116,.32) 26%, rgba(227,165,61,.2) 42%, rgba(227,165,61,.09) 62%, transparent 88%);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: illum-pulse 5s ease-in-out infinite;
}
@keyframes illum-pulse{
  0%, 100%{ opacity:.7; transform:translate(-50%, -50%) scale(.94); }
  50%{ opacity:1; transform:translate(-50%, -50%) scale(1.08); }
}
@media (max-width:900px){ .illum-glow{ display:none; } }
@media (prefers-reduced-motion: reduce){ .illum-glow{ animation:none; opacity:.85; } }

/* ============ MARCHI / BRAND SHOWCASE ============ */
.brands-showcase{
  position:relative;
  overflow-x:clip;
}
.brands-showcase .section-head{ max-width:720px; }

.brands-featured__card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.7rem;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(43,140,255,.32), transparent 55%),
    linear-gradient(160deg, #1a5cb8 0%, #2b7ae0 52%, #184f9a 100%);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 50px -28px rgba(34,96,168,.45);
  overflow:hidden;
  min-height: 200px;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.brands-featured__card--solo{
  max-width: 420px;
  margin: 0 auto 1.75rem;
}
.brands-featured__card:hover{
  transform: translateY(-4px);
  box-shadow: 0 34px 60px -26px rgba(18,48,86,.5);
}
.brands-featured__card--partner{
  background: var(--vimar-electric);
}
.brands-featured__tag{
  display:inline-flex;
  font-size:.68rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase;
  color: #dcebff;
  background: rgba(31,124,255,.18);
  border:1px solid rgba(77,154,255,.35);
  padding:.38em .75em;
  border-radius:999px;
}
.brands-featured__card--partner .brands-featured__tag{
  color: var(--gold-400, #e3a53d);
  background: rgba(227,165,61,.12);
  border-color: rgba(227,165,61,.28);
}
.brands-featured__tag--light{
  color: var(--navy-700);
  background: rgba(31,124,255,.1);
  border-color: rgba(31,124,255,.22);
}
.brands-featured__logo{
  display:flex; align-items:center; justify-content:center;
  margin-top:.35rem;
  margin-inline:auto;
  padding:.85rem 1.1rem;
  min-height: 72px;
  width:100%;
  max-width: 260px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 0 0 1px rgba(7,19,36,.06);
  text-decoration:none;
  color:inherit;
  transition: transform .25s var(--ease-soft);
}
a.brands-featured__logo:hover,
a.brands-featured__logo:focus-visible{
  transform: scale(1.03);
}
a.brands-featured__logo:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.brands-featured__logo img{
  height: clamp(34px, 4vw, 44px);
  width:auto; max-width:200px;
  object-fit:contain;
  filter:none;
}
.brands-featured__card h3{
  margin:.15rem 0 0;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  color:#fff;
}
.brands-featured__card p{
  margin:0 auto;
  color: rgba(255,255,255,.78);
  font-size:.95rem;
  line-height:1.55;
  max-width:34ch;
}

.brands-ribbon{
  margin-bottom: 1.25rem;
  padding: 1.15rem 0 1.25rem;
  border-radius: var(--r-lg);
  background: #fff;
  border:1px solid rgba(18,48,86,.08);
  box-shadow: 0 16px 36px -28px rgba(18,48,86,.4);
  overflow:hidden;
}
.brands-ribbon__head{
  padding: 0 1.25rem .95rem;
  text-align:center;
}
.brands-ribbon__head h3{
  margin: .55rem 0 .35rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--navy-800);
}
.brands-ribbon__head p{
  margin:0 auto;
  max-width: 46ch;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}
.brands-ribbon__viewport{
  position:relative;
  overflow:hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-ribbon__track{
  display:flex;
  align-items:center;
  gap: .85rem;
  width:max-content;
  padding: .15rem 1rem 0;
  animation: brands-marquee 60s linear infinite;
}
.brands-ribbon:hover .brands-ribbon__track{
  animation-play-state: paused;
}
.brands-ribbon__item{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 138px;
  height: 74px;
  padding: .7rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f3f7fc);
  border:1px solid rgba(18,48,86,.08);
  box-shadow: 0 10px 20px -18px rgba(18,48,86,.45);
  text-decoration:none;
  color:inherit;
  transition: transform .25s var(--ease-soft), border-color .25s var(--ease-soft);
}
a.brands-ribbon__item{
  cursor:pointer;
}
a.brands-ribbon__item:hover,
a.brands-ribbon__item:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(31,124,255,.38);
}
a.brands-ribbon__item:focus-visible{
  outline: 2px solid var(--navy-700, #123056);
  outline-offset: 2px;
}
.brands-ribbon__item img{
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
@keyframes brands-marquee{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .brands-ribbon__track{ animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .brands-ribbon__viewport{ mask-image: none; -webkit-mask-image: none; overflow: visible; }
}

/* brands-ribbon-v3 1786712000 */

.brands-categories{
  display:grid;
  grid-template-columns:1fr;
  gap: .9rem;
}
@media (min-width:800px){
  .brands-categories{
    grid-template-columns:1fr 1fr;
    gap:1rem;
  }
  .brands-cat--wide{ grid-column:1 / -1; }
}
.brands-cat{
  padding: .95rem 1rem 1.05rem;
  border-radius: calc(var(--r-lg) - 4px);
  background: #fff;
  border:1px solid rgba(7,19,36,.08);
  box-shadow: 0 14px 30px -26px rgba(7,19,36,.4);
  overflow:hidden;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.brands-cat__head{
  display:flex;
  align-items:center;
  gap:.7rem;
  margin-bottom:0;
}
.brands-cat__icon{
  flex-shrink:0;
  width:2.15rem; height:2.15rem;
  border-radius:12px;
  display:grid; place-items:center;
  background: rgba(21,56,112,.08);
  color: var(--navy-800, #153870);
}
.brands-cat__icon .icon{ width:1.05rem; height:1.05rem; }
.brands-cat__head h3{
  margin:0;
  font-size: .98rem;
  color: var(--navy-900);
  line-height:1.25;
}
.brands-cat__head p{
  margin:.15rem 0 0;
  font-size:.8rem;
  color: var(--muted);
  line-height:1.35;
}

.brands-rail{
  position:relative;
  min-width:0;
}
.brands-rail__track{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap:.5rem;
}
.brands-cat--wide .brands-rail__track{
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}
@media (min-width:1100px){
  .brands-rail__track{
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .brands-cat--wide .brands-rail__track{
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.brand-tile{
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height: 68px;
  padding: .55rem .7rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f4f7fb);
  border:1px solid rgba(7,19,36,.08);
  box-shadow: 0 8px 18px -16px rgba(7,19,36,.4);
  transition: transform .3s var(--ease-soft), border-color .3s, box-shadow .3s;
  box-sizing:border-box;
}
.brand-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(227,165,61,.4);
  box-shadow: 0 14px 26px -16px rgba(7,19,36,.35);
}
.brand-tile img{
  max-width:100%;
  max-height: 30px;
  width:auto; height:auto;
  object-fit:contain;
  filter: grayscale(1) contrast(1.05);
  opacity:.92;
  transition: filter .3s, opacity .3s;
}
.brand-tile:hover img{
  filter:none;
  opacity:1;
}
.brand-tile--mark img{ max-height: 34px; }
.brand-tile--wide img{ max-height: 24px; max-width: 118px; }
.brand-tile--featured{
  border-color: rgba(227,165,61,.4);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(227,165,61,.12), transparent 50%),
    linear-gradient(180deg, #fff, #f7f4ec);
}
.brand-tile--featured img{
  filter:none;
  opacity:1;
  max-height: 32px;
}

.brand-wordmark{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.2rem;
  line-height:1.15;
  max-width:100%;
}
.brand-wordmark strong{
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight:700;
  letter-spacing:.02em;
  color: var(--navy-900);
  text-transform:uppercase;
  word-break: break-word;
}
.brand-wordmark small{
  font-size:.62rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color: var(--muted);
}

/* Legacy strip (se riusata altrove) */
.brands-strip{ padding-block: 2.4rem; }
.brands-track{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap: clamp(1.8rem, 4.5vw, 3.6rem);
  padding:.35rem 0;
}
.brands-track img{
  height:36px; width:auto; max-width:150px; object-fit:contain;
  opacity:.78; filter:grayscale(1) contrast(1.08);
  transition: opacity .3s, filter .3s, transform .3s;
}
.brands-track img.brand-logo--mark{ height:42px; }
.brands-track img.brand-logo--wide{ height:28px; max-width:170px; }
.brands-track img:hover{ opacity:1; filter:none; transform:translateY(-1px); }

/* ============ SERVIZI GRID ============ */
.servizi-grid{ }
.servizio-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex; flex-direction:column; gap:.9rem; height:100%;
}
.servizio-card--ghost{
  min-height: 240px;
}
.servizio-card__body{
  position:relative;
  z-index:2;
  display:flex; flex-direction:column; gap:.75rem;
  height:100%;
  max-width: 78%;
}
.servizio-index{
  font-family:var(--font-head);
  font-size:.72rem; font-weight:700; letter-spacing:.14em;
  color:var(--gold-600);
  opacity:.85;
}

/* Ghost icon (stile Genco): angolo destro, ruotata, movimento all'hover */
.servizio-ghost{
  position:absolute;
  z-index:1;
  right: -12%;
  top: 42%;
  width: clamp(140px, 58%, 210px);
  height: clamp(140px, 58%, 210px);
  transform: translateY(-50%) rotate(-12deg);
  pointer-events:none;
  color: var(--navy-700);
  opacity: .42;
  transition:
    opacity .45s var(--ease-soft),
    transform .55s var(--ease-soft),
    color .45s var(--ease-soft),
    filter .45s var(--ease-soft);
  -webkit-mask-image:
    radial-gradient(ellipse 78% 72% at 78% 36%, #000 0%, #000 38%, transparent 78%),
    linear-gradient(215deg, #000 28%, rgba(0,0,0,.7) 52%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 78% 72% at 78% 36%, #000 0%, #000 38%, transparent 78%),
    linear-gradient(215deg, #000 28%, rgba(0,0,0,.7) 52%, transparent 88%);
  mask-composite: intersect;
}
.servizio-ghost .icon{
  width:100%; height:100%;
  stroke-width: 1.35;
  filter: drop-shadow(0 8px 18px rgba(13,43,92,.16));
}
.servizio-card--ghost:hover .servizio-ghost{
  opacity: .55;
  color: var(--gold-600);
  transform: translateY(-52%) translateX(-4%) rotate(0deg) scale(1.06);
  filter: saturate(1.05);
}
.servizio-card--ghost::before{
  content:'';
  position:absolute; z-index:0;
  inset:auto -20% -30% auto;
  width:55%; height:55%;
  border-radius:50%;
  background: radial-gradient(circle, rgba(227,165,61,.12), transparent 68%);
  pointer-events:none;
  opacity:.7;
  transition: opacity .45s var(--ease-soft), transform .55s var(--ease-soft);
}
.servizio-card--ghost:hover::before{
  opacity:1;
  transform: scale(1.15) translate(-6%, -4%);
}

.servizio-icon{
  width:52px; height:52px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color:var(--gold-400); flex-shrink:0;
}
.servizio-icon .icon{ width:26px; height:26px; }
.servizio-card h3{ font-size:1.12rem; position:relative; }
.servizio-card p{ color:var(--muted); font-size:.95rem; line-height:1.6; }
.servizio-card .card-link{ margin-top:auto; display:inline-flex; align-items:center; gap:.4em; font-family:var(--font-head); font-weight:600; font-size:.88rem; color:var(--navy-700); }
.servizio-card .card-link .icon{ width:16px; height:16px; transition:transform .3s var(--ease-soft); }
.servizio-card:hover .card-link .icon{ transform:translateX(4px); }

@media (max-width:700px){
  .servizio-card__body{ max-width: 82%; }
  .servizio-ghost{
    width: clamp(120px, 52%, 170px);
    height: clamp(120px, 52%, 170px);
    right: -14%;
    opacity: .36;
  }
}
@media (prefers-reduced-motion: reduce){
  .servizio-ghost,
  .servizio-card--ghost::before{ transition:none; }
}

/* ============ FEATURE SPLIT ============ */
.feature-split{
  display:grid;
  row-gap: clamp(2rem, 4vw, 2.75rem);
  column-gap: clamp(3.25rem, 7vw, 6.5rem);
  align-items:stretch;
}
@media (min-width:860px){
  .feature-split{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(4.5rem, 8.5vw, 8rem);
    row-gap: clamp(2.5rem, 4vw, 3rem);
  }
  .feature-split.reverse .feature-media{ order:2; }
}
.feature-media{ position:relative; border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3.2; }
.feature-media img{ width:100%; height:100%; object-fit:cover; }
.feature-badge{
  position:absolute; left:1.2rem; bottom:1.2rem; padding:.65em 1.1em; border-radius:var(--r-full);
  font-size:.82rem; font-weight:700; font-family:var(--font-head);
}
.feature-text{
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
}
.feature-text h2{ font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:1rem; }
.feature-text p{ color:var(--muted); font-size:1.03rem; line-height:1.7; }
.feature-list{ margin-top:1.4rem; display:flex; flex-direction:column; gap:.7rem; }
.feature-list li{ display:flex; align-items:flex-start; gap:.7em; font-size:.98rem; }
.feature-list .icon{ width:20px; height:20px; color:var(--success); flex-shrink:0; margin-top:.1em; }
.feature-text .btn{ margin-top:1.7rem; }
.feature-text .feature-list + .press-aside{
  margin-top:1rem;
  flex:1 1 auto;
  min-height: 240px;
}

/* ============ STATS / BADGES (navy) ============ */
.stats-row{ display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; }
@media (min-width:760px){ .stats-row{ grid-template-columns:repeat(4,1fr); } }
.stat-card{ padding: 1.6rem 1.2rem; text-align:center; }
.stat-card .icon{ width:28px; height:28px; color:var(--gold-400); margin-inline:auto; }
.stat-card strong{ display:block; font-family:var(--font-head); font-size:1.5rem; margin-top:.6rem; }
.stat-card span{ display:block; font-size:.85rem; color:rgba(255,255,255,.68); margin-top:.25rem; }

/* ============ GALLERY ============ */
.gallery-filters{ display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom:2.2rem; }
.gallery-filters button{
  padding:.6em 1.3em; border-radius:var(--r-full); border:1px solid var(--slate-150); background:#fff;
  font-family:var(--font-head); font-weight:600; font-size:.88rem; color:var(--slate-700);
  transition: all .3s var(--ease-soft);
}
.gallery-filters button.is-active, .gallery-filters button:hover{ background:var(--navy-800); border-color:var(--navy-800); color:#fff; }
.gallery-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap: .9rem; }
@media (min-width:700px){ .gallery-grid{ grid-template-columns:repeat(3,1fr); gap:1.1rem; } }
.gallery-item{
  position:relative; border-radius:var(--r-md); overflow:hidden; aspect-ratio:1/1; box-shadow: var(--shadow-sm);
  display:block; width:100%; padding:0; border:0; background:transparent; cursor:pointer; text-align:left;
  font:inherit; color:inherit;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover; object-position:center center;
  transition: transform .6s var(--ease-soft);
}
/* Scale contenuto: evita di tagliare dispositivi elettrici ai bordi */
.gallery-item:hover img{ transform:scale(1.04); }
.gallery-item::after{
  content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(7,19,36,.65), transparent 55%);
  opacity:0; transition:opacity .35s; pointer-events:none;
}
.gallery-item:hover::after{ opacity:1; }
.gallery-cap{
  position:absolute; left:.9rem; bottom:.8rem; right:.9rem; color:#fff; font-size:.82rem; font-weight:600;
  opacity:0; transform:translateY(8px); transition: all .35s var(--ease-soft); z-index:1; pointer-events:none;
}
.gallery-item:hover .gallery-cap{ opacity:1; transform:translateY(0); }

/* ============ PROJECT MODAL (stile scheda Genco) ============ */
.project-modal{
  border:0; padding:0;
  max-width:min(980px, calc(100vw - 1.25rem));
  width:100%;
  max-height:min(92vh, 680px);
  border-radius:var(--r-lg);
  background:#fff;
  box-shadow: 0 40px 80px -20px rgba(7,19,36,.45);
  overflow:hidden;
}
.project-modal::backdrop{
  background: rgba(7,19,36,.62);
  backdrop-filter: blur(6px);
}
.project-modal__inner{
  display:grid;
  grid-template-columns:1fr;
  position:relative;
  max-height:min(92vh, 680px);
}
@media (min-width:800px){
  .project-modal__inner{
    grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
    min-height:min(72vh, 560px);
  }
}
.project-modal__close{
  position:absolute; top:.85rem; right:.85rem; z-index:5;
  width:42px; height:42px; border-radius:50%;
  border:0; background:rgba(7,19,36,.72); color:#fff;
  display:grid; place-items:center;
  cursor:pointer;
  transition: background .2s, transform .2s;
}
.project-modal__close:hover{ background:var(--gold-600); transform:scale(1.05); }
.project-modal__close .icon{ width:18px; height:18px; }
.project-modal__media{
  position:relative;
  aspect-ratio:4 / 3;
  width:100%;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(21,56,112,.35), rgba(7,19,36,.9)), var(--navy-950);
}
@media (min-width:800px){
  .project-modal__media{
    aspect-ratio:auto;
    height:100%;
    min-height:min(72vh, 560px);
    max-height:min(92vh, 680px);
  }
}
.project-modal__media > img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:center;
  display:block;
}
.project-modal__content{
  padding:1.35rem 1.35rem 1.45rem;
  display:flex; flex-direction:column; gap:1.15rem;
  min-height:0;
  max-height:min(50vh, 420px);
  overflow:hidden;
}
@media (min-width:800px){
  .project-modal__content{
    max-height:min(92vh, 680px);
    padding:1.6rem 1.55rem 1.5rem;
    gap:1.35rem;
  }
}
.project-modal__top{
  display:flex; flex-direction:column; gap:.75rem;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}
.project-modal__badge{
  display:inline-flex; align-items:center; gap:.45rem;
  align-self:flex-start;
  font-size:.72rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--gold-600);
  background: rgba(227,165,61,.12);
  border:1px solid rgba(227,165,61,.28);
  padding:.4em .75em; border-radius:999px;
}
.project-modal__badge-icon{
  display:inline-grid; place-items:center;
  width:1.1rem; height:1.1rem; color:var(--gold-600);
}
.project-modal__badge-icon .icon{ width:14px; height:14px; }
.project-modal__content h3{
  font-size:clamp(1.25rem, 2.2vw, 1.65rem);
  color:var(--navy-900); line-height:1.25; margin:0;
}
.project-modal__content p{
  color:var(--slate-700, #475569); line-height:1.65; margin:0;
  font-size:.95rem;
}
.project-modal__footer{ margin-top:auto; }
.project-modal__cta{
  width:100%;
  justify-content:center;
  gap:.55em;
}
.project-modal__cta .icon{ width:16px; height:16px; }

/* ============ TIMELINE (storia aziendale) ============
   Effetto "scintilla elettrica": una luce percorre la linea da sinistra a
   destra quando la sezione entra in viewport, e ogni tappa si accende in
   sincronia con il suo passaggio — un richiamo diretto al mestiere. */
.timeline{ position:relative; display:grid; gap:2.6rem 1.4rem; padding-top:.5rem; grid-template-columns:1fr; }
@media (min-width:640px){ .timeline{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .timeline{ grid-template-columns:repeat(5,1fr); gap:1.2rem; } }

.timeline::before, .timeline::after{ display:none; }
@media (min-width:980px){
  /* Binario della linea (statico, sempre visibile a bassa opacità) */
  .timeline::before{
    content:''; display:block; position:absolute; top:26px; left:6%; right:6%; height:2px;
    background: rgba(227,165,61,.18);
  }
  /* Linea dorata che si "carica" da sinistra a destra */
  .timeline-track{
    position:absolute; top:26px; left:6%; width:88%; height:2px; z-index:0;
    transform-origin:left center; transform:scaleX(0);
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
    transition: transform 1.7s cubic-bezier(.65,0,.35,1);
  }
  .timeline.is-visible .timeline-track{ transform:scaleX(1); }
  /* Scintilla luminosa che viaggia in punta alla linea */
  .timeline-spark{
    position:absolute; top:26px; left:6%; width:14px; height:14px; z-index:1;
    margin-top:-7px; margin-left:-7px; border-radius:50%; opacity:0;
    background: radial-gradient(circle, #fff 0%, var(--gold-400) 45%, transparent 75%);
    box-shadow: 0 0 10px 3px rgba(240,194,116,.85), 0 0 22px 8px rgba(227,165,61,.45);
  }
  .timeline.is-visible .timeline-spark{ animation: spark-travel 1.7s cubic-bezier(.65,0,.35,1) forwards; }
}
@keyframes spark-travel{
  0%{ left:6%; opacity:1; }
  6%{ opacity:1; }
  94%{ opacity:1; }
  100%{ left:94%; opacity:0; }
}

.timeline-step{
  --tl-delay: .05s;
  position:relative; z-index:2; opacity:0; transform:translateY(22px);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
  transition-delay: var(--tl-delay);
}
.timeline.is-visible .timeline-step{ opacity:1; transform:translateY(0); }
.timeline-step:nth-child(1){ --tl-delay:.05s; }
.timeline-step:nth-child(2){ --tl-delay:.38s; }
.timeline-step:nth-child(3){ --tl-delay:.71s; }
.timeline-step:nth-child(4){ --tl-delay:1.04s; }
.timeline-step:nth-child(5){ --tl-delay:1.37s; }

.timeline-dot{
  position:relative; z-index:2; width:52px; height:52px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem;
  background: var(--slate-150); color:var(--slate-500);
  box-shadow: none;
  transform:scale(.7);
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), background-color .55s, color .55s, box-shadow .55s;
  transition-delay: var(--tl-delay);
}
.timeline.is-visible .timeline-step .timeline-dot{
  transform:scale(1);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color:#211404;
  box-shadow: 0 0 0 6px rgba(227,165,61,.14), var(--shadow-gold);
}
.timeline-dot .icon{ width:23px; height:23px; }
.timeline-dot::after{
  content:''; position:absolute; inset:-7px; border-radius:50%; border:1.5px solid rgba(227,165,61,.45);
  opacity:0;
}
.timeline.is-visible .timeline-dot::after{
  opacity:1; animation: pulse-ring 2.8s ease-out infinite; animation-delay: var(--tl-delay);
}
.timeline-step:hover .timeline-dot{ transform:scale(1.1) rotate(-6deg) !important; }
@keyframes pulse-ring{ 0%{ transform:scale(.85); opacity:.9; } 100%{ transform:scale(1.5); opacity:0; } }
@media (prefers-reduced-motion: reduce){ .timeline-dot::after{ animation:none; } }

.timeline-year{
  display:block; font-family:var(--font-head); font-weight:700; font-size:.8rem;
  letter-spacing:.08em; text-transform:uppercase; color:var(--gold-600); margin-bottom:.35rem;
}
.timeline-step h3{ font-size:1.05rem; margin-bottom:.4rem; }
.timeline-step p{ color:var(--muted); font-size:.92rem; line-height:1.6; }

/* ============ CTA: sezione LED (sfondo) + card sede ============
   Luce LED realistica (cove/bloom) sullo sfondo sezione. Card con foto sede.
   Accensione: .cta-led-section.is-lit */
.cta-led-section{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#071526;
  padding-block: clamp(3.6rem, 7.5vw, 6rem);
}
.cta-led-section__content{
  position:relative;
  z-index:4;
}
.cta-led-section > .cta-led{ z-index:0; }

/* Card Parliamone — foto sede (come prima) */
.cta-banner{
  position:relative; border-radius: var(--r-lg); overflow:hidden;
  padding: clamp(2.4rem,5vw,4rem);
  background: var(--navy-900);
  text-align:center; color:#fff;
  isolation:isolate;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow: var(--shadow-soft), 0 24px 60px rgba(2,8,20,.35);
}
.cta-banner__bg{
  position:absolute; inset:0; z-index:0;
}
.cta-banner__bg img{
  width:100%; height:100%; object-fit:cover;
  object-position: center 45%;
  transform: scale(1.02);
}
.cta-banner__overlay{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(135deg, rgba(7,19,36,.58) 0%, rgba(13,43,92,.48) 55%, rgba(7,19,36,.62) 100%),
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(2,8,20,.15), rgba(2,8,20,.45));
}
.cta-banner > *:not(.cta-banner__bg):not(.cta-banner__overlay){ position:relative; z-index:2; }
.cta-banner .eyebrow{
  color: #f0c274;
  text-shadow: 0 1px 12px rgba(2,8,20,.45);
}
.cta-banner .eyebrow::before{ background: #f0c274; }
.cta-banner h2{
  font-size:clamp(1.7rem,3.4vw,2.5rem); max-width:26ch; margin-inline:auto;
  text-shadow: 0 2px 18px rgba(2,8,20,.5);
}
.cta-banner p{
  margin-top:1rem; color:rgba(255,255,255,.88); max-width:52ch; margin-inline:auto;
  text-shadow: 0 1px 12px rgba(2,8,20,.4);
}
.cta-banner .hero-actions{ justify-content:center; margin-top:2rem; }
.cta-banner .btn-ghost{
  border-color: rgba(255,255,255,.55);
  color:#fff;
  background: rgba(7,19,36,.35);
  backdrop-filter: blur(6px);
}
.cta-banner .btn-ghost:hover{
  background: rgba(7,19,36,.55);
  border-color:#fff;
}
.cta-banner .btn-primary{
  box-shadow: 0 10px 28px rgba(2,8,20,.35);
}

/* --- Illuminazione LED realistica (cove + bloom, no diodi) --- */
.cta-led{
  position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none;
}
.cta-led__room{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 110% 70% at 50% -8%, #1a4a8c 0%, transparent 58%),
    radial-gradient(ellipse 80% 55% at 50% 110%, #3a2a12 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at -5% 50%, #0d2b5c 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 105% 50%, #2a2210 0%, transparent 60%),
    linear-gradient(180deg, #071526 0%, #0a1a30 45%, #081422 100%);
}

/* Fixture = sorgente LED a tutta larghezza / tutta altezza */
.cta-led__fixture{
  position:absolute;
  opacity:0;
  transition: opacity 1.1s ease;
}
.cta-led-section.is-lit .cta-led__fixture{ opacity:1; }

.cta-led__fixture--top{
  left:0; right:0; top:0; height:48%;
}
.cta-led__fixture--bottom{
  left:0; right:0; bottom:0; height:42%;
}
.cta-led__fixture--left{
  left:0; top:0; bottom:0; width:32%;
}
.cta-led__fixture--right{
  right:0; top:0; bottom:0; width:32%;
}

/* Nucleo LED: linea continua edge-to-edge */
.cta-led__line{
  position:absolute;
  left:0; right:0; top:8px;
  height:2px;
  border-radius:0;
  background: linear-gradient(90deg,
    #cfe4ff 0%,
    #f4f9ff 20%,
    #ffffff 50%,
    #f4f9ff 80%,
    #cfe4ff 100%);
  box-shadow:
    0 0 6px rgba(255,255,255,1),
    0 0 18px rgba(180,215,255,.95),
    0 0 40px rgba(100,160,255,.7),
    0 0 80px rgba(53,101,176,.45);
}
.cta-led__line--warm{
  background: linear-gradient(90deg,
    #ffd27a 0%,
    #fff4d8 20%,
    #ffffff 50%,
    #fff4d8 80%,
    #ffd27a 100%);
  box-shadow:
    0 0 6px rgba(255,248,230,1),
    0 0 18px rgba(255,210,122,.95),
    0 0 40px rgba(240,194,116,.7),
    0 0 80px rgba(227,165,61,.4);
}
.cta-led__fixture--bottom .cta-led__line{
  top:auto; bottom:8px;
}
.cta-led__line--vert{
  left:8px; right:auto; top:0; bottom:0;
  width:2px; height:auto;
  background: linear-gradient(180deg,
    #cfe4ff 0%,
    #f4f9ff 20%,
    #ffffff 50%,
    #f4f9ff 80%,
    #cfe4ff 100%);
  box-shadow:
    0 0 6px rgba(255,255,255,1),
    0 0 18px rgba(158,201,255,.9),
    0 0 40px rgba(100,160,255,.65),
    0 0 70px rgba(53,101,176,.4);
}
.cta-led__fixture--right .cta-led__line--vert{
  left:auto; right:8px;
  background: linear-gradient(180deg,
    #ffd27a 0%,
    #fff4d8 20%,
    #ffffff 50%,
    #fff4d8 80%,
    #ffd27a 100%);
}

/* Bloom a tutta larghezza/altezza */
.cta-led__bloom{
  position:absolute;
  left:0; right:0; top:0;
  height:120px;
  background: linear-gradient(180deg,
    rgba(230,242,255,.75) 0%,
    rgba(150,200,255,.35) 35%,
    rgba(80,140,220,.1) 70%,
    transparent 100%);
  filter: blur(16px);
}
.cta-led__bloom--warm{
  background: linear-gradient(0deg,
    rgba(255,236,190,.7) 0%,
    rgba(240,194,116,.32) 35%,
    rgba(227,165,61,.1) 70%,
    transparent 100%);
}
.cta-led__fixture--bottom .cta-led__bloom{
  top:auto; bottom:0; height:110px;
}
.cta-led__bloom--vert{
  left:0; right:auto; top:0; bottom:0;
  width:110px; height:auto;
  background: linear-gradient(90deg,
    rgba(220,235,255,.55) 0%,
    rgba(120,180,245,.22) 45%,
    transparent 100%);
  filter: blur(18px);
}
.cta-led__fixture--right .cta-led__bloom--vert{
  left:auto; right:0;
  background: linear-gradient(270deg,
    rgba(255,228,170,.5) 0%,
    rgba(227,165,61,.18) 45%,
    transparent 100%);
}

/* Wash a tutta sezione */
.cta-led__wash{
  position:absolute;
  left:0; right:0; top:4px; bottom:0;
  background: linear-gradient(180deg,
    rgba(200,225,255,.5) 0%,
    rgba(120,175,240,.22) 22%,
    rgba(60,110,190,.1) 48%,
    transparent 78%);
  filter: blur(8px);
  mix-blend-mode: screen;
}
.cta-led__wash--up{
  top:0; bottom:4px;
  background: linear-gradient(0deg,
    rgba(255,220,150,.4) 0%,
    rgba(227,165,61,.16) 26%,
    rgba(120,80,30,.06) 52%,
    transparent 80%);
}

.cta-led__volume{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0;
  mix-blend-mode: screen;
  transition: opacity 1.4s ease .15s;
}
.cta-led-section.is-lit .cta-led__volume{ opacity:1; }

/* Bagliore intenso → affievolisce → intenso (loop) */
.cta-led-section.is-lit .cta-led__line{
  animation: cta-led-pulse-core 3.6s ease-in-out .4s infinite;
}
.cta-led-section.is-lit .cta-led__bloom,
.cta-led-section.is-lit .cta-led__wash{
  animation: cta-led-pulse-glow 3.6s ease-in-out .4s infinite;
}
.cta-led-section.is-lit .cta-led__fixture--bottom .cta-led__line,
.cta-led-section.is-lit .cta-led__fixture--bottom .cta-led__bloom,
.cta-led-section.is-lit .cta-led__fixture--bottom .cta-led__wash{
  animation-delay: 1.1s;
}
.cta-led-section.is-lit .cta-led__fixture--left .cta-led__line,
.cta-led-section.is-lit .cta-led__fixture--left .cta-led__bloom{
  animation-delay: .7s;
}
.cta-led-section.is-lit .cta-led__fixture--right .cta-led__line,
.cta-led-section.is-lit .cta-led__fixture--right .cta-led__bloom{
  animation-delay: 1.5s;
}
.cta-led-section.is-lit .cta-led__pool{
  animation: cta-led-pulse-glow 3.6s ease-in-out .5s infinite;
}
.cta-led-section.is-lit .cta-led__pool--warm{
  animation-delay: 1.2s;
}
.cta-led-section.is-lit .cta-led__shaft{
  animation: cta-led-pulse-glow 3.6s ease-in-out .8s infinite;
}
.cta-led-section.is-lit .cta-led__haze{
  animation: cta-led-pulse-haze 3.6s ease-in-out .4s infinite;
}

.cta-led__haze{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(158,201,255,.14), transparent 70%),
    radial-gradient(ellipse 60% 45% at 50% 85%, rgba(240,194,116,.1), transparent 70%);
  opacity:0;
  transition: opacity 1.5s ease .3s;
  mix-blend-mode: screen;
}
.cta-led-section.is-lit .cta-led__haze{ opacity:1; }

.cta-led__vignette{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 92% 82% at 50% 50%, transparent 52%, rgba(3,8,18,.38) 100%);
  opacity:.7;
}

@keyframes cta-led-pulse-core{
  0%,100%{
    opacity:.4;
    filter: brightness(.7) saturate(.85);
  }
  50%{
    opacity:1;
    filter: brightness(1.45) saturate(1.15);
  }
}
@keyframes cta-led-pulse-glow{
  0%,100%{ opacity:.28; filter: brightness(.8); }
  50%{ opacity:1; filter: brightness(1.25); }
}
@keyframes cta-led-pulse-haze{
  0%,100%{ opacity:.25; }
  50%{ opacity:.85; }
}

@media (max-width:700px){
  .cta-led__line{ top:6px; }
  .cta-led__fixture--bottom .cta-led__line{ bottom:6px; }
  .cta-led__line--vert{ left:6px; }
  .cta-led__fixture--right .cta-led__line--vert{ right:6px; }
  .cta-led__bloom{ height:80px; }
  .cta-led__bloom--vert{ width:70px; }
}
@media (prefers-reduced-motion: reduce){
  .cta-led-section .cta-led__line,
  .cta-led-section .cta-led__bloom,
  .cta-led-section .cta-led__wash,
  .cta-led-section .cta-led__pool,
  .cta-led-section .cta-led__shaft,
  .cta-led-section .cta-led__haze{ animation:none !important; }
  .cta-led-section .cta-led__fixture,
  .cta-led-section .cta-led__volume,
  .cta-led-section .cta-led__haze,
  .cta-led-section .cta-led__bloom,
  .cta-led-section .cta-led__wash{ opacity:.85; transition:none; }
  .cta-led-section .cta-led__line{ opacity:1; filter:none; }
}

/* ============ Candidatura nel form contatti + FAB laterale ============ */
.field-select-native{
  position:absolute !important;
  width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important;
  white-space:nowrap !important; border:0 !important;
  pointer-events:none;
}

.nice-select{ position:relative; width:100%; }
.nice-select__trigger{
  width:100%; display:flex; align-items:center; gap:.65rem;
  padding:.9em 1.05em; border-radius:var(--r-full); border:1.5px solid var(--slate-150);
  background:#fff; color:var(--ink); font:inherit; font-size:.95rem; text-align:left;
  cursor:pointer; transition:border-color .25s, box-shadow .25s;
}
.nice-select__trigger:hover{ border-color:var(--slate-300); }
.nice-select.is-open .nice-select__trigger,
.nice-select__trigger:focus{
  border-color:var(--navy-600); box-shadow:0 0 0 4px rgba(31,74,143,.14); outline:none;
}
.nice-select__icon{
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  width:2rem; height:2rem; border-radius:999px;
  background:rgba(31,74,143,.08); color:var(--navy-700);
}
.nice-select__icon .icon{ width:16px; height:16px; }
.nice-select__text{ flex:1; min-width:0; font-weight:550; color:var(--navy-900, var(--navy-800)); }
.nice-select__chev{
  display:inline-flex; color:var(--slate-300); transition:transform .25s var(--ease-soft, ease);
}
.nice-select.is-open .nice-select__chev{ transform:rotate(180deg); color:var(--navy-700); }

.nice-select__menu{
  position:absolute; left:0; right:0; top:calc(100% + .4rem); z-index:40;
  margin:0; padding:.4rem; list-style:none;
  background:#fff; border:1.5px solid var(--slate-150); border-radius:1.15rem;
  box-shadow:0 18px 40px rgba(15,23,42,.14);
  max-height:min(320px, 55vh); overflow:auto;
}
.nice-select__menu[hidden]{ display:none !important; }
.nice-select__menu [role="option"]{
  display:flex; align-items:center; gap:.7rem;
  padding:.72rem .85rem; border-radius:999px; cursor:pointer;
  font-size:.92rem; font-weight:550; color:var(--navy-900, var(--navy-800));
  transition:background .18s, color .18s;
}
.nice-select__menu [role="option"]:hover,
.nice-select__menu [role="option"].is-active{
  background:rgba(31,74,143,.08); color:var(--navy-800);
}
.nice-select__menu [role="option"][aria-selected="true"]{
  background:rgba(31,74,143,.12); color:var(--navy-800);
}
.nice-select__opt-icon{
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  width:1.85rem; height:1.85rem; border-radius:999px;
  background:rgba(31,74,143,.07); color:var(--navy-700);
}
.nice-select__opt-icon .icon{ width:15px; height:15px; }

.file-pick{
  display:flex; align-items:center; gap:.75rem; flex-wrap:wrap;
  padding:.55rem .65rem .55rem .55rem; border-radius:var(--r-full);
  border:1.5px solid var(--slate-150); background:#fff;
  transition:border-color .25s, box-shadow .25s;
}
.file-pick:focus-within{
  border-color:var(--navy-600); box-shadow:0 0 0 4px rgba(31,74,143,.14);
}
.file-pick__input{
  position:absolute !important;
  width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important;
  white-space:nowrap !important; border:0 !important;
}
.file-pick__btn{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.65em 1.15em; border:0; border-radius:var(--r-full);
  background:linear-gradient(135deg, var(--navy-700), var(--navy-800));
  color:#fff; font:inherit; font-size:.86rem; font-weight:650;
  cursor:pointer; transition:transform .2s, filter .2s, box-shadow .2s;
  box-shadow:0 6px 16px rgba(31,74,143,.22);
}
.file-pick__btn:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.file-pick__btn:active{ transform:translateY(0); }
.file-pick__btn .icon{ width:16px; height:16px; }
.file-pick__name{
  flex:1; min-width:0; font-size:.88rem; color:var(--muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  padding-right:.35rem;
}
.file-pick__name.has-file{ color:var(--navy-800); font-weight:600; }
.contact-cv-field .file-pick{ width:100%; }

.fab-careers{
  position:fixed;
  left:0;
  top:50%;
  z-index:60;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:1.35rem .9rem;
  /* Con rotate(180deg) gli angoli si invertiscono: qui flat a dx → visivamente flat a sx (bordo schermo), arrotondati verso il contenuto */
  border-radius:14px 0 0 14px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color:#fff;
  font-family:var(--font-head);
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  box-shadow: 4px 0 24px rgba(7,19,36,.28);
  /* Testo verticale, tutto nel viewport (niente metà fuori schermo) */
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  transform-origin: center center;
  transition: transform .25s var(--ease-soft), box-shadow .25s;
  overflow:visible;
}
.fab-careers:hover{
  color:#fff;
  box-shadow: 6px 0 28px rgba(7,19,36,.36);
  filter: brightness(1.05);
}
.fab-careers__icon{
  display:grid;
  place-items:center;
  /* Compensa writing-mode + rotate per tenere l'icona dritta */
  transform: rotate(180deg);
}
.fab-careers__icon .icon{ width:16px; height:16px; }
.fab-careers__label{ line-height:1; }
@media (max-width:700px){
  .fab-careers{ display:none; }
}

.fab-whatsapp{
  position:fixed;
  right:1.25rem;
  bottom:1.25rem;
  z-index:160;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.85rem 1.1rem .85rem .95rem;
  border-radius:999px;
  background:#25D366;
  color:#fff;
  font-family:var(--font-head);
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.04em;
  text-decoration:none;
  box-shadow: 0 10px 28px rgba(37,211,102,.42);
  transition: transform .25s var(--ease-soft), box-shadow .25s, filter .25s;
}
.fab-whatsapp:hover{
  color:#fff;
  filter: brightness(1.06);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37,211,102,.5);
}
.fab-whatsapp .icon{ width:22px; height:22px; flex-shrink:0; }
.fab-whatsapp__label{ line-height:1; }
@media (max-width:1199px){
  .fab-whatsapp{
    right:1rem;
    bottom:5.25rem; /* sopra la barra "Chiama ora" */
    padding:.8rem;
    border-radius:50%;
  }
  .fab-whatsapp__label{ display:none; }
  .fab-whatsapp .icon{ width:26px; height:26px; }
}
@media (max-width:700px){
  .fab-whatsapp{
    width:60px;
    height:60px;
    padding:0;
    justify-content:center;
  }
  .fab-whatsapp .icon{ width:32px; height:32px; }
}

/* ============ CERTIFICAZIONI — base chiara + illuminazione blu ============ */
.certs-section{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(ellipse 80% 55% at 12% 10%, rgba(120,175,255,.18) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 92% 30%, rgba(80,140,230,.12) 0%, transparent 55%),
    radial-gradient(ellipse 75% 45% at 50% 100%, rgba(150,200,255,.14) 0%, transparent 55%),
    #ffffff;
  color: var(--ink);
}
.certs-section__head h2{ color: var(--navy-900); }
.certs-section__head p{ color: var(--muted); }

.certs-aurora{
  position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden;
}
.certs-aurora__blob{
  position:absolute;
  border-radius:50%;
  filter: blur(56px);
  opacity:.55;
  will-change: transform, opacity;
}
.certs-aurora__blob--1{
  width:min(72vw, 640px); height:min(72vw, 640px);
  left:-14%; top:-22%;
  background: radial-gradient(circle, rgba(130,185,255,.55) 0%, rgba(90,150,240,.18) 42%, transparent 70%);
  animation: certs-drift-a 14s ease-in-out infinite;
}
.certs-aurora__blob--2{
  width:min(58vw, 500px); height:min(58vw, 500px);
  right:-12%; top:18%;
  background: radial-gradient(circle, rgba(100,165,255,.42) 0%, rgba(70,130,220,.14) 48%, transparent 72%);
  animation: certs-drift-b 18s ease-in-out infinite;
}
.certs-aurora__blob--3{
  width:min(68vw, 580px); height:min(52vw, 440px);
  left:18%; bottom:-26%;
  background: radial-gradient(circle, rgba(160,205,255,.4) 0%, rgba(110,170,245,.12) 48%, transparent 72%);
  animation: certs-drift-c 16s ease-in-out infinite;
}
.certs-aurora__sheen{
  position:absolute; inset:-20%;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(140,190,255,.12) 46%,
    rgba(255,255,255,.55) 50%,
    rgba(140,190,255,.1) 54%,
    transparent 68%
  );
  animation: certs-sheen 9s ease-in-out infinite;
}
@keyframes certs-drift-a{
  0%,100%{ transform: translate(0,0) scale(1); opacity:.4; }
  50%{ transform: translate(10%, 14%) scale(1.1); opacity:.7; }
}
@keyframes certs-drift-b{
  0%,100%{ transform: translate(0,0) scale(1.04); opacity:.35; }
  50%{ transform: translate(-14%, -8%) scale(1.14); opacity:.62; }
}
@keyframes certs-drift-c{
  0%,100%{ transform: translate(0,0) scale(1); opacity:.3; }
  50%{ transform: translate(7%, -12%) scale(1.12); opacity:.58; }
}
@keyframes certs-sheen{
  0%,100%{ transform: translateX(-16%) rotate(2deg); opacity:.25; }
  50%{ transform: translateX(16%) rotate(-1deg); opacity:.55; }
}
@media (prefers-reduced-motion: reduce){
  .certs-aurora__blob,
  .certs-aurora__sheen{ animation:none !important; opacity:.45; }
}

.certs-wrap{
  position:relative;
  max-width:920px;
  margin-inline:auto;
  display:grid;
  gap:1.25rem;
}
.cert-row{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr;
  gap:1.15rem;
  align-items:center;
  background: #fff;
  border:1px solid rgba(120,170,230,.2);
  border-radius:var(--r-md, 18px);
  padding:1.35rem 1.4rem;
  box-shadow:
    0 10px 28px rgba(31,74,143,.08),
    0 0 0 1px rgba(255,255,255,.8) inset;
}
@media (min-width:700px){
  .cert-row{
    grid-template-columns: minmax(150px, 220px) 1px minmax(0,1fr);
    gap:0 1.5rem;
    padding:1.5rem 1.7rem;
  }
  .cert-row::before{
    content:'';
    grid-column:2;
    grid-row:1;
    width:1px;
    height:100%;
    min-height:4.5rem;
    background: var(--slate-150, #e2e8f0);
    justify-self:center;
  }
  .cert-row__body{ grid-column:3; }
}
.cert-row__logo{
  display:flex; align-items:center; justify-content:center;
  min-height:88px;
  padding:.35rem;
  border-radius:12px;
  transition: transform .25s var(--ease-soft, ease);
}
.cert-row__logo:hover{ transform: scale(1.03); }
.cert-row__logo img{
  width:100%;
  max-width:200px;
  height:auto;
  object-fit:contain;
  display:block;
}
.cert-row__body h3{
  font-size:clamp(1.05rem, 1.8vw, 1.25rem);
  color:var(--navy-900);
  margin:0 0 .45rem;
  line-height:1.3;
}
.cert-row__body p{
  margin:0;
  color:var(--slate-700, #475569);
  font-size:.98rem;
  line-height:1.55;
}
.cert-row__highlight{
  color:#c41218 !important;
  font-weight:700;
  font-size:1.05rem !important;
  margin-bottom:.35rem !important;
}

/* ============ FOOTER ============ */
.site-footer{ background: var(--navy-950); color: rgba(255,255,255,.85); position:relative; }

.footer-cta{
  position:relative; overflow:hidden;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950) 70%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-cta::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 60% 100% at 85% 0%, rgba(227,165,61,.18), transparent 60%);
  pointer-events:none;
}
/* Punto di luce che scorre lentamente a destra e sinistra, come a rivelare la scritta */
.sweep-light{
  position:absolute; top:-40%; left:-14%; z-index:1;
  width:30%; height:180%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,255,255,.5) 0%, rgba(240,194,116,.32) 38%, transparent 72%);
  filter: blur(38px);
  mix-blend-mode: screen; pointer-events:none;
  animation: sweep-lr 9s ease-in-out infinite;
}
@keyframes sweep-lr{
  0%, 100%{ left:-14%; }
  50%{ left:72%; }
}
@media (prefers-reduced-motion: reduce){ .sweep-light{ animation:none; left:20%; } }

.footer-cta-inner{
  position:relative; z-index:2; padding-block: clamp(2.4rem,4.5vw,3.4rem);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.6rem;
}
.footer-cta-inner h2{ color:#fff; font-size:clamp(1.4rem,2.6vw,1.9rem); max-width:24ch; margin-top:.4rem; }
.footer-cta-actions{ display:flex; flex-wrap:wrap; gap:.8rem; }

.footer-top{ padding-block: clamp(3rem,6vw,5rem) 2.5rem; position:relative; z-index:1; }
.footer-grid{ display:grid; gap:2.6rem; grid-template-columns:1fr; }
@media (min-width:700px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr; } }
@media (min-width:1000px){ .footer-grid{ grid-template-columns:1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img{ margin-bottom:1rem; }
.footer-brand p{ font-size:.92rem; line-height:1.65; color:rgba(255,255,255,.6); max-width:32ch; }
.footer-social{ display:flex; gap:.7rem; margin-top:1.3rem; }
.footer-social a{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); transition: background .3s, transform .3s;
}
.footer-social .icon{ width:18px; height:18px; }
.footer-social a:hover{ background: var(--gold-500); color:#211404; transform:translateY(-3px); }
.footer-col h3{ font-family:var(--font-head); font-size:.92rem; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.5); margin-bottom:1.1rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:.75rem; }
.footer-col ul li a{ display:inline-flex; align-items:center; gap:.65em; font-size:.94rem; color:rgba(255,255,255,.78); transition:color .25s, transform .25s; }
.footer-col ul li a:hover{ color: var(--gold-400); transform:translateX(3px); }
.footer-col ul li a .icon{ width:16px; height:16px; color:var(--gold-400); flex-shrink:0; opacity:.8; }
.footer-contacts li{ display:flex; align-items:flex-start; gap:.6em; }
.footer-contacts li a{ align-items:flex-start; }
.footer-contacts .icon{ width:17px; height:17px; margin-top:.2em; color:var(--gold-400); flex-shrink:0; }
.footer-hours{ align-items:flex-start; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-block:1.3rem; position:relative; z-index:1; }
.footer-bottom-inner{ display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; justify-content:space-between; align-items:center; font-size:.82rem; color:rgba(255,255,255,.5); }
.footer-bottom a{ color:rgba(255,255,255,.6); }
.footer-bottom a:hover{ color:#fff; }
.footer-top-link{ display:inline-flex; align-items:center; gap:.35em; font-weight:600; }
.footer-top-link .icon{ transform:rotate(-90deg); width:14px; height:14px; }

.mobile-cta-bar{
  position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:150;
  display:flex; align-items:center; justify-content:center; gap:.6em;
  padding:1em; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color:#211404;
  font-family:var(--font-head); font-weight:700; box-shadow: var(--shadow-gold);
}
.mobile-cta-bar .icon{ width:19px; height:19px; }
@media (min-width:1200px){ .mobile-cta-bar{ display:none; } }

/* ============ COOKIE BANNER ============ */
.cookie-banner{
  position:fixed; left:1.25rem; right:1.25rem; bottom:1.25rem; z-index:300;
  max-width:600px; margin-inline:auto;
  transform:translateY(140%); opacity:0; pointer-events:none;
  transition: transform .55s var(--ease-soft), opacity .5s var(--ease-soft);
}
@media (min-width:900px){ .cookie-banner{ max-width:min(1040px, calc(100vw - 3rem)); } }
@media (min-width:1300px){ .cookie-banner{ max-width:1100px; } }
.cookie-banner.is-visible{ transform:translateY(0); opacity:1; pointer-events:auto; }
.cookie-banner-inner{
  display:flex; flex-wrap:wrap; align-items:center; gap:1.1rem;
  padding: 1.3rem 1.5rem;
  background: rgba(9,24,46,.68);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
  box-shadow: var(--shadow-soft);
  color:#fff;
}
.cookie-banner-icon{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display:flex; align-items:center; justify-content:center; color:#211404;
}
.cookie-banner-icon .icon{ width:22px; height:22px; }
.cookie-banner-text{ flex:1 1 220px; }
.cookie-banner-text strong{ display:block; font-family:var(--font-head); font-size:.98rem; margin-bottom:.35rem; }
.cookie-banner-text p{ font-size:.84rem; line-height:1.55; color:rgba(255,255,255,.72); margin:0; max-width:62ch; }
.cookie-banner-text a{ color:var(--gold-400); text-decoration:underline; text-underline-offset:2px; }
.cookie-banner-actions{ display:flex; gap:.7rem; flex-shrink:0; margin-left:auto; }
@media (min-width:900px){
  .cookie-banner-inner{ padding:1.4rem 1.9rem; gap:1.6rem; flex-wrap:nowrap; }
  .cookie-banner-text{ flex:1 1 auto; }
  .cookie-banner-actions .btn{ white-space:nowrap; }
}
.cookie-banner .btn-outline-dark{ border-color:rgba(255,255,255,.35); color:#fff; }
.cookie-banner .btn-outline-dark:hover{ background:rgba(255,255,255,.12); color:#fff; }
@media (max-width:640px){
  .cookie-banner{ left:.75rem; right:.75rem; bottom:calc(1rem + 60px); }
  .cookie-banner-inner{ padding:1.15rem 1.25rem; }
  .cookie-banner-actions{ width:100%; margin-left:0; }
  .cookie-banner-actions .btn{ flex:1; }
}

/* ============ FORMS ============ */
.form-grid{ display:grid; gap:1.1rem; }
@media (min-width:600px){ .form-grid.cols-2{ grid-template-columns:1fr 1fr; } }
.field{ display:flex; flex-direction:column; gap:.45rem; position:relative; }
.field label{ font-size:.86rem; font-weight:600; font-family:var(--font-head); color: var(--navy-800); }
.field input, .field textarea, .field select{
  padding:.9em 1.05em; border-radius: var(--r-sm); border:1.5px solid var(--slate-150);
  background: #fff; color:var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(31,74,143,.14); outline:none;
}
.field textarea{ resize:vertical; min-height:130px; }
.field-check{ flex-direction:row; align-items:flex-start; gap:.7em; }
.field-check input{ margin-top:.25em; width:18px; height:18px; accent-color: var(--navy-700); flex-shrink:0; }
.field-check label{ font-weight:500; font-size:.85rem; color: var(--muted); }
.form-note{ margin-top:.85rem; font-size:.92rem; line-height:1.5; color:var(--navy-900); }
.form-status{ padding:.9em 1.1em; border-radius:var(--r-sm); font-size:.9rem; font-weight:600; display:none; }
.form-status.is-visible{ display:block; }
.form-status.ok{ background:rgba(47,174,108,.12); color:#1c7a4b; }
.form-status.err{ background:rgba(229,72,77,.1); color:#b23337; }

/* Captcha a emoji */
.captcha-field{ background: var(--slate-50); border:1.5px solid var(--slate-150); border-radius: var(--r-sm); padding:1.1em 1.2em; }
.captcha-field label{ display:flex; align-items:center; gap:.4em; }
.captcha-hint{ font-size:1.15em; }
.captcha-options{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.8rem; }
.captcha-option{
  width:52px; height:52px; border-radius: var(--r-md); border:1.5px solid var(--slate-150);
  background:#fff; font-size:1.5rem; line-height:1; display:flex; align-items:center; justify-content:center;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.captcha-option:hover{ transform:translateY(-2px); border-color: var(--gold-500); }
.captcha-option.is-selected{ border-color: var(--navy-700); box-shadow:0 0 0 3px rgba(31,74,143,.16); background: var(--slate-100); }
.captcha-feedback{ margin:.6rem 0 0; font-size:.82rem; font-weight:600; color: var(--success); min-height:1.2em; }
.captcha-feedback.err{ color: var(--danger); }

/* ============ CONTATTI PAGE ============ */
.contact-grid{ display:grid; gap:2.2rem; }
@media (min-width:920px){ .contact-grid{ grid-template-columns:.9fr 1.1fr; gap:3rem; } }
.contact-info-list{ display:flex; flex-direction:column; gap:1.4rem; margin-top:1.8rem; }
.contact-info-item{ display:flex; gap:1rem; align-items:flex-start; }
.contact-info-item .servizio-icon{ width:44px; height:44px; flex-shrink:0; }
.contact-info-item .servizio-icon .icon{ width:22px; height:22px; }
.contact-info-item h4{ font-size:.98rem; margin-bottom:.25rem; }
.contact-info-item p, .contact-info-item a{ color:var(--muted); font-size:.94rem; line-height:1.55; }
/* Orari: due colonne Mattina | Pomeriggio (formato cliente, stile Cappello) */
.biz-hours{ display:flex; flex-direction:column; gap:.85rem; margin-top:.45rem; width:100%; max-width:26rem; }
.biz-hours__days{
  font-family:var(--font-head); font-weight:700; font-size:.92rem;
  letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.7);
}
.biz-hours__board{
  display:grid; grid-template-columns:1fr 1fr; align-items:stretch;
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-md);
  background:rgba(7,19,36,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow:hidden;
  position:relative; z-index:1;
}
.biz-hours__slot{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:.45rem; padding:1.1rem .55rem 1.2rem;
  position:relative; min-width:0;
}
.biz-hours__slot + .biz-hours__slot::before{
  content:''; position:absolute; left:0; top:18%; bottom:18%; width:1px;
  background:rgba(255,255,255,.18);
}
.biz-hours__icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:2rem; height:2rem; color:var(--gold-400);
}
.biz-hours__icon .icon{ width:1.35rem; height:1.35rem; }
.biz-hours__label{
  font-family:var(--font-head); font-weight:700; font-size:.72rem;
  letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.88);
}
.biz-hours__rule{
  display:block; width:1.7rem; height:2px; border-radius:2px;
  background:linear-gradient(90deg, var(--gold-500), var(--gold-400));
}
.biz-hours__time{
  font-family:var(--font-head); font-weight:700;
  font-size:clamp(.88rem, 2.8vw, 1.08rem);
  font-variant-numeric:tabular-nums; letter-spacing:.01em; color:#fff;
  line-height:1.2; white-space:nowrap;
}
.glass-dark .biz-hours__days{ color:rgba(255,255,255,.68); }
.glass-dark .biz-hours__label{ color:rgba(255,255,255,.9); }
.glass-dark .biz-hours__time{ color:#fff; }

/* Contatti: board a tutta larghezza sotto titolo Orari */
.contact-info-item.contact-info-item--hours{
  display:grid;
  grid-template-columns:44px 1fr;
  column-gap:1rem;
  row-gap:.75rem;
  align-items:start;
}
.contact-info-item--hours > .servizio-icon{ grid-row:1; grid-column:1; }
.contact-info-item--hours > .contact-hours-head{ grid-row:1; grid-column:2; }
.contact-info-item--hours > .biz-hours{
  grid-column:1 / -1; margin-top:0; max-width:none;
}

.footer-hours{ display:block; }
.footer-hours .biz-hours{ margin-top:0; max-width:17.5rem; gap:.55rem; }
.biz-hours--footer .biz-hours__days{ font-size:.78rem; color:rgba(255,255,255,.55); }
.biz-hours--footer .biz-hours__board{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.12);
}
.biz-hours--footer .biz-hours__slot{ padding:.85rem .4rem .95rem; gap:.35rem; }
.biz-hours--footer .biz-hours__icon{ width:1.55rem; height:1.55rem; color:var(--gold-400); }
.biz-hours--footer .biz-hours__icon .icon{ width:1.05rem; height:1.05rem; }
.biz-hours--footer .biz-hours__label{ font-size:.62rem; letter-spacing:.12em; color:rgba(255,255,255,.72); }
.biz-hours--footer .biz-hours__rule{ width:1.25rem; height:1.5px; }
.biz-hours--footer .biz-hours__time{ font-size:.86rem; color:rgba(255,255,255,.92); }
.map-frame{ border-radius: var(--r-lg); overflow:hidden; margin-top:1.8rem; box-shadow: var(--shadow-sm); border:1px solid var(--slate-150); }
.map-frame iframe{ width:100%; height:280px; border:0; display:block; }

/* Contesto scuro (sezione contatti su sfondo video) */
.glass-dark .contact-info-item h4{ color:#fff; }
.glass-dark .contact-info-item p, .glass-dark .contact-info-item a{ color:rgba(255,255,255,.72); }
.glass-dark .contact-info-item a:hover{ color:var(--gold-400); }
.glass-dark .map-frame{ border-color:rgba(255,255,255,.18); }
.glass-dark .lede{ color:rgba(255,255,255,.75); }

.contact-trust{ display:flex; flex-wrap:wrap; gap:.7rem; margin:1.4rem 0 1.8rem; }

/* ============ MISC ============ */
.badge-award{ display:inline-flex; align-items:center; gap:.5em; background: rgba(255,255,255,.9); color:var(--navy-800); }
.text-center{ text-align:center; }
.mt-lg{ margin-top: 3rem; }
.divider{ height:1px; background: var(--slate-150); border:0; margin-block: 2rem; }

.reveal{ opacity:0; }
[data-aos]{ }

/* Utility icon sizing */
.icon{ width:24px; height:24px; }
.icon-sm{ width:18px; height:18px; }
.icon-lg{ width:32px; height:32px; }

/* Privacy page */
.legal-content{ max-width:760px; margin-inline:auto; }
.legal-content h2{ font-size:1.3rem; margin-top:2.2rem; margin-bottom:.8rem; }
.legal-content p, .legal-content li{ color:var(--slate-700); line-height:1.75; font-size:.98rem; }
.legal-content ul{ padding-left:1.3rem; list-style:disc; display:flex; flex-direction:column; gap:.4rem; }

/* ============ Brand deco (furgoni / biglietti) — SVG uniforme + FX ============ */
.brand-deco{
  position:absolute;
  z-index:1;
  pointer-events:none;
  color: var(--electric);
  opacity: .36;
  width: min(640px, 82vw);
  line-height:0;
  aspect-ratio: 400 / 88;
}
.brand-deco__svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
  z-index:1;
}
.brand-deco__swoosh-svg{
  position:absolute;
  color: inherit;
  opacity: .22;
  z-index:0;
  inset: auto 0 0 auto;
  width: 52%;
  height: 100%;
  left: auto;
  display:block;
}

.brand-deco--corner{
  right: -14%;
  bottom: 0%;
  width: min(720px, 90vw);
}
.brand-deco--corner-tl{
  left: -16%;
  top: 4%;
  opacity: .26;
  width: min(580px, 75vw);
}
.brand-deco--light{
  color: var(--electric);
  opacity: .34;
}
.brand-deco--on-dark{
  color: #ffffff;
  opacity: .5;
}

/* Draw-in fili (pathLength=1 → dash uniforme) */
.brand-deco__wire{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: brand-wire-draw 1.7s cubic-bezier(.22,.61,.36,1) forwards;
}
.brand-deco__wire--1{ animation-delay: .12s; }
.brand-deco__wire--2{ animation-delay: .32s; }
.brand-deco__wire--3{ animation-delay: .52s; }
.brand-deco__wire--4{ animation-delay: .68s; }
.brand-deco__wire--5{ animation-delay: .84s; }

.brand-deco__icon{
  opacity: 0;
  animation: brand-icon-in .55s ease forwards;
}
.brand-deco__bulb{ animation-delay: .08s; }
.brand-deco__plug{ animation-delay: .22s; }
.brand-deco__traces .brand-deco__node{
  opacity: 0;
  animation: brand-icon-in .45s ease forwards;
}
.brand-deco__traces .brand-deco__node:nth-child(1){ animation-delay: .45s; }
.brand-deco__traces .brand-deco__node:nth-child(3){ animation-delay: .6s; }
.brand-deco__traces .brand-deco__node:nth-child(5){ animation-delay: .75s; }

.brand-deco__bulb-glow,
.brand-deco__node-glow{
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.brand-deco__bulb-glow{
  animation: brand-bulb-glow 3.4s ease-in-out 1.2s infinite;
}
.brand-deco__node-glow{
  animation: brand-node-pulse 2.6s ease-in-out infinite;
}
.brand-deco__node-glow:nth-child(2){ animation-delay: 1.3s; }
.brand-deco__node-glow:nth-child(3){ animation-delay: 1.55s; }
.brand-deco__node-glow:nth-child(4){ animation-delay: 1.8s; }

.brand-deco.is-live .brand-deco__art{
  animation: brand-art-breathe 5.5s ease-in-out infinite;
}

@keyframes brand-wire-draw{
  to{ stroke-dashoffset: 0; }
}
@keyframes brand-icon-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes brand-art-breathe{
  0%,100%{ opacity: .94; }
  50%{ opacity: 1; }
}
@keyframes brand-node-pulse{
  0%,100%{ opacity: .16; transform: scale(.92); }
  50%{ opacity: .4; transform: scale(1.16); }
}
@keyframes brand-bulb-glow{
  0%,100%{ opacity: .18; transform: scale(.96); }
  50%{ opacity: .46; transform: scale(1.08); }
}

.brand-swoosh{
  position:absolute;
  inset:auto 0 0 0;
  z-index:1;
  pointer-events:none;
  color: var(--electric);
  opacity: .2;
  height: clamp(120px, 22vw, 220px);
  line-height:0;
}
.brand-swoosh__svg{ width:100%; height:100%; display:block; }
.brand-swoosh__path{
  transform-origin: left bottom;
  animation: brand-swoosh-breathe 8s ease-in-out infinite;
}
.brand-swoosh--footer{
  opacity: .26;
  color: var(--electric-soft);
}
.site-footer .footer-top{ position:relative; overflow:hidden; }
.hero .brand-deco,
.section .brand-deco,
.section-photo .brand-deco{ z-index:1; }

/* Contatti desktop: circuiti a sinistra del blocco orari
   (la card glass è semitrasparente e altrimenti li mostra sotto Mattina/Pomeriggio). */
@media (min-width: 920px){
  #contatti > .brand-deco.brand-deco--corner{
    right: auto;
    left: -20%;
    bottom: 6%;
    width: min(380px, 28vw);
    max-width: 24%;
  }
}

@keyframes brand-swoosh-breathe{
  0%,100%{ opacity: .85; transform: translateY(0) scaleX(1); }
  50%{ opacity: 1; transform: translateY(-2%) scaleX(1.02); }
}

@media (max-width:720px){
  .brand-deco--light,
  .brand-deco--corner-tl{ display:none; }
  .brand-deco--on-dark{
    width: min(260px, 68vw);
    opacity: .42;
    right: -4%;
    bottom: 0;
  }
  .hero .brand-deco--on-dark{
    width: min(168px, 44vw);
    right: -8%;
    bottom: -1.7rem;
  }
  .site-footer .footer-top{ padding-bottom: 5.2rem; }
  .site-footer .brand-deco--on-dark{
    width: min(200px, 52vw);
    right: 4.8rem;
    bottom: .55rem;
  }
}
@media (prefers-reduced-motion: reduce){
  .brand-deco__wire,
  .brand-deco__icon,
  .brand-deco__traces .brand-deco__node,
  .brand-deco__bulb-glow,
  .brand-deco__node-glow,
  .brand-swoosh__path,
  .brand-deco.is-live .brand-deco__art{
    animation: none !important;
  }
  .brand-deco__wire{ stroke-dashoffset: 0; }
  .brand-deco__icon,
  .brand-deco__traces .brand-deco__node{ opacity: 1; }
  .brand-deco__bulb-glow{ opacity: .28; }
  .brand-deco__node-glow{ opacity: .2; }
}

/* brand-deco-v6 1787102000 */

/* ============ PRIVATI / AZIENDE + GALLERIA SEDE ============ */
.audience-band{
  overflow:hidden; color:#fff; background:#071424; isolation:isolate;
}
.audience-band__media{
  position:absolute; left:0; right:0; top:-22%; height:144%;
  z-index:0; pointer-events:none; will-change:transform;
}
.audience-band__media img{
  width:100%; height:100%; object-fit:cover; object-position:72% 64%;
}
@media (min-width:900px){
  .audience-band__media img{ object-position:center 60%; }
}
.audience-band__scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(6,16,32,.8) 0%, rgba(6,16,32,.58) 20%, rgba(6,16,32,.18) 48%, rgba(6,16,32,.34) 100%);
}
.audience-band .container{ position:relative; z-index:2; }
.audience-band .eyebrow{ color: var(--gold-400); }
.audience-band .eyebrow::before{ background: var(--gold-400); }
.audience-band .section-head h2{ color:#fff; }
.audience-band .section-head p{
  color: rgba(255,255,255,.9);
  max-width: 38rem;
  margin-inline: auto;
}
.audience-band .audience-card{
  background: rgba(255,255,255,.94);
  color: var(--ink);
}
.audience-card__icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px; margin-bottom:1rem; border-radius:14px;
  background: rgba(34, 96, 168, .1); color: var(--navy-800);
}
.audience-card__icon .icon{ width:22px; height:22px; }
.audience-card h3{ font-size:1.15rem; margin-bottom:.4rem; }
.audience-card p{ color:var(--muted); line-height:1.6; }
.audience-cta{ margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.sede-gallery__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:1.25rem 2rem; margin-bottom:1.35rem;
}
.sede-gallery__head .section-head{ margin-bottom:0; }
.sede-rail__tools{ display:flex; align-items:center; gap:.85rem; flex-shrink:0; }
.sede-rail__count{
  margin:0; font-family:var(--font-head); font-weight:600; font-size:.92rem;
  color:var(--navy-800); font-variant-numeric: tabular-nums; letter-spacing:.02em;
}
.sede-rail__nav{ display:flex; gap:.45rem; }
.sede-rail__btn{
  width:44px; height:44px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--slate-150); background:#fff; color:var(--navy-900);
  box-shadow: var(--shadow-sm); cursor:pointer;
  transition: background .3s var(--ease-soft), color .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.sede-rail__btn .icon{ width:18px; height:18px; }
.sede-rail__btn--prev .icon{ transform: scaleX(-1); }
.sede-rail__btn:hover{ background:var(--navy-800); color:#fff; transform:translateY(-1px); }
.sede-rail__btn:focus-visible,
.sede-rail__viewport:focus-visible{
  outline:2px solid var(--navy-700); outline-offset:3px;
}

.sede-rail__viewport{ overflow:hidden; border-radius: 4px; }
.sede-rail__container{
  display:flex; touch-action: pan-y pinch-zoom; margin-left:-0.7rem;
}
.sede-rail__slide{
  flex: 0 0 86%; min-width:0; padding-left:0.7rem;
}
.sede-shot{
  position:relative; display:block; overflow:hidden; border-radius:var(--r-md);
  aspect-ratio: 3 / 2; box-shadow: var(--shadow-sm); background: var(--navy-950);
}
.sede-shot img{
  width:100%; height:100%; object-fit:cover; display:block;
  -webkit-user-drag:none; user-select:none;
}
.sede-shot__cap{
  position:absolute; left:0; right:0; bottom:0; z-index:1;
  padding: 1.6rem .95rem .75rem;
  color:#fff; font-family:var(--font-head); font-weight:600; font-size:.84rem; line-height:1.3;
  background: linear-gradient(180deg, transparent, rgba(7,19,36,.72));
  pointer-events:none;
}
.sede-rail__progress{
  margin-top:1rem; height:3px; border-radius:99px; overflow:hidden;
  background: rgba(13, 39, 72, .12);
}
.sede-rail__progress > span{
  display:block; height:100%; width:100%; transform-origin:left center; transform:scaleX(.08);
  background: linear-gradient(90deg, var(--navy-800), var(--navy-500));
}

@media (min-width:700px){
  .sede-rail__slide{ flex-basis: 48%; }
  .sede-rail__viewport{
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  }
}
@media (min-width:1100px){
  .sede-rail__slide{ flex-basis: 40%; }
}
@media (max-width:760px){
  .sede-gallery__head{ flex-direction:column; align-items:stretch; }
  .sede-rail__tools{ justify-content:space-between; }
}
@media (hover:hover){
  .sede-shot img{ transition: transform .55s var(--ease-soft); }
  .sede-shot:hover img{ transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce){
  .sede-shot img{ transition:none; }
  .sede-rail__btn{ transition:none; }
  .audience-band__media img{ transform:scale(1.04); }
}
