/* =========================================================
   F.R. IMPIANTI — Design System
   ========================================================= */

:root {
  /* Brand colors */
  --c-black:   #000000;
  --c-ink:     #1A1A1A;       /* primary text */
  --c-ink-2:   #4A4A4A;       /* secondary text */
  --c-ink-3:   #767676;       /* muted text */
  --c-line:    #E5E5E5;       /* borders */
  --c-bg:      #FFFFFF;
  --c-bg-2:    #FAFAFA;       /* alt section bg */
  --c-bg-3:    #F2F0EC;       /* warm off-white for editorial sections */
  --c-red:     #D60000;       /* brand red - CTA / accent */
  --c-red-dk:  #A50000;       /* hover */
  --c-red-tn:  #FEE5E5;       /* tint */
  --c-green:   #4A8B3D;       /* eco accent (impact/stats only) */
  --c-green-tn:#E8F1E6;
  --c-footer:  #171717;       /* dark footer */
  --c-topbar:  #1A1A1A;

  /* Typography */
  --f-display: "Fraunces", "Times New Roman", Georgia, serif;
  --f-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale (fluid) */
  --fs-display: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  --fs-h1:      clamp(2rem, 3vw + 1rem, 3.75rem);
  --fs-h2:      clamp(1.75rem, 2vw + 1rem, 2.75rem);
  --fs-h3:      clamp(1.25rem, 1vw + 1rem, 1.625rem);
  --fs-large:   clamp(1.125rem, 0.4vw + 1rem, 1.375rem);
  --fs-body:    1.0625rem;       /* 17px */
  --fs-small:   0.875rem;
  --fs-tiny:    0.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10:2.5rem;
  --sp-12:3rem;
  --sp-16:4rem;
  --sp-20:5rem;
  --sp-24:6rem;
  --sp-32:8rem;

  /* Layout */
  --maxw-content: 1200px;
  --maxw-wide:    1400px;
  --maxw-prose:   720px;

  /* Other */
  --radius:        4px;
  --radius-lg:     12px;
  --shadow-card:   0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-card-h: 0 1px 3px rgba(0,0,0,.06), 0 20px 40px rgba(0,0,0,.10);
  --tr-fast: 180ms cubic-bezier(.4,0,.2,1);
  --tr-base: 320ms cubic-bezier(.4,0,.2,1);
  --tr-slow: 600ms cubic-bezier(.16,1,.3,1);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4) 0;
  color: var(--c-ink);
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h2); }
h4 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--sp-4) 0; }

/* =========================================================
   Utility layout
   ========================================================= */
.wrap { width: 100%; max-width: var(--maxw-content); margin: 0 auto; padding: 0 var(--sp-6); }
.wrap--wide { max-width: var(--maxw-wide); }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 5vw, 4rem); }
.section--alt   { background: var(--c-bg-3); }
.section--ink   { background: var(--c-ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--c-red);
}

.lead { font-size: var(--fs-large); color: var(--c-ink-2); max-width: 56ch; line-height: 1.55; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.95rem 1.6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all var(--tr-fast);
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--tr-fast);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--c-red);
  color: #fff;
}
.btn--primary:hover { background: var(--c-red-dk); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--ghost-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1.5px solid var(--c-red);
  padding-bottom: 2px;
  transition: color var(--tr-fast);
}
.link-arrow:hover { color: var(--c-red); }
.link-arrow .arrow { transition: transform var(--tr-fast); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  background: var(--c-topbar);
  color: #B8B8B8;
  font-size: var(--fs-small);
  padding: var(--sp-3) 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.topbar a { color: #B8B8B8; transition: color var(--tr-fast); }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.topbar-info svg { width: 14px; height: 14px; opacity: .7; }
.topbar-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  font-weight: 500;
}
.topbar-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(74,139,61,.25);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--tr-fast);
}
.header.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-6);
}
.brand { flex-shrink: 0; }
.brand img { height: 72px; width: auto; display: block; }

.nav { display: flex; gap: var(--sp-2); align-items: center; }
.nav a {
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-ink);
  transition: color var(--tr-fast);
}
.nav a:hover { color: var(--c-red); }
.nav a.is-current { color: var(--c-red); }
.nav a.is-current::after {
  content: "";
  position: absolute;
  left: var(--sp-4); right: var(--sp-4);
  bottom: 0.5rem;
  height: 2px;
  background: var(--c-red);
}

