/*
Theme Name:  VF Infissi
Theme URI:   https://vfinfissibari.it
Author:      Stefano (dev)
Description: Tema professionale per aziende di serramentistica.
Version:     1.8.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     Privato
Text Domain: vf-infissi
*/

/* ─── RESET & ROOT ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --vf-dark:        #1a1917;
  --vf-warm:        #f4ede1;
  --vf-mid:         #252420;
  --vf-mid2:        #2e2c28;
  --vf-accent:      #b8935a;
  --vf-accent-l:    #d4a96d;
  --vf-text-dark:   #e8e2d8;
  --vf-muted-dark:  #7a7570;
  --vf-muted-light: #6b6560;
  --vf-bd:          rgba(255,255,255,0.07);
  --vf-bl:          rgba(0,0,0,0.09);
  --vf-font-serif:  'Jost', Georgia, sans-serif;
  --vf-font-sans:   'Jost', 'Segoe UI', system-ui, sans-serif;
  --vf-font-size:   16px;
  --vf-radius:      4px;
  --vf-radius-sm:   2px;
  --vf-max-w:       1440px;
  --vf-pad:         clamp(20px, 4vw, 64px);
}

html { scroll-behavior: smooth; }
body { font-family: var(--vf-font-sans); background: var(--vf-warm); color: var(--vf-dark); line-height: 1.6; font-size: var(--vf-font-size); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; }

/* ─── CONTAINER ─── */
.vf-container {
  max-width: var(--vf-max-w);
  margin: 0 auto;
  padding: 0 var(--vf-pad);
  width: 100%;
}

/* ─── ANIMAZIONI SCROLL ─── */
.vf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.25,.46,.45,.94), transform .65s cubic-bezier(.25,.46,.45,.94);
}
.vf-reveal.visible { opacity: 1; transform: translateY(0); }
.vf-reveal-delay-1 { transition-delay: .1s; }
.vf-reveal-delay-2 { transition-delay: .2s; }
.vf-reveal-delay-3 { transition-delay: .3s; }
.vf-reveal-delay-4 { transition-delay: .4s; }

/* ─── UTILITY ─── */
.eyebrow {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--vf-accent); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.eyebrow::before { content: ''; display: block; width: 18px; height: 1px; background: var(--vf-accent); }

.btn-primary {
  background: var(--vf-accent); color: #fff;
  padding: 13px 28px; border-radius: var(--vf-radius-sm);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: none; display: inline-block; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--vf-accent-l); transform: translateY(-1px); }

.btn-ghost {
  color: var(--vf-text-dark); font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; border: none; background: none; transition: gap .2s;
}
.btn-ghost::after { content: '→'; }
.btn-ghost:hover { gap: 10px; }

.btn-white {
  background: #fff; color: var(--vf-dark);
  padding: 13px 28px; border-radius: var(--vf-radius-sm);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: none; font-weight: 600; transition: opacity .2s, transform .15s;
}
.btn-white:hover { opacity: .9; transform: translateY(-1px); }

