/* GLOBAL STYLES
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --os-teal: #0A717B;
  --os-teal-rgb: 10, 113, 123;
  --os-dark: #014040;
  --os-text: #525252;
  --os-white: #ffffff;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

hr {
  border: none;
  border-top: 2px solid var(--os-teal);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 600;
  color: var(--os-dark);
}

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

@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;
  }
}

@media (min-width: 1680px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1580px;
  }

  .px-lg-5 {
    padding-right: 6rem !important;
    padding-left: 6rem !important;
  }

  .ps-lg-5 {
    padding-left: 6rem !important;
  }
}

.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: 50px;
  color: #ffffff;
  line-height: 30px;
}

.linkproject-title span {
  font-size: 20px;
}

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

body {
  font-size: 17px;
  color: var(--os-text);
}

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

a:HOVER {
  color: #fff;
}

.bg-black {
  background-color: #000000;
}

.bg-dark {
  background-color: #18191A;
}

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


.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;
  padding: 5px 10px;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #000;
  color: #000 !important;
  padding: 5px 10px;
}

.btn-outline:HOVER {
  background-color: #000;
  border: 1px solid #000;
  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 #000000;
  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: 575px) {
  .logo {
    width: 250px;
    margin: 0px 0px 0px 20px;
  }
}

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

.logo-mobile {
  width: 170px;
  display: block;
  margin: 8px auto 18px auto;
}

.topbar {
  font-size: 12px;
  padding: 24px 0 0 0;
  position: relative;
  z-index: 1001;
}

@media (max-width: 1199px) {
  .topbar {
    display: none;
  }
}

.topbar a {
  color: var(--os-text);
  ;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--os-text);
  ;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
}

.topbar-link+.topbar-link {
  margin-left: 24px;
}

.topbar-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar-user-name {
  font-weight: 600;
}

.topbar-user .dropdown-menu {
  z-index: 1051;
  min-width: 220px;
  text-align: left;
}

.topbar-user .dropdown-item {
  font-size: 13px;
}

.topbar-user form {
  margin: 0;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--os-teal);
}

.btn-os-primary {
  background-color: var(--os-teal);
  border: 1px solid var(--os-teal);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 20px;
}

.btn-os-primary:hover {
  background-color: var(--os-dark);
  border-color: var(--os-dark);
  color: #ffffff;
}

/* Profile form: restore visible labels and boxed inputs (the global
   public styles hide .form-label and render inputs as bare underlines). */
.profile-page .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--os-dark);
}

.profile-page .form-control {
  border: 1px solid #d6dede;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
  color: var(--os-dark);
  background-color: #fff;
}

.profile-page .form-control:focus {
  border-color: var(--os-teal);
  box-shadow: 0 0 0 0.2rem rgba(var(--os-teal-rgb), 0.15);
  outline: none;
}

.profile-page .form-control.is-invalid {
  border-color: #dc3545;
}

.profile-page .invalid-feedback {
  font-size: 13px;
}

.profile-page .card {
  border-radius: 12px;
}

.navbar {
  background-color: var(--os-white) !important;
  width: 100%;
  z-index: 999;
  color: var(--os-dark);
  transition: top 0.25s ease;
  padding: 20px;
}

@media (min-width: 1200px) {
  .navbar {
    padding-top: 0;
  }
}

.navbar-nav.nav-pad {
  gap: 24px;
}

body.navbar-stuck .navbar {
  top: 0;
  background-color: var(--os-white) !important;
}

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

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

.nav-item {
  font-size: 18px;
  font-weight: 400;
  padding: 0;
}