.nav-has-submenu { position: relative; }
.nav-has-submenu > a::after {
  content: "▾";
  margin-left: var(--sp-2);
  font-size: 0.65em;
  opacity: .6;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-h);
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--tr-fast);
}
.nav-has-submenu:hover .submenu,
.nav-has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: var(--sp-3) var(--sp-5, 1.25rem);
  font-size: 0.875rem;
  border-left: 3px solid transparent;
}
.submenu a:hover {
  background: var(--c-bg-3);
  border-left-color: var(--c-red);
}

.btn-cta-nav {
  background: var(--c-ink);
  color: #fff !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius);
  transition: background var(--tr-fast);
}
.btn-cta-nav:hover { background: var(--c-red) !important; color: #fff !important; }
.btn-cta-nav::after { display: none !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-ink);
  position: relative;
  transition: all var(--tr-fast);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 24px; height: 2px;
  background: var(--c-ink);
  transition: all var(--tr-fast);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(.55) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.55) 100%);
  z-index: -1;
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(560px, 78vh, 760px);
  padding-block: var(--sp-16);
  color: #fff;
  max-width: 920px;
}
.hero__eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero__eyebrow::before {
  content: "";
  width: 36px; height: 1.5px;
  background: var(--c-red);
}
.hero__title {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw + 1rem, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.hero__title em {
  font-style: italic;
  color: #fff;
  position: relative;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 4px;
  background: var(--c-red);
}
.hero__sub {
  font-size: var(--fs-large);
  color: rgba(255,255,255,.92);
  max-width: 60ch;
  line-height: 1.5;
  margin-bottom: var(--sp-10);
}
.hero__ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__corner {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 2;
  color: #fff;
  text-align: right;
  font-size: var(--fs-small);
  max-width: 240px;
  border-right: 2px solid var(--c-red);
  padding-right: var(--sp-4);
  opacity: 0.88;
}
.hero__corner strong { display: block; font-family: var(--f-display); font-size: 1.125rem; font-weight: 600; margin-bottom: var(--sp-1); }

/* =========================================================
   Trust strip (certifications)
   ========================================================= */
.trust-strip {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  padding-block: var(--sp-10);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-10);
  align-items: center;
}
.trust-strip__lede {
  font-family: var(--f-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--c-ink-2);
  font-style: italic;
  font-weight: 400;
}
.trust-strip__lede strong { color: var(--c-ink); font-weight: 600; font-style: normal; }
.cert-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: all var(--tr-fast);
}
.cert-card:hover { border-color: var(--c-ink-3); transform: translateY(-2px); }
.cert-card img { height: 56px; width: auto; object-fit: contain; }
.cert-card__text { font-size: var(--fs-small); line-height: 1.3; }
.cert-card__text strong { display: block; color: var(--c-ink); font-weight: 700; }
.cert-card__text span { color: var(--c-ink-3); font-size: var(--fs-tiny); }

/* =========================================================
   Services grid
   ========================================================= */
.services { background: var(--c-bg-3); position: relative; }
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: end;
  margin-bottom: var(--sp-16);
}
.services__head h2 { margin: 0; }
.services__head h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--c-red); }
.services__head .lead { margin: 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.svc-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--tr-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-h);
}
.svc-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-ink);
}
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.16,1,.3,1);
}
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5) 100%);
}
.svc-card__num {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--c-red);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50%;
  z-index: 2;
}
.svc-card__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
}
.svc-card__body h3 {
  font-size: 1.375rem;
  margin: 0 0 var(--sp-3);
  line-height: 1.2;
}
.svc-card__body p {
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  margin: 0 0 var(--sp-5);
  line-height: 1.55;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--tr-fast), color var(--tr-fast);
}
.svc-card__link::after {
  content: "→";
  transition: transform var(--tr-fast);
}
.svc-card:hover .svc-card__link { color: var(--c-red); }
.svc-card:hover .svc-card__link::after { transform: translateX(4px); }

/* =========================================================
   Approach: 3 steps
   ========================================================= */