/* ─── NAV ─── */
.vf-nav {
  background: rgba(26,25,23,0.97); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--vf-bd);
}
.vf-nav__inner {
  max-width: var(--vf-max-w); margin: 0 auto;
  padding: 0 var(--vf-pad); height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.vf-nav__logo {
  font-family: var(--vf-font-serif); font-size: 17px;
  color: #fff; letter-spacing: .04em; font-weight: 400;
}
.vf-nav__logo span { color: var(--vf-accent); }
.vf-nav__logo--img { display: flex; align-items: center; }
.vf-nav__logo--img .custom-logo-link { display: flex; align-items: center; line-height: 1; }
.vf-nav__logo--img .custom-logo { height: 36px; width: auto; max-width: 150px; display: block; object-fit: contain; }
.vf-nav__links { display: flex; gap: 24px; list-style: none; }
.vf-nav__links a { color: var(--vf-muted-dark); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.vf-nav__links a:hover { color: #fff; }
.vf-nav__cta { background: var(--vf-accent); color: #fff; font-size: 11px; padding: 8px 16px; border-radius: var(--vf-radius-sm); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; border: none; white-space: nowrap; transition: background .2s; }
.vf-nav__cta:hover { background: var(--vf-accent-l); }
.vf-nav__hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 4px; }
.vf-nav__mobile {
  display: none; position: fixed; inset: 0; top: 58px;
  background: var(--vf-dark); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 0;
  overflow-y: auto;
}
.vf-nav__mobile.open { display: flex; }
.vf-nav__mobile-list { list-style: none; text-align: center; padding: 32px 0; }
.vf-nav__mobile-list li { border-bottom: 1px solid var(--vf-bd); }
.vf-nav__mobile-list li:first-child { border-top: 1px solid var(--vf-bd); }
.vf-nav__mobile-list a {
  display: block; padding: 18px 40px;
  color: var(--vf-text-dark); font-size: 16px; letter-spacing: .06em;
  text-transform: uppercase; transition: color .2s;
}
.vf-nav__mobile-list a:hover { color: var(--vf-accent); }
.vf-nav__mobile-cta {
  display: inline-block; margin-top: 32px;
  background: var(--vf-accent); color: #fff;
  padding: 14px 32px; border-radius: var(--vf-radius-sm);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s;
}
.vf-nav__mobile-cta:hover { background: var(--vf-accent-l); }

/* ─── HERO ─── */
.vf-hero {
  background: var(--vf-dark); min-height: 520px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.vf-hero__inner {
  max-width: var(--vf-max-w); margin: 0 auto;
  padding: 72px var(--vf-pad); width: 100%;
  position: relative; z-index: 2;
}
.vf-hero__bg-text {
  position: absolute; right: -10px; bottom: -40px;
  font-family: var(--vf-font-serif); font-size: 280px; font-weight: 700;
  color: rgba(255,255,255,0.025); letter-spacing: -.05em; line-height: 1;
  pointer-events: none; user-select: none; z-index: 1;
}
.vf-hero__content { max-width: 620px; }
.vf-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(184,147,90,.12); border: 1px solid rgba(184,147,90,.3);
  padding: 6px 14px; border-radius: var(--vf-radius-sm); margin-bottom: 24px;
}
.vf-hero__badge-dot { width: 6px; height: 6px; background: var(--vf-accent); border-radius: 50%; flex-shrink: 0; }
.vf-hero__badge span { font-size: 11px; color: var(--vf-accent); letter-spacing: .1em; text-transform: uppercase; }
.vf-hero h1 {
  font-family: var(--vf-font-serif); font-size: clamp(36px, 4.5vw, 58px);
  color: #fff; font-weight: 300; line-height: 1.1; margin-bottom: 20px; letter-spacing: -.02em;
}
.vf-hero h1 em { color: var(--vf-accent); font-style: normal; font-weight: 500; }
.vf-hero__sub { color: var(--vf-muted-dark); font-size: 16px; line-height: 1.75; max-width: 480px; margin-bottom: 36px; }
.vf-hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.vf-hero__stats { display: flex; gap: 40px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--vf-bd); }
.vf-hero__stat-num { font-family: var(--vf-font-serif); font-size: 32px; color: #fff; font-weight: 300; }
.vf-hero__stat-label { font-size: 10px; color: var(--vf-muted-dark); letter-spacing: .07em; text-transform: uppercase; margin-top: 2px; }

/* hero con media */
.vf-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.vf-hero__yt-wrap { position: absolute; inset: -60px; z-index: 0; pointer-events: none; }
.vf-hero__yt-wrap iframe { width: 100%; height: 100%; border: none; }
.vf-hero__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(20,18,15,0.62); }
.vf-hero--media .vf-hero__bg-text { z-index: 2; }
/* white theme + media: testi sempre bianchi */
.vf-hero--media h1 { color: #ffffff !important; }
.vf-hero--media h1 em { color: var(--vf-accent) !important; }
.vf-hero--media .vf-hero__sub { color: rgba(255,255,255,.78) !important; }
.vf-hero--media .vf-hero__stat-num { color: #ffffff !important; }
.vf-hero--media .vf-hero__stat-label { color: rgba(255,255,255,.55) !important; }
.vf-hero--media .vf-hero__stats { border-top-color: rgba(255,255,255,.12) !important; }
.vf-hero--media .vf-hero__badge { background: rgba(184,147,90,.18) !important; border-color: rgba(184,147,90,.45) !important; }
.vf-hero--media .btn-ghost { color: rgba(255,255,255,.85) !important; }
.vf-hero--media .vf-hero__bg-text { color: rgba(255,255,255,.022) !important; }

/* ─── DOMAL BAND ─── */
.vf-domal { background: var(--vf-mid2); border-bottom: 1px solid var(--vf-bd); }
.vf-domal__inner {
  max-width: var(--vf-max-w); margin: 0 auto; padding: 16px var(--vf-pad);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.vf-domal__badge { display: flex; align-items: center; gap: 14px; }
.vf-domal__icon { width: 34px; height: 34px; border: 1px solid var(--vf-accent); border-radius: var(--vf-radius-sm); display: flex; align-items: center; justify-content: center; color: var(--vf-accent); font-size: 14px; flex-shrink: 0; }
.vf-domal__title { font-size: 13px; color: var(--vf-text-dark); font-weight: 500; }
.vf-domal__sub { font-size: 11px; color: var(--vf-muted-dark); margin-top: 2px; max-width: 520px; line-height: 1.5; }
.vf-domal__logos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.vf-domal__logo-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vf-domal__logo-img { height: 28px; width: auto; max-width: 90px; object-fit: contain; filter: brightness(0) invert(1); opacity: .45; transition: opacity .2s; }
.vf-domal__logo-img:hover { opacity: .75; }
.vf-domal__pill { font-family: var(--vf-font-serif); font-size: 12px; color: rgba(255,255,255,.4); padding: 4px 10px; border: 1px solid var(--vf-bd); border-radius: var(--vf-radius-sm); letter-spacing: .04em; }

/* ─── CHI SIAMO (redesign editoriale) ─── */
.vf-about { background: var(--vf-warm); overflow: hidden; }
.vf-about__inner {
  max-width: var(--vf-max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 540px;
}
.vf-about__photo-col {
  position: relative; overflow: hidden; min-height: 480px;
}
.vf-about__photo-col img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.vf-about__photo-col:hover img { transform: scale(1.03); }
.vf-about__photo-placeholder {
  position: absolute; inset: 0; background: var(--vf-dark);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.vf-about__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,25,23,.3) 0%, transparent 60%);
}
.vf-about__text-col {
  padding: 72px var(--vf-pad) 72px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.vf-about__quote-bg {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--vf-font-serif); font-size: 220px; line-height: 1;
  color: rgba(184,147,90,.06); pointer-events: none; user-select: none;
  font-weight: 700; letter-spacing: -.05em;
}
.vf-about__text-col h2 {
  font-family: var(--vf-font-serif); font-size: clamp(26px,3vw,38px);
  font-weight: 300; line-height: 1.2; margin-bottom: 20px; color: var(--vf-dark);
  position: relative; z-index: 1;
}
.vf-about__text-col p {
  color: var(--vf-muted-light); font-size: 15px; line-height: 1.8;
  max-width: 480px; position: relative; z-index: 1;
}
.vf-about__text-col p + p { margin-top: 14px; }
.vf-about__cert {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 32px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--vf-bl);
  border-left: 3px solid var(--vf-accent); border-radius: var(--vf-radius-sm);
  max-width: 440px; position: relative; z-index: 1;
}
.vf-about__cert-ico { font-size: 20px; color: var(--vf-accent); flex-shrink: 0; margin-top: 1px; }
.vf-about__cert-title { font-size: 13px; color: var(--vf-dark); font-weight: 500; }
.vf-about__cert-sub { font-size: 11px; color: var(--vf-muted-light); margin-top: 2px; line-height: 1.5; }

/* ─── CAROUSEL ─── */
.vf-carousel { padding: 72px 0; }
.vf-carousel--dark  { background: var(--vf-mid); }
.vf-carousel--light { background: var(--vf-warm); }
.vf-carousel__head {
  max-width: var(--vf-max-w); margin: 0 auto;
  padding: 0 var(--vf-pad) 40px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.vf-carousel__head h2 { font-family: var(--vf-font-serif); font-size: 34px; font-weight: 300; margin-top: 10px; }
.vf-carousel--dark  .vf-carousel__head h2 { color: #fff; }
.vf-carousel--light .vf-carousel__head h2 { color: var(--vf-dark); }
.vf-carousel__sub { font-size: 14px; margin-top: 4px; }
.vf-carousel--dark  .vf-carousel__sub { color: var(--vf-muted-dark); }
.vf-carousel--light .vf-carousel__sub { color: var(--vf-muted-light); }
.vf-carousel__arrows { display: flex; gap: 10px; flex-shrink: 0; }
.vf-carousel__arrow {
  width: 44px; height: 44px; border-radius: var(--vf-radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: background .2s, border-color .2s, color .2s, transform .15s;
  user-select: none; border: 1px solid;
}
.vf-carousel--dark  .vf-carousel__arrow { background: rgba(255,255,255,.06); border-color: var(--vf-bd); color: #fff; }
.vf-carousel--light .vf-carousel__arrow { background: rgba(0,0,0,.06); border-color: var(--vf-bl); color: var(--vf-dark); }
.vf-carousel__arrow:hover { background: var(--vf-accent) !important; border-color: var(--vf-accent) !important; color: #fff !important; transform: scale(1.05); }
.vf-carousel__arrow:active { transform: scale(.95); }
.vf-carousel__arrow.disabled { opacity: .2; pointer-events: none; }
.vf-carousel__viewport {
  max-width: var(--vf-max-w); margin: 0 auto;
  overflow: hidden; padding: 0 var(--vf-pad); cursor: grab;
}
.vf-carousel__viewport:active { cursor: grabbing; }
.vf-carousel__track { display: flex; gap: 16px; width: max-content; transition: transform .45s cubic-bezier(.25,.46,.45,.94); }
.vf-carousel__dots { display: flex; justify-content: center; gap: 6px; padding: 24px 0 0; }
.vf-carousel__dot { width: 6px; height: 6px; border-radius: 50%; cursor: pointer; transition: all .25s; }
.vf-carousel--dark  .vf-carousel__dot { background: rgba(255,255,255,.2); }
.vf-carousel--light .vf-carousel__dot { background: rgba(0,0,0,.2); }
.vf-carousel__dot.active { width: 20px; border-radius: 3px; background: var(--vf-accent) !important; }

/* ─── SOLUZIONI CARD ─── */
.vf-sol-card {
  width: 300px; height: 400px; border-radius: var(--vf-radius); overflow: hidden;
  position: relative; flex-shrink: 0; cursor: pointer; border: 1px solid rgba(255,255,255,.06);
}
.vf-sol-card__bg {
  position: absolute; inset: 0; transition: transform .7s cubic-bezier(.25,.46,.45,.94);
  background-size: cover; background-position: center;
}
.vf-sol-card:hover .vf-sol-card__bg { transform: scale(1.06); }
.vf-sol-card__video {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: opacity .4s;
}
.vf-sol-card.is-hovered .vf-sol-card__video { opacity: 1; }
.vf-sol-card__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-sol-card__play {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5); display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: #fff;
  transition: transform .2s, border-color .2s;
}
.vf-sol-card.is-hovered .vf-sol-card__play { transform: scale(1.1); border-color: rgba(255,255,255,.9); }
.vf-sol-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 55%, transparent 100%); }
.vf-sol-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(184,147,90,.2); border: 1px solid rgba(184,147,90,.4);
  color: var(--vf-accent); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.vf-sol-card__content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 22px;
  transform: translateY(8px); transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.vf-sol-card.is-hovered .vf-sol-card__content { transform: translateY(0); }
.vf-sol-card__num { font-family: var(--vf-font-serif); font-size: 11px; color: rgba(255,255,255,.28); margin-bottom: 5px; }
.vf-sol-card__title { font-family: var(--vf-font-serif); font-size: 22px; color: #fff; font-weight: 300; line-height: 1.2; margin-bottom: 10px; }
.vf-sol-card__tags { display: flex; flex-wrap: wrap; gap: 4px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s, max-height .35s; }
.vf-sol-card.is-hovered .vf-sol-card__tags { opacity: 1; max-height: 80px; }
.vf-sol-card__tag-item { font-size: 10px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 3px 8px; border-radius: 20px; }
.vf-sol-card__line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--vf-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.vf-sol-card.is-hovered .vf-sol-card__line { transform: scaleX(1); }
/* placeholder colori */
.vf-sol-card__bg--1 { background: linear-gradient(160deg,#2a2420,#1a150f); }
.vf-sol-card__bg--2 { background: linear-gradient(160deg,#1f2530,#141b24); }
.vf-sol-card__bg--3 { background: linear-gradient(160deg,#252018,#1a1612); }
.vf-sol-card__bg--4 { background: linear-gradient(160deg,#1e2a22,#141d17); }
.vf-sol-card__bg--5 { background: linear-gradient(160deg,#2a2022,#1e1517); }
.vf-sol-card__bg--6 { background: linear-gradient(160deg,#222028,#17151e); }
a.vf-sol-card { display: block; color: inherit; }

/* ─── BRAND SECTION ─── */
.vf-brands { background: var(--vf-dark); border-top: 1px solid var(--vf-bd); }
.vf-brands__inner {
  max-width: var(--vf-max-w); margin: 0 auto; padding: 48px var(--vf-pad);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.vf-brands__label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--vf-muted-dark); white-space: nowrap; }
.vf-brands__divider { width: 1px; height: 32px; background: var(--vf-bd); flex-shrink: 0; }
.vf-brands__logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.vf-brands__item { display: flex; align-items: center; gap: 10px; }
.vf-brands__logo { height: 32px; width: auto; max-width: 100px; object-fit: contain; filter: brightness(0) invert(1); opacity: .4; transition: opacity .25s; }
.vf-brands__logo:hover { opacity: .75; }
.vf-brands__name { font-family: var(--vf-font-serif); font-size: 16px; color: rgba(255,255,255,.35); letter-spacing: .04em; transition: color .25s; }
.vf-brands__item:hover .vf-brands__name { color: rgba(255,255,255,.7); }

/* ─── SERVIZI CARD ─── */
.vf-serv-card {
  width: 300px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--vf-bl); border-radius: var(--vf-radius);
  padding: 32px 26px; transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.vf-serv-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--vf-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
}
.vf-serv-card:hover { border-color: rgba(184,147,90,.3); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.vf-serv-card:hover::before { transform: scaleX(1); }
.vf-serv-card--featured { border-left: 3px solid var(--vf-accent); background: #fffdf9; }
.vf-serv-card__icon {
  width: 44px; height: 44px; margin-bottom: 20px;
  color: var(--vf-accent);
}
.vf-serv-card__icon svg { width: 44px; height: 44px; stroke: var(--vf-accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vf-serv-card h3 { font-family: var(--vf-font-serif); font-size: 19px; font-weight: 400; color: var(--vf-dark); margin-bottom: 10px; }
.vf-serv-card--featured h3 { color: var(--vf-accent); }
.vf-serv-card p { font-size: 13px; color: var(--vf-muted-light); line-height: 1.75; }

/* ─── LAVORI ─── */
.vf-lavori { background: var(--vf-dark); padding: 72px 0; }
.vf-lavori__container { max-width: var(--vf-max-w); margin: 0 auto; padding: 0 var(--vf-pad); }
.vf-lavori__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.vf-lavori__head h2 { font-family: var(--vf-font-serif); font-size: 34px; color: #fff; font-weight: 300; }
.vf-lavori__all { font-size: 12px; color: var(--vf-accent); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: gap .2s; }
.vf-lavori__all::after { content: '→'; }
.vf-lavori__all:hover { gap: 9px; }
.vf-lavori__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vf-lavoro-card { background: var(--vf-mid2); border-radius: var(--vf-radius); overflow: hidden; transition: transform .25s; }
.vf-lavoro-card:hover { transform: translateY(-4px); }
.vf-lavoro-card a { display: block; color: inherit; }
.vf-lavoro-card__img { height: 180px; background: var(--vf-mid); overflow: hidden; position: relative; }
.vf-lavoro-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vf-lavoro-card:hover .vf-lavoro-card__img img { transform: scale(1.06); }
.vf-lavoro-card__cat { position: absolute; top: 10px; left: 10px; background: var(--vf-accent); color: #fff; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; }
.vf-lavoro-card__body { padding: 14px 16px; }
.vf-lavoro-card__title { color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.vf-lavoro-card__meta { color: var(--vf-muted-dark); font-size: 11px; }

/* ─── CTA BAND ─── */
.vf-cta { background: var(--vf-accent); }
.vf-cta__inner {
  max-width: var(--vf-max-w); margin: 0 auto; padding: 52px var(--vf-pad);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.vf-cta h2 { font-family: var(--vf-font-serif); font-size: 28px; color: #fff; font-weight: 300; max-width: 520px; line-height: 1.3; }

/* ─── CONTATTI ─── */
.vf-contact { background: var(--vf-mid); }
.vf-contact__inner {
  max-width: var(--vf-max-w); margin: 0 auto; padding: 72px var(--vf-pad);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px;
}
.vf-contact__info h2 { font-family: var(--vf-font-serif); font-size: 30px; color: #fff; font-weight: 300; margin-bottom: 28px; }
.vf-contact__item { margin-bottom: 20px; }
.vf-contact__label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--vf-muted-dark); margin-bottom: 4px; }
.vf-contact__val { color: var(--vf-text-dark); font-size: 15px; }
.vf-contact__val a { color: var(--vf-text-dark); transition: color .2s; }
.vf-contact__val a:hover { color: var(--vf-accent); }
.vf-contact__divider { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--vf-bd); }
.vf-form { display: flex; flex-direction: column; gap: 10px; }
.vf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vf-form__row--full { grid-template-columns: 1fr; }
.vf-field {
  background: rgba(255,255,255,.05); border: 1px solid var(--vf-bd);
  padding: 12px 14px; color: #fff; font-size: 14px;
  border-radius: var(--vf-radius-sm); width: 100%; transition: border-color .2s, background .2s;
}
.vf-field::placeholder { color: var(--vf-muted-dark); }
.vf-field:focus { outline: none; border-color: var(--vf-accent); background: rgba(255,255,255,.08); }
.vf-field option { background: var(--vf-mid); }
.vf-form__note { font-size: 11px; color: var(--vf-muted-dark); font-style: italic; margin-top: 6px; }

/* ─── WHATSAPP ─── */
.vf-wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35); transition: transform .2s;
}
.vf-wa-float:hover { transform: scale(1.1); }
.vf-wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ─── FOOTER ─── */
.vf-footer { background: rgba(0,0,0,.5); }
.vf-footer__inner {
  max-width: var(--vf-max-w); margin: 0 auto; padding: 20px var(--vf-pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.vf-footer__logo { font-family: var(--vf-font-serif); font-size: 13px; color: rgba(255,255,255,.35); }
.vf-footer__logo span { color: var(--vf-accent); }
.vf-footer p { font-size: 11px; color: var(--vf-muted-dark); }
.vf-footer a { color: var(--vf-accent); font-size: 11px; }

/* ─── PAGINA SINGOLA LAVORO ─── */
.vf-lavoro-single { background: var(--vf-warm); padding: 64px 0; }
.vf-lavoro-single__wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--vf-pad); }

/* ─── PAGE.PHP ─── */
.vf-page-wrap { max-width: 780px; margin: 0 auto; padding: 64px var(--vf-pad); }
.vf-page-content h2,.vf-page-content h3{font-family:var(--vf-font-serif);font-weight:normal;color:var(--vf-dark);margin:28px 0 12px}
.vf-page-content h2{font-size:22px}.vf-page-content h3{font-size:18px}
.vf-page-content p{margin-bottom:16px;color:var(--vf-muted-light);line-height:1.8}
.vf-page-content a{color:var(--vf-accent);text-decoration:underline}
.vf-page-content ul,.vf-page-content ol{padding-left:20px;margin-bottom:16px}
.vf-page-content li{margin-bottom:6px;color:var(--vf-muted-light)}
.vf-page-content strong{color:var(--vf-dark);font-weight:600}


/* ─── SEZIONE PRODOTTI ─── */
.vf-prodotti { background: var(--vf-dark); padding: 96px 0; }
.vf-prodotti__inner { max-width: var(--vf-max-w); margin: 0 auto; padding: 0 var(--vf-pad); }
.vf-prodotti__header { margin-bottom: 60px; }
.vf-prodotti__header h2 { font-family: var(--vf-font-serif); font-size: clamp(28px,3.5vw,46px); color: #fff; font-weight: 300; line-height: 1.15; max-width: 600px; }
.vf-prodotti__header h2 em { color: var(--vf-accent); font-style: normal; font-weight: 500; }

/* desktop: 2 colonne */
.vf-prodotti__desktop { display: grid; grid-template-columns: 300px 1fr; gap: 0; min-height: 560px; }

/* sidebar */
.vf-prodotti__sidebar { border-right: 1px solid var(--vf-bd); overflow-y: auto; max-height: 600px; scrollbar-width: thin; scrollbar-color: var(--vf-accent) transparent; }
.vf-prodotti__sidebar::-webkit-scrollbar { width: 3px; }
.vf-prodotti__sidebar::-webkit-scrollbar-thumb { background: var(--vf-accent); border-radius: 2px; }
.vf-prod-si {
  display: flex; align-items: center; gap: 14px; padding: 16px 24px 16px 0;
  cursor: pointer; border-bottom: 1px solid var(--vf-bd); position: relative; transition: all .2s; user-select: none;
}
.vf-prod-si:first-child { border-top: 1px solid var(--vf-bd); }
.vf-prod-si::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--vf-accent); transform: scaleY(0); transform-origin: center; transition: transform .25s cubic-bezier(.25,.46,.45,.94); }
.vf-prod-si.active::before { transform: scaleY(1); }
.vf-prod-si.active { background: rgba(184,147,90,.06); }
.vf-prod-si:hover:not(.active) { background: rgba(255,255,255,.025); }
.vf-prod-si__num { font-size: 11px; color: var(--vf-muted-dark); width: 22px; flex-shrink: 0; letter-spacing: .05em; transition: color .2s; }
.vf-prod-si.active .vf-prod-si__num, .vf-prod-si:hover .vf-prod-si__num { color: var(--vf-accent); }
.vf-prod-si__info { flex: 1; }
.vf-prod-si__name { font-size: 14px; color: var(--vf-text-dark); line-height: 1.3; transition: color .2s; }
.vf-prod-si.active .vf-prod-si__name { color: #fff; font-weight: 500; }
.vf-prod-si:hover:not(.active) .vf-prod-si__name { color: #fff; }
.vf-prod-si__macro { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--vf-muted-dark); margin-top: 2px; }
.vf-prod-si__arr { font-size: 13px; color: var(--vf-accent); opacity: 0; transform: translateX(-5px); transition: opacity .2s, transform .2s; flex-shrink: 0; }
.vf-prod-si.active .vf-prod-si__arr, .vf-prod-si:hover .vf-prod-si__arr { opacity: 1; transform: none; }

/* pannello destro */
.vf-prodotti__panel { padding-left: 52px; position: relative; overflow: hidden; }
.vf-prod-pane {
  position: absolute; inset: 0; padding-left: 52px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateX(16px);
  transition: opacity .3s cubic-bezier(.25,.46,.45,.94), transform .3s cubic-bezier(.25,.46,.45,.94);
  pointer-events: none;
}
.vf-prod-pane.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.vf-prod-pane__img {
  width: 100%; height: 300px; border-radius: var(--vf-radius); background: var(--vf-mid2);
  margin-bottom: 28px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vf-prod-pane__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.vf-prod-pane:hover .vf-prod-pane__img img { transform: scale(1.03); }
.vf-prod-pane__img-ph { color: rgba(255,255,255,.18); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.vf-prod-pane__bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--vf-accent); }
.vf-prod-pane__cat { display: inline-block; background: rgba(184,147,90,.15); border: 1px solid rgba(184,147,90,.3); color: var(--vf-accent); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.vf-prod-pane__title { font-family: var(--vf-font-serif); font-size: clamp(20px,2.5vw,30px); color: #fff; font-weight: 300; line-height: 1.2; margin-bottom: 14px; }
.vf-prod-pane__desc { font-size: 14px; color: var(--vf-muted-dark); line-height: 1.8; max-width: 520px; margin-bottom: 22px; }
.vf-prod-pane__types { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.vf-prod-pane__type { font-size: 11px; color: var(--vf-text-dark); background: rgba(255,255,255,.06); border: 1px solid var(--vf-bd); padding: 5px 13px; border-radius: 20px; transition: .2s; cursor: default; }
.vf-prod-pane__type:hover { background: rgba(184,147,90,.15); border-color: rgba(184,147,90,.35); color: var(--vf-accent); }
.vf-prod-pane__cta { display: inline-flex; align-items: center; gap: 7px; color: var(--vf-accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: gap .2s; text-decoration: none; }
.vf-prod-pane__cta::after { content: '→'; }
.vf-prod-pane__cta:hover { gap: 11px; }

/* mobile prodotti */
.vf-prodotti__mobile { display: none; }
.vf-prod-macro-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vf-prod-macro-pills::-webkit-scrollbar { display: none; }
.vf-prod-macro-pill { flex-shrink: 0; padding: 8px 18px; border-radius: 50px; font-size: 12px; font-weight: 500; cursor: pointer; transition: .2s; user-select: none; border: 1.5px solid var(--vf-bd); color: var(--vf-muted-dark); white-space: nowrap; background: transparent; }
.vf-prod-macro-pill.active { border-color: var(--vf-accent); color: var(--vf-accent); background: rgba(184,147,90,.1); }
.vf-prod-sep { height: 1px; background: var(--vf-bd); margin: 20px 0 0; }
.vf-prod-sub-nav { display: flex; align-items: center; }
.vf-prod-sub-track { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1; scroll-behavior: smooth; }
.vf-prod-sub-track::-webkit-scrollbar { display: none; }
.vf-prod-sub-arr { flex-shrink: 0; width: 32px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--vf-muted-dark); cursor: pointer; font-size: 16px; transition: color .2s; background: var(--vf-dark); border: none; }
.vf-prod-sub-arr:hover { color: #fff; }
.vf-prod-sub-arr.hidden { opacity: 0; pointer-events: none; }
.vf-prod-sub-item { flex-shrink: 0; padding: 14px 16px; font-size: 13px; color: var(--vf-muted-dark); cursor: pointer; white-space: nowrap; position: relative; transition: color .2s; border: none; background: none; font-family: var(--vf-font-sans); }
.vf-prod-sub-item::after { content: ''; position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px; background: var(--vf-accent); transform: scaleX(0); transform-origin: center; transition: transform .25s cubic-bezier(.25,.46,.45,.94); }
.vf-prod-sub-item.active { color: #fff; font-weight: 500; }
.vf-prod-sub-item.active::after { transform: scaleX(1); }
.vf-prod-mobile-panel { padding: 28px 0 0; }
.vf-prod-mobile-pane { display: none; }
.vf-prod-mobile-pane.active { display: block; }
.vf-prod-mobile-img { width: 100%; height: 220px; border-radius: var(--vf-radius); background: var(--vf-mid2); margin-bottom: 22px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vf-prod-mobile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-prod-mobile-img-ph { color: rgba(255,255,255,.2); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* fix icona servizio manutenzione */
.vf-serv-card__icon svg { width: 44px; height: 44px; stroke: var(--vf-accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }


/* ─── LIGHTBOX ─── */
.vf-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s cubic-bezier(.25,.46,.45,.94);
}
.vf-lightbox.open { opacity: 1; pointer-events: auto; }

.vf-lightbox__img-wrap {
  position: relative; max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.vf-lightbox__img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 2px;
  transform: scale(.96); transition: transform .3s cubic-bezier(.25,.46,.45,.94);
  user-select: none; -webkit-user-drag: none;
}
.vf-lightbox.open .vf-lightbox__img { transform: scale(1); }

/* frecce */
.vf-lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; cursor: pointer;
  transition: background .2s, transform .2s;
  user-select: none;
}
.vf-lightbox__arrow:hover { background: var(--vf-accent); border-color: var(--vf-accent); }
.vf-lightbox__arrow--prev { left: -68px; }
.vf-lightbox__arrow--next { right: -68px; }
.vf-lightbox__arrow.hidden { opacity: 0; pointer-events: none; }

/* chiudi */
.vf-lightbox__close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; cursor: pointer;
  transition: background .2s;
}
.vf-lightbox__close:hover { background: rgba(255,255,255,.25); }

/* counter */
.vf-lightbox__counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .08em;
}

/* dots */
.vf-lightbox__dots {
  position: fixed; bottom: 48px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.vf-lightbox__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25); transition: all .25s; cursor: pointer;
}
.vf-lightbox__dot.active { background: var(--vf-accent); width: 20px; border-radius: 3px; }

/* loading spinner */
.vf-lightbox__loader {
  position: absolute; width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--vf-accent);
  border-radius: 50%;
  animation: vf-spin .7s linear infinite;
}
@keyframes vf-spin { to { transform: rotate(360deg); } }

/* caption */
.vf-lightbox__caption {
  position: fixed; bottom: 68px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: rgba(255,255,255,.6);
  max-width: 480px; text-align: center; line-height: 1.5;
}

/* mobile: frecce inside */
@media (max-width: 600px) {
  .vf-lightbox__arrow--prev { left: 8px; }
  .vf-lightbox__arrow--next { right: 8px; }
  .vf-lightbox__img { max-width: 100vw; max-height: 80vh; }
}
/* ─── RESPONSIVE TABLET (max 1024px) ─── */
@media (max-width: 1024px) {
  .vf-about__inner { grid-template-columns: 1fr; }
  .vf-about__photo-col { min-height: 360px; }
  .vf-about__text-col { padding: 52px var(--vf-pad); }
  .vf-about__quote-bg { font-size: 140px; top: 10px; }
  .vf-sol-card { width: 270px; }
  .vf-serv-card { width: 270px; }
}

/* ─── RESPONSIVE MOBILE (max 768px) ─── */
@media (max-width: 768px) {
  :root { --vf-pad: 20px; }
  .vf-nav__inner { height: 54px; }
  .vf-nav__links { display: none; }
  .vf-nav__cta { display: none; }
  .vf-nav__hamburger { display: block; }
  .vf-nav__logo--img .custom-logo { height: 28px; }
  .vf-hero { min-height: auto; }
  .vf-hero__inner { padding: 48px var(--vf-pad); }
  .vf-hero__bg-text { font-size: 120px; }
  .vf-hero__sub { font-size: 15px; margin-bottom: 24px; }
  .vf-hero__stats { flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; padding-top: 24px; }
  .vf-hero__stat-num { font-size: 26px; }
  .vf-hero__yt-wrap { inset: -20px; }
  .vf-domal__inner { flex-direction: column; gap: 12px; }
  .vf-domal__logos { flex-wrap: wrap; gap: 12px; }
  .vf-about__photo-col { min-height: 280px; }
  .vf-about__text-col { padding: 40px var(--vf-pad); }
  .vf-about__text-col h2 { font-size: 24px; }
  .vf-about__cert { max-width: 100%; }
  .vf-carousel { padding: 48px 0; }
  .vf-carousel__head { padding-bottom: 28px; }
  .vf-carousel__head h2 { font-size: 26px; margin-top: 8px; }
  .vf-sol-card { width: 78vw; max-width: 300px; height: 340px; }
  .vf-serv-card { width: 78vw; max-width: 300px; padding: 24px 20px; }
  .vf-carousel__arrow { width: 38px; height: 38px; font-size: 16px; }
  .vf-lavori { padding: 48px 0; }
  .vf-lavori__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vf-lavoro-card__img { height: 130px; }
  .vf-cta__inner { flex-direction: column; gap: 20px; }
  .vf-cta h2 { font-size: 22px; }
  .vf-contact__inner { grid-template-columns: 1fr; gap: 36px; padding: 52px var(--vf-pad); }
  .vf-contact__info h2 { font-size: 24px; }
  .vf-form__row { grid-template-columns: 1fr; }
  .vf-footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vf-wa-float { bottom: 16px; right: 16px; width: 46px; height: 46px; }
  .vf-wa-float svg { width: 22px; height: 22px; }
  .vf-brands__inner { gap: 24px; }
  .vf-brands__logos { gap: 24px; }
  .vf-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .vf-prodotti__desktop { display: none !important; }
  .vf-prodotti__mobile { display: block !important; }
  .vf-prodotti { padding: 60px 0 48px; }
  .vf-prodotti__header { margin-bottom: 36px; }
}

/* ─── RESPONSIVE SMALL (max 480px) ─── */
@media (max-width: 480px) {
  .vf-lavori__grid { grid-template-columns: 1fr; }
  .vf-sol-card { width: 87vw; }
  .vf-serv-card { width: 87vw; }
  .vf-about__photo-col { min-height: 240px; }
}