@media (max-width: 1339.98px) {
  /* .nav-item {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 15px;
  } */

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


.nav-link {
  color: var(--os-dark) !important;
  padding: 0 !important;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}


.nav-link:HOVER {
  color: var(--os-dark) !important;
}

.nav-link.active {
  color: var(--os-teal) !important;
  font-weight: 700;
}

.dropdown-menu.show {
  border-radius: 0;
  margin-left: -1rem;
}

@media (max-width: 1199px) {
  .dropdown-menu.show {
    border: none;
  }
}

.dropdown-menu.show .dropdown-item {
  color: var(--os-dark);
  background-color: var(--os-white);
  border: none;
  font-weight: 600;
}

.dropdown-menu.show .dropdown-item:HOVER {
  color: var(--os-dark);
  background-color: var(--os-white);
}

.dropdown-menu.show .dropdown-item.active {
  color: var(--os-dark);
  font-weight: 600;
}


.footer {
  font-size: 14px;
  background-color: var(--os-dark);
  color: #ffffff;
  padding: 40px 0 32px 0;
}

.footerbottom {
  padding: 16px 0 18px 0;
  font-size: 14px;
  background-color: var(--os-dark);
  color: #ffffff;
}

.footerbottom a {
  color: #ffffff;
}

.logofooter {
  width: 240px;
  max-width: 100%;
}

.footer h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer h5 {
  color: var(--os-white);
}

.footer p {
  margin-bottom: 4px;
  color: #ffffff;
}

.footer .icon-social {
  margin: 10px 8px 0 0;
  width: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease, -webkit-filter 0.2s ease;
}

.footer-social .icon-social {
  margin: 0 8px 0 0;
}

.footer a:hover .icon-social,
.footer-social a:hover .icon-social {
  filter: brightness(0) saturate(100%) invert(74%) sepia(72%) saturate(728%) hue-rotate(7deg) brightness(100%) contrast(104%);
}

.footer-social a:hover .icon-social,
.footer a:hover .icon-social {
  filter: none;
  -webkit-filter: none;
}

.footer-social a:hover img,
.footer a:hover img.icon-social {
  filter: none;
  -webkit-filter: none;
}

.footer .icon-social:hover {
  filter: none;
  -webkit-filter: none;
}

.footer .icon-social {
  transition: filter 0.2s ease, -webkit-filter 0.2s ease;
}

/* SEZIONE CONTATTI */
.section-contact {
  background-color: #ffffff;
  color: var(--os-text);
}

.contact-title {
  margin-bottom: 8px;
}

.contact-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}

.main-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: break-word;
}
.main-title p {
  margin-bottom: 0;
}


@media (max-width: 1480px) {
  .main-title {
    font-size: 42px;
  }
}

@media (max-width: 1300px) {
  .main-title {
    font-size: 38px;
  }
}

@media (max-width: 1150px) {
  .main-title {
    font-size: 34px;
  }
}

@media (max-width: 767.98px) {
  .main-title {
    font-size: 30px;
  }
}

.main-subtitle {
  font-size: 45px;
  font-weight: 400;
  margin-top: 8px;
  margin-bottom: 24px;
}

@media (max-width: 1199.98px) {
  .main-subtitle {
    font-size: 26px;
  }
}

@media (max-width: 767.98px) {
  .main-subtitle {
    font-size: 20px;
  }
}

.main-text {
  font-size: 16px;
  margin-top: 40px;
  line-height: 1.6;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .main-text {
    max-width: 60%;
  }
}

.about-image {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
}

.partner-logo {
  width: 72%;
}

.stats-strip {
  color: #000000;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 8px 0;
}

.stat-value {
  font-size: 78px;
  font-weight: 700;
  line-height: 1;
}

.stat-unit {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  margin-top: 10px;
}

.stat-label {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .stat-item {
    border-right: 1px solid rgba(0, 0, 0, 0.35);
  }

  .stat-item-last {
    border-right: none;
  }
}

@media (max-width: 1199.98px) {
  .stat-value {
    font-size: 52px;
  }

  .stat-unit {
    font-size: 22px;
  }

  .stat-label {
    font-size: 18px;
  }
}