.approach { background: var(--c-ink); color: #fff; position: relative; overflow: hidden; }
.approach::before {
  content: "FR";
  position: absolute;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20rem, 30vw, 36rem);
  line-height: 0.8;
  color: rgba(255,255,255,.02);
  letter-spacing: -0.05em;
  right: -2rem;
  bottom: -4rem;
  pointer-events: none;
  user-select: none;
}
.approach__head { text-align: center; margin-bottom: var(--sp-16); position: relative; }
.approach__head .eyebrow { color: var(--c-red); }
.approach__head .eyebrow::before { background: var(--c-red); }
.approach__head h2 {
  color: #fff;
  font-size: var(--fs-display);
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.05;
}
.approach__head h2 em { font-style: italic; color: var(--c-red); font-variation-settings: "SOFT" 100, "WONK" 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-12);
  position: relative;
}
.step {
  position: relative;
  padding-top: var(--sp-12);
}
.step__num {
  font-family: var(--f-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,.1);
  margin-bottom: var(--sp-4);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.step__num em {
  color: var(--c-red);
  font-style: italic;
  margin-right: 0.1em;
}
.step h3 {
  color: #fff;
  font-size: 1.875rem;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
.step p {
  color: rgba(255,255,255,.7);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   Impact stats (eco green)
   ========================================================= */
.impact {
  position: relative;
}
.impact .eyebrow { color: var(--c-green); }
.impact .eyebrow::before { background: var(--c-green); }
.impact__head { text-align: center; margin-bottom: var(--sp-12); }
.impact__head h2 { max-width: 22ch; margin-inline: auto; }
.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-12);
  background: var(--c-green-tn);
  border-radius: var(--radius-lg);
  position: relative;
}
.impact__grid::before {
  content: "";
  position: absolute;
  top: var(--sp-6); left: var(--sp-6);
  width: 32px; height: 32px;
  background: var(--c-green);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M12 2C8 6 6 9 6 13a6 6 0 0 0 12 0c0-4-2-7-6-11z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M12 2C8 6 6 9 6 13a6 6 0 0 0 12 0c0-4-2-7-6-11z'/></svg>") center / contain no-repeat;
  opacity: .15;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 4vw + 1rem, 4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--c-green);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  font-variation-settings: "SOFT" 80;
}
.stat__num span { font-size: 0.5em; color: var(--c-ink-2); }
.stat__label {
  font-size: var(--fs-small);
  color: var(--c-ink-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   Editorial split: testo + gallery a mosaico
   ========================================================= */
.editorial {
  background: var(--c-bg-3);
}
.editorial__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-16);
  align-items: center;
}
.editorial__text { padding-right: var(--sp-4); }
.editorial__text h2 { margin-bottom: var(--sp-6); }
.editorial__text h2 em { color: var(--c-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.editorial__text p { color: var(--c-ink-2); line-height: 1.65; font-size: var(--fs-large); }

/* Recensioni */
.reviews__head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-8); }
.reviews__head .eyebrow { color: var(--c-red); justify-content: center; }
.reviews__head .eyebrow::before { background: var(--c-red); }
.reviews__head h2 { margin-bottom: var(--sp-4); }
.reviews__head h2 em { color: var(--c-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.reviews__head p { color: var(--c-ink-2); line-height: 1.65; font-size: var(--fs-large); }
.reviews__widget { min-height: 120px; }

/* Lascia una recensione (contatti) */
.leave-review__box {
  background: var(--c-bg-3);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.leave-review__text { flex: 1 1 360px; }
.leave-review__text .eyebrow { color: var(--c-red); }
.leave-review__text .eyebrow::before { background: var(--c-red); }
.leave-review__text h2 { margin-bottom: var(--sp-3); }
.leave-review__text h2 em { color: var(--c-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.leave-review__text p { color: var(--c-ink-2); line-height: 1.6; margin: 0; }
.leave-review__box .btn { flex: 0 0 auto; display: inline-flex; align-items: center; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-3);
  height: 540px;
}
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--tr-base);
}
.mosaic > a { overflow: hidden; border-radius: var(--radius-lg); display: block; }
.mosaic > a:hover img { transform: scale(1.04); }
.mosaic > a:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.mosaic > a:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.mosaic > a:nth-child(3) { grid-column: 4 / 6; grid-row: 2 / 3; }
.mosaic > a:nth-child(4) { grid-column: 6 / 7; grid-row: 2 / 3; }

/* =========================================================
   Final CTA strip
   ========================================================= */
.cta-final {
  background:
    linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(214,0,0,.75) 100%),
    url("../img/hero/assistenza-bg.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  max-width: 22ch;
  margin: 0 auto var(--sp-6);
  line-height: 1.1;
}
.cta-final h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.cta-final p {
  color: rgba(255,255,255,.9);
  max-width: 56ch;
  margin: 0 auto var(--sp-10);
  font-size: var(--fs-large);
}
.cta-final__btns {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final .btn--primary {
  background: #fff;
  color: var(--c-red);
}
.cta-final .btn--primary:hover { background: var(--c-ink); color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--c-footer);
  color: #B8B8B8;
  padding-top: clamp(4rem, 6vw, 5rem);
}
.footer h4 {
  font-family: var(--f-body);
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: var(--sp-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--sp-10);
}
.footer__brand img { height: 64px; margin-bottom: var(--sp-5); filter: brightness(0) invert(1); }
.footer__brand p { font-size: 0.9375rem; line-height: 1.6; color: #B8B8B8; max-width: 32ch; }
.footer__brand p strong { color: #fff; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: var(--sp-3); }
.footer__list a {
  color: #B8B8B8;
  font-size: 0.9375rem;
  transition: color var(--tr-fast);
}
.footer__list a:hover { color: #fff; }

.footer__contact { font-size: 0.9375rem; line-height: 1.6; color: #B8B8B8; }
.footer__contact a { color: #fff; font-weight: 500; }
.footer__contact .row { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.footer__contact .row svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; opacity: .7; }

.footer__marchi {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--fs-small);
  color: #888;
  line-height: 1.7;
}
.footer__marchi strong { color: #fff; font-weight: 600; }

.footer__bottom {
  margin-top: var(--sp-10);
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-tiny);
  color: #777;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .editorial__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .mosaic { height: 480px; }
  .services__head { grid-template-columns: 1fr; gap: var(--sp-6); }
  .trust-strip__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: var(--sp-6);
    transform: translateX(100%);
    transition: transform var(--tr-base);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); }
  .submenu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: 0;
    padding-left: var(--sp-4);
  }
  .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--sp-10); }
  .impact__grid { grid-template-columns: 1fr 1fr; padding: var(--sp-8); }
  .mosaic { height: 400px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
  .mosaic > a:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mosaic > a:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
  .mosaic > a:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .mosaic > a:nth-child(4) { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__corner { display: none; }
  .hero__title {
    font-size: clamp(2rem, 8.5vw, 3rem);
    letter-spacing: -0.01em;
  }
}

/* =========================================================
   INNER PAGES — additional styles
   ========================================================= */

/* Page hero (smaller than home hero) */
.page-hero {
  position: relative;
  min-height: clamp(340px, 45vh, 460px);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-ink);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-12);
  padding-top: var(--sp-16);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.5) contrast(1.05);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.65) 100%);
  z-index: -1;
}
.page-hero__inner {
  position: relative;
  color: #fff;
  max-width: 820px;
}
.page-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-5);
}
.page-hero__crumb a { color: rgba(255,255,255,.6); transition: color var(--tr-fast); }
.page-hero__crumb a:hover { color: #fff; }
.page-hero__crumb::before {
  content: "";
  width: 32px; height: 1.5px;
  background: var(--c-red);
  margin-right: var(--sp-2);
}
.page-hero__crumb .sep { opacity: .5; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-5);
}
.page-hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--c-red);
}
.page-hero p {
  font-size: var(--fs-large);
  color: rgba(255,255,255,.9);
  max-width: 60ch;
  margin: 0;
  line-height: 1.55;
}

