body {
  margin: 0;
  font-family: 'Playfair Display', serif;
}
/* Stile WhatsApp Moderno */
.whatsapp-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #FF3B30;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

.whatsapp-chat {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  height: 350px;
  background: #e5ddd5;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Segoe UI', Helvetica, sans-serif;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.whatsapp-chat.active {
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  background-color: #075E54;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 600;
  font-size: 16px;
}

.profile-status {
  font-size: 12px;
  opacity: 0.8;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.action-btn:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-image: url('https://web.whatsapp.com/img/bg-chat-tile-light_a4be512e7195b6b733d9110b408f075d.png');
  background-repeat: repeat;
}

.message-date {
  text-align: center;
  color: #888;
  font-size: 12px;
  margin: 10px 0;
}

.message {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.received {
  background-color: white;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.message.sent {
  background-color: #DCF8C6;
  align-self: flex-end;
  border-top-right-radius: 0;
  margin-left: auto;
}

.message-time {
  font-size: 11px;
  color: #666;
  text-align: right;
  margin-top: 4px;
}

.chat-footer {
  background-color: #f0f0f0;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-container {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 20px;
  padding: 5px 10px;
}

.input-container input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px;
  font-size: 14px;
}

.emoji-btn, .attach-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.send-btn {
  background-color: #25D366;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Pulsazione */
@keyframes pulse {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* HERO CON IMMAGINE BACKGROUND */
.hero {
  position: relative;
  background: url('../img/FotoIndexHeader.jpg') center center / cover no-repeat;
  width: 100%;
  display: block;
  align-items: center;
  justify-content: center;
  padding-top: 120px; /* spazio per header sticky */
  padding-bottom: 80px;
  min-height: 100vh;
  box-sizing: border-box;
  
}

/* Blocco trasparente a tutta larghezza */
.hero-banner {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-banner h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: bold;
  color: #0c2340; /* blu scuro */
}

.hero-banner p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  color: #318aca; /* azzurro */
}





/* Effetto slide su bottone */
.btn-slide {
  position: relative;
  overflow: hidden;
  transition: color 0s ease;
  z-index: 1;
}

.btn-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
  opacity: 0.2;
}

.btn-slide:hover::before {
  transform: translateX(0);
}

.btn-slide:hover {
  color: white !important;
}








/* Dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* allinea bene col link */
}

/* Optional: migliora visibilità dropdown */
.dropdown-menu {
  background-color: #0c2340;
  border: none;
}

.dropdown-menu .dropdown-item {
  color: white;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #318aca;
  color: white;
}







/* SEZIONE BOX */
.offerta {
  background-color: #318aca;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* CARD */
.box-formazione {
  background: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(1);
  border-radius: 1px;
  
}
.box-formazione h5 {
  color: #318aca;
  font-weight: bold;
  font-size: 1.1rem;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.box-formazione img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.approfondisci-btn {
  margin-top: auto;
  border: 2px solid #318aca;
  color: #318aca;
  background-color: transparent;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}


/* ANIMAZIONE HOVER BOTTONE */
.approfondisci-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}
.approfondisci-btn:hover::before {
  transform: translateX(0);
}
.approfondisci-btn:hover {
  color: white;
  border-color: white;
  z-index: 1;
}
.approfondisci-btn span {
  position: relative;
  z-index: 2;
}

/* HOVER CARD */
.box-formazione:hover {
  background-color: #0c2340  !important;
  transform: scale(1.05);
}
.box-formazione:hover h5,
.box-formazione:hover .approfondisci-btn {
  color: white !important;
  border-color: white !important;
}

/* RESPONSIVE FIX */
@media (max-width: 767px) {
  .hero {
    height: 50vh;
  }

  .box-formazione h5 {
    font-size: 1rem;
    height: auto;
  }

  .box-formazione img {
    height: 160px;
  }
}







/* Sezione documenti istituzionali */
.documenti-istituzionali {
  background-color: #0c2340;
}

.doc-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.titolo-box {
  font-family: 'Playfair Display', serif;
  color: #318aca;
  font-size: 2.3rem;
  font-weight: 500;
  text-align: left;
}



.descrizione-box {
  font-family: 'Playfair Display', serif;
  text-align: left;
  color: #318aca;
  font-size: 1rem;
  font-weight: 80;
  padding-top: 15px;
}







/* GOL & EIPASS sezioni */
section.text-center h3 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #318aca;
}