@media (max-width: 767.98px) {
  .stat-item {
    justify-content: flex-start;
  }

  .stat-value {
    font-size: 44px;
  }

  .stat-unit {
    font-size: 20px;
  }

  .stat-label {
    font-size: 18px;
  }
}

@media (max-width: 991.98px) {

  /* Mobile/Tablet: niente bordi verticali, impilati e separati da linea orizzontale */
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    padding: 18px 0;
    /* flex-direction: column; */
    align-items: center;
    justify-content: space-between;
  }

  .stat-item-last {
    border-bottom: none;
  }
}


.pv-cta-container {
  background-color: #6b6b6b;
}

.pv-cta-bg-torri {
  /* background-image: url('/assets_public/image/torri-solari-pannello.png'); */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 767.98px) {
  .pv-cta-bg-torri {
    background-position: center bottom;
  }
}

@media (max-width: 767.98px) {
  .paddingmobilebottombig {
    padding-bottom: 150px !important;
  }
}

.pv-cta-title {
  margin-bottom: 20px;
}

.pv-cta-text {
  max-width: 760px;
}

.pv-cta-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: right center;
}

.card-img-cover {
  background-image: none;
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
}

@media (min-width: 992px) {
  .card-img-cover {
    background-image: var(--bg-image);
  }
}

/* OTTIMIZZARE OGGI, CRESCERE DOMANI */
.optimize-section {
  position: relative;
}

.optimize-title {
  margin-bottom: 20px;
}

.optimize-text {
  max-width: 520px;
}

.optimize-panel {
  position: relative;
  border-radius: 32px;
  display: flex;
  align-items: center;
}

.optimize-cards {
  flex: 1 1 auto;
  z-index: 2;
}

.opt-card {
  background-color: #5b5b5b;
  border-radius: 24px;
  padding: 14px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.opt-card:last-child {
  margin-bottom: 0;
}

.opt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  color: #ffffff;
  font-weight: 500;
  text-align: left;
}

.opt-card-icon {
  width: 16px;
  height: 16px;
  position: relative;
}

.opt-card-icon::before,
.opt-card-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #ffffff;
  transition: transform 0.2s ease;
}

.opt-card-icon::before {
  width: 12px;
  height: 2px;
  top: 7px;
}

.opt-card-icon::after {
  width: 2px;
  height: 12px;
  top: 2px;
}

.opt-card.active .opt-card-icon::after {
  transform: scaleY(0);
}

.opt-card-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.opt-card.active .opt-card-body {
  display: block;
}

.optimize-worker {
  flex: 0 0 auto;
  margin-left: 24px;
  z-index: 1;
}

.optimize-worker-img {
  max-height: 420px;
  width: auto;
  position: absolute;
  top: 10px;
  right: -30px;
  z-index: 99;
}

@media (max-width: 991.98px) {
  .optimize-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .optimize-worker {
    order: -1;
    margin: 0 0 20px 0;
    text-align: center;
  }

  .optimize-worker-img {
    max-height: 220px;
  }
}

@media (max-width: 992px) {
  .optimize-worker-img {
    max-height: 1000px;
    width: 100%;
    left: 0%;
    top: 0px;
    position: relative;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .optimize-worker-img.worker-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 992px) {

  /* Desktop: card sempre aperte, niente freccia, niente effetto accordion */
  .opt-card-body {
    display: block;
  }

  .opt-card-icon {
    display: none;
  }

  .opt-card {
    cursor: default;
  }
}


@media (max-width: 575.98px) {
  .optimize-panel {
    padding: 20px 18px;
  }

  .opt-card {
    border-radius: 20px;
  }
}

.contact-form .form-control {
  border-radius: 999px;
  border: 1px solid #000000;
  padding: 14px 24px;
  margin: 0;
  color: #000000;
  background-color: #ffffff;
}

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

.contact-form .form-control-textarea {
  border-radius: 24px;
  resize: vertical;
}

.contact-check .form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 4px;
  margin-right: 10px;
  border: 1px solid rgba(0, 0, 0, 1);
}