/* Long-form readable content */
.prose {
  max-width: 740px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-ink);
}
.prose p { margin: 0 0 var(--sp-5); }
.prose p strong { color: var(--c-ink); font-weight: 700; }
.prose h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  margin: var(--sp-12) 0 var(--sp-5);
  line-height: 1.15;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 em { color: var(--c-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.prose h3 {
  font-size: 1.375rem;
  margin: var(--sp-10) 0 var(--sp-3);
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
}
.prose ul li {
  position: relative;
  padding-left: var(--sp-8);
  margin-bottom: var(--sp-3);
  line-height: 1.55;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 22px; height: 2px;
  background: var(--c-red);
}
.prose ul li strong { color: var(--c-ink); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--c-red);
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-8);
  margin: var(--sp-8) 0;
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--c-ink-2);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* Two-column layout for content pages */
.content-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-16);
  align-items: start;
}
.content-split__main { min-width: 0; }
.content-split__aside {
  position: sticky;
  top: 100px;
  background: var(--c-bg-3);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--c-red);
}
.content-split__aside h3 {
  font-size: 1.0625rem;
  font-family: var(--f-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-5);
  color: var(--c-ink);
}
.content-split__aside .row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.content-split__aside .row:last-of-type { border-bottom: 0; }
.content-split__aside .row svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--c-red); }
.content-split__aside .row strong { display: block; color: var(--c-ink); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 2px; }
.content-split__aside .row a { color: var(--c-ink-2); }
.content-split__aside .row a:hover { color: var(--c-red); }
.content-split__aside .btn { margin-top: var(--sp-5); width: 100%; justify-content: center; }

