/* Barra contatti rapidi - v30 | stile floating circle + tesseramento */
.contact-dock{
  position:fixed;
  right:22px;
  top:50%;
  transform:translateY(-28%);
  z-index:35;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}
.contact-dock__item{
  position:relative;
  width:66px;
  height:66px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  color:#fff;
  box-shadow:0 13px 32px rgba(10,39,79,.18);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
  text-decoration:none;
  isolation:isolate;
}
.contact-dock__item svg{width:29px;height:29px;display:block;flex:none}
.contact-dock__item img{display:block;width:100%;height:100%;object-fit:cover;border-radius:999px}
.contact-dock__item:hover,.contact-dock__item:focus-visible{
  transform:translateX(-5px) scale(1.045);
  box-shadow:0 17px 38px rgba(10,39,79,.26);
  filter:saturate(1.05);
}
.contact-dock__item:focus-visible{outline:4px solid rgba(7,76,200,.25);outline-offset:4px}

/* Colori pieni: stile Genius, con identita' Forza Italia */
.contact-dock__email,
.contact-dock__phone{background:#0757c8;color:#fff}
.contact-dock__whatsapp{background:#20cf69;color:#fff}
.contact-dock__facebook{background:#0757c8;color:#fff}
.contact-dock__instagram{
  color:#fff;
  background:linear-gradient(145deg,#6f35d9 0%,#c52982 48%,#f05a34 78%,#f2b144 100%);
}
.contact-dock__tesseramento{
  background:#fff;
  width:76px;
  height:76px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(7,76,200,.22);
}

.contact-dock__label{
  position:absolute;
  right:78px;
  white-space:nowrap;
  padding:9px 13px;
  border-radius:10px;
  background:#112442;
  color:#fff;
  font-size:.78rem;
  font-weight:750;
  line-height:1;
  opacity:0;
  pointer-events:none;
  transform:translateX(7px);
  transition:opacity .14s ease,transform .14s ease;
  box-shadow:0 8px 22px rgba(17,36,66,.18)
}
.contact-dock__item:hover .contact-dock__label,
.contact-dock__item:focus-visible .contact-dock__label{opacity:1;transform:none}

@media (max-width:900px){
  .contact-dock{right:12px;top:auto;bottom:94px;transform:none;gap:10px}
  .contact-dock__item{width:54px;height:54px;box-shadow:0 9px 22px rgba(10,39,79,.19)}
  .contact-dock__item svg{width:24px;height:24px}
  .contact-dock__tesseramento{width:62px;height:62px}
  .contact-dock__label{display:none}
}
@media (max-width:520px){
  .contact-dock{right:10px;bottom:88px;gap:8px}
  .contact-dock__item{width:50px;height:50px}
  .contact-dock__item svg{width:23px;height:23px}
  .contact-dock__tesseramento{width:58px;height:58px}
}
@media (prefers-reduced-motion:reduce){.contact-dock__item,.contact-dock__label{transition:none}}
/* ===== Rifinitura v2: icone bianche con soli simboli colorati ===== */
.contact-dock{
  right:22px;
  gap:9px;
}

.contact-dock__item{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid #d6e2f1;
  background:#fff;
  color:#174a91;
  box-shadow:0 6px 18px rgba(10,39,79,.12);
  display:flex;
  align-items:center;
  justify-content:center;
}

.contact-dock__item svg{
  width:22px;
  height:22px;
  display:block;
}

.contact-dock__item:hover,
.contact-dock__item:focus-visible{
  transform:translateX(-3px) scale(1.04);
  background:#fff;
  box-shadow:0 9px 23px rgba(10,39,79,.20);
  filter:none;
}

/* Solo il simbolo cambia colore: il contenitore resta sempre bianco. */
.contact-dock__email,
.contact-dock__phone{
  background:#fff;
  color:#0b4db8;
  border-color:#d6e2f1;
}

.contact-dock__whatsapp{
  background:#fff;
  color:#25D366;
  border-color:#d6e2f1;
}

.contact-dock__facebook{
  background:#fff;
  color:#1877F2;
  border-color:#d6e2f1;
}

.contact-dock__instagram{
  background:#fff;
  color:#C13584;
  border-color:#d6e2f1;
}

.contact-dock__tesseramento{
  width:54px;
  height:54px;
  border-radius:14px;
  border:1px solid #d0deef;
  background:#fff;
  box-shadow:0 8px 22px rgba(7,76,200,.17);
}

/* ===== Testata pagina interna: contrasto corretto ===== */
.page-heading{
  background:#fff;
  padding:29px 0 48px;
  border-bottom:1px solid #edf2f8;
}

.page-heading .container{
  position:relative;
}

.page-heading .back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#003b8f;
  background:#fff;
  border:1px solid #b9cbe3;
  border-radius:6px;
  padding:9px 13px;
  margin-bottom:17px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:none;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(10,39,79,.08);
}

.page-heading .back-link:hover,
.page-heading .back-link:focus-visible{
  color:#fff;
  background:#003b8f;
  border-color:#003b8f;
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(10,39,79,.16);
}

.page-heading .eyebrow{
  display:inline-flex;
  align-items:center;
  color:#0757c8;
  background:#f5f8fc;
  border-radius:3px;
  padding:6px 10px;
  margin-bottom:13px;
  font-size:10px;
  letter-spacing:.12em;
  line-height:1.2;
}

.page-heading h1{
  color:#0757c8;
  margin-bottom:0;
  line-height:1.04;
}

.page-heading h1 em{
  color:#8db8f5;
}

.page-heading p{
  color:#526985;
}

@media(max-width:900px){
  .contact-dock{
    right:10px;
    gap:7px;
  }
  .contact-dock__item{
    width:42px;
    height:42px;
  }
  .contact-dock__item svg{
    width:20px;
    height:20px;
  }
  .contact-dock__tesseramento{
    width:50px;
    height:50px;
  }
}

@media(max-width:520px){
  .contact-dock{
    right:8px;
    gap:6px;
  }
  .contact-dock__item{
    width:40px;
    height:40px;
    border-radius:10px;
  }
  .contact-dock__item svg{
    width:19px;
    height:19px;
  }
  .contact-dock__tesseramento{
    width:48px;
    height:48px;
    border-radius:11px;
  }
}
