/* GLOBAL STYLES
-------------------------------------------------- */

/* Blu di brand. Va definito qui e non solo dentro le singole sezioni, altrimenti
   i componenti usati fuori da una .home-middle-section (es. il bottone dell'hero)
   trovano var(--home-accent) vuota e perdono il colore. */
:root {
  --home-accent: #00A9E0;
}

body {
  font-family: 'Lato', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
}

h2.sectionitle {
  font-size: 50px;
  text-transform: uppercase;
  font-weight: 800;
}

@media (max-width: 767px) {
  h2.sectionitle {
    font-size: 32px;
  }
}

h3.sectionitle {
  font-size: 50px;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  h3.sectionitle {
    font-size: 32px;
  }
}

.projecttitle {
  font-size: 50px;
  text-transform: uppercase;
  padding: 20px;
  background-color: #fff;
  color: #000000;
  text-align: center;
  display: inline-block;
}
.projecttitle:HOVER, .projecttitle.active {
  text-transform: uppercase;
  background-color: #000000;
  color: #ffffff !important;
}
@media (max-width: 767px) {
  .projecttitle {
    font-size: 32px;
    width: 100%;
  }
}

.linkproject {position: relative; display: block; background-color: #000000;}
.img-project {width:100%;     
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;}
.img-project:HOVER {width:100%; opacity: 0.6; 
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.linkproject-title {position: absolute;bottom: 20px; left: 20px; font-size:30px; color: #ffffff; line-height: 32px;    display: block; font-weight: 800; width: 50%; }
.linkproject-title span {font-size: 30px;  font-weight: 400; line-height: 40px;}


@media (max-width: 1199px){
.linkproject-title {font-size:20px; color: #ffffff; line-height: 22px;    display: block; font-weight: 800; width: 50%;}
.linkproject-title span {font-size: 20px;  font-weight: 400; line-height: 35px;}
}


.container-fluid {
  padding: 0;
  position: relative;
}

body {
  font-size: 17px;
}

a {
  color: #fff;
  text-decoration: none;
}

a:HOVER {
  color: #fff;
}

/* Tutta la palette di sfondo del sito sono queste due tonalita' e basta:
   #000000 (.bg-black) e #0A0A0A (.bg-dark).
   !important perche' Bootstrap dichiara .bg-dark/.bg-white come utility
   !important e altrimenti vincerebbe lui con il suo #212529. */
.bg-black {
  background-color: #000000 !important;
}

.bg-dark {
  background-color: #0A0A0A !important;
}

.section-form-progetto {
  background-color: #0A0A0A !important;
  padding-bottom: 5.25rem !important;
}

/* usata quando la sezione precedente e' gia' #0A0A0A (es. cosa facciamo) */
.section-form-progetto.section-form-progetto-nero {
  background-color: #000000 !important;
}

.section-form-progetto .row:first-child .col-12 {
  padding-top: 5rem !important;
  padding-bottom: 3rem !important;
}

.section-form-progetto .bg-white {
  padding: 2.5rem 2.5rem 1.4rem !important;
}

.home-middle-section {
  --home-accent: #00A9E0;
  --home-bg-base: #000000;
  --home-bg-alt: #0A0A0A;
  --home-rule-soft: #34373a;
}

.home-middle-section {
  padding: 6.6rem 0;
}

.home-middle-section.bg-black {
  background-color: var(--home-bg-base) !important;
}

.home-middle-section.bg-dark {
  background-color: var(--home-bg-alt) !important;
}

.home-middle-title {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.home-middle-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.16rem, 1.9vw, 2.05rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 1.95rem auto 0;
  max-width: 1190px;
}

.home-middle-copy strong {
  font-weight: 600;
}

.home-middle-copy-strong {
  color: #f1f1f1;
}

.home-middle-btn {
  border: 2px solid var(--home-accent);
  border-radius: 0;
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  min-width: 250px;
  padding: 0.68rem 1.6rem;
  text-transform: uppercase;
}

.home-middle-btn:HOVER {
  background-color: var(--home-accent);
  color: #0A0A0A;
}

.home-middle-strip {
  padding-top: 5.1rem;
  padding-bottom: 5.1rem;
}

.home-middle-frame-wrap {
  overflow: visible;
  padding-top: 3.5rem;
  padding-bottom: 0;
  position: relative;
}

.home-middle-frame-row-top {
  padding-bottom: 0;
}

.home-middle-frame-row-bottom {
  margin-top: 0;
  position: relative;
}

.home-middle-frame {
  border-left: 1px solid var(--home-accent);
  padding: 4.7rem 2rem;
  position: relative;
}

.home-middle-frame-row-bottom-inner {
  border-top: 1px solid var(--home-accent);
  height: 2.8rem;
  position: relative;
  width: 100%;
}

.home-middle-frame-row-bottom-inner::after {
  border-right: 1px solid var(--home-accent);
  content: "";
  height: 2.8rem;
  position: absolute;
  right: 9%;
  top: 0;
}

.home-middle-frame-wrap + .home-middle-section {
  border-top: 0;
}

.home-middle-frame h3 {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 960px;
  text-align: center;
}

.home-middle-quote-strip {
  padding-top: 5.2rem;
  padding-bottom: 5.2rem;
}

.home-middle-steps-wrap {
  padding-top: 6.6rem;
  padding-bottom: 6.6rem;
}

.home-middle-steps-row {
  margin-top: 4.2rem;
  row-gap: 3.2rem;
}

.home-middle-step {
  text-align: left;
}

.home-middle-step .home-middle-step-num {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.home-middle-step h3 {
  border-top: 1px solid var(--home-rule-soft);
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 1.15rem 0 0;
  padding-top: 1.15rem;
}

.home-middle-step p {
  color: #dddddd;
  font-family: 'Lato', sans-serif;
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 1rem 0 0;
}

@media (max-width: 991px) {
  .home-middle-section {
    padding: 5.2rem 0;
  }

  .home-middle-title {
    font-size: clamp(1.7rem, 6vw, 2.5rem);
  }

  .home-middle-copy {
    font-size: clamp(1.1rem, 3.7vw, 1.52rem);
    line-height: 1.5;
  }

  .home-middle-frame h3 {
    font-size: clamp(1.5rem, 5vw, 2.1rem);
  }

  .home-middle-step-num {
    font-size: 2.1rem;
  }

  .home-middle-step h3 {
    font-size: 1.6rem;
  }

  .home-middle-step p {
    font-size: 1.03rem;
  }
}

@media (max-width: 767px) {
  .home-middle-section {
    padding: 4rem 0;
  }

  .home-middle-title {
    font-size: clamp(1.82rem, 8.3vw, 2.18rem);
    line-height: 1.17;
  }

  .home-middle-copy {
    font-size: clamp(1.08rem, 4.15vw, 1.28rem);
    line-height: 1.52;
  }

  .home-middle-btn {
    font-size: 0.92rem;
    min-width: 220px;
    padding: 0.62rem 1.2rem;
  }

  .home-middle-frame {
    padding: 3.15rem 1.15rem;
  }

  .home-middle-frame-row-bottom-inner {
    height: 3.3rem;
  }

  .home-middle-frame-row-bottom-inner::after {
    height: 3.3rem;
    right: 11%;
  }

  .home-middle-frame h3 {
    font-size: clamp(1.42rem, 6.4vw, 1.84rem);
  }

  .home-middle-step .home-middle-step-num {
    font-size: 1.95rem;
  }

  .home-middle-step h3 {
    font-size: 1.55rem;
  }

  .home-middle-step p {
    font-size: 1.02rem;
    line-height: 1.48;
  }

  .home-middle-steps-row {
    margin-top: 2.8rem;
    row-gap: 2.6rem;
  }

  .home-middle-step {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}


/* ==========================================================================
   CHI SIAMO
   ========================================================================== */

.page-hero-caption {
  justify-content: center;
  padding-bottom: 0;
  padding-top: 0;
}

.page-hero-caption > .container {
  width: 100%;
}

.toppage .page-hero-title {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 2.9vw, 3.5rem);
  font-weight: 600;
  line-height: 1.18;
  margin: 0;
  padding: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.cs-team-section {
  --home-accent: #00A9E0;
}

.cs-team-slider-wrap {
  margin-top: 3.4rem;
}

.cs-team-slider .slick-slide {
  padding: 0 2.4rem;
}

.cs-team-slider .cs-team-item {
  outline: none;
}

.cs-team-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  width: 100%;
}

.cs-team-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.cs-team-name {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 1.3rem 0 0;
}

.cs-team-role {
  color: var(--home-accent, #00A9E0);
  font-family: 'Lato', sans-serif;
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.2;
  margin: 0.35rem 0 0;
}

.cs-team-slider .slick-prev,
.cs-team-slider .slick-next {
  height: 48px;
  width: 30px;
  z-index: 2;
}

/* le frecce vanno centrate sulla foto, non sul blocco foto + nome + ruolo */
.cs-team-slider .slick-prev,
.cs-team-slider .slick-next {
  top: calc(50% - 2.2rem);
}

.cs-team-slider .slick-prev {
  left: -3.2rem;
}

.cs-team-slider .slick-next {
  right: -3.2rem;
}

.cs-team-slider .slick-prev::before,
.cs-team-slider .slick-next::before {
  color: #ffffff;
  font-size: 2.6rem;
  line-height: 1;
  opacity: 1;
  top: 0;
}

/* con pochi membri slick disattiva le frecce: restano visibili ma spente */
.cs-team-slider .slick-prev.slick-disabled::before,
.cs-team-slider .slick-next.slick-disabled::before {
  opacity: 0.3;
}

.cs-team-slider .slick-prev::before {
  content: "\f284";
}

.cs-team-slider .slick-next::before {
  content: "\f285";
}

.cs-founder-section {
  --home-accent: #00A9E0;
}

.cs-founder-name {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 2.9vw, 3.3rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.cs-founder-role {
  color: var(--home-accent, #00A9E0);
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.2rem, 1.65vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0.75rem 0 0;
}

.cs-founder-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.1rem, 1.55vw, 1.65rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 1.8rem 0 0;
  max-width: 640px;
}

.cs-founder-copy strong {
  font-weight: 600;
}

.cs-founder-media img {
  display: block;
  height: auto;
  margin-left: auto;
  max-width: 100%;
  width: 600px;
}

.cs-metodo-intro {
  padding-bottom: 5rem;
}

.cs-vivo-section {
  --home-accent: #00A9E0;
  --cs-vivo-rule: rgba(255, 255, 255, 0.55);
  background-color: #000000 !important;
  border-top: 1px solid var(--cs-vivo-rule);
  padding: 0;
}

.cs-vivo-row {
  margin: 0;
}

.cs-vivo-item {
  border-right: 1px solid var(--cs-vivo-rule);
  padding: 4.6rem 2rem 5.2rem;
  text-align: center;
}

.cs-vivo-item:last-child {
  border-right: 0;
}

.cs-vivo-letter {
  color: var(--home-accent, #00A9E0);
  font-family: 'Lato', sans-serif;
  font-size: clamp(3.2rem, 4.6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.cs-vivo-title {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 2.1rem 0 0;
}

.cs-vivo-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.32rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 1.6rem 0 0;
}

@media (max-width: 1399px) {
  .cs-team-slider .slick-prev {
    left: -2.2rem;
  }

  .cs-team-slider .slick-next {
    right: -2.2rem;
  }

  .cs-team-slider .slick-slide {
    padding: 0 1.4rem;
  }
}

@media (max-width: 991px) {
  .toppage .page-hero-title {
    font-size: clamp(1.7rem, 5.2vw, 2.5rem);
  }

  .cs-founder-name {
    font-size: clamp(1.8rem, 4.6vw, 2.5rem);
  }

  .cs-founder-role {
    font-size: clamp(1.15rem, 2.9vw, 1.5rem);
  }

  .cs-founder-copy {
    font-size: clamp(1.08rem, 2.7vw, 1.4rem);
    max-width: 100%;
  }

  .cs-founder-media {
    margin-top: 2.6rem;
  }

  .cs-founder-media img {
    margin: 0 auto;
    width: 100%;
  }

  .cs-vivo-item {
    padding: 3.6rem 1.4rem 4rem;
  }

  .cs-vivo-item:nth-child(2n) {
    border-right: 0;
  }

  .cs-vivo-item:nth-child(n+3) {
    border-top: 1px solid var(--cs-vivo-rule);
  }

  .cs-vivo-letter {
    font-size: clamp(3rem, 8vw, 4.4rem);
  }

  .cs-vivo-title {
    font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  }

  .cs-vivo-copy {
    font-size: clamp(1rem, 2.4vw, 1.18rem);
  }
}

@media (max-width: 767px) {
  .toppage .page-hero-title {
    font-size: clamp(1.55rem, 6.6vw, 2.1rem);
  }

  .cs-team-slider-wrap {
    margin-top: 2.6rem;
  }

  .cs-team-slider .slick-slide {
    padding: 0 0.6rem;
  }

  .cs-team-slider .slick-prev {
    left: -1.1rem;
  }

  .cs-team-slider .slick-next {
    right: -1.1rem;
  }

  .cs-team-slider .slick-prev::before,
  .cs-team-slider .slick-next::before {
    font-size: 2.1rem;
  }

  .cs-founder-copy {
    font-size: 1.08rem;
  }

  .cs-metodo-intro {
    padding-bottom: 3rem;
  }

  .cs-vivo-item {
    border-right: 0;
    padding: 2.8rem 1.2rem 3rem;
    width: 100%;
  }

  .cs-vivo-item + .cs-vivo-item {
    border-top: 1px solid var(--cs-vivo-rule);
  }

  .cs-vivo-item:nth-child(n+3) {
    border-top: 1px solid var(--cs-vivo-rule);
  }

  .cs-vivo-title {
    font-size: 1.55rem;
    margin-top: 1.5rem;
  }

  .cs-vivo-copy {
    font-size: 1.05rem;
    margin-top: 1.1rem;
  }
}


/* ==========================================================================
   CASI STUDIO (elenco + scheda)
   ========================================================================== */

.toppage.casistudio {
  background-color: #000000;
  background-image: none;
}

/* --- elenco --- */

.cs-lista {
  --home-accent: #00A9E0;
  padding: 4.6rem 0 6.2rem;
}

.cs-lista-row {
  row-gap: 4.2rem;
}

.cs-card-inner {
  border-bottom: 1px solid #ffffff;
  color: inherit;
  display: block;
  padding-bottom: 1.6rem;
  position: relative;
  text-decoration: none;
}

a.cs-card-inner:HOVER {
  color: inherit;
}

.cs-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

.cs-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

a.cs-card-inner:HOVER .cs-card-media img {
  transform: scale(1.05);
}

.cs-card-nome {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 2.1rem 0 0;
  text-transform: uppercase;
}

.cs-card-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 1.4rem 0 0;
  min-height: 5.8em;
}

/* freccia in basso a destra, come da bozza */
.cs-card-arrow {
  display: block;
  height: 42px;
  margin-left: auto;
  margin-top: 1rem;
  position: relative;
  width: 42px;
}

/* freccia diagonale: asta ruotata + angolo in alto a destra come punta */
.cs-card-arrow::before,
.cs-card-arrow::after {
  content: "";
  position: absolute;
}

.cs-card-arrow::before {
  background-color: #ffffff;
  bottom: 1px;
  height: 1px;
  left: 1px;
  transform: rotate(-45deg);
  transform-origin: left bottom;
  width: 57px;
}

.cs-card-arrow::after {
  background: transparent;
  border-right: 1px solid #ffffff;
  border-top: 1px solid #ffffff;
  height: 20px;
  right: 0;
  top: 0;
  width: 20px;
}

a.cs-card-inner:HOVER .cs-card-arrow {
  transform: translate(4px, -4px);
  transition: transform 0.3s ease;
}

.cs-card-inner:not(a) .cs-card-arrow {
  opacity: 0.35;
}

.cs-pager {
  margin-top: 3.6rem;
}

.cs-pager-link {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  padding: 0 1.1rem;
  text-decoration: none;
}

.cs-pager-link.active,
.cs-pager-link:HOVER {
  color: var(--home-accent);
  text-decoration: underline;
}

/* --- scheda interna --- */

.cd-hero {
  background-color: #000000;
  background-position: center center;
  background-size: cover;
}

/* Le foto dei casi studio arrivano non ritoccate: la bozza le scurisce del 30%
   per far leggere il titolo bianco. Lo facciamo qui, cosi' vale per qualsiasi
   immagine futura senza doverla preparare a mano. */
.cd-hero::before {
  background-color: rgba(0, 0, 0, 0.30);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cd-hero-occhiello {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.cd-hero-nome {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0.5rem 0 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.cd-intro {
  padding-bottom: 5.6rem;
}

.cd-blocchi {
  --home-accent: #00A9E0;
  padding: 5.2rem 0;
}

.cd-blocchi-row {
  row-gap: 3.2rem;
}

/* la card prende il tono opposto a quello della fascia */
.cd-blocco {
  height: 100%;
  padding: 5.25rem 4.4rem 6rem;
}

.cd-blocchi.bg-dark .cd-blocco {
  background-color: #000000;
}

.cd-blocchi.bg-black .cd-blocco {
  background-color: #0A0A0A;
}

.cd-blocco-titolo {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.5rem, 2.1vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

.cd-blocco-titolo span {
  margin-right: 1.5rem;
}

.cd-blocco-occhiello {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.02rem, 1.22vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 4.2rem 0 0;
}

.cd-blocco-testo {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.02rem, 1.22vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 1.8rem 0 0;
}

.cd-numeri {
  --home-accent: #00A9E0;
  --cd-rule: rgba(255, 255, 255, 0.55);
  padding: 6.4rem 0 7rem;
}

.cd-numeri-row {
  margin-top: 4.4rem;
}

.cd-numero {
  padding: 2.6rem 1.5rem 3.2rem;
  position: relative;
  text-align: center;
}

/* Divisore verticale centrale: nella bozza e' un segmento corto centrato,
   non un bordo a tutta altezza, e non tocca la riga orizzontale. */
.cd-numero:nth-child(odd)::after {
  background-color: var(--cd-rule);
  bottom: 19%;
  content: "";
  position: absolute;
  right: 0;
  top: 19%;
  width: 1px;
}

/* Riga orizzontale fra le due coppie. */
.cd-numero:nth-child(n+3)::before {
  background-color: var(--cd-rule);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cd-numero-valore {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 2.9vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.cd-numero-label {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  font-weight: 300;
  line-height: 1.4;
  margin: 1.6rem 0 0;
}

.cd-numero-label strong {
  font-weight: 600;
}

@media (max-width: 991px) {
  .cs-lista {
    padding: 3.4rem 0 4.6rem;
  }

  .cs-lista-row {
    row-gap: 3.2rem;
  }

  .cs-card-copy {
    min-height: 0;
  }

  .cd-blocco {
    padding: 3.4rem 2.2rem 3.8rem;
  }

  .cd-blocco-occhiello {
    margin-top: 2.4rem;
  }

  .cd-numeri {
    padding: 4.4rem 0 4.8rem;
  }

  .cd-numeri-row {
    margin-top: 2.8rem;
  }

  .cd-numero {
    padding: 2rem 1rem 2.4rem;
  }
}

@media (max-width: 767px) {
  .cd-hero-nome {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .cd-blocchi {
    padding: 2.6rem 0;
  }

  .cd-blocco {
    padding: 2.6rem 1.5rem 3rem;
  }

  /* sotto i 768px i quattro dati vanno uno sotto l'altro,
     con un filetto rientrato fra una voce e l'altra (niente divisori verticali) */
  .cd-numero {
    padding: 2.4rem 0.6rem 2.4rem;
  }

  .cd-numero:nth-child(odd)::after {
    display: none;
  }

  .cd-numero:not(:first-child)::before {
    background-color: var(--cd-rule);
    content: "";
    height: 1px;
    left: 14%;
    position: absolute;
    right: 14%;
    top: 0;
  }

  .cd-numero-label {
    font-size: 1.05rem;
    margin-top: 1.1rem;
  }
}

/* ==========================================================================
   CONTATTI
   ========================================================================== */

.toppage.contatti {
  background-color: #000000;
  background-image: none;
}

.ct-sede {
  --home-accent: #00A9E0;
  padding: 7.6rem 0;
}

.ct-sede-name {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

.ct-sede-sub {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0.7rem 0 0;
}

.ct-sede-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.1rem, 1.85vw, 1.95rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 3.4rem 0 0;
  max-width: 660px;
}

.ct-sede-media img {
  display: block;
  height: auto;
  margin-left: auto;
  max-width: 100%;
  width: 640px;
}

.ct-sede-media-left img {
  margin-left: 0;
  margin-right: auto;
}

.ct-mappe {
  padding: 7.6rem 0 8rem;
}

.ct-mappe-title {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.9rem, 2.9vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.ct-mappe-row {
  margin-top: 3.4rem;
  row-gap: 3.4rem;
}

.ct-mappa-citta {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

.ct-mappa-indirizzo {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 1.6rem 0 2.4rem;
}

.ct-mappa iframe {
  display: block;
  filter: grayscale(35%);
  height: 340px;
  width: 100%;
}

@media (max-width: 991px) {
  .ct-sede {
    padding: 4.6rem 0;
  }

  .ct-sede-copy {
    margin-top: 2.2rem;
    max-width: 100%;
  }

  .ct-sede-media {
    margin-top: 2.6rem;
  }

  .ct-sede-media img,
  .ct-sede-media-left img {
    margin: 0 auto;
    width: 100%;
  }

  .ct-mappe {
    padding: 4.6rem 0 5rem;
  }

  .ct-mappe-row {
    margin-top: 2.4rem;
  }

  .ct-mappa iframe {
    height: 260px;
  }
}

@media (max-width: 767px) {
  .ct-sede {
    padding: 3.4rem 0;
  }

  .ct-sede-copy {
    font-size: 1.08rem;
  }

  .ct-mappa-indirizzo {
    font-size: 1.02rem;
    margin-bottom: 1.6rem;
  }
}

/* ==========================================================================
   COSA FACCIAMO
   ========================================================================== */

/* Hero senza immagine: per ora sfondo nero pieno.
   Quando arrivera' l'immagine basta scommentare il blocco qui sotto
   (e la variante mobile piu' in basso) come per .toppage.chisiamo. */
.toppage.cosafacciamo {
  background-color: #000000;
  background-image: none;
}

/*
.toppage.cosafacciamo {
  background-image: url('../image/bg-cosafacciamo-pc.jpg');
  background-position: center center;
  background-size: cover;
}
*/

.page-hero-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.16rem, 1.78vw, 2.1rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 2.2rem auto 0;
  max-width: 1360px;
}

.page-hero-copy strong {
  font-weight: 600;
}

.page-hero-caption .home-middle-btn {
  margin-top: 3.2rem;
}

.cf-aree {
  --home-accent: #00A9E0;
  --cf-rule: rgba(255, 255, 255, 0.8);
  padding: 10.75rem 0 0;
}

.cf-aree-head {
  padding-bottom: 11rem;
}

/* banda dei separatori: 39px per lato su un progetto a 1920 */
.cf-aree-wrap {
  padding: 0 2.05%;
}

.cf-area {
  border-top: 1px solid var(--cf-rule);
}

.cf-area:first-child {
  border-top: 0;
}

/* colonne numero | titolo | descrizione, con i rientri della bozza */
.cf-area-grid {
  display: grid;
  grid-template-columns: 22.2% 32.2% 45.6%;
  padding: 5.45rem 4.9% 7.4rem 6.7%;
}

.cf-area-num {
  color: var(--home-accent);
  font-family: 'Lato', sans-serif;
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.cf-area-title {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.cf-area-copy {
  color: #e7e7e7;
  font-family: 'Lato', sans-serif;
  font-size: 1.32rem;
  font-weight: 300;
  line-height: 1.62;
  margin: 0;
}

.cf-area-copy strong {
  color: #ffffff;
  font-weight: 600;
}

.cf-flow {
  --home-accent: #00A9E0;
  padding: 15rem 0 12.4rem;
}

.cf-flow-track {
  display: flex;
  padding: 0 5.15%;
  position: relative;
}

/* la linea e' a tutta larghezza, le etichette restano dentro la banda */
.cf-flow-track::before {
  background-color: var(--home-accent);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cf-flow-step {
  flex: 1 1 0;
  padding-top: 5.25rem;
  position: relative;
  text-align: center;
}

.cf-flow-step span {
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.cf-flow-step:not(:last-child)::after {
  color: var(--home-accent);
  content: "\f285";
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: 64px;
  font-weight: normal !important;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 1px;
  transform: translate(50%, -50%);
}

@media (max-width: 1399px) {
  .cf-flow-step span {
    font-size: 2rem;
  }

  .cf-flow-step:not(:last-child)::after {
    font-size: 52px;
  }
}

@media (max-width: 991px) {
  .page-hero-copy {
    font-size: clamp(1.1rem, 3.4vw, 1.5rem);
    margin-top: 1.7rem;
  }

  .page-hero-caption .home-middle-btn {
    margin-top: 2.2rem;
  }

  .cf-aree {
    padding-top: 6rem;
  }

  .cf-aree-head {
    padding-bottom: 3.4rem;
  }

  .cf-aree-wrap {
    padding: 0 1.15rem;
  }

  /* da tablet in giu' le tre colonne diventano una sola */
  .cf-area-grid {
    display: block;
    padding: 3.4rem 0 3.8rem;
  }

  .cf-area-title {
    font-size: 2rem;
    margin-top: 1.5rem;
  }

  .cf-area-copy {
    font-size: 1.16rem;
    margin-top: 1.5rem;
  }

  /* la timeline diventa un serpentino: una riga per passo, freccia alternata */
  .cf-flow {
    padding: 0 0 8rem;
  }

  .cf-flow-track {
    display: block;
    padding: 0;
  }

  .cf-flow-track::before {
    display: none;
  }

  .cf-flow-step {
    border-bottom: 2px solid var(--home-accent);
    padding: 7.5rem 1.15rem 1.4rem;
    text-align: left;
  }

  .cf-flow-step:nth-child(even) {
    text-align: right;
  }

  .cf-flow .cf-flow-step::after {
    bottom: 0;
    color: var(--home-accent);
    content: "\f285";
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-size: 54px;
    font-weight: normal !important;
    left: auto;
    line-height: 1;
    position: absolute;
    right: 20.5%;
    top: auto;
    transform: translate(50%, 50%);
  }

  .cf-flow .cf-flow-step:nth-child(even)::after {
    content: "\f284";
    left: 31.4%;
    right: auto;
    transform: translate(-50%, 50%);
  }

  .cf-flow-step span {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .cf-aree {
    padding-top: 4rem;
  }

  .cf-aree-head {
    padding-bottom: 2.4rem;
  }

  .cf-area-grid {
    padding: 2.8rem 0 3rem;
  }

  .cf-area-num {
    font-size: 2rem;
  }

  .cf-area-title {
    font-size: 1.7rem;
    margin-top: 1.2rem;
  }

  .cf-area-copy {
    font-size: 1.08rem;
    margin-top: 1.2rem;
  }

  .cf-flow-step span {
    font-size: 1.8rem;
  }

  .cf-flow .cf-flow-step::after {
    font-size: 46px;
  }
}

.section-form-progetto-title {
  font-family: 'Lato', sans-serif;
  color: #f5f5f5;
  font-size: clamp(1.62rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.section-form-progetto-copy {
  font-family: 'Lato', sans-serif;
  color: #d9d9d9;
  font-size: clamp(1.05rem, 1.7vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  margin: 1.25rem auto 0;
  max-width: 1500px;
}

/* campi: testo e linea neri, rientro di 24px come da bozza */
.section-form-progetto .form-control {
  border-bottom-color: #000000;
  color: #000000;
  font-size: 21px;
  line-height: 1.35;
  margin: 17px 0 40px;
  padding: 0 0 14px 24px;
}

.section-form-progetto .form-control::placeholder {
  color: #000000;
  opacity: 1;
}

.section-form-progetto .form-check {
  color: #000000;
  padding-left: 2.3em;
}

.section-form-progetto .form-check .form-check-input {
  border-color: #6f6f6f;
  margin-left: -2.3em;
}

.section-form-progetto .form-check .form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
}

.section-form-progetto .btn-form {
  font-size: 60px;
  line-height: 1.1;
  padding: 1px 24px;
}

@media (max-width: 767px) {
  .section-form-progetto {
    padding-bottom: 3.6rem !important;
  }

  .section-form-progetto .row:first-child .col-12 {
    padding-top: 3.8rem !important;
    padding-bottom: 2.3rem !important;
  }

  .section-form-progetto .bg-white {
    padding: 1.7rem 1.15rem 1rem !important;
  }

  .section-form-progetto .form-control {
    font-size: 17px;
    margin: 14px 0 26px;
    padding: 0 0 10px 14px;
  }

  .section-form-progetto .form-check {
    padding-left: 2em;
  }

  .section-form-progetto .form-check .form-check-input {
    margin-left: -2em;
  }

  .section-form-progetto .btn-form {
    font-size: 36px;
    padding: 1px 14px;
  }

  .section-form-progetto-copy {
    line-height: 1.45;
  }
}

/* --- form, variante scura senza card (contatti) --- */

.section-form-progetto-scuro {
  --home-accent: #00A9E0;
}

.section-form-progetto-scuro .section-form-progetto-title,
.section-form-progetto-scuro .section-form-progetto-copy {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.section-form-progetto-scuro .section-form-progetto-copy {
  margin-top: 1.1rem;
}

.section-form-progetto-scuro .row:first-child .col-12 {
  padding-bottom: 4.4rem !important;
}

.section-form-progetto-scuro .form-control {
  border-bottom-color: #ffffff;
  color: #ffffff;
  margin: 25px 0 62px;
}

.section-form-progetto-scuro .form-control::placeholder {
  color: #ffffff;
  opacity: 1;
}

.section-form-progetto-scuro .form-control:focus {
  background-color: transparent;
  border-bottom-color: #ffffff;
  color: #ffffff;
}

.section-form-progetto-scuro .form-check {
  color: #ffffff;
}

.section-form-progetto-scuro .form-check .form-check-input {
  background-color: transparent;
  border-color: #ffffff;
}

.section-form-progetto-scuro .form-check .form-check-input:checked {
  background-color: var(--home-accent);
  border-color: var(--home-accent);
}

.section-form-progetto-scuro .btn-form {
  background-color: transparent;
  color: var(--home-accent);
}

.section-form-progetto-scuro .btn-form:HOVER {
  background-color: var(--home-accent);
  color: #000000;
  text-decoration: none;
}

.section-form-progetto-scuro .btn-form:disabled {
  color: #6f757c;
}

@media (max-width: 767px) {
  .section-form-progetto-scuro .form-control {
    margin: 18px 0 40px;
  }

  .section-form-progetto-scuro .row:first-child .col-12 {
    padding-bottom: 2.6rem !important;
  }
}

.bg-white {
  background-color: #fff;
}

.color-blue {
  color: #00A9E0;
}


.bg-dark,
.bg-black {
  color: #fff;
}

.bg-white a {
  color: #000000;
  text-decoration: none;
}

.bg-white a:HOVER {
  color: #000000;
}

.btn-black {
  border-radius: 0;
  background-color: #000000;
  border: 1px solid #000000;
  color: #ffffff !important;
}

.btn-black:HOVER {
  background-color: #ffffff;
  border: 1px solid #000000;
  color: #000000 !important;
}

.btn-white {
  border-radius: 0;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
}

.btn-white:HOVER {
  background-color: #000000;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.colorsequence h3:nth-child(1) {color: #CB5816;}
.colorsequence h3:nth-child(2) {color: #FF2C44;}
.colorsequence h3:nth-child(3) {color: #FFC735;}
.colorsequence h3:nth-child(4) {color: #77D8E4;}
.colorsequence h3:nth-child(5) {color: #066DF8;}
.colorsequence h3:nth-child(6) {color: #26D168;}
.colorsequence h3:nth-child(7) {color: #FF5632;}
.colorsequence h3:nth-child(8) {color: #619514;}
.colorsequence h3:nth-child(9) {color: #AA4DD8;}
.colorsequence h3:nth-child(10) {color: #FD66B2;}
.colorsequence h3:nth-child(11) {color: #AC943F;}
.colorsequence h3:nth-child(11) {color: #0E9061;}

.logo {
  width: 300px;
  margin: 0px 0px 0px 0px;
  z-index: 99999;
  position: relative;
}

@media (max-width: 520px) {
  .logo {
    width: 200px;
    margin: 0px 0px 0px 0px;
  }
}



.navbar {
  position: fixed;
  background-color: #000000 !important;
  width: 100%;
  z-index: 999;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.lang-link a {
  font-size: 15px;
  position: relative;
  top: -2px;
}

.lang-link a.active {
  border-bottom: 1px solid #ffffff;
}

main {
  margin-top: 82px;
}

@media (max-width: 520px) {
  main {
    margin-top: 63px;
  }
}

.nav-item {
  font-size: 18px;
  font-weight: 400;
  padding-left: 20px;
  padding-right: 20px;
}


@media (max-width: 1200px) {
  .nav-item {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 17px;
  }

  .lang-link a {
    font-size: 13px;
    top: -2px;
  }
}


.nav-link {
  color: #ffffff !important;
  padding: 0 !important;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  font-weight: 400;
  white-space: nowrap;
}


.nav-link:HOVER {
  color: #ffffff !important;
  border-bottom: 1px solid #ffffff;
}

@media (min-width: 992px) {
  .nav-link.active {
    color: #ffffff !important;
    border-bottom: 1px solid #ffffff;
  }
}




.dropdown-menu.show {
  display: block;
  padding: 0;
  left: 10px;
  margin-top: -1px;
  border-radius: 0;
  border: none;
  padding-top: 10px;
  background: transparent;
  border-bottom: 1px solid #ffffff;
}

.dropdown-menu.show .dropdown-item {
  color: #ffffff;
  background-color: #154194;
  border-top: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
}

.dropdown-menu.show .dropdown-item:HOVER {
  color: #154194;
  background-color: #ebebeb;
}


.footer {
  font-size: 14px;
  background-color: #000000;
  color: #ffffff;
}

.footerbottom {
  padding-top: 20px;
  font-size: 14px;
  background-color: #ffffff;
  color: #000000;
}

.footerbottom a {
  color: #000000;
}

.logofooter {
  width: 80%;
  max-width: 254px;
}

.footer h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 45px;
  margin-bottom: 35px;
  color: #ffffff;
}

.footer p {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer .icon-social {
  margin: 10px 10px 0 0;
  width: 32px;
}



.dropdown-toggle::after {
  display: none !important;
}

.solomobile {
  display: none !important;
}

/* il blocco social vive solo nel pannello del menu mobile */
.menusocial {
  display: none;
}


/* --- MENU MOBILE (pannello a tutta pagina, fino a 991px) --- */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: transparent !important;
    bottom: auto;
    flex-direction: column !important;
    /* .row porta flex-wrap: wrap; con direzione colonna e altezza 100vh
       il blocco social finiva a capo in una seconda colonna fuori schermo */
    flex-wrap: nowrap !important;
    height: 100vh;
    left: -100vw;
    margin-left: 0;
    overflow: hidden;
    padding-top: 0;
    position: fixed;
    top: 82px;
    transition: all 0.5s ease;
    width: 100%;
    z-index: 9999;
  }

  .navbar-collapse.show {
    background-color: #0A0A0A !important;
    bottom: 0vh;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    height: 100vh;
    left: 0vw;
    overflow: auto;
  }

  /* il pannello e' una .row di bootstrap: azzero gutter e allineamenti
     della griglia, altrimenti le voci non risultano centrate davvero */
  .navbar-collapse,
  .navbar-collapse > .col-12 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar-collapse > .col-12 {
    display: block !important;
    /* il pannello e' un flex in colonna: flex-basis qui e' l'ALTEZZA,
       con 100% il blocco social finiva spinto sotto la piega */
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .navbar-collapse .navbar-nav {
    padding-left: 0 !important;
  }

  .navbar-nav {
    margin: auto;
    padding-top: 190px;
    position: relative;
    text-align: center !important;
    width: 100%;
  }

  .nav-item {
    margin-top: 0;
    padding: 0;
    text-align: center;
  }

  /* passo di 69px fra le voci, come da bozza */
  .nav-link {
    font-size: 20px;
    padding: 0 0 39px 0 !important;
    text-align: center;
  }

  .lang-link {
    padding-top: 52px;
  }

  .lang-link a {
    font-size: 18px;
    margin: 10px;
    top: 0;
  }

  .menusocial {
    display: block;
    padding-top: 74px;
    text-align: center;
    width: 100%;
  }

  .menusocial img {
    margin: 0 13px;
    width: 40px;
  }
}

@media (max-width: 520px) {
  .navbar-collapse {
    top: 63px;
  }
}

@media (max-width: 767px) {
  .solomobile {
    display: block !important;
  }

  .solopc {
    display: none !important;
  }





  .dropdown-toggle::before {
    content: "\f285";
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 30px;
    position: absolute;
    right: 20px;
    top: 25px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
  }

  .dropdown-toggle.show::before {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
    transform: rotate(90deg);
  }

  .dropdown-menu.show {
    display: block;
    padding: 0;
    border-radius: 0;
  }

  .dropdown-item {
    font-size: 16px;
    padding: 4px 10px;
    text-align: center;
  }

  .dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
  }

  .socialmenu {
    width: 100%;
    text-align: center;
    padding: 20px 0 0 0;
  }

  .socialmenu .icon-social {
    width: 50px;
    margin: 15px;
  }

}



.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-right: 10px;
  margin-left: 0px;
  margin-bottom: 10px;
  text-indent: -999px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid #ffffff;
  background-clip: padding-box;
  border-radius: 50%;
}

.carousel-indicators [data-bs-target].active {
  background-color: #fff;
  border: 1px solid #ffffff;

}



.img-slide {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 767px) {
  .img-slide {
    height: 90vw;
    -o-object-fit: cover;
    object-fit: cover;
  }
}



.caption-slide {
  position: absolute;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.caption-slide h5 {
  font-size: 30px;
  color: #000000;
}

.caption-slide h2 {
  font-size: 62px;
  line-height: 1;
  color: #000000;
  padding: 20px 0;
}

.toppage .caption-slide h5 {
  color: #ffffff;
}

.toppage .caption-slide h2 {
  color: #ffffff;
}

.toppage .caption-slide p {
  color: #ffffff;
}

@media (max-width: 991px) {

  .caption-slide h5 {
    font-size: 30px;
  }

  .caption-slide h2 {
    font-size: 46px;
    padding: 15px 0;
  }
}



@media (max-width: 767px) {
  .caption-slide-mobile {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    align-items: center;
  }

}





.carousel-control-next,
.carousel-control-prev {
  align-items: end;
}


.scorri {
  position: absolute;
  bottom: -10px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  width: 200px;
  left: 50%;
  margin-left: -100px;
  text-decoration: none;
  z-index: 99;
}

.scorri:HOVER {
  color: #fff;
}

.scorri i {
  position: relative;
  top: -20px;
  font-size: 50px;
  color: #00A9E0;
}

#scorri {
  position: absolute;
  bottom: 60px;
}

.carousel-control-prev-icon {
  background-image: url('../image/arrow-sx.png');
  height: 50px;
  width: 35px;
  margin-bottom: 25px;
}

.carousel-control-next-icon {
  background-image: url('../image/arrow-dx.png');
  height: 50px;
  width: 35px;
  margin-bottom: 25px;
}

@media (max-width: 767px) {
  .slidebicolor .carousel-inner {
    padding-bottom: 100px;
  }

  .slidebicolor .carousel-indicators [data-bs-target] {
    border: 1px solid #000000;
  }

  .slidebicolor .carousel-indicators [data-bs-target].active {
    background-color: #000000;
    border: 1px solid #000000;

  }

  .slidebicolor .carousel-control-prev,
  .carousel-control-next {
    opacity: 1;
  }

  .slidebicolor .carousel-control-prev-icon {
    background-image: url('../image/arrow-sx-b.png');
  }

  .slidebicolor .carousel-control-next-icon {
    background-image: url('../image/arrow-dx-b.png');
  }
}

.slideloghi .carousel-inner {
  padding-bottom: 100px;
}

.loghi-pr {
  width: 80%;
  margin: 10%;
}


@media (max-width: 767px) {
  .caption-center {
    text-align: left;
    right: auto;
    left: 0;
    top: auto;
    bottom: 3%;
    zoom: 80%;
    padding: 0 30px 0 40px !important;
  }


  .caption-center.simple {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    text-align: center;
  }

  .caption-center.simple h2 {
    font-size: 35px;
  }

}



.slick-prev:before,
.slick-next:before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 50px;
  color: #154194;
  position: relative;
  top: -50px;
}

.slick-next,
.slick-prev {
  width: 50px;
}

.slick-next:before {
  content: "\f285";
}

.slick-prev:before {
  content: "\f284";
}


.grid-item {
  width: 33.3%;
  padding: 20px;
}

.grid-item a {
  display: block;
  position: relative;
  background-color: #c29d19;
}

.grid-item img {
  width: 100%;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.grid-item h3 {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
  z-index: 9;
  opacity: 0;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 50px;
  color: #ffffff;
}

.grid-item:HOVER img {
  opacity: 0.2;
}

.grid-item:HOVER h3 {
  opacity: 1;
}

.itemsingle {
  width: 20%
}


@media (max-width: 767px) {
  .grid-item {
    width: 49.9%;
    padding: 20px;
  }

  .itemsingle {
    width: 49, 9%
  }

  .imageq {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
  }
}



.chatta {
  position: absolute;
  opacity: 0;
  right: 70px;
  bottom: 0px;
  width: 180px;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

.btn-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.btn-wa:hover .chatta {
  opacity: 1;

}

/* effetto menù */
.navbar-toggler {
  box-shadow: none !important;
  z-index: 99999;
  background-color: transparent !important;
  color: #ffffff !important;
}

.navbar-toggler span {
  display: block;
  color: #ffffff !important;
  height: 3px;
  width: 34px;
  margin-top: 7px !important;
  margin-bottom: 0px;
  position: relative;
  left: 0;
  opacity: 1;
  transition: all 0.35s ease-out;
  transform-origin: center left;
  border-radius: 10px;
  border-color: #ffffff !important;
  background-color: #ffffff !important;
}

@media (max-width: 767px) {
  .navbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}



.navbar-toggler span:nth-child(1) {}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
  transform: translate(15%, -99%) rotate(45deg);
  background-color: #ffffff !important;
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
  transform: translate(15%, 33%) rotate(-45deg);
  background-color: #ffffff !important;
}

.navbar-toggler span:nth-child(1) {
  transform: translate(0%, 0%) rotate(0deg);
}

.navbar-toggler span:nth-child(2) {
  opacity: 1;
}

.navbar-toggler span:nth-child(3) {
  transform: translate(0%, 0%) rotate(0deg);
}


.toppage {
  min-height: CALC(100vh - 60px);
  padding: 0;
  padding-top: 80px;
  margin: 0;
  display: block;
  background-color: #000000;
  background-image: url('../image/bg-pc-1.jpg');
  background-position: top center;
  background-size: cover;
}


@media (max-width: 767px) {
  .toppage {
   background-image: url('../image/bg-mb-1.jpg');
    background-position: bottom center;
    background-size: 100%;
    background-repeat: no-repeat;
  }
  .singleproject {
    background-size: cover;}
}
.toppage.chisiamo {
  /* velo scuro al 40% sopra la foto, per leggibilita' del testo */
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../image/bg-chisiamo-pc.jpg?rel=1');
  background-position: center center;
  background-size: cover;
}

@media (max-width: 767px) {
  .toppage.chisiamo {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('../image/bg-chisiamo-mb.jpg?rel=1');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}


.slide-bg {
  min-height: CALC(100vh - 60px);
  padding: 0;
  margin: 0;
  display: block;
}

.slide-bg video {
  min-height: CALC(100vh - 60px);
  width: 100%;
  object-fit: cover;
  padding: 0;
  margin: 0;
  display: block;
}

#videoHomeBtnAudio .soundoff,
#videoHomeBtnAudioMobile .soundoff {
  display: block;
}

#videoHomeBtnAudio .soundon,
#videoHomeBtnAudioMobile .soundon {
  display: none;
}

#videoHomeBtnAudio.muted .soundoff,
#videoHomeBtnAudioMobile.muted .soundoff {
  display: none;
}

#videoHomeBtnAudio.muted .soundon,
#videoHomeBtnAudioMobile.muted .soundon {
  display: block;
}


#videoHomeBtnAudio,
#videoHomeBtnAudioMobile {
  position: absolute;
  z-index: 2;
  background-color: transparent;
  color: #ffffff;
  border: none;
  font-size: 32px;
  bottom: 20px;
  right: 20px;
}

.videomob {
  display: none;
}

@media (max-width: 520px) {
  .videomob {
    display: block;
  }

  .videopc {
    display: none;
  }
}














.formcontatti .form-control {
  border-radius: 10px;
  border: #888888 1px solid;
  margin-bottom: 12px;
  margin-top: 5px;
  color: #333333;
  position: relative;
  padding: 15px;
}

.formcontatti .form-select:after {
  content: '▼';
  position: absolute;
  top: 15px;
  right: 10px;
}

.formcontatti .form-control::placeholder {
  color: #333333;
}

.formcontatti .form-control:-ms-input-placeholder {
  color: #333333;
}

.formcontatti .form-control::-ms-input-placeholder {
  color: #333333;
}

.formcontatti .label-form {
  font-size: 15px;
  font-weight: 400;
}

.formcontatti .labelnotshow {
  display: none;
}

.formcontatti .label-form span {
  color: #e10819;
}


textarea:focus,
#validationTextarea,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.0) inset, 0 0 8px rgba(126, 239, 104, 0.0);
  outline-color: #fff;
}


.form-label {
  display: none;
}

.form-control {
  background-color: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #000000;
  color: #000000;
  padding: 0;
  margin: 30px 0 10px;
}

/* Bootstrap rimette lo sfondo bianco al focus: sui fondi scuri si vedrebbe. */
.form-control:focus {
  background-color: transparent;
  box-shadow: none;
}

.form-check {
  padding-top: 30px;
  padding-bottom: 10px;
  color: #000000;
}

.labelcv {
  font-size: 16px;
  color: #7b7b7b;
  margin-top: 25px;
}

.formfile {
  margin-top: 5px;
}

.btn-form {
  font-size: 50px;
  padding: 1px 10px;
  text-decoration: underline;
  background-color: #ffffff;
  color: #000000;
  border-radius: 0;
}

.btn-form:disabled {
    color: #5f5e5e;
  }

.btn-form:HOVER {
  color: #fff;
  background-color: #000000;
  text-decoration: none;
}

@media (max-width: 767px) {
  .btn-form {
    font-size: 36px;
  }
}

/* ==========================================================================
   MOBILE: spaziature e rientri presi dai file grafici a 390px
   ========================================================================== */

@media (max-width: 767px) {

  /* Margine laterale di base: con i 12px di bootstrap i testi restavano
     appiccicati ai bordi dello schermo. */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer > .container-fluid,
  .footerbottom > .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Il corpo del testo nelle bozze mobile ha interlinea 30px, il minimo
     della clamp ne dava 26: i paragrafi risultavano compressi. */
  .home-middle-copy {
    font-size: 1.24rem;
  }

  .page-hero-copy {
    font-size: 1.24rem;
  }

  /* --- HOME: i quattro step ---
     Da mobile il filetto non sta piu' fra il numero e il titolo ma fra uno
     step e l'altro, e il contenuto rientra (bozza: testo a 75px, filetto a 34px). */
  .home-middle-steps-wrap > .container {
    padding-left: 34px;
    padding-right: 34px;
  }

  .home-middle-steps-row {
    margin-left: 0;
    margin-right: 0;
    margin-top: 3rem;
    row-gap: 0;
  }

  .home-middle-step {
    padding: 3.2rem 41px 5.2rem;
  }

  .home-middle-step p {
    font-size: 1.16rem;
    line-height: 1.55;
    margin-top: 1.3rem;
  }

  .home-middle-step:first-child {
    padding-top: 0;
  }

  .home-middle-step:not(:last-child) {
    border-bottom: 1px solid var(--home-rule-soft);
  }

  .home-middle-step h3 {
    border-top: 0;
    padding-top: 0;
  }

  /* --- COSA FACCIAMO: le quattro aree --- */
  .cf-aree-wrap {
    padding-left: 34px;
    padding-right: 34px;
  }

  .cf-area-grid {
    padding: 2.4rem 41px 4.7rem;
  }

  /* --- CASI STUDIO: le card dell'elenco ---
     Nella bozza foto e testo rientrano di 48px, il filetto sotto la card di 24px. */
  .cs-lista > .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cs-lista-row {
    margin-left: 0;
    margin-right: 0;
    row-gap: 4rem;
  }

  .cs-card {
    padding-left: 0;
    padding-right: 0;
  }

  .cs-card-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cs-card-nome {
    margin-top: 2.6rem;
  }

  .cs-card-copy {
    font-size: 1.16rem;
    margin-top: 1.6rem;
  }

  .cs-card-arrow {
    margin-top: 2rem;
  }

  /* --- CASO STUDIO: i blocchi 01-04 ---
     Il corpo del testo nella bozza mobile e' molto piu' grande del minimo
     della clamp (interlinea 36px contro 26px) e le card respirano di piu'. */
  .cd-blocco {
    padding: 3.6rem 27px 4.2rem;
  }

  .cd-blocco-titolo {
    font-size: 1.75rem;
  }

  .cd-blocco-occhiello {
    font-size: 1.35rem;
    margin-top: 2.8rem;
  }

  .cd-blocco-testo {
    font-size: 1.35rem;
    line-height: 1.6;
    margin-top: 2rem;
  }

}


.sedeimg img{width: 100%; filter: grayscale(100%); -webkit-filter: grayscale(100%);
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.sedeimg:HOVER img {width: 100%;filter: grayscale(0%); -webkit-filter: grayscale(0%);}



.animate__delay-02s {      
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
  -webkit-animation-delay: calc(var(--animate-delay)*0.2);
  animation-delay: calc(var(--animate-delay)*0.2)
} 

.animate__delay-04s {      
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  -webkit-animation-delay: calc(var(--animate-delay)*0.4);
  animation-delay: calc(var(--animate-delay)*0.4)
} 

.animate__delay-06s {      
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
  -webkit-animation-delay: calc(var(--animate-delay)*0.6);
  animation-delay: calc(var(--animate-delay)*0.6)
} 

.animate__delay-08s {      
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  -webkit-animation-delay: calc(var(--animate-delay)*0.8);
  animation-delay: calc(var(--animate-delay)*0.8)
} 

.animate__delay-12s {      
  -webkit-animation-delay: 1.2s;
  animation-delay: 1.2s;
  -webkit-animation-delay: calc(var(--animate-delay)*1.2);
  animation-delay: calc(var(--animate-delay)*1.2)
} 

.animate__delay-14s {      
  -webkit-animation-delay: 1.4s;
  animation-delay: 1.4s;
  -webkit-animation-delay: calc(var(--animate-delay)*1.4);
  animation-delay: calc(var(--animate-delay)*1.4)
} 

.animate__delay-16s {      
  -webkit-animation-delay: 1.6s;
  animation-delay: 1.6s;
  -webkit-animation-delay: calc(var(--animate-delay)*1.6);
  animation-delay: calc(var(--animate-delay)*1.6)
} 

.animate__delay-18s {      
  -webkit-animation-delay: 1.8s;
  animation-delay: 1.8s;
  -webkit-animation-delay: calc(var(--animate-delay)*1.8);
  animation-delay: calc(var(--animate-delay)*1.8)
} 

.animate__delay-22s {      
  -webkit-animation-delay: 2.2s;
  animation-delay: 2.2s;
  -webkit-animation-delay: calc(var(--animate-delay)*2.2);
  animation-delay: calc(var(--animate-delay)*2.2)
} 

.animate__delay-24s {      
  -webkit-animation-delay: 2.4s;
  animation-delay: 2.4s;
  -webkit-animation-delay: calc(var(--animate-delay)*2.4);
  animation-delay: calc(var(--animate-delay)*2.4)
} 



@media (max-width: 520px) {
  main .container{ padding-left: 25px; padding-right: 25px;
  }
}

.carousel-indicators {
  margin-bottom: 1.8rem;
}