/* ==== Global Typography ==== */
body {
  font-family: "azo-sans-web", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

.fantino-title {
  color: #003913;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.15rem;
}

.btn-fantino {
  font-weight: 400;
  color: #003913;
  border-top: solid 1px #00391361;
  padding-top: 0.5rem;
  text-decoration: none;
  width: fit-content;
  border-radius: 0;
}

.btn-fantino:hover {
  border-top: solid 1px #00391361;
  background-color: #ccd8d1;
}

.btn-fantino-light {
  font-weight: 300;
  color: #fff;
  border-top: solid 1px #fff;
  padding-top: 0.7rem;
  text-decoration: none;
  width: fit-content;
  border-radius: 0;
}

.btn-fantino-light:hover {
  border-top: solid 1px #fff;
  background-color: #ffffff6e;
}

.navbar {
  width: 100%;
  position: fixed;
  z-index: 200;
  top: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .navigatormenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #fff;
  padding: 1rem 0;
  position: absolute;
  top: 0;
  z-index: 100;
  height: 95px;
  transition: height 0.5s ease-in-out;
  border-bottom: solid 1px #003913;
}

.logo img {
  width: 230px;
  transition: width 0.5s ease-in-out;
}

.navbar.scrolled .navigatormenu {
  height: 65px;
}

.navbar.scrolled .navigatormenu .logo img {
  width: 180px;
}

.navbar.scrolled .navigatormenu .nav-link {
  font-size: 0.9rem;
}

.menu-items {
  display: none;
}

.menu-items.open {
  background: #003913ef;
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  display: block;
  padding-top: 110px;
}

.navbar.scrolled .menu-items.open {
  padding-top: 70px;
}

.menu-items.open ul li,
.menu-items.open ul li a {
  color: #fff;
  padding: 0.5rem 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.1rem;
  font-weight: 500;
}

.menu-items.open ul.sub-menu li a,
.menu-items.open ul.sub-menu li {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: capitalize;
  padding: 0.3rem 0;
  position: relative;
}

.navbar .box {
  position: absolute;
  top: 40%;
  transform: translateY(-40%);
}

.link-personal::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  /* Spessore della sottolineatura */
  background-color: #fff;
  /* Colore della sottolineatura */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.link-personal:hover::after {
  transform: scaleX(1);
}

.btn-ospitalita {
  border-radius: 0;
  padding: 0.6rem 1.6rem !important;
  text-transform: uppercase;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.2rem !important;
  color: #003913 !important;
}

.btn-ospitalita:hover {
  color: #fff !important;
  font-weight: 400 !important;
  background-color: #003913 !important;
}

/* ==== Hero video styling ==== */
.hero {
  position: relative;
  margin-top: 95px;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero .overlay-content {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.hero .title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.5rem;
}

.text-green {
  color: #003913 !important;
}

.border-green {
  border-color: #003913b8 !important;
}

.bg-green {
  background-color: #003913 !important;
}

.navbar .nav-link {
  font-weight: 300;
}

.navbar .nav-link.active{
  font-weight: 500;
}

.navbar .nav-link i {
  color: #003913;
}

.language-link .active {
  font-weight: 700;
}

.about-section .title {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 500;
  color: #003913b8;
  margin-bottom: 0;
}

.about-section .text {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 300;
}

/* ===== MENU HAMBURGER STYLES ===== */
.hamburger {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 1rem;
}

.hamburger-line {
  width: 30px;
  height: 2px;
  background-color: #003913;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.hamburger:hover .hamburger-line {
  background-color: #145025;
}

/* ===== Overlay Menu ===== */

.overlay-menu {
  display: none;
}

.overlay-menu.open {
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 57, 19, 0.95);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1050;
  overflow-y: scroll;
}

.overlay-menu.open {
  visibility: visible;
  opacity: 1;
}

.overlay-menu.open .overlay-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.overlay-menu.open .overlay-content .container {
  position: absolute;
  top: 0;
  padding: 4rem 0;
}

.overlay-menu.open .overlay-content .row {
  width: 100%;
  max-width: 960px;
}

.overlay-menu.open .overlay-content ul>li>a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 300;
  margin: 0.75rem 0;
  transition: color 0.2s;
}

