html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "MyFont";
  src: url("../res/Acumin-Variable-Concept.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.subtitle {
  font-family: "MyFont", sans-serif;
  font-size: 4rem;
  font-weight: bold;
  color: #dbdbdb;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 10px;
}

.subtitle span {
  display: inline-block; /* default: tutte in fila */
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .subtitle span {
    display: block;   /* su mobile, vanno una sotto l’altra */
    margin: 0.3rem 0;
  }
}

@media (max-width: 768px) {
 .subtitle {
  font-size: 2rem;                   /* aumenta la grandezza */
  letter-spacing: 2px;
}
}

.title {
  background-image: url(../res/logo.png);
  background-color: #000000;
  background-repeat: no-repeat;
  background-size: 60% auto;
  /* larghezza 500%, altezza automatica per mantenere le proporzioni */
  background-position: center top;
  /* o center center, a seconda di come vuoi posizionarla */
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* scritta in basso */
  align-items: center;       /* centrata orizzontalmente */
  padding-bottom: 5vh;       /* margine dal bordo basso */
}

@media (max-width: 768px) {
  .title {
    background-size: 80% auto;  /* o contain */
    background-position: center top;
  }
}


.chisiamo {
  background-color: #5e5f62;
  min-height: 100vh;
}

.servizi {
  background-color: rgb(179, 145, 52);
  min-height: 100vh;
  padding-left: 0px;
  padding-right: 0px;
}

.partispeciali {
  background-color: rgb(223, 223, 223);
  height: 100vh;
  /* altezza totale finestra */
  display: flex;
  flex-direction: column;
  /* disposizione verticale */
}

.contatti {
  background-image: url('../res//img4.jpg');
  /* sostituisci con il tuo percorso */
  background-size: cover;
  /* copre tutto il div */
  background-position: center;
  min-height: 100vh;
}

.glass-navbar {
  background-color: rgba(255, 255, 255, 0.1);
  /* più trasparente */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.glass-navbar .nav-link {
  color: white !important;
  font-weight: normal;
}

.glass-navbar .nav-link:hover {
  text-shadow: 1px 1px 10px #fff, 1px 1px 10px #ccc;
}

.navbar-toggler {
  border: none;
  /* rimuove bordo */
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.custom-toggler-icon {
  width: 30px;
  height: 22px;
  position: relative;
  display: inline-block;
}

.custom-toggler-icon span {
  background-color: white;
  position: absolute;
  height: 2px;
  width: 100%;
  transition: 0.3s ease;
  left: 0;
}

.custom-toggler-icon span:nth-child(1) {
  top: 0;
}

.custom-toggler-icon span:nth-child(2) {
  top: 9px;
}

.custom-toggler-icon span:nth-child(3) {
  top: 18px;
}


.navbar-toggler[aria-expanded="true"] .custom-toggler-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

#mainNavbar {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

#mainNavbar.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Per evitare click quando nascosta */
}

.csImg {
  min-height: 100vh;
  padding: 0px;
}

@media (max-width: 768px) {
  .csImg {
    min-height: 0;
  }
}

.centered_parent {
  display: flex;
  /* attiva flexbox */
  justify-content: center;
  /* centro orizzontale */
  align-items: center;
  /* centro verticale */
}

.white_text {
  padding: 30px;
  color: #fff
}



.card-img-top {
  width: 65%;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.card {
  padding: 1.5em .5em .5em;
  border-radius: 2em;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.card-title {
  font-weight: 700;
  font-size: 1.5em;
}

.cards {
  padding-top: 40px;
  gap: 25px;
}

@media (max-width: 768px) {
  .cards {
    display: none;
  }
}

.card-text {
  font-size: 0.9em;
}

.sertitle {
  z-index: 2;
  letter-spacing: 10px;
}

@media (max-width: 767.98px) {
  .sertitle {
    z-index: 2;
    letter-spacing: 2px;
  }
}








/* due metà */
.half {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  height: 100vh;
}

@media (max-width: 767.98px) {
  .half {
    height: auto;
    min-height: 80vh;
  }
}

/* immagini di sfondo */
.left {
  background: url('../res/img2.jpg') center/cover no-repeat;
}

.right {
  background: url('../res/img3.jpg') center/cover no-repeat;
}

/* velo trasparente SEMPRE visibile */
.half::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  /* trasparenza regolabile */
  z-index: 1;
}

/* contenuto sopra il velo */
.content {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  text-align: center;
}

/* pannello che appare */
.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 80%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 20px;
  transition: bottom 0.5s ease;
  z-index: 3;
}

@media (max-width: 767.98px) {
  .overlay {
    height: 100%;
  }
}

/* effetto hover */
.half:hover .overlay {
  bottom: 0;
}



.overlay ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.horizontal-card {
  width: 80%;
  /* larghezza desktop */
  display: flex;
  background: rgba(97, 97, 97, 0.2);
  border-radius: 15px;
  overflow: hidden;
  height: 150px;
  /* altezza desktop */
}

.horizontal-card img {
  width: 150px;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 768px) {
  .horizontal-card {
    width: 90%;
    /* più stretta sul mobile */
    height: 75px;
    /* altezza ridotta */
  }

  .horizontal-card img {
    width: 75px;
    height: 100%;
  }

  .card-content {
    font-size: 1.2em;
    /* testo leggermente più piccolo */
    padding: 0 10px;
  }

  .overlay ul {
    gap: 10px;
    /* meno spazio verticale tra le card */
    max-height: 50vh;
    /* limite complessivo delle card */
    overflow-y: auto;
    /* se necessario, scroll verticale */
  }
}


.pstitle {
  padding-top: 60px;
  /* altezza variabile in base al contenuto */
}

.pstitle2 {
  padding-top: 30px;
  /* altezza variabile in base al contenuto */
}

.pstitle2 h1{
  float:right;
  padding-right: 10px;
}


.image-slider {
  flex: 1;
  /* occupa tutto lo spazio rimanente */
  overflow: hidden;
  display: flex;
  align-items: center;
  /* centra verticalmente le immagini */
  padding-bottom: 20px;
}

.slide-track {
  display: flex;
  height: 100%;
  flex-wrap: nowrap;
  will-change: transform;
}

.slide-track img {
  height: 100%;
  /* ora riempiono solo lo spazio rimanente */
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0 10px;
  border-radius: 12px;
}






.dvrow {
  height: 100%;
}


.dsdiv {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* allinea al top */
  background-color: rgba(0, 0, 0, 0.66);
  padding: 60px 0px 30px 0px;
  flex-direction: column;
}


.dsdiv2 {
  background-color: rgba(0, 0, 0, 0.66);
}

.map {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* allinea al top */
  background-color: rgba(0, 0, 0, 0.66);
  padding: 60px 0px 30px 12px;
  flex-direction: column;
}

@media (max-width: 767.98px) {
  .map {
    padding: 50px 15px 0px 15px;

  }
  .dsdiv {
    padding: 0px 0px 30px 0px;
  }
}


.ftr{
      background-color: rgb(27 28 28) !important;
}


@media (max-width: 767.98px) {
 .ftr{
     padding: 0px 10px 0px 10px;
}
}
