/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 10 2026 | 17:34:47 */
:root {
  --blue: #0a2f85;
  --red: #e21b2d;
  --red-dark: #9e121e;
  --ink: #111827;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #f6f8fb;
  --white: #fff;
  --dark: #071326
}

* {
  box-sizing: border-box
}

::-webkit-scrollbar { display: none; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-width: none;
  
}

body {
  margin: 0;
  font-family: Arial Narrow, Roboto Condensed, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: .01em;
  overflow-x: clip;
}



.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .04;
  background-image: linear-gradient(0deg, #000 1px, transparent 1px);
  background-size: 100% 4px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(246, 248, 251, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--blue);
  min-width: 250px
}

.brand img {
  width: 210px;
  max-width: 38vw
}

.brand span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800
}

.site-header nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
  justify-content: flex-end
}

.site-header nav a,
.mobile-menu a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  position: relative
}

.site-header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: .25s
}

.site-header nav a:hover:after,
.site-header nav a.is-active:after {
  transform: scaleX(1)
}

.head-call,
.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px
}

.head-call {
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 12px 16px
}

.primary {
  background: var(--red);
  color: white;
  padding: 15px 20px;
  border: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: 0 16px 30px rgba(226, 27, 45, .18)
}



.ghost {
  color: var(--blue);
  border: 1px solid currentColor;
  padding: 14px 18px
}

.ghost.light {
  color: white
}

.menu-btn {
  display: none;
  background: var(--dark);
  color: white;
  border: 0;
  padding: 12px 15px;
  text-transform: uppercase
}

.mobile-menu {
  display: none
}

.hero {
  min-height: calc(100vh - 84px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--dark)
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--dark) 0%, rgba(7,19,38,0) 22%),
    linear-gradient(90deg, rgba(7, 19, 38, 0.98), rgba(7, 19, 38, 0.85) 80%, rgba(7, 19, 38, 0.7)),
    linear-gradient(0deg, rgba(7, 19, 38, 0.7), transparent)
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: end;
  padding: 8vw clamp(22px, 6vw, 86px) 7vw
}

.eyebrow {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px
}

.hero h1,
.page-hero h1,
.big {
  font-family: Impact, Arial Black, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.055em;
  line-height: .86;
  margin: 18px 0
}

.hero h1 {
  font-size: clamp(66px, 13vw, 190px)
}

.hero h1 span {
  display: block
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px #fff
}

.lead {
  font-size: clamp(20px, 2.4vw, 34px);
  max-width: 780px;
  line-height: 1.15
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.red-tag {
  position: absolute;
  right: 6vw;
  top: 120px;
  z-index: 3;
  background: var(--red);
  padding: 18px 22px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .12em;
  transform: rotate(-2deg)
}

.control-tower {
  align-self: end;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(14px);
  padding: 24px
}

.control-tower div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.control-tower div:last-child {
  border: 0
}

.control-tower strong,
.control-tower span {
  display: block
}

.control-tower strong {
  font-size: 24px
}

.control-tower span {
  color: #cbd5e1
}

.section {
  padding: clamp(40px, 5vw, 80px) clamp(22px, 6vw, 86px);
  background-color: var(--red);
  color: white;
}

.section .big,
.section .copy p,
.section .copy ul {
  color: white;
}

/* Variante blu (usata solo per la sezione "Richiedi preventivo") */
.section.section-blue {
  background-color: var(--blue);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 48vw) minmax(280px, 520px);
  gap: clamp(30px, 7vw, 100px);
  align-items: start
}

.big {
  font-size: clamp(46px, 7vw, 104px);
  color: var(--blue)
}

.copy p,
.page-copy p,
.flow-row p,
.quote-note {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: #263142
}

.copy ul,
.flow-row ul {
  padding-left: 18px;
  line-height: 1.9;
  font-size: 18px
}

.departments {
  padding: 0;
  background-color: var(--white);
}

.dept {
  display: grid;
  grid-template-columns: 52vw 1fr;
  min-height: 560px;
  align-items: stretch;
  border-top: 1px solid var(--line)
}

.dept:nth-child(even) {
  grid-template-columns: 1fr 52vw
}

.dept:nth-child(even) .dept-media {
  order: 2
}

.dept-media {
  position: relative;
  overflow: hidden
}

.dept-media img,
.page-photo img,
.photo-run img,
.flow-visual img,
.tech-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.stamp {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--blue);
  color: white;
  padding: 10px 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px
}

.dept-copy {
  padding: clamp(32px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center
}

.dept-copy h2 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: .95;
  text-transform: uppercase;
  margin: 18px 0;
  color: var(--dark)
}

.dept-copy p {
  font-size: 20px;
  line-height: 1.45;
  color: #344054
}

.dept-copy a {
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: underline;
}

.tight {
  padding-top: 40px;
  padding-bottom: 40px
}

.section.tight {
  background-color: var(--blue);
}

.photo-run {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 24px;
  padding: 40px clamp(22px, 6vw, 86px) 60px;
  align-items: center;
}

.photo-run figure {
  margin: 0;
  height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.photo-run figure:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.photo-run figure img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-run figure:nth-child(2) {
  height: 520px;
}

.photo-run figcaption,
.flow-visual figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(10, 47, 133, 0.85);
  color: white;
  padding: 8px 16px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 11px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.technical {
  background: var(--dark);
  color: white
}

.tech-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 6vw;
  align-items: center
}

.tech-visual {
  height: 560px;
  overflow: hidden
}

.technical .big {
  color: white
}

.tech-stack {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  margin-top: 34px
}

.tech-stack div {
  background: var(--dark);
  padding: 24px
}

.tech-stack b {
  font-size: 20px;
  text-transform: uppercase
}