.contact-check .form-check-label {
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .contact-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
  }

  .contact-check .form-check-input {
    float: none;
    margin-left: 0;
    margin-top: 2px;
    flex: 0 0 auto;
  }

  .contact-check .form-check-label {
    display: block;
    line-height: 1.4;
  }
}

.btn-contact {
  border-radius: 999px;
  padding: 10px 32px;
  background-color: var(--os-teal);
  color: var(--os-white);
  border: none;
  font-weight: 500;
}

.btn-contact:hover {
  background-color: var(--os-dark);
  color: var(--os-white);
}

@media (max-width: 991.98px) {
  .footer {
    text-align: center;
  }

  .footer h3 {
    margin-top: 24px;
  }

  .footer .col-12 {
    margin-bottom: 16px;
  }

  .footer-social-desktop {
    display: none;
  }

  .menusocial img,
  .footer .icon-social {
    filter: brightness(0) invert(1);
  }
}

@media (min-width: 992px) {
  .footer-social-mobile {
    display: none;
  }
}



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

.dropdown-icon {
  font-size: 13px;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-link[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.solomobile {
  display: none !important;
}

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

  .solopc {
    display: none !important;
  }





  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100%;
    margin-left: 0;
    bottom: auto;
    flex-direction: column !important;
    height: 100vh;
    background-color: transparent !important;
    -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;
    overflow: hidden;
    z-index: 100000;
    padding-top: 120px;
  }

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


  .nav-mobile-header .logo {
    width: 180px;
  }

  .nav-mobile-header {
    position: absolute;
    top: 24px;

  }

  .navbar-nav {
    width: 100%;
    text-align: center !important;
    margin: auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 30px;
  }

  @media (min-width: 400px) and (max-width: 1199.98px) {
    .logo-mobile {
      width: 190px;
      margin: 12px auto 22px auto;
    }

    .navbar-nav {
      padding-top: 110px;
    }

    .nav-link {
      padding: 16px 0 0 0 !important;
      font-size: 20px;
    }

    .dropdown-menu.show .dropdown-item {
      font-size: 18px;
      padding: 8px 14px;
    }
  }

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

  .nav-link {
    padding: 10px 0 0 0 !important;
    text-align: center;
    color: var(--os-white) !important;
  }

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

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

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

  .menusocial img {
    width: 22px;
    margin: 6px;
  }


  .dropdown-menu.show {
    display: block;
    padding: 0;
    border-radius: 0;
    background-color: var(--os-teal);
  }

  .dropdown-menu.show .dropdown-item {
    font-size: 15px;
    padding: 5px 10px;
    text-align: center;
    color: var(--os-white);
    background-color: var(--os-teal);
  }

  .dropdown-menu.show .dropdown-item.active {
    color: var(--os-white);
    background-color: var(--os-teal);
  }

  .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;
  }

  .nav-mobile-header .navbar-toggler span,
  .nav-mobile-header .navbar-toggler:not(.collapsed) span:nth-child(1),
  .nav-mobile-header .navbar-toggler:not(.collapsed) span:nth-child(3) {
    color: var(--os-white) !important;
    border-color: var(--os-white) !important;
    background-color: var(--os-white) !important;
  }

  .menusocial {
    color: var(--os-white);
  }

  .navbar-collapse.show .dropdown-icon {
    color: var(--os-white);
  }

  .navbar-collapse.show .nav-link:HOVER,
  .navbar-collapse.show .nav-link.active {
    color: var(--os-white) !important;
  }

}


.carousel-overlay:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.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;
  object-position: bottom;
  width: 100%;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: calc(100vh - var(--os-header-height, 0px));
}

.hero-carousel .img-slide {
  height: calc(100vh - var(--os-header-height, 0px));
}