/* Features grid (per service pages) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin: var(--sp-10) 0;
}
.feature {
  padding: var(--sp-6);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: all var(--tr-fast);
}
.feature:hover {
  border-color: var(--c-red);
  transform: translateY(-2px);
}
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-red-tn);
  border-radius: 8px;
  margin-bottom: var(--sp-4);
  color: var(--c-red);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  color: var(--c-ink);
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  margin: 0;
  line-height: 1.5;
}

/* Inline marchi mention */
.marchi-strip {
  margin-top: var(--sp-12);
  padding: var(--sp-8);
  background: var(--c-bg-3);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--c-ink);
}
.marchi-strip h4 {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin: 0 0 var(--sp-3);
  color: var(--c-ink);
}
.marchi-strip p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  line-height: 1.6;
}

/* Related services */
.related {
  background: var(--c-bg-3);
}
.related__head { margin-bottom: var(--sp-10); }
.related__head h2 { margin: 0; }
.related__head h2 em { color: var(--c-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.related-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: #fff;
  border-radius: var(--radius-lg);
  transition: all var(--tr-fast);
  border: 1px solid var(--c-line);
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-red);
  box-shadow: var(--shadow-card);
}
.related-card__img {
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-ink);
}
.related-card__img img { width: 100%; height: 100%; object-fit: cover; }
.related-card__text strong {
  display: block;
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.related-card__text span { font-size: 0.875rem; color: var(--c-ink-3); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info { }
.contact-info h2 { margin-bottom: var(--sp-6); }
.contact-info h2 em { color: var(--c-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.contact-info p { color: var(--c-ink-2); margin-bottom: var(--sp-8); font-size: var(--fs-large); line-height: 1.55; }
.contact-cards { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-card {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-bg-3);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  transition: all var(--tr-fast);
}
.contact-card:hover { transform: translateX(4px); }
.contact-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-red);
  color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__text strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-3);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-card__text a, .contact-card__text span {
  display: block;
  font-size: 1.0625rem;
  color: var(--c-ink);
  font-weight: 500;
  line-height: 1.4;
}
.contact-card__text a:hover { color: var(--c-red); }

.form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  box-shadow: var(--shadow-card);
}
.form h3 {
  font-family: var(--f-body);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--sp-6);
  letter-spacing: -0.005em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.form-field { margin-bottom: var(--sp-4); }
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-ink-2);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-bg-2);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--c-ink-3);
  line-height: 1.5;
  margin-bottom: var(--sp-6);
}
.form-checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-red); }
.form-checkbox a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; }
.form button[type="submit"] { width: 100%; justify-content: center; padding: 1.1rem; font-size: 1rem; }

@media (max-width: 1024px) {
  .content-split { grid-template-columns: 1fr; gap: var(--sp-10); }
  .content-split__aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .related__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: var(--sp-6); }
}

/* Stat prefix ("oltre" before big numbers) */
.stat__prefix {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: var(--sp-1);
  line-height: 1;
}
.stat .stat__prefix { color: var(--c-green); opacity: 0.75; }

/* Footer privacy link (Iubenda) */
.footer__bottom a {
  color: #999;
  font-size: var(--fs-tiny);
  transition: color var(--tr-fast);
}
.footer__bottom a:hover { color: #fff; }

/* Iubenda overrides — keep default link styling, no buttons */
a.iubenda-embed,
a.iubenda-noiframe {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  display: inline !important;
}

/* Footer bottom — separator between policy links */
.footer__bottom { flex-wrap: wrap; row-gap: var(--sp-3); }
.footer__bottom a + a {
  position: relative;
  margin-left: var(--sp-5);
}
.footer__bottom a + a::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-5) * -0.5 - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #555;
}


/* =========================================================
   FV TOOLS — Calcolatore rendimento & Verifica impianto
   ========================================================= */
.fvtool { 
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.fvtool__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}
@media (max-width: 860px) { .fvtool__grid { grid-template-columns: 1fr; } }

.fvtool .fv-field { margin-bottom: 1rem; }
.fvtool .fv-field label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.35rem;
}
.fvtool .fv-field label .h { font-weight: 500; color: var(--c-ink-3); font-size: 0.78rem; }
.fvtool .fv-field input,
.fvtool .fv-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: var(--c-ink);
  transition: border var(--tr-fast), box-shadow var(--tr-fast);
}
.fvtool .fv-field input { color: var(--c-red-dk); }
.fvtool .fv-field input:focus,
.fvtool .fv-field select:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px var(--c-red-tn);
}
.fvtool .fv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.fv-results { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.4rem; }
.fv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.fv-k {
  background: var(--c-bg-3);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--c-line);
}
.fv-k.is-green { border-left-color: var(--c-green); }
.fv-k.is-red   { border-left-color: var(--c-red); }
.fv-k.is-dark  { border-left-color: var(--c-ink); }
.fv-k .fv-kl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-ink-3); }
.fv-k .fv-kv { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; margin-top: 0.15rem; color: var(--c-ink); }
.fv-k .fv-kv small { font-size: 0.85rem; font-weight: 600; color: var(--c-ink-3); font-family: var(--f-body); }
.fv-k.is-green .fv-kv { color: var(--c-green); }
.fv-k.is-red .fv-kv { color: var(--c-red); }

