/* ROOT VARIABLES */
:root {
  --body-font: "futura-pt", sans-serif;
  --colore-blu: #243e63;
  --colore-blu-scuro: #243e63;
  --colore-giallo: #f5bb47;
  --body-size: 1rem;
  --h1-font-size: 3.5rem;
  --h2-font-size: 3rem;
  --h3-font-size: 1.6rem;
  --h4-font-size: 0.9rem;
  --h5-font-size: 1.4rem;
  --h6-font-size: 1rem;

  --h1-font-size-responsive: 2.5rem;
  --h2-font-size-responsive: 2rem;
  --h5-font-size-responsive: 1.3rem;
  --h6-font-size-responsive: 0.9rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: var(--body-font) !important;
  color: var(--colore-blu) !important;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/* MAIN */
main {
  padding-top: 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400 !important;
  line-height: 1.5rem;
}

p {
  font-size: 1.1rem !important;
  line-height: 1.5rem;
}

.text-small {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
}

h1 {
  color: white;
  font-size: var(--h1-font-size) !important;
  font-weight: 500 !important;
}

h2 {
  color: var(--colore-blu) !important;
  font-weight: 500 !important;
  font-size: var(--h2-font-size) !important;
}

h3 {
  color: white;
  font-size: var(--h3-font-size) !important;
}

h4 {
  color: var(--colore-blu) !important;
  font-size: var(--h4-font-size) !important;
  text-transform: uppercase;
  font-weight: 500 !important;
}

h5 {
  color: var(--colore-blu) !important;
  font-size: var(--h5-font-size) !important;
  font-weight: 500 !important;
}

h6 button {
  text-transform: uppercase !important;
}

.separatore {
  border-top: 1px solid black;
}

.separatore-progetti {
  border-top: 1px solid black;
}

@media (max-width: 620px) {
  h1 {
    font-size: var(--h1-font-size-responsive) !important;
  }

  h2 {
    font-size: var(--h2-font-size-responsive) !important;
  }
  h5 {
    font-size: var(--h5-font-size-responsive) !important;
  }

  h6 button {
    text-transform: uppercase !important;
    font-size: var(--h6-font-size-responsive);
  }
}

li {
  font-size: 1.1rem !important;
  color: white;
}

@media (min-width: 2400px) {
  html {
    font-size: 150% !important;
  }
  .container {
    max-width: 2400px !important;
  }
}

@media (min-width: 1800px) and (max-width: 2400px) {
  html {
    font-size: 120%;
  }
  .container {
    max-width: 1600px !important;
  }
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: #243e63 !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 50%;
}

.carousel-inner {
  border-radius: 1rem;
}

.carousel-inner img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.btn-giallo {
  background-color: var(--colore-giallo) !important;
  border-radius: 5rem !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  color: var(--colore-blu) !important;
  font-weight: 500 !important;
  padding: 0.5rem 2rem !important;
  transition: transform 0.5s ease, background-color 0.5s ease;
}

.btn-giallo:hover {
  background-color: white !important;
  border: 1px solid var(--colore-giallo) !important;
  border-radius: 5rem !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  color: var(--colore-blu) !important;
  font-weight: 500 !important;
  padding: 0.5rem 2rem !important;
  transform: scale(1.03);
}

.btn-trasparente {
  background-color: transparent !important;
  border-radius: 5rem !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  color: white !important;
  font-weight: 500 !important;
  padding: 0.7rem 1rem !important;
  border: 1px solid white !important;
  transition: transform 0.5s ease, background-color 0.5s ease;
}

.btn-trasparente:hover {
  background-color: white !important;
  border-radius: 5rem !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  color: var(--colore-blu) !important;
  font-weight: 500 !important;
  padding: 0.7rem 1rem !important;
  border: 1px solid white !important;
  transform: scale(1.03);
}

/******************** NAVBAR ********************/

.navbar-custom {
  padding: 1rem;
  background-color: transparent !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, margin 0.3s ease;
  z-index: 1000;
  border-bottom: 1px solid white;
}

.navbar-default {
  margin: 0 5rem;
}

.d-none {
  display: none !important;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-toggler {
  color: white !important;
}

.navbar-custom .nav-link::after {
  background-color: white;
}

.navbar-scrolled {
  background-color: white !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: none;
  margin: 0 !important;
}

.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand,
.navbar-scrolled .navbar-toggler {
  color: var(--colore-blu) !important;
  font-weight: 500 !important;
}

.navbar-scrolled .nav-link::after {
  background-color: black;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: 0 !important;
}

.offcanvas-start {
  transition: transform 0.3s ease-in-out;
}

.menu-logo {
  text-align: center;
}

.menu-logo img {
  max-width: 100px;
  height: auto;
  display: block;
}

@media (max-width: 980px) and (min-width: 541px) {
  .offcanvas-start {
    width: 60vw !important;
  }

  .offcanvas-body .nav-link {
    font-size: 3vh;
    text-align: center;
  }

  .navbar-default {
    margin: 0 2rem;
  }
}

@media (max-width: 540px) {
  .offcanvas-start {
    width: 100vw;
  }

  .offcanvas-body .nav-link {
    font-size: 3.5vh;
    text-align: center;
    color: var(--colore-blu) !important;
    font-weight: 500 !important;
  }

  .navbar-default {
    margin: 0 0.3rem;
  }
}

@media (max-width: 980px) {
  *:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    height: 100%;
  }

  .offcanvas-body .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    border-bottom: 1px solid var(--colore-blu) !important;
  }

  .offcanvas-body .nav-link::after {
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .navbar-toggler {
    border: 0 !important;
  }
}

.menu-responsive {
  height: 100%;
  background-color: var(--colore-blu);
  border-radius: 3rem;
}

/******************** HOMEPAGE ********************/

/* HERO SECTION */
.hero-image {
  position: relative;
  height: 100%;
  padding: 0;
  margin: 0;
  background-image: url("Dan-costruzioni-srl-img/hero-dan-costruzioni-desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media (min-width: 2400px) {
  .hero-image {
    height: 60vh;
  }
}

@media (min-width: 1800px) and (max-width: 2400px) {
  .hero-image {
    height: 60vh;
  }
}

.hero-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@media (max-width: 540px) {
  .hero-image {
    position: relative;
    height: 90vh;
    padding: 0;
    margin: 0;
    background-image: url("Dan-costruzioni-srl-img/hero-dan-costruzioni-mobile.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .hero-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* cambia opacità se vuoi */
    z-index: 1;
  }
}

.hero-content {
  z-index: 2;
}

.hero-left {
  position: relative;
  z-index: 2;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 90vh;
  padding: 2rem;
}

.hero-right {
  position: relative;
  z-index: 2;
  height: 90vh;
  /* Vuoto, solo spazio */
}

.box-hero {
  max-width: 500px;
}

@media (min-width: 1200px) {
  .box-hero {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .hero-left {
    margin: 0 auto;
    height: auto;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-right {
    display: none;
  }

  .hero-image {
    height: auto; /* lascia che cresca in base al contenuto */
    min-height: 50vh;
  }

  .box-hero {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) and (min-width: 540px) {
  .hero-image {
    height: 70vh;
  }
}

@media (max-width: 499px) {
  .hero-image {
    height: 80vh;
  }

  .hero-left {
    margin: 0 auto;
    max-width: 380px !important;
  }
}

@media (max-width: 380px) {
  .hero-image {
    height: 90vh;
  }

  .hero-left {
    margin: 0 auto;
    max-width: 370px !important;
  }
}

/*SECTION 1*/
.container-relative {
  position: relative;
  padding: 3rem 0;
}

.container-absolute {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  max-width: 920px !important;
  width: 90% !important;
  border-radius: 5rem;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

@media (min-width: 1600px) {
  .container-xl {
    max-width: 1200px !important;
  }
}

@media (max-width: 920px) {
  .container-absolute {
    top: 60%;
    width: 65% !important;
  }
}

@media (max-width: 790px) {
  .container-absolute {
    top: 90%;
    width: 75% !important;
  }
}

@media (max-width: 540px) {
  .container-absolute {
    top: 12rem;
    width: 80% !important;
  }
}

@media (max-width: 390px) {
  .container-absolute {
    top: 10rem;
    width: 80% !important;
  }
}

@media (max-width: 380px) {
  .container-absolute {
    top: 12rem;
    width: 80% !important;
  }
}

/*SECTION 2*/

@media (max-width: 920px) {
  .section-2 {
    margin-top: 12rem;
  }
}
@media (max-width: 540px) {
  .section-2 {
    margin-top: 33rem;
  }
}

.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 10px;
}

.div1 {
  grid-area: 1 / 1 / 3 / 3;
  height: 200px;
}
.div2 {
  grid-area: 1 / 3 / 3 / 5;
  height: 200px;
}
.div3 {
  grid-area: 3 / 1 / 5 / 5;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-in-div {
  height: 100%;
  object-fit: cover;
  width: 100%;
  border-radius: 1rem;
}

@media screen and (max-width: 1024px) {
  .parent {
    display: flex;
    flex-direction: column;
    grid-column-gap: 0px;
    grid-row-gap: 30px;
  }

  .div1,
  .div2,
  .div3 {
    all: unset;
  }

  .div1 {
    order: 1;
  }

  .div3 {
    order: 2;
    border-radius: 1rem;
  }

  .div2 {
    order: 3;
  }

  .img-in-div {
    width: 100%;
  }
}

/*SECTION 3*/
.img-box {
  height: 250px;
  border-radius: 1rem;
}

.box-progetti {
  border-bottom: 1px solid var(--colore-blu);
}

@media (min-width: 2000px) {
  .img-box {
    height: 350px;
  }
}

.object-fit-cover {
  object-fit: cover;
}

.label {
  background-color: white;
  border-radius: 3rem;
}

.cta-progetti {
  color: var(--colore-blu);
  text-decoration: none;
  border-bottom: 1px solid var(--colore-blu);
  padding-bottom: 0.2rem;
}

/*SECTION 4*/
.section-4 {
  background-color: var(--colore-blu-scuro);
}

.title-section-4,
.subtitle-section-4 {
  color: white !important;
}

.custom-accordion .accordion-item {
  border: 1px solid white;
  margin-bottom: 1rem;
  background-color: transparent;
  color: white;
}

.custom-accordion .accordion-button {
  background-color: transparent;
  color: white;
  box-shadow: none;
}

.custom-accordion .accordion-button.collapsed::after {
  filter: brightness(0) saturate(100%) invert(100%);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(500%)
    hue-rotate(180deg);
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
}

.custom-accordion .accordion-body {
  background-color: transparent;
  color: white;
}

.accordion-button:not(.collapsed) {
  background-color: white !important;
  box-shadow: none;
}

.img-full-height {
  object-fit: cover;
  height: 500px;
  width: 60%;
  border-radius: 1rem;
}

@media (min-width: 2000px) {
  .img-full-height {
    height: 100%;
  }
}

@media screen and (max-width: 1024px) {
  .img-full-height {
    width: 80%;
  }
}

@media screen and (max-width: 640px) {
  .img-full-height {
    width: 100%;
    height: 300px;
  }
}

/*SECTION 5*/
.img-section-5 {
  width: 100%;
  height: 300px;
  display: block;
  position: relative;
  border-radius: 1rem;
}

@media (min-width: 2000px) {
  .img-section-5 {
    height: 400px;
  }
}

.custom-overlay-container {
  background-color: white;
  border-radius: 5rem;
  padding: 1rem;
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  z-index: 2;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.section-5-wrapper {
  position: relative;
}

.box-section-5 {
  font-size: 2rem !important;
  font-weight: 500 !important;
}

@media (max-width: 1024px) {
  .custom-overlay-container {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .custom-overlay-container {
    padding: 1rem;
  }
}

@media (max-width: 540px) {
  .img-section-5 {
    object-fit: cover;
    height: 500px;
  }
  .custom-overlay-container {
    width: 80%;
    bottom: -40%;
  }
}

/*SECTION 6*/
.section-6-image {
  position: relative;
  height: 100%;
  padding: 0;
  margin: 12rem 0;
  background-image: url("Dan-costruzioni-srl-img/home-dan-costruzioni-4.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-6-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.title-section-6 {
  color: white !important;
}

@media (max-width: 540px) {
  .section-6-image {
    margin-top: 18rem !important;
    position: relative;
    height: 100%;
    padding: 0;
    margin: 0;
    background-image: url("Dan-costruzioni-srl-img/home-dan-costruzioni-4.webp");
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .section-6-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* cambia opacità se vuoi */
    z-index: 1;
  }
}

.section-6-left {
  position: relative;
  z-index: 2;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.section-6-right {
  position: relative;
  z-index: 2;
  height: 100%;
  /* Vuoto, solo spazio */
}

@media (max-width: 1024px) {
  .section-6-left {
    margin: 0 auto;
    height: auto;
    text-align: center;
    padding: 2rem 1rem;
  }

  .section-6-right {
    display: none;
  }
}

.custom-input {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid white !important;
  color: white !important;
  border-radius: 0 !important;
}

.custom-input::placeholder {
  color: white !important;
  opacity: 0.8;
}

.custom-input:focus {
  background-color: transparent !important;
  color: white !important;
  box-shadow: none !important;
  border-bottom: 1px solid white !important;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='white' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem auto;
}

.custom-select option {
  background-color: transparent !important;
  color: var(--colore-blu) !important;
}

/*SECTION 7*/
.container-relative {
  position: relative;
  padding: 1rem 0;
}

.container-absolute-7 {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  max-width: 920px !important;
  width: 70% !important;
  border-radius: 5rem;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

@media (min-width: 1400px) {
  #container-sedi {
    max-width: 1220px !important;
  }
}

@media (max-width: 920px) {
  .container-absolute-7 {
    top: -10rem;
    width: 70% !important;
  }
}

@media (max-width: 790px) {
  .container-absolute-7 {
    top: -10rem;
    width: 80% !important;
  }
}

@media (max-width: 540px) {
  .container-absolute-7 {
    top: 11rem;
    width: 85% !important;
  }
}

@media (max-width: 380px) {
  .container-absolute-7 {
    top: 12rem;
    width: 85% !important;
  }
}

/*FOOTER*/
footer {
  background-color: var(--colore-blu-scuro);
  color: white;
  z-index: -5;
}

@media (max-width: 540px) {
  footer {
    margin-top: 20rem;
  }

  .footer {
    margin-top: 28rem !important;
  }
}

.logo-footer {
  width: 200px;
}

.text-footer a {
  font-size: 0.9rem !important;
  color: white !important;
  text-decoration: none;
}

.text-footer,
.small {
  font-size: 0.9rem !important;
  color: white !important;
  text-decoration: none;
}

/******************** CHI SIAMO ********************/

/*SECTION 2*/
.section-1-chi-siamo {
  background-color: var(--colore-blu-scuro);
  height: 100%;
}

.title-section-2-chi-siamo,
.subtitle-section-2-chi-siamo {
  color: white !important;
}

.img-section-2-chi-siamo {
  border-radius: 1rem !important;
}

/*SECTION 3*/
@media (max-width: 540px) {
  .section-3-chi-siamo {
    margin-top: 30rem !important;
  }
}

/*SECTION 6*/
.section-6-chi-siamo {
  position: relative;
  height: 100%;
  padding: 0;
  margin-bottom: 12rem;
  background-image: url("Dan-costruzioni-srl-img/home-dan-costruzioni-4.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-6-chi-siamo .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

@media (max-width: 540px) {
  .section-6-chi-siamo {
    position: relative;
    height: 100%;
    padding: 0;
    margin: 0;
    background-image: url("Dan-costruzioni-srl-img/home-dan-costruzioni-4.webp");
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .section-6-chi-siamo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* cambia opacità se vuoi */
    z-index: 1;
  }
}

/******************** PROGETTI ********************/
#map-sedi {
  margin-top: 8rem;
}

#map,
#map-sedi {
  width: 100%;
  height: 50vh;
}

@media (min-width: 1600px) {
  #map,
  #map-sedi {
    width: 100%;
    height: 40vh;
  }
}

@media (max-width: 640px) {
  #map,
  #map-sedi {
    width: 100%;
    height: 60vh;
  }

  #map-sedi {
    margin-top: 7rem;
  }
}

@media (min-width: 1600px) {
  .parent-progetti {
    width: 70%;
  }

  .img-box-progetti {
    height: 450px !important;
    border-radius: 1rem;
  }
}

.img-box-progetti {
  height: 350px;
  border-radius: 1rem;
}

.parent-progetti {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 40px;
  grid-row-gap: 60px;
  width: 80%;
}

.parent-progetti-2 {
  width: 80%;
}

.div4 {
  grid-area: 1 / 1 / 3 / 3;
}
.div5 {
  grid-area: 1 / 3 / 3 / 5;
}
.div6 {
  grid-area: 3 / 1 / 5 / 5;
}

/* Responsive per schermi più piccoli di md (768px) */
@media (max-width: 768px) {
  .parent-progetti {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .parent-progetti-2 {
    width: 100%;
    gap: 20px;
  }

  .div4,
  .div5,
  .div6 {
    all: unset;
    width: 100%;
    height: auto;
    padding: 1rem;
    box-sizing: border-box;
  }

  .img-box-progetti {
    height: 250px;
    border-radius: 1rem;
  }
}

/******************** SCHEDA PROGETTI ********************/

/*SWIPER*/

.swiper-container {
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

.swiper-slide {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex-shrink: 0;
  overflow-x: hidden !important;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: white;
  border-radius: 50%;
  padding: 1.5rem;
  color: #243e63;
  z-index: 10;
  top: 55%;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px;
}

.swiper-pagination-bullet-active {
  background: #243e63;
}

/*SECTION 1*/
.title-progetto {
  font-size: var(--h2-font-size) !important;
}

@media (max-width: 540px) {
  .title-progetto {
    font-size: var(--h2-font-size-responsive) !important;
  }
}

/*SECTION 3*/

.progetti-section-3 {
  margin-top: 8rem !important;
  margin-bottom: 6rem !important;
}

@media (max-width: 540px) {
  .progetti-section-3 {
    margin-top: 30rem !important;
  }
}

/* CONTATTI */

.section-3-contatti {
  position: relative;
  height: 100%;
  padding: 0;
  margin-top: 7rem;
  background-image: url("Dan-costruzioni-srl-img/home-dan-costruzioni-4.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-3-contatti .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.title-section-6 {
  color: white !important;
}

@media (max-width: 540px) {
  .section-3-contatti {
    position: relative;
    height: 100%;
    margin-top: 5rem !important;
    padding: 0;
    margin: 0;
    background-image: url("Dan-costruzioni-srl-img/home-dan-costruzioni-4.webp");
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .section-3-contatti .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* cambia opacità se vuoi */
    z-index: 1;
  }
}

.container-contatti {
  max-width: 90%;
  margin: 0 auto !important;
}

.border-progetti {
  border-bottom: 1px solid var(--colore-blu-scuro);
  padding-bottom: 0.5rem;
}

.scroll-container {
  width: 100%;
  overflow: hidden;
  height: 150px;
  position: relative;
}

.scroll-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.scroll-track img {
  height: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 2rem;
}
