/* ===========================================================
   CFC Italia — Design system
   =========================================================== */

:root{
  --navy-950: #060c18;
  --navy-900: #0b1526;
  --navy-800: #101f38;
  --navy-700: #172c4d;
  --navy-600: #223a63;

  --gold-300: #f1d69a;
  --gold-400: #e3bd6c;
  --gold-500: #d4a03e;
  --gold-600: #b9852a;

  --ink: #12172a;
  --slate: #5c6478;
  --slate-light: #8a91a3;
  --paper: #faf8f4;
  --paper-dim: #f2efe8;
  --white: #ffffff;
  --line: #e7e3d9;
  --line-dark: rgba(255,255,255,.14);

  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11,21,38,.06), 0 1px 2px rgba(11,21,38,.08);
  --shadow-md: 0 12px 28px -8px rgba(11,21,38,.18);
  --shadow-lg: 0 28px 56px -16px rgba(11,21,38,.32);
  --shadow-gold: 0 10px 24px -8px rgba(212,160,62,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-head); margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h1{ font-weight: 800; }
h3{ letter-spacing: -.01em; }
p{ margin: 0; }
button{ font-family: inherit; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before{
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.on-dark .eyebrow{ color: var(--gold-300); }
.on-dark .eyebrow::before{ background: var(--gold-400); }

.section{ padding: 120px 0; }
.section-tight{ padding: 72px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h2{ font-size: clamp(2rem, 3.2vw, 2.7rem); margin-top: 16px; }
.section-head p{ margin-top: 18px; color: var(--slate); font-size: 1.05rem; line-height: 1.65; }

.bg-paper{ background: var(--paper); }
.bg-dim{ background: var(--paper-dim); }
.bg-navy{ background: var(--navy-900); color: #eef1f8; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-gold{
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover{ box-shadow: 0 16px 30px -8px rgba(212,160,62,.55); }
.btn-outline{
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.btn-outline:hover{ border-color: var(--gold-400); color: var(--gold-300); }
.btn-line{
  border-color: var(--gold-500);
  color: var(--gold-600);
  background: transparent;
  padding: 10px 22px;
  font-size: .85rem;
}
.btn-line:hover{ background: var(--gold-500); color: #fff; }
.btn-dark{
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover{ background: var(--navy-800); }

/* ---------- logo ---------- */
.logo{ display: inline-flex; align-items: center; }
.logo-img{ height: 56px; width: auto; display: block; }

/* ---------- header ---------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; }
.site-header .logo{ justify-self: start; }
.site-header .site-nav{ justify-self: center; }
.site-header .nav-actions{ justify-self: end; }
.site-header.is-dark{ background: transparent; }
.site-header.is-scrolled{
  background: rgba(6,12,24,.86);
  backdrop-filter: blur(14px);
  padding: 13px 0;
  border-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.site-header:not(.is-dark){ background: rgba(250,248,244,.9); backdrop-filter: blur(14px); border-color: var(--line); }
.site-header:not(.is-dark).is-scrolled{ box-shadow: var(--shadow-sm); }

/* Con il menu mobile aperto l'header (z-index più alto del menu) deve
   restare completamente opaco: uno sfondo semi-trasparente con blur
   lascerebbe intravedere il contenuto della pagina sotto. */
.nav-open .site-header{ background: var(--navy-950) !important; backdrop-filter: none !important; }

.site-nav{ display: flex; align-items: center; gap: 36px; }
.nav-link{
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  position: relative;
  padding-bottom: 4px;
}
.site-header:not(.is-dark) .nav-link{ color: var(--ink); }
.nav-link::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold-500);
  transition: right .3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after{ right: 0; }
.nav-link.active{ color: var(--gold-400); }
.site-header:not(.is-dark) .nav-link.active{ color: var(--gold-600); }

/* ---------- dropdown "Servizi" nel menu ---------- */
.nav-item{ position: relative; display: flex; align-items: center; gap: 2px; }
.nav-caret{
  background: none; border: none; padding: 4px; margin: 0; cursor: pointer;
  color: rgba(255,255,255,.82); display: flex; align-items: center; justify-content: center;
}
.site-header:not(.is-dark) .nav-caret{ color: var(--ink); }
.nav-caret svg{ width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-item:hover .nav-caret svg, .nav-item.open .nav-caret svg{ transform: rotate(180deg); }
/* .nav-dropdown è l'area "sensibile" all'hover: parte subito sotto il nav
   (top:100%, senza spazio vuoto) e usa padding-top come cuscinetto
   invisibile, così muovendo il mouse in verticale non si esce mai
   dall'elemento e il pannello non sparisce a metà strada. Il box bianco
   vero e proprio è .nav-dropdown-inner, dopo il cuscinetto. */
.nav-dropdown{
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  padding-top: 16px;
  opacity: 0; pointer-events: none; z-index: 50;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown{
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner{
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; display: flex; flex-direction: column; gap: 1px; min-width: 240px;
}
.nav-dropdown .nav-link{
  color: var(--ink); font-size: .88rem; font-weight: 500;
  padding: 9px 14px; border-radius: 8px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-dropdown .nav-link::after{ content: none; }
.nav-dropdown .nav-link:hover{ background: var(--paper-dim); color: var(--gold-600); }

.nav-social{ display: flex; align-items: center; gap: 10px; }
.nav-social a{
  width: 36px; height: 36px; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: border-color .2s, background .2s, color .2s;
}
.site-header:not(.is-dark) .nav-social a{ border-color: var(--line); color: var(--ink); }
.nav-social a:hover{ border-color: var(--gold-400); background: rgba(212,160,62,.1); color: var(--gold-400); }
.nav-social svg{ width: 15px; height: 15px; fill: currentColor; }

.nav-actions{ display: flex; align-items: center; gap: 18px; }
.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  position: relative;
  z-index: 101;
  cursor: pointer;
}
.site-header:not(.is-dark) .nav-toggle{ border-color: var(--line); }
.nav-toggle span{
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s;
}
.site-header:not(.is-dark) .nav-toggle span{ background: var(--ink); }
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 20px; }
.nav-toggle span:nth-child(3){ top: 25px; }
.nav-open .nav-toggle span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy-950);
  overflow: hidden;
}
.hero-page{ min-height: 58vh; align-items: center; }
.hero-media{ position: absolute; inset: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,12,24,.55) 0%, rgba(6,12,24,.35) 30%, rgba(6,12,24,.88) 100%),
    linear-gradient(90deg, rgba(6,12,24,.75) 0%, rgba(6,12,24,.15) 55%);
}
.hero-inner{ position: relative; z-index: 2; padding-block: 160px 100px; width: 100%; }
.hero-page .hero-inner{ padding-block: 128px 56px; }
.hero-tag{
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.hero-tag::before{ content: ""; width: 26px; height: 2px; background: var(--gold-400); }
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fff;
  max-width: 900px;
}
.hero h1 em{
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub{
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,.8);
  max-width: 620px;
  line-height: 1.6;
}
.hero-actions{ display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-scroll{
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
}
.hero-scroll::after{
  content: ""; width: 1px; height: 34px; background: rgba(255,255,255,.4);
  animation: scrollpulse 2s infinite var(--ease);
}
@keyframes scrollpulse{ 0%{ transform: scaleY(0); transform-origin: top;} 50%{ transform: scaleY(1); transform-origin: top;} 51%{ transform-origin: bottom;} 100%{ transform: scaleY(0); transform-origin: bottom;} }

/* ---------- intro statements ---------- */
.statement-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.statement h3{ font-size: 1.6rem; margin-top: 14px; color: var(--ink); }
.statement p{ margin-top: 16px; color: var(--slate); line-height: 1.75; font-size: 1.02rem; }

/* ---------- card grid (photo cards) ---------- */
.grid{ display: grid; gap: 32px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

/* variante flessibile: come grid-3, ma centra gli elementi avanzati
   nell'ultima riga invece di lasciarli allineati a sinistra */
.flex-grid-3{ display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.flex-grid-3 > *{ flex: 0 0 calc((100% - 64px) / 3); max-width: calc((100% - 64px) / 3); }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media{ aspect-ratio: 4/3; overflow: hidden; background: var(--paper-dim); }
.card-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
  transition: transform .6s var(--ease);
}
.card:hover .card-media img{ transform: scale(1.06); }
.card-body{ padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3{ font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.card-body p{ color: var(--slate); font-size: .95rem; line-height: 1.65; flex: 1; }
.card-link{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  color: var(--gold-600); margin-top: 8px;
}
.card-link svg{ width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card:hover .card-link svg{ transform: translateX(4px); }

/* icon cards (no photo) — trattamento editoriale con numero invece di icona */
.icard{
  position: relative;
  padding: 44px 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.icard::before{
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.icard:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.icard:hover::before{ transform: scaleY(1); }
.icard .inum{
  display: block;
  font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1;
  color: var(--gold-500); opacity: .45;
  margin-bottom: 16px;
}
.icard h3{ font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.icard p{ color: var(--slate); font-size: .93rem; line-height: 1.65; }

/* icon badge: usato solo dove serve davvero un'icona (es. contatti) */
.ibadge{
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
}
.ibadge svg{ width: 24px; height: 24px; stroke: var(--gold-400); }

/* ---------- feature (photo + text, 2 col) ---------- */
.feature{
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.feature.reverse .feature-media{ order: 2; }
.feature.reverse .feature-text{ order: 1; }
.feature-media{ border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.feature-media img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.06); }
.feature-text h3{ font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 14px; }
.feature-text p{ margin-top: 18px; color: var(--slate); line-height: 1.75; font-size: 1.02rem; }
.feature-text ul{ margin-top: 22px; display: grid; gap: 12px; }
.feature-text ul li{
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink); font-size: .96rem; line-height: 1.5;
}
.feature-text ul li svg{ width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--gold-500); }

/* ---------- CTA band ---------- */
.cta-band{
  position: relative; overflow: hidden;
  padding: 90px 0;
  text-align: center;
  color: #fff;
}
.cta-band .hero-media::after{
  background: linear-gradient(180deg, rgba(6,12,24,.82), rgba(6,12,24,.9));
}
.cta-band-inner{ position: relative; z-index: 2; }
.cta-band h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; }
.cta-band p{ margin-top: 14px; color: rgba(255,255,255,.75); max-width: 560px; margin-inline: auto; font-size: 1.02rem; }
.cta-band .btn{ margin-top: 32px; }

.cta-simple{
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: 20px;
  padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-simple::before{
  content: "";
  position: absolute; top: -55%; right: -12%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(212,160,62,.4), transparent 70%);
  pointer-events: none;
}
.cta-simple > *{ position: relative; z-index: 1; }
.cta-simple h2{ color: #fff; font-size: 1.8rem; max-width: 480px; }
.cta-simple p{ color: rgba(255,255,255,.7); margin-top: 12px; max-width: 480px; }

/* ---------- contact ---------- */
.contact-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.contact-list{ display: grid; gap: 24px; margin-top: 32px; }
.contact-item{ display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ibadge{
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--paper-dim); display: flex; align-items: center; justify-content: center;
}
.contact-item .ibadge svg{ width: 20px; height: 20px; stroke: var(--gold-600); }
.contact-item h4{ font-family: var(--font-head); font-size: .95rem; margin-bottom: 4px; }
.contact-item p, .contact-item a{ color: var(--slate); font-size: .95rem; line-height: 1.6; }
.contact-item a:hover{ color: var(--gold-600); }

.form-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ margin-bottom: 18px; }
.field label{ display: block; font-size: .82rem; font-weight: 600; font-family: var(--font-head); margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea{
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-family: var(--font-body); font-size: .95rem;
  background: var(--paper); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--gold-500); background: #fff; }
.field textarea{ resize: vertical; min-height: 120px; }
.field-check{ display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--slate); margin-bottom: 22px; }
.field-check input{ margin-top: 3px; }
.form-note{ font-size: .8rem; color: var(--slate-light); margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer{
  position: relative;
  background: var(--navy-950);
  color: rgba(255,255,255,.72);
  padding: 90px 0 40px;
  overflow: hidden;
}
.footer-deco{ position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.footer-deco .fd-shape{ position: absolute; overflow: visible; }
.footer-deco rect{ fill: none; stroke: var(--gold-500); stroke-width: 1.4; }
.fd-1{ width: 110px; height: 110px; top: 40px; left: 5%; opacity: .2; animation: fdDrift1 9s ease-in-out infinite; }
.fd-2{ width: 90px; height: 90px; top: 55px; right: 6%; opacity: .22; animation: fdDrift2 11s ease-in-out infinite; }
.fd-3{ width: 80px; height: 80px; bottom: 70px; left: 9%; opacity: .2; animation: fdDrift3 8s ease-in-out infinite; }
.fd-4{ width: 100px; height: 100px; bottom: 100px; right: 9%; opacity: .22; animation: fdDrift4 12s ease-in-out infinite; }
@keyframes fdDrift1{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(48px,32px) rotate(10deg); } }
@keyframes fdDrift2{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(-42px,34px) rotate(-12deg); } }
@keyframes fdDrift3{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(34px,-38px) rotate(9deg); } }
@keyframes fdDrift4{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(-38px,-30px) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce){
  .footer-deco .fd-shape{ animation: none !important; }
}
.footer-inner{ position: relative; z-index: 2; text-align: center; }
.footer-logo-img{ height: 150px; width: auto; margin-inline: auto; display: block; }
.footer-legal{ margin-top: 30px; display: grid; gap: 6px; }
.footer-legal p{ color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-legal a{ color: var(--gold-300); }
.footer-legal a:hover{ text-decoration: underline; }
.footer-social{ display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.footer-social a{
  width: 44px; height: 44px; border-radius: 11px; border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s;
}
.footer-social a:hover{ border-color: var(--gold-400); background: rgba(212,160,62,.1); }
.footer-social svg{ width: 18px; height: 18px; fill: #fff; }

/* ---------- footer bottom: dati societari + privacy/cookie ---------- */
.footer-bottom{
  position: relative; z-index: 2;
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
}
.footer-bottom-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p{ color: rgba(255,255,255,.4); font-size: .78rem; }
.footer-bottom-links a{ color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover{ color: var(--gold-300); text-decoration: underline; }

/* ---------- WhatsApp flottante (solo mobile) ---------- */
.whatsapp-fab{
  display: none;
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 95;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,.4);
}
.whatsapp-fab svg{ width: 28px; height: 28px; color: #fff; }

/* ---------- form status ---------- */
.form-status{
  display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--paper-dim); color: var(--slate); font-size: .86rem; line-height: 1.5;
}
.form-status.is-visible{ display: block; }
.form-status.is-error{ background: #fbe9e7; color: #9c3b2e; }

/* Honeypot: nascosto ai visitatori, visibile ai bot che leggono il DOM */
.hp-field{
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- pagina servizio singolo ---------- */
.service-layout{ display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.feature-text.checklist-grid ul{ grid-template-columns: 1fr 1fr; column-gap: 28px; }
.service-sidebar{
  position: sticky; top: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}
.service-sidebar h4{
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.service-sidebar ul{ display: flex; flex-direction: column; gap: 2px; }
.service-sidebar a{
  display: block; padding: 11px 14px; border-radius: 8px;
  font-size: .92rem; line-height: 1.4; color: var(--ink);
  border-left: 3px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.service-sidebar a:hover{ background: var(--paper-dim); padding-left: 18px; }
.service-sidebar a.active{
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-left-color: var(--navy-950);
  color: #fff; font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.service-sidebar-cta{
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .flex-grid-3 > *{ flex: 0 0 calc((100% - 32px) / 2); max-width: calc((100% - 32px) / 2); }
  .statement-grid{ grid-template-columns: 1fr; gap: 36px; }
  .feature{ grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-media{ order: 1; }
  .feature.reverse .feature-text{ order: 2; }
  .contact-grid{ grid-template-columns: 1fr; gap: 44px; }
  .service-layout{ grid-template-columns: 1fr; gap: 40px; }
  .service-sidebar{ position: static; }
}

@media (max-width: 760px){
  .whatsapp-fab{ display: flex; }
  .footer-bottom-inner{ flex-direction: column; text-align: center; }
  .section{ padding: 80px 0; }
  .section-tight{ padding: 56px 0; }
  .feature-text.checklist-grid ul{ grid-template-columns: 1fr; }
  .section-head{ margin-bottom: 44px; }
  .statement-grid{ gap: 48px; }
  .feature{ gap: 40px; }
  .nav-toggle{ display: block; }
  .site-header .container{ display: flex; justify-content: space-between; }
  .site-header .site-nav{ justify-self: stretch; }
  .site-nav{
    position: fixed; inset: 0; z-index: 90;
    background: var(--navy-950);
    flex-direction: column; justify-content: center; gap: 24px;
    padding-inline: 24px;
    transform: translateY(-100%); opacity: 0;
    transition: transform .4s var(--ease), opacity .3s var(--ease);
    pointer-events: none;
  }
  .nav-open .site-nav{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav .nav-link{ font-size: 1.4rem; color: #fff; }
  .site-nav .nav-social{ margin-top: 8px; }
  .site-nav .nav-social a{ width: 46px; height: 46px; border-color: rgba(255,255,255,.3); color: #fff; }
  .site-nav .nav-social svg{ width: 20px; height: 20px; }
  .nav-item{ flex-direction: column; }
  .nav-caret{ color: #fff; padding: 8px; }
  /* stesso motivo del reset qui sotto sul dropdown: un tap può lasciare
     ":hover" agganciato sul touch, quindi la freccia resterebbe ruotata
     anche a menu chiuso senza questo reset (.open dichiarato dopo, vince
     quando il menu è aperto). */
  .nav-item:hover .nav-caret svg{ transform: none; }
  .nav-item.open .nav-caret svg{ transform: rotate(180deg); }
  .nav-dropdown{
    position: static; transform: none; opacity: 1; pointer-events: none;
    padding-top: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  /* Su mobile l'apertura dipende solo dal tap (classe .open via JS): dopo
     un tap il bottone freccia può restare a fuoco, e senza questo reset
     la regola pensata per l'hover/focus da desktop (con la traslazione
     per centrare il pannello flottante) si riattiva alla chiusura,
     spostando il menu fuori schermo. .open va dichiarato dopo per vincere
     quando i due stati coincidono. */
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown{
    max-height: 0; overflow: hidden; transform: none; pointer-events: none;
  }
  .nav-item.open .nav-dropdown{ max-height: 70vh; overflow-y: auto; pointer-events: auto; padding-top: 10px; transform: none; }
  .nav-dropdown-inner{
    background: transparent; box-shadow: none; padding: 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .nav-dropdown .nav-link{
    color: #fff; font-size: 1rem; font-weight: 500; padding: 8px 14px;
    white-space: normal; text-align: center; max-width: 320px;
  }
  .nav-dropdown .nav-link:hover{ background: rgba(255,255,255,.08); color: var(--gold-300); }
  /* Solo mentre il banner cookie di Iubenda è visibile (prima visita,
     prima che l'utente accetti/rifiuti): layout compatto in alto invece
     che centrato, per non finire sotto al banner (z-index volutamente
     altissimo, resta sempre sopra a tutto per conformità GDPR). */
  .site-nav.avoid-cookie-banner{ justify-content: flex-start; gap: 16px; padding-top: 90px; }
  .site-nav.avoid-cookie-banner .nav-link{ font-size: 1.25rem; }
  .nav-actions .btn-line.desktop-only{ display: none; }
  .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .flex-grid-3 > *{ flex: 0 0 100%; max-width: 100%; }
  .hero-inner{ padding-block: 128px 56px; }
  .hero-scroll{ display: none; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .form-row{ grid-template-columns: 1fr; }
  .cta-simple{ flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-simple .btn{ width: 100%; }
  .form-card{ padding: 26px; }
}