.tech-stack p {
  color: #cbd5e1;
  line-height: 1.45
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(300px, 47vw) 1fr;
  min-height: 85vh;
  padding: clamp(52px, 7vw, 96px) clamp(22px, 6vw, 86px);
  gap: 6vw;
  align-items: center
}

.page-copy h1 {
  font-size: clamp(58px, 8vw, 126px);
  color: var(--blue)
}

.page-photo {
  height: min(72vh, 690px);
  position: relative;
  overflow: hidden;
  box-shadow: 24px 24px 0 var(--blue)
}

.side-spec {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--red);
  color: white;
  max-width: 310px;
  padding: 18px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em
}

.text-flow {
  padding: 0;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(240px, 34vw) 1fr;
  gap: 6vw;
  align-items: center;
  padding: clamp(60px, 8vw, 100px) clamp(22px, 6vw, 86px);
  border-top: none;
}

.flow-row:nth-child(4n+1) {
  background-color: var(--red);
  color: white;
}

.flow-row:nth-child(4n+3) {
  background-color: var(--blue);
  color: white;
}

.flow-row:nth-child(4n+1) h2,
.flow-row:nth-child(4n+1) p,
.flow-row:nth-child(4n+1) ul,
.flow-row:nth-child(4n+1) li,
.flow-row:nth-child(4n+3) h2,
.flow-row:nth-child(4n+3) p,
.flow-row:nth-child(4n+3) ul,
.flow-row:nth-child(4n+3) li {
  color: white;
}

.flow-row:nth-child(even) {
  background-color: var(--white);
  color: var(--ink);
}