.fv-detail { margin-top: 1.1rem; border-top: 1px solid var(--c-line); padding-top: 0.9rem; }
.fv-detail .fv-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.35rem 0; color: var(--c-ink-2); }
.fv-detail .fv-row b { color: var(--c-ink); }

.fv-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 1.1rem; }
.fv-chart .fv-c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.fv-chart .fv-c i { width: 100%; border-radius: 3px 3px 0 0; display: block; transition: height .4s ease; }
.fv-chart .fv-c span { font-size: 0.62rem; color: var(--c-ink-3); }

.fv-note { font-size: 0.78rem; color: var(--c-ink-3); font-style: italic; margin-top: 1rem; line-height: 1.5; }

/* Verdict banner */
.fv-verdict { border-radius: var(--radius); padding: 1.5rem; display: none; }
.fv-verdict.is-show { display: block; animation: fvFade .35s ease; }
@keyframes fvFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fv-verdict.v-ok   { background: var(--c-green-tn); border: 2px solid var(--c-green); }
.fv-verdict.v-warn { background: #FDF4E3; border: 2px solid #E8A317; }
.fv-verdict.v-bad  { background: var(--c-red-tn); border: 2px solid var(--c-red); }
.fv-verdict .fv-vt { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin-bottom: 0.4rem; }
.fv-verdict.v-ok .fv-vt { color: var(--c-green); }
.fv-verdict.v-warn .fv-vt { color: #B97D00; }
.fv-verdict.v-bad .fv-vt { color: var(--c-red); }
.fv-verdict .fv-vm { font-size: 0.95rem; color: var(--c-ink-2); margin-bottom: 1rem; }
.fv-gauge { background: #fff; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.fv-gline { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.45rem; color: var(--c-ink-2); }
.fv-gline b { font-size: 0.95rem; color: var(--c-ink); }
.fv-gbar { height: 12px; background: #ECEAE7; border-radius: 8px; position: relative; overflow: hidden; }
.fv-gbar i { position: absolute; top: 0; left: 0; height: 100%; border-radius: 8px; transition: width .6s ease; display: block; }
.fv-gdelta { text-align: center; margin-top: 0.8rem; font-size: 0.9rem; color: var(--c-ink-2); }
.fv-gdelta b { font-size: 1.15rem; }

.fv-placeholder { text-align: center; padding: 2rem 1rem; color: var(--c-ink-3); }
.fv-placeholder .fv-ph-ic { font-size: 2.6rem; margin-bottom: 0.6rem; }

/* Modulo contatto verifica (compare su scostamento) */
.fv-contact { margin-top: 1.2rem; background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--radius); padding: 1.3rem; display: none; }
.fv-contact.is-show { display: block; animation: fvFade .4s ease; }
.fv-contact h3 { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 0.3rem; }
.fv-contact .fv-csub { font-size: 0.88rem; color: var(--c-ink-2); margin-bottom: 1rem; }
.fv-contact .fv-skip { display: inline-block; margin-top: 0.7rem; font-size: 0.82rem; color: var(--c-ink-3); text-decoration: underline; cursor: pointer; }
.fv-ok-msg { display:none; background: var(--c-green-tn); border:1.5px solid var(--c-green); border-radius: 12px; padding: 1rem; color: var(--c-green); font-weight: 600; margin-top: 0.8rem; }
.fv-ok-msg.is-show { display:block; animation: fvFade .35s; }

/* ============================================================
   FAQ (details/summary) — coerente con lo stile esistente
   ============================================================ */
.faq { margin-top: var(--sp-6, 2rem); }
.faq details {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-bg);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--c-ink);
  font-size: var(--fs-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-red);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding: 0 1.25rem 1.25rem;
  color: var(--c-ink-2);
  font-size: var(--fs-body);
  line-height: 1.65;
}
.faq details > div p { margin: 0 0 0.75rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Tabelle incentivi */
.inc-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 2rem; font-size: var(--fs-small); }
.inc-table th, .inc-table td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--c-line); vertical-align: top; }
.inc-table th { background: var(--c-bg-3); font-family: var(--f-body); font-weight: 800; color: var(--c-ink); }
.inc-table td strong { color: var(--c-ink); }
@media (max-width: 640px) { .inc-table { display: block; overflow-x: auto; } }

