:root {
  --red: #be1717;
  --black: #222;
  --deep: #111;
  --white: #fff;
  --gray: #f1f1ee;
  --line: #d9d9d4;
  --muted: #666;
}

/* =========================================================
   RESET E BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
.brand-name {
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
   HEADER E NAVIGAZIONE
   ========================================================= */

.site-header {
  padding: 14px 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 62%,
    transparent 100%
  );
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
  -webkit-transition:
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  padding: 4px 0;
  background: rgba(17, 17, 17, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .navbar {
  min-height: 82px;
  transition: min-height 0.35s ease;
}

.site-header.scrolled .navbar {
  min-height: 66px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  width: auto;
  height: 75px;
  transition: height 0.35s ease;
}

.site-header.scrolled .navbar-brand img {
  height: 56px;
}

.brand-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 0.9;
}

.brand-name strong {
  font-size: 1rem;
}

.brand-name small {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.nav-link {
  padding: 0.7rem 0.9rem !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-red {
  padding: 0.78rem 1.25rem;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 0;
  font-weight: 700;
}

.btn-red:hover {
  color: #fff;
  background: #a81212;
  border-color: #a81212;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero-video,
.hero-shade,
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
}

.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(8, 8, 8, 0.52) 58%,
    rgba(8, 8, 8, 0.18) 100%
  );
}

.hero-lines {
  opacity: 0.18;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(20% - 1px),
    rgba(255, 255, 255, 0.25) 20%
  );
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 11vw, 11rem);
  line-height: 0.72;
  letter-spacing: -0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 em {
  display: inline-block;
  margin-left: 8vw;
  color: var(--red);
  font-style: normal;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 48px;
  height: 2px;
  background: var(--red);
}

.hero-text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.round-link {
  display: inline-grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: 0.25s;
}

.round-link:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.hero-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  width: 64px;
  align-items: center;
  justify-content: center;
  gap: 70px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(17, 17, 17, 0.72);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

/* =========================================================
   SEZIONI GENERALI
   ========================================================= */

.section {
  padding: 130px 0;
}

.section-number {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section h2,
.services-heading h2,
.gallery-section h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.section-dark {
  color: #fff;
  background: var(--deep);
}

.text-muted-custom {
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   PROFILO
   ========================================================= */

.intro-lead {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.38;
  font-weight: 600;
}

.quote-box {
  padding: 24px;
  border-left: 3px solid var(--red);
  background: var(--gray);
  font-weight: 600;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
   
}

.facts-grid div {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.facts-grid div:last-child {
  border-right: 0;
}

.facts-grid strong {
  display: block;
  color: var(--red);
  font-size: 1.48rem;
}

.facts-grid span {
  display: block;
  margin-top: 18px;
  font-weight: 600;
    font-size: 1.88rem;
}

/* =========================================================
   SERVIZI
   ========================================================= */

.services-heading {
  position: relative;
  overflow: hidden;
  padding: 140px 0 110px;
  color:#fff;
  background:#111;
}

.services-heading::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("../img/ambiente_tecnico.jpg") center/cover no-repeat;
  filter:brightness(.28) saturate(.7);
  transform:scale(1.05);
}

.services-heading::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.55) 45%,rgba(0,0,0,.78) 100%),
    linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55));
}

.services-heading .container-fluid{
  position:relative;
  z-index:2;
}

.services-heading h2::after{
  content:"";
  display:block;
  width:120px;
  height:4px;
  margin-top:28px;
  background:var(--red);
}

.services-heading p{
  max-width:420px;
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:1.08rem;
  line-height:1.8;
}

.gallery-section p{
  margin:0;
  color:rgba(255,255,255,.62);
}

.service-panel {
  overflow: hidden;
}

.service-light {
  background: #fff;
}

.service-gray {
  background: var(--gray);
}

.service-black {
  color: #fff;
  background: var(--black);
}

.service-image {
  position: relative;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-panel:hover .service-image img {
  transform: scale(1.025);
}

.image-label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 20px;
  color: #fff;
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.service-copy {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  padding: 8vw;
}

.left-copy {
  padding-right: 8vw;
  padding-left: 0;
}

.right-copy {
  padding-right: 0;
  padding-left: 8vw;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
  color: var(--red);
}

.service-top span {
  font-size: 0.78rem;
  font-weight: 800;
}

.service-top i {
  font-size: 2.5rem;
}

.service-copy h3 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.service-lead {
  margin-top: 28px;
  font-size: 1.22rem;
  font-weight: 600;
}

.service-copy > p:not(.service-lead) {
  color: var(--muted);
}

.service-black .service-copy > p:not(.service-lead) {
  color: rgba(255, 255, 255, 0.58);
}

.service-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.service-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-black .service-points li {
  border-color: rgba(255, 255, 255, 0.16);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin-top: 10px;
  color: var(--red);
  font-weight: 800;
}

.text-link i {
  transition: transform 0.2s ease;
}

.text-link:hover i {
  transform: translateX(6px);
}

/* =========================================================
   SERVIZI DOPPI
   ========================================================= */

.split-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-card {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
}

.split-bg,
.split-overlay {
  position: absolute;
  inset: 0;
}

.split-bg {
  background-position: center;
  background-size: cover;
  transition: transform 0.8s ease;
}

.split-card:hover .split-bg {
  transform: scale(1.035);
}

.split-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.88)
  );
}