.flow-row h2 {
  font-size: clamp(32px, 4vw, 62px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  color: var(--dark)
}

.flow-row.has-photo {
  grid-template-columns: minmax(230px, 28vw) minmax(250px, 420px) 1fr
}

.flow-visual {
  height: 420px;
  margin: 0;
  position: relative;
  overflow: hidden
}

.quote-layout {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 6vw
}

.form-field {
  display: grid;
  gap: 14px;
  background: white;
  padding: clamp(24px, 4vw, 48px);
  border-top: 6px solid var(--red);
  box-shadow: 0 30px 80px rgba(17, 24, 39, .08)
}

input,
select,
textarea {
  padding: 16px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 16px;
  background: var(--paper)
}

.form-field h2,
.form-field p {
  color: var(--dark) !important;
}

.form-field .primary {
  background: var(--red) !important;
  color: white !important;
  box-shadow: 0 16px 30px rgba(226, 27, 45, .18) !important;
}

textarea {
  resize: vertical
}

.closing {
  padding: 0;
  background: var(--paper)
}

.closing-inner {
  background: linear-gradient(135deg, var(--blue), #0f44c4 40%, #061b4e);
  color: white;
  padding: clamp(60px, 8vw, 100px) clamp(22px, 6vw, 86px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 
    "eyebrow buttons"
    "title buttons";
  align-items: center;
  gap: 16px 40px;
  position: relative;
  overflow: hidden;
}

.closing-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 1s ease;
}

.closing-inner:hover::before {
  left: 200%;
}

.closing-inner > p {
  grid-area: eyebrow;
  margin: 0;
  letter-spacing: .18em;
  font-weight: 900;
  color: #c7d2fe;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  justify-self: flex-start;
}

.closing-inner h2 {
  grid-area: title;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.closing-inner > div {
  grid-area: buttons;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.closing-inner .ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.closing-inner .ghost:hover {
  background: white;
  color: var(--blue);
}

footer {
  background: white;
  padding: 54px clamp(22px, 6vw, 86px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 6vw;
  border-top: 1px solid var(--line)
}

footer img {
  width: 230px
}

footer a,
footer span {
  display: block;
  color: #344054;
  text-decoration: none;
  margin: 8px 0
}

footer b {
  display: block;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: .15em;
  margin-bottom: 12px
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px
}

.js-scroll .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.in-view {
  opacity: 1;
  transform: none
}

@media (max-width:1120px) {

  .site-header nav,
  .head-call {
    display: none
  }

  .menu-btn {
    display: block;
    margin-left: auto
  }

  .brand {
    min-width: auto
  }

  .mobile-menu.is-open {
    display: grid;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    z-index: 55;
    background: white;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line)
  }
}

@media (max-width:820px) {

  .hero-shell,
  .split,
  .page-hero,
  .dept,
  .dept:nth-child(even),
  .tech-grid,
  .flow-row,
  .flow-row.has-photo,
  .quote-layout,
  footer,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .hero-shell {
    align-items: end
  }

  .control-tower {
    display: none
  }

  .red-tag {
    position: relative;
    top: auto;
    right: auto;
    transform: rotate(0);
    display: inline-block;
    margin-bottom: 24px;
    padding: 12px 16px;
  }

  .dept:nth-child(even) .dept-media {
    order: 0
  }

  .dept {
    min-height: 0
  }

  .dept-media {
    height: 360px
  }

  .photo-run {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 50px
  }

  .photo-run figure,
  .photo-run figure:nth-child(2) {
    margin: 0;
    height: 320px;
    transform: none;
  }
  
  .photo-run figure:hover {
    transform: none;
  }

  .page-photo {
    height: 430px;
    box-shadow: 12px 12px 0 var(--blue)
  }

  .closing-inner {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "eyebrow"
      "title"
      "buttons";
    gap: 20px;
  }

  .closing-inner > div {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .brand img {
    width: 180px
  }

  .brand span {
    display: none
  }

  .hero h1 em {
    -webkit-text-stroke: 1px #fff
  }

  .hero-actions {
    display: grid
  }

  .section {
    padding-top: 60px;
    padding-bottom: 70px
  }

  .site-header {
    height: 76px
  }

  .mobile-menu.is-open {
    top: 76px
  }
}


body {
  font-family: "Manrope", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 500;
}

.site-header nav a,
.mobile-menu a,
.head-call,
.primary,
.ghost,
.eyebrow,
.stamp,
.photo-run figcaption,
.flow-visual figcaption,
.side-spec,
.red-tag {
  letter-spacing: .075em;
}

.hero h1,
.page-hero h1,
.big,
.dept-copy h2,
.flow-row h2,
.closing h2 {
  font-family: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
  text-transform: none;
}

.hero h1 {
  font-size: clamp(54px, 10vw, 146px);
  line-height: .92;
  max-width: 1100px;
}

.hero h1 em {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .92);
  letter-spacing: -.04em;
}

.page-copy h1 {
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
  margin: 14px 0 20px;
  color: var(--blue);
}

.big {
  font-size: clamp(36px, 5.2vw, 86px);
  line-height: 1.02;
  text-wrap: balance;
}

.dept-copy h2 {
  font-size: clamp(34px, 4.3vw, 66px);
  line-height: 1.02;
}

.flow-row h2 {
  font-size: clamp(27px, 3.3vw, 48px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.copy p,
.page-copy p,
.page-copy .lead,
.page-copy>p,
.flow-row p,
.quote-note {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.58;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(5, 32, 92, .88), rgba(6, 53, 130, .58) 46%, rgba(6, 53, 130, .30) 70%), linear-gradient(0deg, rgba(5, 32, 92, .62), rgba(5, 32, 92, .10));
  mix-blend-mode: multiply;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 47, 133, .36), rgba(10, 47, 133, .12) 42%, rgba(226, 27, 45, .14));
  z-index: 1;
  pointer-events: none;
}

.hero-shell,
.red-tag {
  z-index: 3;
}

.page-hero {
  min-height: 75vh;
  align-items: center;
}

.page-copy {
  max-width: 760px;
}

.page-photo {
  box-shadow: 18px 18px 0 var(--blue);
}

.brand span {
  font-size: 11px;
  letter-spacing: .12em;
}

.side-spec {
  background: linear-gradient(135deg, var(--blue), #061b4e);
}

/* .closing-inner background overriden in main class */

@media (max-width:820px) {
  .hero h1 {
    font-size: clamp(48px, 16vw, 82px);
  }

  .page-copy h1 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .big {
    font-size: clamp(34px, 10vw, 54px);
  }

  .dept-copy h2 {
    font-size: clamp(32px, 10vw, 52px);
  }

  .flow-row h2 {
    font-size: clamp(26px, 8vw, 40px);
  }

  .page-hero {
    min-height: 0;
    padding-top: 42px
  }

  .page-photo {
    box-shadow: 10px 10px 0 var(--blue)
  }
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}
.social-links a {
  color: inherit;
  transition: opacity 0.2s;
  display: flex;
}
.social-links a:hover {
  opacity: 0.7;
}
.control-tower .social-links {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}

.section {
  background-color: #c8112a;
  position: relative;
  border-top: 6px solid #071326;        /* stacco netto sopra */
}
.section .big {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);   /* il titolo stacca dal fondo */
}

.section .copy p { color: #fff; opacity: .96; }
.section .copy ul { color: #fff; }
.section .copy li {
  padding-left: 4px;
  margin: 2px 0;
}
.section .copy li::marker {
  color: #fff;
  content: "▪ "; 
  font-size: .9em;
}


.section.tight {
  background-color: var(--blue);
  border-top: 6px solid var(--red);       /* il rosso fa da cerniera tra le due bande */
}
.section.tight .big { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.20); }
.section.tight .copy p { color: #eaf0fb; }
.section.tight .copy li::marker { color: #fff; content: "▪ "; }


.flow-row:nth-child(4n+1) { background-color: #c8112a; border-top: 6px solid #071326; }
.flow-row:nth-child(4n+3) { background-color: var(--blue); border-top: 6px solid var(--red); }
.flow-row:nth-child(4n+1) p,
.flow-row:nth-child(4n+3) p { opacity: .96; }
.flow-row:nth-child(4n+1) h2,
.flow-row:nth-child(4n+3) h2 { text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.flow-row:nth-child(4n+1) li::marker,
.flow-row:nth-child(4n+3) li::marker { color: #fff; content: "▪ "; }

.section a:not(.primary):not(.ghost),
.flow-row:nth-child(4n+1) a:not(.primary):not(.ghost),
.flow-row:nth-child(4n+3) a:not(.primary):not(.ghost) {
  color: #fff;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


.section .quote-note,
.section.tight .quote-note {
  color: #fff;
  opacity: .95;
}

.form-field .quote-note { color: var(--dark); }


.flow-row:nth-child(4n+1) span,
.flow-row:nth-child(4n+1) b,
.flow-row:nth-child(4n+1) .quote-note,
.flow-row:nth-child(4n+3) span,
.flow-row:nth-child(4n+3) b,
.flow-row:nth-child(4n+3) .quote-note {
  color: #fff;
}

.side-spec {
  border-top: 3px solid var(--red);
}

.tech-stack li::marker { color: var(--red); }

.page-copy .eyebrow { margin-bottom: 6px; }


/* ---------- INTRO ---------- */
.intro-scroll {
  position: relative;
  height: 210vh;              /* apertura + coda con hero completo */
  background: var(--dark);
}
.intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.intro-media {
  position: absolute;
  inset: 0;
  /* parte leggermente zoomato e si distende mentre la maschera apre */
  transform: scale(calc(1.25 - var(--ip, 1) * 0.25));
  will-change: transform;
}
.intro-media video,
.intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-media img.intro-fallback { z-index: 0; }
.intro-media video { z-index: 1; }

.intro-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7,19,38,.72), rgba(7,19,38,.82)),
    url("https://dev.sodanoconsulting.it/edilizia/wp-content/uploads/2026/07/team-scaled.jpg") center/cover no-repeat;
  z-index: 2;
  /* il raggio del foro parte da 0 (chiuso) e cresce con --ip */
  --hole: calc(var(--ip, 1) * 130%);
  -webkit-mask: radial-gradient(circle at 50% 52%,
      transparent 0,
      transparent calc(var(--hole) - 8%),
      #000 var(--hole));
  mask: radial-gradient(circle at 50% 52%,
      transparent 0,
      transparent calc(var(--hole) - 8%),
      #000 var(--hole));
}
html:not(.js-scroll) .intro-mask {
  --ip: 1;
}

/* Su mobile: stessa animazione del foro con maschera blu.
   Il video e tutte le altre animazioni restano invariati. */
@media (max-width: 760px) {
  .intro-mask {
    background: var(--dark);
  }
}

.intro-stage .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.intro-stage .hero-shell {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: clamp(0, calc((var(--ip, 0) - 0.5) / 0.22), 1);
  transition: opacity .1s linear;
}
html:not(.js-scroll) .intro-stage .hero-shell { opacity: 1; }

.intro-headline {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  padding: 0 20px;
  opacity: calc(1 - var(--ip, 0) * 1.5);
  pointer-events: none;
}
.intro-logo {
  display: block;
  margin: 0 auto 20px;
  width: clamp(220px, 32vw, 440px);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.55));
}
.intro-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.departments { overflow-x: clip; }

.js-scroll .dept .dept-copy,
.js-scroll .dept .dept-media {
  will-change: transform, opacity;
}
.js-scroll .dept[data-dept] .dept-copy {
  opacity: calc(.5 + var(--dp, 1) * .5);
  transform: translateX(calc((1 - var(--dp, 1)) * 40px));
}
.js-scroll .dept[data-dept]:nth-child(even) .dept-copy {
  transform: translateX(calc((1 - var(--dp, 1)) * -40px));
}
.js-scroll .dept[data-dept] .dept-media {
  opacity: calc(.7 + var(--dp, 1) * .3);
  transform: scale(calc(1.04 - var(--dp, 1) * .04));
}

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(var(--sp, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  z-index: 70; pointer-events: none;
}
.site-header { transition: height .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, transform .45s cubic-bezier(.16,1,.3,1), opacity .45s ease; }
.site-header.is-compact { box-shadow: 0 10px 30px rgba(7,19,38,.10); }

.js-scroll .site-header {
  position: fixed;
  left: 0; right: 0; top: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.js-scroll .site-header.nav-visible {
  position: sticky;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .intro-mask { clip-path: circle(140% at 50% 52%) !important; }
  .intro-media { transform: none !important; }
  .intro-headline { opacity: 0 !important; }
  .js-scroll .dept[data-dept] .dept-copy,
  .js-scroll .dept[data-dept] .dept-media {
    opacity: 1 !important; transform: none !important;
  }
}

.js-scroll .flow-row h2 .wline,
.js-scroll .page-hero h1 .wline {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.3em;
    padding-right: 0.15em;
  margin-bottom: -0.3em;
    margin-right: -0.15em;
}
.js-scroll .flow-row h2 .word,
.js-scroll .page-hero h1 .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.js-scroll .flow-row.in-view h2 .word,
.js-scroll .page-hero.in-view h1 .word {
  transform: translateY(0);
}

.js-scroll .page-hero.reveal { opacity: 1; transform: none; }
.js-scroll .page-hero .page-copy {
  opacity: .4;
  transform: translateX(-60px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.js-scroll .page-hero .page-photo {
  /* tendina: si scopre dall'alto verso il basso */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.js-scroll .page-hero.in-view .page-copy { opacity: 1; transform: none; }
.js-scroll .page-hero.in-view .page-photo { clip-path: inset(0 0 0 0); }
.js-scroll .page-hero .page-photo img {
  transform: scale(1.15);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.js-scroll .page-hero.in-view .page-photo img { transform: scale(1); }

.js-scroll .flow-row.reveal {
  opacity: .35;
  transform: translateX(-70px) scale(.97);
  transition: opacity .7s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.js-scroll .flow-row.reveal:nth-child(even) {
  transform: translateX(70px) scale(.97);
}
.js-scroll .flow-row.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* foto dentro le flow-row: tendina + zoom */
.js-scroll .flow-row .flow-visual,
.js-scroll .flow-row.has-photo img {
  overflow: hidden;
}
.js-scroll .flow-row.has-photo img {
  transform: scale(1.12);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.js-scroll .flow-row.has-photo.in-view img { transform: scale(1); }

.js-scroll .photo-run.reveal figure {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.js-scroll .photo-run.reveal.in-view figure { clip-path: inset(0 0 0 0); }
.js-scroll .photo-run.reveal.in-view figure:nth-child(2) { transition-delay: .12s; }
.js-scroll .photo-run.reveal.in-view figure:nth-child(3) { transition-delay: .24s; }
.js-scroll .photo-run figure img {
  transform: scale(1.14);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.js-scroll .photo-run.reveal.in-view figure img { transform: scale(1); }

.js-scroll .closing.reveal {
  opacity: .35;
  transform: translateY(40px) scale(.97);
  transition: opacity .9s ease, transform 1s cubic-bezier(.16,1,.3,1);
}
.js-scroll .closing.reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .js-scroll .page-hero .page-copy { transform: translateX(-24px); }
  .js-scroll .flow-row.reveal { transform: translateY(40px) scale(.98); }
  .js-scroll .flow-row.reveal:nth-child(even) { transform: translateY(40px) scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  .js-scroll .page-hero .page-copy,
  .js-scroll .page-hero .page-photo,
  .js-scroll .page-hero .page-photo img,
  .js-scroll .flow-row.reveal,
  .js-scroll .flow-row.has-photo img,
  .js-scroll .photo-run.reveal figure,
  .js-scroll .photo-run figure img,
  .js-scroll .closing.reveal,
  .js-scroll .flow-row h2 .word,
  .js-scroll .page-hero h1 .word {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

.page-hero.has-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.page-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);  
  z-index: 0;
}

.page-hero.has-bg > * {
  position: relative;
  z-index: 1;
}

.page-hero.has-bg .page-copy h1,
.page-hero.has-bg .page-copy p,
.page-hero.has-bg .eyebrow {
  color: var(--white);
}

.eco-row {
  position: relative;
  z-index: 1;
  padding: 32px;
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.eco-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(21, 128, 61, 0.15);
}

.eco-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.01) 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.5s ease 0.5s;
  border-radius: inherit;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.js-scroll .eco-row.in-view::before {
  opacity: 1;
}

.eco-row-parallax {
  grid-column: 1 / -1; 
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #134e4a; 
  padding: 140px 32px; 
  min-height: 70vh; 
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.eco-row-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* Scurito per far risaltare il testo bianco */
  z-index: 1;
}

.parallax-text-content {
  position: relative;
  z-index: 10; 
  width: 100%;
  
  transform: translateY(40px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 1s ease 0.2s;
}

.js-scroll .eco-row.in-view .parallax-text-content {
  transform: translateY(0);
  opacity: 1;
}

.eco-row .eco-icon {
  animation: leaf-sway 3.5s ease-in-out infinite alternate, leaf-glow 2s ease-in-out infinite alternate;
  transform-origin: bottom center;
  overflow: visible;
}

.eco-row .eco-icon path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.js-scroll .eco-row.in-view .eco-icon path {
  animation: draw-leaf 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes draw-leaf {
  to { stroke-dashoffset: 0; }
}

@keyframes leaf-sway {
  0% { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.05); }
}

@keyframes leaf-glow {
  0% { filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.3)); }
  100% { filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.7)); }
}
\n
/* Timeline styles */
.timeline-section {
  padding: clamp(60px, 8vw, 120px) clamp(22px, 6vw, 86px);
  background-color: var(--white);
  color: var(--dark);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container h2 {
  font-family: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--blue);
  margin-bottom: 60px;
  letter-spacing: -.03em;
}

.timeline {
  position: relative;
  border-left: 4px solid var(--red);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline-event {
  position: relative;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--red);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--red);
}

.timeline-date {
  font-family: Impact, Arial Black, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--red);
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: .05em;
}

.timeline-content {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: #263142;
}

.timeline-content p {
  margin-bottom: 16px;
}
.timeline-content p:last-child {
  margin-bottom: 0;
}

/* Override per mantenere blu le sezioni specifiche indipendentemente dal nth-child */
.flow-row.force-blue {
    background-color: var(--blue) !important;
    border-top: 6px solid var(--red) !important;
    color: white !important;
}
.flow-row.force-blue h2,
.flow-row.force-blue p,
.flow-row.force-blue ul,
.flow-row.force-blue li,
.flow-row.force-blue b,
.flow-row.force-blue span {
    color: white !important;
}
.flow-row.force-blue p { opacity: .96 !important; }
.flow-row.force-blue h2 { text-shadow: 0 2px 12px rgba(0,0,0,.18) !important; }


/* ============================================================
   DINAMICHE 2026 — v2, riscritto.
   Linguaggio squadrato e industriale: NESSUN bordo arrotondato,
   spigoli netti, bordi colorati come firma. Tutto additivo.
   ============================================================ */

/* ---- Coerenza: via anche i raggi preesistenti ---- */
.closing-inner > p { border-radius: 0; }
.eco-row, .eco-row::before { border-radius: 0; }

/* ---- Transizioni di pagina (View Transitions API) ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes vt-out { to { opacity: 0; } }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .42s cubic-bezier(.16,1,.3,1) both; }

/* ---- Ticker cinetico reparti ---- */
.ticker {
  background: var(--dark);
  border-top: 6px solid var(--red);
  padding: clamp(20px, 3vw, 34px) 0;
  overflow: hidden;
  display: grid;
  gap: clamp(8px, 1.4vw, 16px);
}
.ticker-row {
  transform: skewX(var(--tskew, 0deg));
  transition: transform .3s ease-out;
  will-change: transform;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickmove 30s linear infinite;
}
.ticker-row.alt .ticker-track {
  animation-direction: reverse;
  animation-duration: 38s;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  padding-right: clamp(22px, 3vw, 46px);
}
.ticker span {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 46px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.ticker-row.alt span {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .5);
  font-size: clamp(20px, 2.6vw, 36px);
}
.ticker i {
  color: var(--red);
  font-style: normal;
  font-size: 12px;
  flex-shrink: 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickmove { to { transform: translateX(-50%); } }

/* ---- Banda statistiche con contatori ---- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats-band .stat {
  position: relative;
  padding: clamp(36px, 4.5vw, 64px) clamp(20px, 3vw, 46px);
  border-left: 1px solid var(--line);
}
.stats-band .stat:first-child { border-left: 0; }
.stats-band .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 4px; width: 0;
  background: var(--red);
  transition: width .9s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 140ms);
}
.stats-band.in-view .stat::before { width: 100%; }
.stats-band strong {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 82px);
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stats-band strong em { font-style: normal; color: var(--red); }
.stats-band .stat-label {
  display: block;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 820px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band .stat:nth-child(odd) { border-left: 0; }
  .stats-band .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---- Parallasse leggera sulle immagini ---- */
.js-scroll [data-plx] { overflow: hidden; }
.js-scroll [data-plx] img {
  translate: 0 calc(var(--py, 0) * 1px);
  scale: 1.14;
  will-change: translate;
}

/* ---- Kinetic type: titoli riga per riga anche su .big e reparti ---- */
.js-scroll .has-words .wline {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .18em;
  margin-bottom: -.18em;
  padding-right: .12em;
  margin-right: -.12em;
}
.js-scroll .has-words .word {
  display: inline-block;
  transform: translateY(112%);
  transition: transform .85s cubic-bezier(.16,1,.3,1);
}
.js-scroll .in-view .has-words .word,
.js-scroll .has-words.in-view .word { transform: translateY(0); }

/* ---- Stagger sugli elenchi puntati dentro i reveal ---- */
.js-scroll .reveal ul li {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 70ms + .15s);
}
.js-scroll .reveal.in-view ul li { opacity: 1; transform: none; }

/* ---- Bottoni: magnetico (JS) + riflesso, spigoli netti ---- */
.primary, .ghost, .head-call {
  transition: translate .4s cubic-bezier(.2,1,.3,1), box-shadow .3s ease, background .3s ease, color .3s ease;
}
.primary { position: relative; overflow: hidden; }
.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
  pointer-events: none;
}
.primary:hover::after { left: 170%; }
.primary:hover { box-shadow: 0 22px 44px rgba(226, 27, 45, .3); }
.primary:active, .ghost:active { scale: .97; }

/* ---- Link reparto: rosso, freccia, sottolineatura netta ---- */
.dept-copy a {
  color: var(--red);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 6px;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  transition: gap .28s cubic-bezier(.16,1,.3,1), color .28s ease;
}
.dept-copy a::after {
  content: "\2192";
  font-size: 17px;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.dept-copy a:hover { gap: 18px; color: var(--blue); }
.dept-copy a:hover::after { transform: translateX(4px); }

/* ---- Zoom morbido sulle foto reparto ---- */
.dept-media img { transition: transform 1s cubic-bezier(.16,1,.3,1); }
.dept-media:hover img { transform: scale(1.05); }

/* ---- Watermark gigante nelle sezioni closing ---- */
.closing-inner { isolation: isolate; }
.closing-inner > * { position: relative; z-index: 1; }
.closing-inner .wm {
  position: absolute;
  z-index: 0;
  left: 0; top: 50%;
  translate: 0 -50%;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(110px, 17vw, 260px);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
  pointer-events: none;
  animation: wm-drift 26s linear infinite alternate;
}
@keyframes wm-drift {
  from { transform: translateX(3%); }
  to   { transform: translateX(-45%); }
}

/* ---- Menu mobile: apertura a cascata ---- */
.mobile-menu.is-open a {
  animation: mmenu .45s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes mmenu {
  from { opacity: 0; transform: translateY(12px); }
}

/* ---- Form: micro-interazioni sui campi e sulla card ---- */
input, select, textarea {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 47, 133, .14);
}
.form-field { transition: box-shadow .45s ease, translate .45s ease; }
.form-field:focus-within {
  translate: 0 -5px;
  box-shadow: 0 46px 110px rgba(10, 47, 133, .22);
}

/* ---- Footer ---- */
footer a { transition: color .25s ease, translate .25s ease; }
footer a:hover { color: var(--red); translate: 3px 0; }

/* ============================================================
   PAGINE INTERNE — scena cinematografica (attivata solo via JS
   dove non c'è l'intro: la home resta identica).
   ============================================================ */

/* ---- Hero cinematico: ken-burns + parallasse d'uscita ---- */
.page-hero.has-bg { overflow: clip; }
.page-hero.has-bg .hero-bg {
  position: absolute;
  inset: -6% -3%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  translate: 0 calc(var(--hy, 0) * 1px);
  animation: kenburns 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

/* Testi dell'hero sempre leggibili anche quando lo spotlight
   schiarisce lo sfondo dietro di loro */
.page-hero.has-bg .page-copy h1,
.page-hero.has-bg .page-copy p {
  text-shadow: 0 2px 26px rgba(0, 0, 0, .5);
}

/* Spotlight che segue il mouse (solo desktop) */
@media (hover: hover) and (pointer: fine) {
  .page-hero.has-bg.spot::before {
    background: radial-gradient(620px circle at var(--mx, 72%) var(--my, 42%),
      rgba(0, 0, 0, .26),
      rgba(0, 0, 0, .60) 52%,
      rgba(0, 0, 0, .68));
  }
}

/* Indicatore di scroll: a destra, mai sopra i bottoni CTA */
.scroll-cue {
  position: absolute;
  right: clamp(22px, 6vw, 86px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 46px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--red);
  animation: cue-drop 1.7s cubic-bezier(.16, 1, .3, 1) infinite;
}
@keyframes cue-drop { to { top: 100%; } }

/* ---- Titolo hero: cascata lettera per lettera ---- */
.js-scroll .char-mode .word {
  transform: none !important;
  transition: none !important;
}
.js-scroll .char-mode .ch {
  display: inline-block;
  transform: translateY(118%) rotate(6deg);
  transform-origin: bottom left;
  transition: transform .85s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.js-scroll .page-hero.in-view .char-mode .ch { transform: none; }

/* ---- Fogli impilati: SPIGOLI NETTI ----
   Ogni flow-row è una lastra a tutto schermo che si aggancia in alto;
   la successiva le scivola sopra mentre lei arretra e si scurisce.
   Al posto del raggio: un bordo superiore colorato, come una costa
   di lamiera. Bianche = costa blu scuro; il resto tiene i bordi suoi. */
.text-flow.stack > .flow-row {
  position: sticky;
  top: 0;   /* i fogli più alti del viewport ricevono un top negativo via JS */
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  box-shadow: 0 -26px 70px rgba(7, 19, 38, .35);
  scale: calc(1 - var(--cover, 0) * .05);
  filter: brightness(calc(1 - var(--cover, 0) * .24));
  transform-origin: 50% 12%;
  will-change: scale, filter;
}
/* le lastre bianche non avevano bordo: costa blu scuro per coerenza */
.text-flow.stack > .flow-row:nth-child(even) {
  border-top: 6px solid var(--dark);
}
/* la sezione sostenibilità (sfondo fisso) resta piena, senza arretrare */
.text-flow.stack > .flow-row.eco-row {
  scale: none;
  filter: none;
}
/* titoli più monumentali dentro le lastre a tutto schermo */
.text-flow.stack .flow-row h2 {
  font-size: clamp(30px, 4.4vw, 70px);
  line-height: 1.04;
}

/* ---- Tilt 3D sulle foto (solo desktop, via JS) ---- */
.js-scroll .flow-visual {
  transition: transform .35s ease-out, box-shadow .35s ease-out;
}
.js-scroll .page-photo {
  transition: clip-path 1.05s cubic-bezier(.16, 1, .3, 1), transform .35s ease-out;
}
.js-scroll .flow-visual:hover { box-shadow: 0 30px 70px rgba(7, 19, 38, .35); }

/* ---- Accessibilità: motion ridotto = scena statica ma leggibile ---- */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-row { transform: none; }
  .js-scroll [data-plx] img { translate: none; scale: none; }
  .js-scroll .has-words .word { transform: none !important; }
  .js-scroll .reveal ul li { opacity: 1 !important; transform: none !important; }
  .closing-inner .wm { animation: none; }
  .mobile-menu.is-open a { animation: none; }
  .stats-band .stat::before { transition: none; width: 100%; }
  .primary::after { display: none; }
  .page-hero.has-bg .hero-bg { animation: none; translate: none; }
  .scroll-cue span::after { animation: none; top: 0; }
  .js-scroll .char-mode .ch { transform: none !important; }
  .text-flow.stack > .flow-row { scale: none; filter: none; }
  .js-scroll .flow-visual, .js-scroll .page-photo { transform: none !important; }
}

/* ============================================================
   COLLAGE FOTOGRAFICI — riempiono le lastre solo-testo.
   Due foto sfalsate che si muovono a velocità opposte (profondità),
   spigoli netti, timbro blu come nel resto del sito.
   ============================================================ */
.flow-row.has-collage {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38vw);
  grid-template-areas:
    "title media"
    "copy  media";
  row-gap: 22px;
}
.flow-row.has-collage h2 { grid-area: title; align-self: end; }
.flow-row.has-collage > div { grid-area: copy; align-self: start; max-width: 640px; }
.flow-row.has-collage .flow-collage { grid-area: media; align-self: center; }
.flow-collage {
  position: relative;
  height: clamp(340px, 48vh, 540px);
}
.flow-collage figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(7, 19, 38, .35);
}
.flow-collage .c1 { top: 0; left: 0; right: 16%; bottom: 18%; }
.flow-collage .c2 { right: 0; bottom: 0; width: 56%; height: 46%; }
.flow-collage.solo .c1 { inset: 0; }
/* la foto piccola scorre in direzione opposta: effetto profondità */
.js-scroll .flow-collage .c2 img {
  translate: 0 calc(var(--py, 0) * -0.7px);
}

/* Entrata: tendina dall'alto per la grande, da destra per la piccola */
.js-scroll .flow-row .flow-collage figure {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s cubic-bezier(.16, 1, .3, 1);
}
.js-scroll .flow-row .flow-collage .c2 {
  clip-path: inset(0 0 0 100%);
  transition-delay: .16s;
}
.js-scroll .flow-row.in-view .flow-collage figure {
  clip-path: inset(0 0 0 0);
}

@media (max-width: 820px) {
  .flow-row.has-collage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "copy"
      "media";
  }
  .flow-collage { height: clamp(300px, 44vh, 420px); width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js-scroll .flow-row .flow-collage figure { clip-path: none !important; }
  .js-scroll .flow-collage .c2 img { translate: none; }
}

/* ============================================================
   FIX FOTO COLLAGE + "SCORRI" NELL'INTRO
   ============================================================ */

/* Le foto riempiono SEMPRE il proprio box, senza deformarsi */
.flow-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* "Scorri" dentro l'animazione iniziale della home:
   vive nell'intro-headline, quindi sfuma col logo mentre
   il foro si apre — zero modifiche alla logica dell'intro */
.intro-cue {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  pointer-events: none;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.intro-cue span {
  display: block;
  width: 1px;
  height: 46px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}
.intro-cue span::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--red);
  animation: cue-drop 1.7s cubic-bezier(.16, 1, .3, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .intro-cue span::after { animation: none; top: 0; }
}

/* ============================================================
   WORDPRESS — news, single post, Contact Form 7
   Blocchi mantenuti dal CSS custom attuale.
   ============================================================ */

/* HOME NEWS / ARTICOLI WP */
.home-news-section {
  position: relative;
  padding: clamp(72px, 8vw, 112px) clamp(22px, 6vw, 86px);
  background: var(--white);
  color: var(--ink);
  border-top: 6px solid var(--dark);
}

.home-news-head {
  max-width: 1180px;
  margin: 0 auto 44px;
}

.home-news-head .eyebrow {
  margin: 0 0 14px;
}

.home-news-head .big {
  margin: 0;
  max-width: 920px;
  color: var(--blue);
}

.home-news-grid {
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.2vw, 32px);
}

.home-news-card {
  min-width: 0;
}

.home-news-card a {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;

  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;

  transition:
    transform .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.home-news-card a:hover {
  transform: translateY(-8px);
  border-color: rgba(10, 47, 133, .28);
  box-shadow: 0 26px 60px rgba(7, 19, 38, .12);
}

.home-news-media {
  height: clamp(220px, 18vw, 280px);
  background:
    linear-gradient(135deg, var(--blue), #061b4e);
  overflow: hidden;
}

.home-news-media:empty::before {
  content: "Biessedilizia";
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  color: rgba(255, 255, 255, .8);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.home-news-card a:hover .home-news-media img {
  transform: scale(1.08);
}

.home-news-body {
  padding: clamp(22px, 2.2vw, 30px);
}

.home-news-date {
  display: block;
  margin-bottom: 14px;

  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.home-news-body h3 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: clamp(23px, 2.1vw, 34px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.home-news-body p {
  margin: 0 0 22px;
  color: #344054;
  font-size: 16px;
  line-height: 1.55;
}

.home-news-body strong {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

@media (max-width: 980px) {
  .home-news-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .home-news-head {
    max-width: 680px;
  }

  .home-news-media {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .home-news-section {
    padding: 58px 22px;
  }

  .home-news-media {
    height: 220px;
  }

  .home-news-body {
    padding: 22px;
  }
}

/* SINGLE POST / DETTAGLIO ARTICOLO */
.single-post {
  background: var(--paper);
}

.single-post #content.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Hero titolo articolo */
.single-post #content .page-header {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(120px, 11vw, 180px) clamp(22px, 6vw, 86px) clamp(52px, 7vw, 90px);

  background:
    linear-gradient(135deg, var(--blue), #0f44c4 42%, #061b4e);
  color: var(--white);
  overflow: hidden;
  border-bottom: 6px solid var(--red);
}

.single-post #content .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 19, 38, .22), rgba(7, 19, 38, .22)),
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 42%);
  pointer-events: none;
}

.single-post #content .entry-title {
  position: relative;
  z-index: 1;

  max-width: 1180px;
  margin: 0 auto;

  color: var(--white);
  font-size: clamp(46px, 7vw, 96px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 800;
  text-wrap: balance;
}

/* Corpo articolo */
.single-post #content .page-content {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) clamp(22px, 5vw, 54px) clamp(70px, 8vw, 105px);

  color: #263142;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.75;
}

.single-post #content .page-content > *:first-child {
  margin-top: 0;
}

.single-post #content .page-content > *:last-child {
  margin-bottom: 0;
}

.single-post #content .page-content p {
  margin: 0 0 28px;
}

.single-post #content .page-content h2,
.single-post #content .page-content h3,
.single-post #content .page-content h4 {
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.single-post #content .page-content h2 {
  margin: 58px 0 20px;
  font-size: clamp(32px, 4vw, 52px);
}

.single-post #content .page-content h3 {
  margin: 44px 0 18px;
  font-size: clamp(26px, 3vw, 38px);
}

.single-post #content .page-content h4 {
  margin: 34px 0 14px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.single-post #content .page-content ul,
.single-post #content .page-content ol {
  margin: 0 0 30px;
  padding-left: 24px;
}

.single-post #content .page-content li {
  margin: 8px 0;
}

.single-post #content .page-content li::marker {
  color: var(--red);
}

/*
 * FIX iPHONE — SOLO SEZIONE VERDE
 * Nessuna animazione viene disattivata.
 */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .eco-row-parallax {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}

.single-post #content .page-content a {
  color: var(--red);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.single-post #content .page-content img,
.single-post #content .page-content .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 44px 0;
  border: 1px solid var(--line);
}

.single-post #content .page-content blockquote {
  margin: 44px 0;
  padding: 28px 32px;
  border-left: 6px solid var(--red);
  background: var(--white);
  color: var(--dark);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  font-weight: 700;
}

.single-post #content .page-content blockquote p {
  margin: 0;
}

/* Commenti e navigazione articolo: nascosti per layout pulito */
.single-post .entry-meta,
.single-post .post-navigation,
.single-post #comments,
.single-post .comments-area {
  display: none !important;
}

/* Se il tema stampa immagini in evidenza fuori contenuto */
.single-post .post-thumbnail,
.single-post .wp-post-image {
  max-width: 100%;
}

/* Responsive single post */
@media (max-width: 820px) {
  .single-post #content .page-header {
    padding: 106px 22px 52px;
  }

  .single-post #content .entry-title {
    font-size: clamp(40px, 12vw, 58px);
    line-height: 1;
  }

  .single-post #content .page-content {
    padding: 44px 22px 68px;
    font-size: 18px;
    line-height: 1.68;
  }

  .single-post #content .page-content h2 {
    margin-top: 46px;
  }

  .single-post #content .page-content img,
  .single-post #content .page-content .wp-block-image img {
    margin: 34px 0;
  }
}