/* Badge categoria incentivi */
.inc-badge {
  display: inline-block; font-size: var(--fs-tiny); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}
.inc-badge--privati { background: var(--c-red-tn); color: var(--c-red-dk); }
.inc-badge--aziende { background: var(--c-green-tn); color: var(--c-green); }

/* ===== BADGE CO2 nell'header (accanto a "Richiedi sopralluogo") ===== */
.nav a.nav-badge-co2{
  display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  text-decoration:none;padding:2px 10px 2px 2px;margin-left:var(--sp-2);
  border:1.5px solid var(--c-green);border-radius:40px;line-height:0;
  transition:transform var(--tr-fast), box-shadow var(--tr-fast);
}
.nav-badge-co2:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(74,139,61,.28)}
.nav-badge-co2::after{display:none !important}
.nav-badge-co2 img{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block;flex-shrink:0}
.nav-badge-co2__txt{
  font-family:var(--f-body);font-size:.62rem;font-weight:800;line-height:1.05;
  color:var(--c-green);white-space:nowrap;letter-spacing:.01em;padding-right:2px;
}
@media (max-width: 1280px){
  /* schermi medi: nascondo la scritta, resta solo il cerchio con bordo aderente */
  .nav-badge-co2__txt{display:none}
  .nav a.nav-badge-co2{padding:2px;gap:0}
}
@media (max-width: 768px){
  /* nel menù mobile: badge a tutta riga con scritta visibile */
  .nav a.nav-badge-co2{margin:var(--sp-2) 0 0;justify-content:center;padding:6px 14px 6px 6px}
  .nav-badge-co2__txt{display:inline;font-size:.8rem}
  .nav-badge-co2 img{width:40px;height:40px}
}





/* == FV MOBILE STACK FIX (auto) == */
@media (max-width: 560px){
  .fvtool .fv-grid2 { grid-template-columns: 1fr; }
  .fv-kpis { grid-template-columns: 1fr; }
}


/* == FV GRID BLOWOUT FIX (auto) == */
.fvtool__grid > * { min-width: 0; }
.fvtool__grid { max-width: 100%; }
.fvtool .fv-field, .fvtool .fv-grid2, .fvtool .fv-field input, .fvtool .fv-field select { max-width: 100%; }


/* == CONTENT-SPLIT BLOWOUT FIX (auto) == */
.content-split > * { min-width: 0; }
.content-split__main { overflow-wrap: break-word; }


/* == REVIEW BTN SMALL SCREEN FIX (auto) == */
@media (max-width: 400px){
  .leave-review__box{ padding: var(--sp-6); }
  .leave-review__box .btn{ white-space: normal; text-align: center; padding-left: var(--sp-4); padding-right: var(--sp-4); max-width: 100%; }
}


/* == CONTACT-GRID BLOWOUT FIX (auto) == */
.contact-grid > * { min-width: 0; }
.contact-info, .contact-card { overflow-wrap: anywhere; word-break: break-word; }
.contact-card strong, .contact-card a { overflow-wrap: anywhere; word-break: break-word; }


/* =========================================================
   LAVORA CON NOI / COLLABORA CON NOI  (aggiunto 26/08/2026)
   ========================================================= */

/* Intestazione di sezione su fondo chiaro.
   .approach__head forza color:#fff e va usata solo nella sezione scura. */
.sec-head { text-align: center; margin-bottom: var(--sp-10); position: relative; }
.sec-head h2 { font-size: var(--fs-h2); max-width: 26ch; margin-inline: auto; line-height: 1.1; color: var(--c-ink); }
.sec-head h2 em { font-style: italic; color: var(--c-red); font-variation-settings: "SOFT" 100, "WONK" 1; }
.sec-head .lead { margin: var(--sp-4) auto 0; max-width: 58ch; }

/* Griglia per blocchi con due sole card */
.two-up { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); margin: var(--sp-10) 0; }
@media (max-width: 860px) { .two-up { grid-template-columns: 1fr; } }