.split-rescue .split-overlay {
  background: linear-gradient(
    180deg,
    rgba(190, 23, 23, 0.15),
    rgba(20, 0, 0, 0.92)
  );
}

.split-content {
  position: absolute;
  right: 7vw;
  bottom: 70px;
  left: 7vw;
  z-index: 2;
}

.split-content > span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
}

.split-content > i {
  float: right;
  font-size: 2.2rem;
}

.split-content h3 {
  max-width: 680px;
  margin: 28px 0 18px;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.split-content p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

.split-content a {
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  font-weight: 800;
}

/* =========================================================
   METODO
   ========================================================= */

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.process-item > span {
  color: var(--red);
  font-size: 1.44rem;
  font-weight: 800;
}

.process-item h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
  padding: 130px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72);
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(0, 0, 0, 0.76)
  );
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.gallery-item figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
}

.gallery-a {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-b {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-c {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-d {
  grid-column: 6 / span 4;
  grid-row: span 2;
}

.gallery-e {
  grid-column: 10 / span 3;
  grid-row: span 2;
}

/* =========================================================
   MANIFESTO
   ========================================================= */

.manifesto {
  padding: 52px 0;
  overflow: hidden;
  background: var(--red);
}

.manifesto-line {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

/* =========================================================
   CONTATTI E FORM
   ========================================================= */

.contact-intro {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.contact-details i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--black);
}

.contact-form {
  padding: 48px;
  background: var(--gray);
}

.form-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-control,
.form-select {
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid #bbb;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--red);
  background: #fff;
}

.form-check-input {
  border-radius: 0;
}

.form-check-input:checked {
  background-color: var(--red);
  border-color: var(--red);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 80px 0 28px;
  color: #fff;
  background: #151515;
}

.site-footer p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer .col-lg-5 a {
  margin-left: 26px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .col-lg-5 a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
  .site-header {
    background: rgba(17, 17, 17, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero h1 {
    font-size: clamp(5rem, 12vw, 9rem);
  }

  .service-copy {
    padding: 7vw 5vw;
  }

  .left-copy,
  .right-copy {
    padding-right: 5vw;
    padding-left: 5vw;
  }
}

@media (max-width: 991.98px) {
  .section,
  .gallery-section {
    padding: 90px 0;
  }

  .site-header,
  .site-header.scrolled {
    padding: 5px 0;
  }

  .site-header .navbar,
  .site-header.scrolled .navbar {
    min-height: 68px;
  }

  .navbar-brand img,
  .site-header.scrolled .navbar-brand img {
    height: 56px;
  }

  .navbar-collapse {
    padding: 18px 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    line-height: 0.8;
  }

  .hero h1 em {
    margin-left: 0;
  }

  .services-heading {
    padding: 90px 0 70px;
  }

  .service-image {
    min-height: 520px;
  }

  .service-copy {
    min-height: auto;
    padding: 70px 0;
  }

  .split-services {
    grid-template-columns: 1fr;
  }

  .split-card {
    min-height: 620px;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts-grid div:nth-child(2) {
    border-right: 0;
  }

  .facts-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .gallery-a,
  .gallery-b,
  .gallery-c,
  .gallery-d,
  .gallery-e {
    grid-column: span 6;
    grid-row: span 2;
  }

  .gallery-e {
    grid-column: span 12;
  }

  .manifesto-line {
    overflow-x: auto;
  }

  .site-footer .col-lg-5 a {
    margin: 0 22px 0 0;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .hero-kicker {
    font-size: 0.62rem;
  }

  .round-link {
    width: 62px;
    height: 62px;
  }

  .section h2,
  .services-heading h2,
  .gallery-section h2 {
    font-size: 2.7rem;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .service-image {
    min-height: 380px;
  }

  .service-copy h3 {
    font-size: 2.5rem;
  }

  .service-points {
    grid-template-columns: 1fr;
  }

  .split-card {
    min-height: 560px;
  }

  .split-content {
    right: 24px;
    bottom: 40px;
    left: 24px;
  }

  .gallery-grid {
    grid-auto-rows: 160px;
  }

  .gallery-a,
  .gallery-b,
  .gallery-c,
  .gallery-d,
  .gallery-e {
    grid-column: span 12;
    grid-row: span 2;
  }

  .contact-form {
    padding: 28px 22px;
  }

  .footer-bottom {
    display: grid;
  }

  .site-footer .col-lg-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-footer .col-lg-5 a {
    margin: 0;
  }
}
