/* === Mini-footer + pallino/overlay — versione aggiornata === */

/* Barra fissa in basso (sotto header, sopra contenuto, sopra il pallino) */
.hfd-bar{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 12px 22px;
    z-index: 1700;              /* ↑ sopra dot(1500) e overlay(1600) */
    pointer-events: none;
  }
  .hfd-bar > .hfd-left, .hfd-bar > .hfd-right{ pointer-events: auto; }
  
  /* Privacy + P.IVA con transizione colore leggermente ritardata */
  .hfd-privacy, .hfd-piva{
    font-size: 12px;
    color: #2d2d2d;
    text-decoration: none;
    transition: color .28s ease .12s;
    
  }
  body.dot-open .hfd-privacy,
  body.dot-open .hfd-piva{ color:#fff; }
  
  /* Pallino (DOT) — sotto overlay */
  #hfd-circle, #menu-circle{
    position: fixed;
    bottom: 30px; right: 30px;
    width: 30px; height: 30px;
    background: #ab2b2b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 1s ease-in-out;
    overflow: hidden;
    z-index: 1500;              /* sotto overlay(1600) e sotto bar(1700) */
  }
  #hfd-circle.is-open, #menu-circle.is-open{
    width: 300vmax;
    height: 300vmax;
    bottom: -100vmax;
    right: -100vmax;
    border-radius: 50%;
  }
  
  /* Overlay — sopra dot ma sotto header */
/* Overlay di default: nascosto */
.hfd-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  justify-content: center; align-items: center;
  gap: 6vw;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .6s ease .3s, visibility 0s linear .6s;
  z-index: 1600 !important;
  background: #ab2b2b !important;
  visibility: hidden !important;   /* 👈 aggiunto */
  transform: none !important;
}

/* Quando il pallino è aperto */
body.dot-open #hfd-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;  /* 👈 diventa visibile */
  transition-delay: .8s;
}

  
  /* Rendi cliccabili solo i contenuti interni dell’overlay */
  .hfd-overlay > * { pointer-events: auto; }
  
  /* Colonne — SINISTRA: padding-left 10% (niente margin) */
  .hfd-overlay .left, .hfd-overlay .right{ flex: 1 1 40%; max-width: 560px; }
  .hfd-overlay .left { padding-left: 10%; }
  
  /* Titolo colonna sinistra (H1) — bianco importante */
  .hfd-overlay h1{
    color:#fff !important;
    font-size:36px; font-weight:600; margin:0 0 16px;
  }
  
  /* Email colonna sinistra */
  .hfd-mail{
    color:#fff; font-size:20px; margin:0; padding:0; line-height:1.2;
  }
  
  /* Selezione servizio (titolo) — bianco */
  .hfd-sel-title, .hfd-sel-title h3 { 
    color:#fff !important; font-size:18px; margin:0 0 8px; }
  
  /* Servizi: H2 bianchi, “roll-up” on hover */
  .hfd-services{ list-style:none; margin:0; padding:0; }
  .hfd-services li h2,
  .hfd-service{
    color:#fff;  margin:6px 0; padding:0;
    cursor:pointer; display:inline-block;
    transition: transform .28s ease, color .28s ease; 
  }
  .hfd-services h2:hover,
  .hfd-service:hover{
    transform: translateY(-5px);
    color:#7f1f2f; /* hover richiesto */
  }
  
  /* Form step 2 */
  #form-title{ color:#fff; margin:0 0 30px; padding-bottom: 30px;}
  .service-label{ font-weight:600; color:#fff; }
  
  /* X di chiusura: svg senza sfondo né ombreggiature */
 #hfd-overlay .overlay-close{
    position: fixed; top: 18px; right: 22px;
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    color: white !important;
    border: 0; border-radius: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    background: none !important;
    box-shadow: none !important;
    cursor:pointer; z-index: 1800;      /* sopra overlay(1600) e bar(1700) */
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
  }
  #hfd-overlay .overlay-close > img{ 
    display:block; 
    width:100% !important; 
    height:100% !important; 
    max-width: none !important;
  }

  body.dot-open #hfd-overlay .overlay-close{
    opacity:1; pointer-events:auto;
  }
  .overlay-close:hover{ transform: scale(1.06); }
  
  /* ====== Stili del FORM dentro overlay (NON toccano il form originale fuori overlay) ====== */
  
  /* Bottoni Avanti/Indietro: sfondo trasparente, testo bianco */
  .hfd-overlay form button,
  .hfd-overlay form input[type="button"],
  .hfd-overlay form input[type="submit"]{
    background: transparent !important;
    color: #fff !important;
    text-decoration: none;
  }
  
  /* Progress: track/baseline + colori richiesti */
  .hfd-overlay .progress,
  .hfd-overlay .progress-track,
  .hfd-overlay .progress__track,
  .hfd-overlay .progress-container{
    background:#7f1f2f !important;      /* baseline/track */
    color:#7f1f2f !important;            /* testo della container */
  }
  .hfd-overlay .progress-bar,
  .hfd-overlay .progress__bar,
  .hfd-overlay .progress-fill{
    background:#fff !important;          /* barra di avanzamento */
    color:#dfdfdf !important;            /* colore testo/simboli sulla barra */
  }
  
  /* Testi/etichette/input dentro overlay */
  .hfd-overlay form input,
  .hfd-overlay form textarea{
    color:#dfdfdf !important;            /* testo inserito */
    background: transparent !important;  /* no background */
  }

  .hfd-overlay form input::placeholder,
.hfd-overlay form textarea::placeholder {
  color: #dfdfdf !important;  /* placeholder grigio chiaro */
}
  .hfd-overlay .input-group,
  .hfd-overlay .input-group *{
    color:#fff !important;               /* testi nel gruppo in bianco */
    background: transparent !important;  /* niente bg */
  }
  .hfd-overlay .step-number,
  .hfd-overlay .form-step-counter,
  .hfd-overlay label,
  .hfd-overlay .field-label,
  .hfd-overlay .fieldset legend,
  .hfd-overlay .fieldset .label{
    color:#dfdfdf !important;
  }
  
  /* Messaggio finale */
  .hfd-overlay .form-success,
  .hfd-overlay .form-success *{
    color:#fff !important;
  }
  
  /* Piccola transizione (header elements) — non invasiva */
  .logo-svg, .logo-icon, #i5, #b5{
    transition: color .28s ease .12s, fill .28s ease .12s, filter .28s ease .12s;
  }
  
  /* Responsive */
  @media (max-width: 1200px){
    .hfd-overlay .left { padding-left: 8%; }
  }
  @media (max-width: 960px){
    .hfd-overlay{ gap: 10vw; }
    .hfd-overlay .left, .hfd-overlay .right{ flex-basis: 48%; }
    .hfd-overlay .left { padding-left: 6%; }
  }
  @media (max-width: 680px){
    .hfd-overlay{ flex-direction: column; gap: 24px; padding: 40px 20px; }
    .hfd-overlay .left, .hfd-overlay .right{ max-width: none; width: 92%; }
    .hfd-overlay .left { padding-left: 0; }
  }
  