section.text-center p {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  color: #318aca;
}

section.text-center a.btn {
  margin-top: 1rem;
}

/* EIPASS sezione */
.eipass-section {
  background-color: #318aca;
  color: white;
  padding: 3rem 1rem;
}

.eipass-section h3 {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
}

.eipass-section p {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  color: white;
}

.eipass-section .btn {
  border-color: white;
  color: white;
}

.eipass-section .btn:hover {
  background-color: white;
  color: #318aca;
}

/* Certificazioni */
section.text-center img {
  max-width: 100px;
  margin: 0 15px;
}

/* ──────────────────────────────── */
/* Tecnoservice in Breve           */
/* ──────────────────────────────── */
section.bg-dark {
  background-color: #0c2340 !important;
  color: #ffffff;
}

section.bg-dark h4 {
  font-weight: 600;
  margin-bottom: 2rem;
}

section.bg-dark label {
  color: #ccc;
  margin-bottom: 0.3rem;
  display: block;
}

.progress {
  height: 25px;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar {
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 25px;
  transition: width 1s ease-out;
  text-align: right;
  padding-right: 10px;
}

/* Responsive flex wrap per immagine + barre */
@media (max-width: 768px) {
  .d-flex.flex-md-row {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .d-flex img {
    margin-bottom: 2rem;
  }
}






/*Footer*//* ---------------------------- */
/* 1. Sezione Top contatti      */
/* ---------------------------- */
.background-primary.padding.text-center {
  background-color: #318aca;
  padding: 1.5rem;
  text-align: center;
}

.background-primary .button {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 20px;
  font-size: 1.2rem;
  margin: 0.3rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.background-primary .button:hover {
  background-color: white;
  color: #318aca;
}

/* ---------------------------- */
/* 2. MAIN FOOTER CON MAPPA + INFO */
/* ---------------------------- */
.background-dark.full-width {
  background-color: #0f1e31;
  color: white;
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  gap: 1rem;
}

.background-dark .s-12 {
  flex: 1 1 100%;
  max-width: 100%;
}

.background-dark iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.padding-2x {
  padding: 1rem 2rem;
}

.float-left {
  float: left;
}

.margin-left-70 {
  margin-left: 70px;
}

.margin-bottom-30 {
  margin-bottom: 1.5rem;
}

.icon3x {
  font-size: 2rem;
  margin-top: 5px;
  color: #388dcd;
}

.background-dark h3 {
  color: #388dcd;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.background-dark p,
.background-dark a {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ---------------------------- */
/* 3. Bottom Footer Grigio      */
/* ---------------------------- */
.background-grey.full-width {
  background-color: #4f4f4f;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.background-grey img {
  max-height: 60px;
  margin-bottom: 1rem;
}

.background-grey .line {
  margin-bottom: 1rem;
}

.background-grey a {
  color: #ffffff;
  text-decoration: none;
}

.background-grey a:hover {
  text-decoration: underline;
}

.text-size-10 {
  font-size: 0.75rem;
}

/* ---------------------------- */
/* 4. Social media              */
/* ---------------------------- */
.background-grey .line img {
  height: 32px;
  margin: 0 10px;
}

/* ---------------------------- */
/* 5. Responsive                */
/* ---------------------------- */
@media (max-width: 768px) {
  .margin-left-70 {
    margin-left: 0 !important;
  }

  .padding-2x {
    padding: 1rem;
  }

  .float-left {
    float: none;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
  }

  .background-dark.full-width {
    flex-direction: column;
  }

  .background-primary .button {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
}