.overlay-menu.open .overlay-content ul>li>span {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 300;
  margin: 0.75rem 0 0 0;
  transition: color 0.2s;
}

.overlay-menu.open .overlay-content ul>li>a:hover {
  color: #c2cec0;
}

.overlay-menu.open .overlay-content .ps-3 li a {
  font-size: 1.25rem;
}

.overlay-menu.open .overlay-content ul>li {
  margin: 0.25rem 0;
}

.overlay-menu.open .overlay-content .ps-3 {
  margin-top: 0.25rem;
  padding-left: 0.75rem;
}

.overlay-menu.open .overlay-content .row {
  --bs-gutter-x: 3rem;
}

.overlay-menu.open ul.sub-menu {
  margin-bottom: 0.75rem;
}

.overlay-menu.open ul.sub-menu li a {
  margin: 0.15rem 0;
}

.projects-slider {
  background: url("/images/bg_cf.png") no-repeat 20% bottom,
    linear-gradient(to bottom,
      #ffffff 0%,
      #ffffff 25%,
      #003913 25%,
      #003913 100%);
  background-size: auto;
}

.progetto .projects-slider,
.settore .projects-slider {
  background: url("/images/bg_cf.png");
  background-position: bottom left 20%;
  background-size: 33%;
  background-repeat: no-repeat;
}

.projects-slider.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.projects-slider .swiper {
  padding-inline: 4rem;
}

.projects-slider .swiper-button-prev,
.projects-slider .swiper-button-next {
  color: #fff;
  width: 2rem;
  height: 2rem;
  top: 50%;
  margin-top: -1rem;
  opacity: 0.8;
}

.projects-slider .swiper-button-prev:hover,
.projects-slider .swiper-button-next:hover {
  opacity: 1;
}

.projects-slider .swiper-button-prev,
.projects-slider .swiper-button-next {
  width: 2rem;
  height: 2rem;
  top: 50%;
  margin-top: -1rem;
  opacity: 0.8;
}

.projects-slider .swiper-button-prev {
  left: 0rem;
}

.projects-slider .swiper-button-next {
  right: 0rem;
}

.projects-slider .swiper-button-prev:hover,
.projects-slider .swiper-button-next:hover {
  opacity: 1;
}

.projects-slider .swiper-slide .card {
  width: 90%;
  margin: 0 auto;
}

.projects-slider .card img {
  border-radius: 0;
}

.projects-slider .card-title {
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.projects-slider .card-text {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.3;
}

.cta-all-projects {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 0.8rem 0.4rem;
  width: fit-content;
}

.cta-all-projects a {
  letter-spacing: 0.4rem;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 300;
  padding: 0.8rem 0.4rem;
  border-top: none;
}

.cta-all-projects a:hover {
  border-top: none;
}

.sectors-section .title-box {
  color: #003913;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.sectors-section .text {
  font-size: 1rem;
  font-weight: 300;
}

.sector-icon img.icon-svg {
  display: block;
  height: 75px;
  width: auto;
}

.contact-section .btn {
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 300;
  font-size: 0.9rem;
  border-radius: 0;
  padding: 0.5rem 1rem;
  width: fit-content;
}

.sector-icon .icon path,
.sector-icon .icon rect,
.sector-icon .icon circle,
.sector-icon .icon polygon,
.sector-icon .icon line,
.sector-icon .icon polyline {
  fill: currentColor !important;
}

.clients-section {
  background: #003913 url("/images/bg_cf.png") no-repeat 20% bottom;
  background-size: auto;
}


.clients-swiper {
  --swiper-navigation-size: 30px;
}

.clients-section .clients-line {
  border: 0;
  border-top: 1px solid #fff;
}

.client-logo {
  width: 120px;
  height: 120px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.client-logo img {
  max-width: 80%;
  max-height: 80%;
}

.clients-swiper.swiper-container {
  position: relative;
  overflow: hidden;
}

.clients-swiper .swiper-button-prev,
.clients-swiper .swiper-button-next {
  position: absolute;
  width: 2rem;
  height: 2rem;
  color: #fff;
  z-index: 10;
}

.clients-swiper .swiper-button-prev {
  left: 0;
}

.clients-swiper .swiper-button-next {
  right: 0;
}

.contact-section {
  background: #003913 url("/images/bg_cf.png") no-repeat 20% bottom;
  background-size: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: #fff;
}

.contact-section .form-control {
  background: transparent;
  border: 1px solid #ffffff8d;
  border-radius: 0;
  color: #ffffff;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.contact-section .form-control:focus {
  outline: none;
  border-color: #003913;
  box-shadow: none;
}

.contact-section .form-control::placeholder {
  color: #ffffff;
  opacity: 0.8;
  font-size: 0.9rem;
}

.contact-section .row>[class*="col-"] {
  margin-bottom: 1.5rem;
}

.contact-section .btn-invia {
  display: inline-block;
  border: 1px solid #b59d30;
  color: #ffffff;
  background: transparent;
  border-radius: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  transition: background-color 0.2s, color 0.2s;
}

.history-section {
  color: #fff;
}

.history-section .history-intro {
  color: #003913;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4;
}

.history-section blockquote.history-quote {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.history-section .history-quote .quote-text {
  color: #000000;
  font-weight: 300;
  line-height: 1.4;
  font-size: 1rem;
}

.history-section .history-quote .quote-footer {
  color: #003913;
  margin-top: 0.5rem;
  font-weight: 300;
  line-height: 1.4;
  font-size: 1rem;
  font-weight: 500;
}

.history-section .btn-fantino:hover {
  color: #003913;
}

.team-section {
  margin-top: 95px;
  background: #003913 url("/images/bg_cf.png");
  background-position: bottom left 10%;
  background-size: 40%;
  background-repeat: no-repeat;
}

.team-section {
  color: #fff;
}

.team-section .text {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 300;
  color: #fff;
}

.team-section a {
  text-decoration: none;
}

.team-section .titoletto {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.2rem;
}

.team-section .ruolo {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
}

.team-section .link {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 300;
  line-height: 1;
}

.team-section a:hover {
  text-decoration: underline;
}

.team-section .linkedin-icon i {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  font-size: 1.4rem;
}

.team-section .linkedin-icon:hover i {
  color: rgba(255, 255, 255, 0.9);
}

/* ==== .team-card ==== */
.team-card {
  background-color: var(--dark-green);
  border-radius: 0;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card .logo-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
}

.team-card .logo-overlay img {
  width: 100%;
  height: 100%;
}

.team-card h5,
.team-card h4 {
  color: #ffffff;
}

.team-card p,
.team-card a {
  color: #ffffff;
}

.team-card a:hover {
  color: var(--light-green);
}

.bi-linkedin {
  color: #ffffff;
  transition: color 0.2s ease;
}

.bi-linkedin:hover {
  color: var(--light-green);
}

.team-card .p-4 {
  padding: 1.5rem !important;
}

.project-hero {
  position: relative;
  overflow: hidden;
  height: 100%;
  margin-top: 95px;
}

.project-hero .swiper-slide {
  height: 100%;
}

.project-hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-hero .swiper-button-prev,
.project-hero .swiper-button-next {
  color: #fff;
}

.project-hero-text {
  position: absolute;
  bottom: 0;
  left: 10%;
  z-index: 10;
  width: fit-content;
  padding: 2rem;
  background-color: #003913;
  color: #fff;
}

.project-hero-text .title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
}

.project-hero-text .subtitle {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.project-hero-text .text {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1;
}

.project-hero-text hr {
  background-color: #fff;
  opacity: 1;
  margin: 0.8rem 0;
}

.progetto .back-img {
  height: 800px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.progetto .progetto-section-title {
  color: #003913;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer {
  border-top: solid 1px #003913;
}

footer p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

footer strong {
  font-size: 1.1rem;
}

.settore {
  margin-top: 95px;
}

.settore .intro {
  color: #003913;
}

.settore .intro .title {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.1rem;
}

.settore .intro .text {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 300;
}

.settore .icona {
  display: flex;
  justify-content: center;
}

.settore .icona img {
  width: 150px;
}

.intervento .title {
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: #003913;
}

.intervento .subtitle {
  font-weight: 600;
  color: #003913;
  font-size: 1.3rem;
}

.intervento p {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 300;
}

.settore .projects-slider .title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.15rem;
}

/* storia */
.storia-sec {
  margin-top: 95px;
}

.storia-sec .intro {
  background-color: #003913;
}

.storia-sec .text {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 300;
  color: #fff;
}

/* storia timeline */

.main-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.main-timeline:before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 20px;
  margin: 0 auto;
  background: #003913;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.main-timeline .timeline {
  display: inline-block;
  margin-bottom: 120px;
  position: relative;
  min-height: 100px;
}

.main-timeline .timeline:before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 6px solid #003913;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.main-timeline .timeline-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px solid #003913;
  padding: 7px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 29%;
  transform: translate(-29%, -50%);
}

.main-timeline .timeline-icon img {
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.main-timeline .timeline-icon:after,
.main-timeline .timeline-icon:before {
  content: "";
  width: 100px;
  height: 2px;
  background: #003913;
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
}

.main-timeline .timeline-icon:after {
  width: 70px;
  height: 140px;
  background: #fff;
  top: 194px;
  right: -7px;
}

.main-timeline .timeline-content {
  width: 50%;
  padding: 0 50px;
  margin: 0;
  float: right;
  position: relative;
  left: auto;
  right: -9px;
  transform: translateX(9%);
}

.main-timeline .timeline-content.with-btn:after {
  content: "";
  width: 70px;
  height: 2px;
  background: #003913;
  position: absolute;
  top: 50%;
  left: -60px;
}

.main-timeline .timeline-content:after {
  content: "";
  width: 70px;
  height: 2px;
  background: #003913;
  position: absolute;
  top: 50%;
  left: -60px;
}

.main-timeline .title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #003913;
  background: #fff;
  text-transform: uppercase;
  text-align: start;
  margin-bottom: 0;
  width: fit-content;
  padding: 0.4rem 0;
  line-height: 1;
  letter-spacing: 0.05rem;
}

.main-timeline .subtitle {
  color: #003913;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.main-timeline .description {
  display: inline-block;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  width: 100%;
  text-align: start;
}

.main-timeline .timeline:nth-child(even) .timeline-icon {
  left: auto;
  right: 19%;
  top: 50%;
  transform: translate(-19%, -50%);
}

.main-timeline .timeline:nth-child(even) .timeline-icon:before {
  right: auto;
  left: -100px;
}

.main-timeline .timeline:nth-child(even) .timeline-icon:after {
  right: auto;
  left: -30px;
}

.main-timeline .timeline:nth-child(even) .timeline-content {
  float: left;
  left: -10%;
  transform: translateX(10%);
}

.main-timeline .timeline:nth-child(even) .timeline-content:before {
  left: auto;
  right: 35px;
  transform: rotateY(180deg);
}

.main-timeline .timeline:nth-child(even) .timeline-content:after {
  left: auto;
  right: -8%;
  transform: translateX(8%);
  top: 50%;
}

.monografia {
  background-color: #003913;
  color: #fff;
}

.monografia p {
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.monografia .monografia-icon {
  width: 200px;
}

/* azienda  */
.azienda-sec {
  margin-top: 95px;
}

.azienda-sec .intro {
  background-image: url('/images/progetti/slide_1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 70vh;
}

.azienda-sec .subtitle {
  font-size: 1.5rem;
  color: #003913;
  font-weight: 300;
  letter-spacing: 0.1rem;
  line-height: 1;
}

.azienda-sec .text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
}

.azienda-sec .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 70px;
  margin-top: 1rem;
}

.azienda-sec .box {
  background-color: #003913;
  padding: 1rem;
  height: 190px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.azienda-sec .box .number {
  font-size: 3rem;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.5rem;
}

.azienda-sec .box .text {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  text-align: center;
  line-height: 1.1;
}

/* pagina tutti progetti */

.tutti-progetti {
  margin-top: 95px;
}

.tutti-progetti .box {
  aspect-ratio: 1/1;
  position: relative;
}

.icon-project {
  background-color: #003913;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-project img {
  width: 35px;
}

.tutti-progetti .box .overlay {
  position: absolute;
  background-color: #003913cd;
  width: 100%;
  height: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
}

.tutti-progetti .box:hover .overlay {
  opacity: 1;
  bottom: 0;
  height: 100%;
  transition: all 0.5s ease-in-out;
}

.tutti-progetti .box .overlay .title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 0;
  text-align: center;
}

.tutti-progetti .box .overlay .place {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: 0.15rem;
  text-align: center;
}

.tutti-progetti .btn-fantino-light {
  border-top: none;
  margin-top: 0.8rem;
  background-color: #c2cec0;
  padding: 0.3rem 0.8rem;
  color: #003913;
  font-size: 0.85rem;
}

/* servizi */
.servizi-sec {
  margin-top: 95px;
}

.servizi-sec .title-sec {
  color: #003913;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.15rem;
}

.servizi-sec .title {
  color: #003913;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.15rem;
}

.servizi-sec .text {
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 0;
}

.servizi-sec .intro {
  background-image: url('/images/progetti/slide_1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 70vh;
}

.servizi-sec .box {
  border: solid 1px #003913;
  padding: 1.5rem;
}

.servizi-sec .btn-fantino {
  background-color: #003913;
  padding: 0.3rem 0.8rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05rem;
  border-top: none;
}

.servizi-sec .btn-fantino:hover {
  background-color: #00391356;
  color: #003913;
}

/* contatti */
.contatti-sec {
  margin-top: 95px;
}

.contatti-sec .title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.15rem;
}

.contatti-sec .contact-title {
  font-size: 1.4rem;
  font-weight: 300;
  color: #003913;
  letter-spacing: 0.15rem;
}

.contatti-sec ul li {
  font-weight: 300;
}

.contatti-sec a {
  color: #003913;
  text-decoration: none;
  position: relative;
}

.contatti-sec .link-personal::after {
  background-color: #003913;
}

/* lavora con noi */
.lavora-con-noi {
  margin-top: 95px;
}

.lavora-con-noi .title {
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 300;
  color: #003913;
  margin-bottom: 0;
}

.lavora-con-noi .text {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
}

.lavora-con-noi .text strong {
  color: #003913;
}

.lavora-con-noi .form-title {
  font-size: 2rem;
  color: #003913;
  font-weight: 300;
  letter-spacing: 0.1rem;
}

.lavora-con-noi label {
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  color: #003913;
}

.lavora-con-noi .btn-outline-dark {
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 300;
  font-size: 0.9rem;
  border-radius: 0;
  padding: 0.5rem 1rem;
  width: fit-content;
  border-color: #003913;
  color: #003913;
}

.lavora-con-noi .btn-outline-dark:hover {
  color: #fff;
  background-color: #003913;
}

.lavora-con-noi  .back-img,  .servizi-sec  .back-img{
  height: 300px;
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 1399.98px) {
  .history-section .history-intro {
    font-size: 1.2rem;
  }

  .main-timeline .timeline-content {
    right: -4%;
    margin-top: 3px;
    transform: translateX(4%);
  }

  .main-timeline .timeline-icon {
    left: 23%;
    transform: translate(-22%, -50%);
  }

  .main-timeline .timeline:nth-child(even) .timeline-icon {
    left: auto;
    right: 15%;
    top: 50%;
    transform: translate(-15%, -50%);
  }

  .main-timeline .timeline:nth-child(even) .timeline-content {
    float: left;
    left: -11%;
    transform: translateX(11%);
  }

}

@media (max-width: 1199.98px) {
  .navbar .box {
    position: static;
    transform: none;
  }

  .hero .title {
    font-size: 2.5rem;
    letter-spacing: 0.3rem;
  }

  .project-hero .swiper {
    height: 700px;
  }

  .main-timeline .timeline-content:after {
    left: -47px;
  }

  .main-timeline .timeline:nth-child(even) .timeline-icon {
    right: 10%;
    transform: translate(-10%, -50%);
  }

  .main-timeline .timeline-content.with-btn:after {
    left: -47px;
  }



  .progetto .projects-slider {
    background-position: bottom left 10%;
    background-size: 50%;
  }

  .main-timeline .timeline-icon {
    left: 17%;
    transform: translate(-17%, -50%);
  }

}

@media (max-width: 991.98px) {
  .hero .title {
    font-size: 2rem;
    letter-spacing: 0.3rem;
  }

  .about-section .title {
    font-size: 1.8rem;
  }

  .project-hero .swiper {
    height: 60vh;
  }

  .progetto .projects-slider {
    background-position: bottom left 10%;
    background-size: 60%;
  }

  .team-section {
    background-position: bottom left 20%;
    background-size: 60%;
  }

  .main-timeline .timeline-icon:after,
  .main-timeline .timeline:nth-child(even) .timeline-icon:after {
    width: 70px;
    height: 120px;
    top: 149px;
    right: -30px;
    left: auto;
  }

  .main-timeline .timeline-icon,
  .main-timeline .timeline:nth-child(even) .timeline-icon {
    left: -5%;
    transform: translate(5%, -50%);
    width: 180px;
    height: 180px;
  }

  .main-timeline .timeline-content.with-btn:after {
    left: -63px;
  }

  .main-timeline:before {
    right: 280px;
  }

  .main-timeline .timeline:before {
    top: 50%;
    left: 30%;
    z-index: 1;
    transform: translate(-50%, -50%);
  }

  .main-timeline .timeline-content,
  .main-timeline .timeline:nth-child(even) .timeline-content {
    right: -1%;
    transform: translateX(2%);
    padding: 0 38px;
    margin-top: -3px;
    float: right;
    left: auto;
    width: 62%;
  }

  .main-timeline .timeline-content:after {
    width: 80px;
    left: -60px;
  }

  .main-timeline .timeline:nth-child(even) .timeline-content:after {
    width: 80px;
    left: -68px;
  }

  .main-timeline .timeline-icon:before,
  .main-timeline .timeline:nth-child(even) .timeline-icon:before {
    width: 63px;
    right: -63px;
    left: auto;
  }

  .lavora-con-noi .title {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  .lavora-con-noi .text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
  }

  .azienda-sec .box-container {
    gap: 20px 40px;
  }

  .settore .icona {
    justify-content: start;
  }
}

@media (max-width: 767.98px) {
  .hero {
    position: relative;
    height: calc(100vh - 95px);
  }

  .hero .title {
    font-size: 7vw;
    font-weight: 500;
  }

  .hero .overlay-content {
    white-space: wrap;
  }

  .navbar-brand img {
    transition: all 0.3s ease;
    width: 235px;
  }

  .history-section .history-intro {
    font-size: 1.125rem;
  }

  .history-section .history-quote .quote-text,
  .history-section .history-quote .quote-footer {
    font-size: 1rem;
  }

  .history-section .history-cta {
    font-size: 0.95rem;
  }

  .team-card .logo-overlay {
    width: 32px;
    height: 32px;
    top: 0.75rem;
    left: 0.75rem;
  }

  .team-card .p-4 {
    padding: 1rem !important;
  }

  .projects-slider .swiper {
    padding-inline: 2rem;
  }

  .swiper {
    --swiper-navigation-size: 28px;
  }

  .projects-slider .card-title {
    font-size: 5.6vw;
  }

  .about-section .title {
    font-size: 6vw;
    line-height: 1.3;
  }

  .about-section .text {
    font-size: 4.2vw;
  }

  .projects-slider .card-text {
    font-size: 4vw;
  }

  .btn-fantino,
  .btn-fantino-light {
    font-size: 4.4vw;
  }

  .fantino-title {
    font-size: 8vw;
  }

  .sectors-section .title-box {
    font-size: 6.5vw;
  }

  .sectors-section .text {
    font-size: 4.2vw;
  }

  .history-section .history-intro {
    font-size: 5vw;
  }

  .history-section .history-quote .quote-text,
  .history-section .history-quote .quote-footer {
    font-size: 4.2vw;
    line-height: 1.5;
  }

  .project-hero .swiper {
    height: 60vh;
  }

  .project-hero-text {
    position: relative;
    top: -65px;
    display: flex;
    justify-content: center;
    width: 80%;
    flex-direction: column;
  }

  .progetto .history-section {
    top: -65px;
    position: relative;
  }

  .progetto .back-img {
    top: -65px;
    position: relative;
  }

  .progetto .projects-slider {
    top: -65px;
    position: relative;
  }

  .progetto .projects-slider {
    background-size: 80%;
  }

  .team-section {
    background-position: bottom left 20%;
    background-size: 70%;
  }

  .settore .intro .title {
    font-size: 8.5vw;
  }

  .settore .intro .text {
    font-size: 4.2vw;
  }

  .settore .projects-slider .title {
    font-size: 8.5vw;
  }

  .main-timeline:before {
    left: 0;
    right: auto;
  }

  .main-timeline .timeline-content.with-btn:after {
    top: 52%;
    left: 0px;
    width: 20px;
  }

  .main-timeline .timeline:before {
    top: 50%;
    left: -2%;
    z-index: 1;
    transform: translate(-1%, -50%);
  }

  .main-timeline .timeline-content:after,
  .main-timeline .timeline:nth-child(even) .timeline-content:after {
    width: 18px;
    left: 0px;
    top: 52%;
    position: fixed;
  }

  .main-timeline .timeline-content,
  .main-timeline .timeline:nth-child(even) .timeline-content {
    margin-top: -15px;
    width: 100%;
    padding: 0 30px;
    right: -1%;
    transform: translateX(1%);
  }

  .main-timeline .timeline-icon {
    display: none;
  }

  .azienda-sec .box {
    padding: 0.5rem 0;
    height: 140px;
  }


  .storia-sec .text {
    font-size: 4.2vw;
  }

  .main-timeline .title {
    font-size: 5.5vw;
  }

  .main-timeline .subtitle {
    font-size: 6.5vw;
    letter-spacing: 0;
    font-weight: 400;
  }

  .main-timeline .description {
    font-size: 4.2vw;
  }


  .monografia p {
    font-size: 4.2vw;
  }

  .azienda-sec .subtitle {
    font-size: 6vw;
    line-height: 1.1;
    margin-top: 0.5rem;
  }

  .azienda-sec .text {
    font-size: 4.2vw;
  }

  .azienda-sec .fantino-title {
    letter-spacing: 0;
  }

  .azienda-sec .box .number {
    font-size: 9vw;
  }

  .azienda-sec .box .text {
    font-size: 3.3vw;
    letter-spacing: 0.05rem;
  }

  .tutti-progetti .box .overlay,
  .tutti-progetti .box:hover .overlay {
    opacity: 1;
    height: fit-content;
    padding: 1rem;
    bottom: 0;
  }

  .tutti-progetti .box .overlay .title {
    font-size: 7vw;
  }

  .tutti-progetti .box .overlay .place {
    font-size: 6vw;
  }

  .tutti-progetti .btn-fantino-light {
    margin-top: 0.8rem;
    background-color: #c2cec0;
    padding: 0.3rem 0.8rem;
    color: #003913;
    font-size: 1rem;
  }

  .team-section .title {
    font-size: 8.5vw;
  }

  .team-section .titoletto {
    font-size: 6vw;
  }

  .team-section .ruolo {
    font-size: 4.8vw;
  }

  .team-section .link {
    font-size: 4vw;
  }

  .project-hero-text .title {
    font-size: 7.8vw;
  }

  .project-hero-text .subtitle {
    font-size: 4.5vw;
  }

  .project-hero-text .text {
    font-size: 4.2vw;
  }

  .servizi-sec .title-sec {
    font-size: 7.5vw;
    line-height: 1.1;
  }

  .servizi-sec .title {
    font-size: 6.5vw;
  }

  .servizi-sec .text {
    font-size: 4.2vw;
  }

  .contatti-sec li {
    font-size: 4.2vw;
  }

  .contatti-sec .contact-title {
    font-size: 6vw;
  }

  .lavora-con-noi .title {
    font-size: 8.5vw;
  }

  .lavora-con-noi .text {
    font-size: 4.2vw;
  }

  .progetto .back-img {
    height: 40vh;
  }
}