/* Schede delle posizioni aperte */
.jobs { display: flex; flex-direction: column; gap: var(--sp-6); }
.job { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--sp-8); box-shadow: var(--shadow-card); }
.job__head { display: flex; align-items: flex-start; gap: var(--sp-5); flex-wrap: wrap; }
.job__num { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--c-red); flex: 0 0 auto; padding-top: .1em; }
.job__title { flex: 1 1 260px; }
.job__title h3 { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.2; margin: 0 0 .4rem; }
.job__meta { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); }
.job__head .btn { margin-left: auto; flex: 0 0 auto; }
.job__lead { margin: var(--sp-6) 0 0; color: var(--c-ink-2); line-height: 1.6; max-width: 72ch; }
.job__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--c-line); }
.job__cols h4 { margin: 0 0 var(--sp-3); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); }
.job__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.job__cols li { position: relative; padding-left: 1.1rem; font-size: .9375rem; color: var(--c-ink-2); line-height: 1.5; }
.job__cols li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 2px; background: var(--c-red); }
@media (max-width: 900px) {
  .job { padding: var(--sp-6); }
  .job__cols { grid-template-columns: 1fr; }
  .job__head .btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* Selezione delle fasi nel form imprese.
   Senza queste regole .form-field input{width:100%} deforma le checkbox. */
.fasi-block { margin-bottom: var(--sp-5); }
.fasi-block > .fasi-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--c-ink-2); margin-bottom: var(--sp-2); letter-spacing: .01em; }
.fasi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem var(--sp-4); }
.fasi-grid .fasi-item { display: flex; align-items: flex-start; gap: .55rem; margin: 0; font-size: .875rem; font-weight: 500; color: var(--c-ink-2); line-height: 1.35; cursor: pointer; text-align: left; }
.fasi-grid .fasi-item input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 0; accent-color: var(--c-red); }
@media (max-width: 620px) { .fasi-grid { grid-template-columns: 1fr; } }

/* Nota legale sotto ai form */
.form-note { font-size: .75rem; color: var(--c-ink-3); margin: var(--sp-4) 0 0; line-height: 1.55; }
.form-note a { color: var(--c-red); }


/* ===================================================================
   == BARRA DEL MENU - RIENTRO (30/08/2026) ==
   Con 23 voci la barra non ci stava sotto i ~1440px. Prima andavano a capo su
   sei righe, con la pagina che scrollava in orizzontale; poi erano state
   nascoste dietro l'hamburger sotto i 1400px, facendo sparire il menu su ogni
   portatile. Qui si recupera spazio: badge fuori dalla barra sotto i 1500px,
   voci su una riga sola da 1141px in su, hamburger solo sotto i 1140px.
   Le soglie di chiusura hanno i decimali (1140.98 e non 1140) perche' con
   soglie intere adiacenti resta un buco: a esattamente 1140px il browser non
   fa scattare ne' max-width:1140 ne' min-width:1141, e il menu andava a capo.
   =================================================================== */

@media (min-width: 1141px) {
  .header .wrap { max-width: var(--maxw-wide); }
  .nav { flex-wrap: nowrap; }
  .nav > a,
  .nav-has-submenu > a { white-space: nowrap; }
  .nav .submenu a { white-space: nowrap; }
}

/* Da 1280px in su lo spazio c'e': voci piu' grandi e piu' distanziate.
   Misurato sul sito: cosi' la barra chiede 1212px, quindi restano 68px di
   margine perfino alla soglia e 136px su un portatile da 1348px. */
@media (min-width: 1280px) {
  .nav { gap: 8px; }
  .nav > a,
  .nav-has-submenu > a { padding-left: .7rem; padding-right: .7rem; font-size: .875rem; }
  .nav .submenu a { font-size: .875rem; }
}

/* Fascia stretta: si rimpicciolisce quel tanto che basta per restare su una
   riga (la barra chiede 1064px) invece di finire subito nell'hamburger. */
@media (min-width: 1141px) and (max-width: 1279.98px) {
  .nav { gap: 4px; }
  .nav > a,
  .nav-has-submenu > a { padding-left: .45rem; padding-right: .45rem; font-size: .8125rem; }
  .nav .submenu a { font-size: .8125rem; }
}

/* Il badge pesa 128px: sotto i 1500px esce dalla barra e resta visibile sugli
   schermi larghi e dentro il menu a scomparsa. */
@media (min-width: 1141px) and (max-width: 1499.98px) {
  .nav a.nav-badge-co2 { display: none; }
}

@media (max-width: 1140.98px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 64px 0 0 0; background: #fff;
    flex-direction: column; gap: 0; padding: var(--sp-6);
    transform: translateX(100%); transition: transform var(--tr-base); overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: var(--sp-4); }
  .nav a.nav-badge-co2 { display: inline-flex; margin: var(--sp-2) 0 0; justify-content: center; padding: 6px 14px 6px 6px; border-bottom: 0; width: auto; }
  .nav a.nav-badge-co2 .nav-badge-co2__txt { display: inline; font-size: .8rem; }
  .nav a.nav-badge-co2 img { width: 40px; height: 40px; }
}