@media (max-width: 480px) {
  .single-post #content .page-header {
    padding-top: 96px;
  }

  .single-post #content .entry-title {
    font-size: 40px;
  }

  .single-post #content .page-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* CONTACT FORM 7 / PREVENTIVO */
.quote-layout .wpcf7 {
  width: 100%;
}

.quote-layout .wpcf7 form {
  margin: 0;
}

.preventivo-form {
  display: grid;
  gap: 14px;
  background: white;
  padding: clamp(24px, 4vw, 48px);
  border-top: 6px solid var(--red);
  box-shadow: 0 30px 80px rgba(17, 24, 39, .08);
}

.preventivo-form br {
  display: none;
}

.preventivo-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.preventivo-form input,
.preventivo-form select,
.preventivo-form textarea {
    width: 85%;
    max-width: 650px;
    display: block;
    margin: 0 auto;

    padding: 16px;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 16px;
    background: var(--paper);
    color: var(--ink);
}

.preventivo-form textarea {
  min-height: 190px;
  resize: vertical;
}

.preventivo-form .wpcf7-submit {
  width: auto;
  justify-self: start;
  cursor: pointer;
}

.preventivo-form .wpcf7-spinner {
  margin: 12px 0 0 12px;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: var(--red);
}

.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
}

/* NAV ACTIVE — mobile */
.mobile-menu a.is-active {
  color: var(--red);
}

.mobile-menu a.primary.is-active {
  color: #fff;
}