@media (max-width: 767px) {
  .img-slide {
    -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;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  z-index: 2;
}

.hero-caption h2 {
  font-size: 42px;
  font-weight: 600;
  color: #ffffff;
}

.hero-caption h3 {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
}

.hero-caption p {
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .hero-caption h2 {
    font-size: 28px;
  }

  .hero-caption p {
    font-size: 18px;
  }
}

.work-list-carousel .img-slide {
  height: 500px;
}

.work-list-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  z-index: 2;
}

.work-list-location {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.work-list-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.work-list-description {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0;
}

@media(min-width: 768px) {
  .work-list-title {
    font-size: 60px;
  }

  .work-list-description {
    font-size: 20px;
  }
}

.work-list-detail {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
  .work-list-location {
    font-size: 16px;
  }

  .work-list-detail {
    font-size: 13px;
  }
}

.btn-hero {
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 500;
}

.btn-black.btn-hero {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff !important;
}

.btn-black.btn-hero:hover {
  background-color: #ffffff;
  border-color: #000000;
  color: #000000 !important;
}

.btn-white.btn-hero {
  background-color: var(--os-teal);
  border-color: var(--os-teal);
  color: var(--os-white) !important;
}

.btn-white.btn-hero:hover {
  background-color: var(--os-dark);
  border-color: var(--os-dark);
  color: var(--os-white) !important;
}

.btn-os-white.btn-hero {
  background-color: var(--os-white);
  border-color: var(--os-white);
  color: var(--os-teal) !important;
}

.btn-os-white.btn-hero:hover {
  background-color: var(--os-teal);
  border-color: var(--os-teal);
  color: var(--os-white) !important;
}

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

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

@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;
}

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

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

.carousel-control-next-icon {
  background-image: url('/assets_public/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('/assets_public/image/arrow-sx-b.png');
  }

  .slidebicolor .carousel-control-next-icon {
    background-image: url('/assets_public/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: var(--os-dark) !important;
}

.navbar-toggler span {
  display: block;
  color: var(--os-dark) !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: var(--os-dark) !important;
  background-color: var(--os-dark) !important;
}

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



.navbar-toggler:not(.collapsed) span:nth-child(1) {
  transform: translate(15%, -99%) rotate(45deg);
  background-color: var(--os-dark) !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: var(--os-dark) !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);
}

@media (max-width: 767px) {
  .singleproject {
    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;
}

@media (max-width: 767px) {
  .ratio-9x16-mobile {
    --bs-aspect-ratio: 177.78%;
  }
}

.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: 500;
}

.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 {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #000000;
  color: #000000;
  padding: 0;
  margin: 30px 0 10px;
}

.form-check {
  color: var(--os-text);
}

.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:HOVER {
  color: #fff;
  background-color: #000000;
  text-decoration: none;
}

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

.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)
}

/* Testimonials + Works */
.testimonials-section {
  background: #ffffff;
}

.testimonials-title {
  color: #000000 !important;
  font-size: 46px !important;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .testimonials-title {
    font-size: 30px !important;
  }
}

.testimonial-carousel {
  margin-top: 18px;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  width: 70px;
  opacity: 1;
}

.testimonial-carousel .carousel-control-prev {
  left: 0;
  justify-content: flex-start;
}

.testimonial-carousel .carousel-control-next {
  right: 0;
  justify-content: flex-end;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
}

.testimonial-arrow {
  display: block;
  color: #000000;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  width: 60px;
  text-align: center;
}

.testimonial-text {
  margin: 0 auto;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.5;
}

.testimonial-name {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
}

.works-section {
  background: #000000;
}

.works-title {
  color: #ffffff;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 10px;
}

.works-subtitle {
  color: #ffffff;
  font-size: 14px;
  margin: 0;
}

.works-cta.btn-hero {
  padding: 10px 26px;
  font-size: 16px;
}

.works-card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 360px;
  text-decoration: none;
}

.works-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.works-card-title {
  position: absolute;
  left: 20px;
  bottom: 36px;
  z-index: 1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.works-card-location {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .works-title {
    font-size: 44px;
  }

  .works-card {
    height: 300px;
  }
}

.bg-accent {
  background-color: #6b6b6b;
}

/* REVAMPING VS REPOWERING - TABELLA COMPARATIVA */
.comparison-section {
  background-color: #ffffff;
}

.comparison-title {
  font-size: 40px;
}

.comparison-btn {
  border-radius: 50px;
  padding: 12px 28px;
}

.comparison-table {
  width: 100%;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  border-bottom: 1px solid #e5e5e5;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  padding: 18px 16px;
  font-size: 15px;
  line-height: 1.5;
  vertical-align: top;
}

.comparison-cell-label {
  font-weight: 700;
  padding-right: 24px;
}

.comparison-row-header .comparison-cell {
  padding-bottom: 10px;
}

.comparison-row-header .comparison-cell-col {
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .comparison-title {
    font-size: 28px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row-header {
    display: none;
  }

  .comparison-cell-label {
    padding-bottom: 4px;
  }

  .comparison-cell {
    padding: 10px 0;
  }

  .comparison-cell-col::before {
    content: attr(data-col-label);
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
  }
}

/* ── I Benefici ── */
.os-benefici__group {
  margin-top: 2.5rem;
}

.os-benefici__group-label {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--os-dark);
}

/* Desktop grid */
.os-benefici__grid {
  display: none;
}

.os-benefici__card {
  border: 2px solid var(--os-teal);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.os-benefici__card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.os-benefici__card-description {
  font-size: 0.85rem;
  line-height: 1.55;
}

.os-benefici__card-description p {
  margin-bottom: 0;
}

/* Mobile accordion */
.os-benefici__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.os-benefici__accordion-item {
  border-radius: 8px;
  overflow: hidden;
}

.os-benefici__accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background-color: var(--os-teal);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.os-benefici__accordion-item--open .os-benefici__accordion-btn {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.os-benefici__accordion-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 0.25s;
}

.os-benefici__accordion-btn:not(.collapsed) .os-benefici__accordion-chevron {
  transform: rotate(180deg);
}

.os-benefici__accordion-body {
  background-color: var(--os-teal);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.os-benefici__accordion-body-inner {
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .os-benefici__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .os-benefici__accordion {
    display: none;
  }
}

/* SPLIT TESTO LISTA
-------------------------------------------------- */
.os-split-lista__item {
  font-weight: 700;
  color: var(--os-teal);
  padding-block: 0.75rem;
}

.os-split-lista__item:not(:last-child) {
  border-bottom: 2px solid var(--os-teal);
}

.os-split-lista--white .os-split-lista__item:not(:last-child) {
  border-bottom-color: var(--os-white);
}
/* ARTICLE CARD
-------------------------------------------------- */
.article-card-title a {
  color: var(--os-dark);
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--os-teal);
}

/* ARTICLE CARD IMAGE
-------------------------------------------------- */
.article-card-image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.article-card-image-wrap .img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e8f0f1;
}

/* PAGINATION
-------------------------------------------------- */
.os-pagination .page-link {
  color: var(--os-text);
  background-color: transparent;
  border: none;
  font-size: 1rem;
  padding: 0.4rem 0.75rem;
}

.os-pagination .page-item.active .page-link {
  color: var(--os-teal);
  background-color: transparent;
  font-weight: 700;
  border: none;
}

.os-pagination .page-item.disabled .page-link {
  color: color-mix(in srgb, var(--os-text) 40%, transparent);
  background-color: transparent;
  border: none;
}

.os-pagination .page-link:hover,
.os-pagination .page-link:focus {
  color: var(--os-teal);
  background-color: transparent;
  box-shadow: none;
}

/* ARTICLE SHARE
-------------------------------------------------- */
.article-share-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.article-share-icon:hover {
  opacity: 1;
}
