/* Modifiche al sito originale – caricato dopo gli stili di WordPress/Elementor */
/* azzurro del filo, degli accenti e degli ovali: #3696d1, lo stesso del logo Vitamedica */

/* Home › "Di cosa ci occupiamo": riquadri sotto il titolo invece che a fianco */
body .elementor-element.elementor-element-7fd12f4 > .e-con-inner { flex-direction: column; }
body .elementor-element.elementor-element-2c44355 { --width: 100%; width: 100%; max-width: 100%; }
/* la colonna del titolo mantiene la larghezza originale, così l'ovale disegnato non si deforma */
body .elementor-element.elementor-element-fbfb3a2 { margin-bottom: 40px; }

/* Home › "Di cosa ci occupiamo": carosello dei servizi */
body .elementor-element.elementor-element-7fd12f4 { overflow-x: clip; }
body .elementor-element.elementor-element-2c44355 { display: block; padding: 0; }
.vm-carosello { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.vm-car-track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc(50vw - min(38vw, 460px) / 2)); scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vm-car-track::-webkit-scrollbar { display: none; }
.vm-card {
  position: relative; flex: 0 0 min(38vw, 460px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  scroll-snap-align: center; background: #0e344b; color: #fff; text-decoration: none; isolation: isolate;
}
.vm-carosello .vm-card-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .8s ease; z-index: -2; }
.vm-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.72) 100%); }
.vm-card:hover .vm-card-foto, .vm-card:focus-visible .vm-card-foto { transform: scale(1.05); }
.vm-card:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.vm-card-testo { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 34px 34px; display: flex; flex-direction: column; gap: 10px; }
.vm-card-icona { width: 40px; height: 40px; filter: brightness(0) invert(1); margin-bottom: 4px; }
.vm-carosello .vm-card-titolo { color: #fff !important; font-family: Manrope, sans-serif; font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; line-height: 1.15; color: #fff; }
.vm-card-sotto { font-family: Manrope, sans-serif; font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.88); }
/* !important: il tema applica a tutti i <button> bordo, padding e sfondo trasparente */
.vm-carosello .vm-car-freccia {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 58px !important; height: 58px !important;
  border-radius: 50% !important; border: 0 !important; padding: 0 !important; background: #fff !important;
  color: #0e344b !important; cursor: pointer; display: grid; place-items: center; min-width: 0 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); transition: background .2s;
}
.vm-carosello .vm-car-freccia:hover { background: #d8e6ef !important; color: #0e344b !important; }
.vm-car-freccia:focus-visible { outline: 3px solid #0e344b; outline-offset: 2px; }
.vm-car-freccia svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vm-car-prev { left: max(16px, 2vw); }
.vm-car-next { right: max(16px, 2vw); }
@media (max-width: 767px) {
  .vm-car-track { gap: 14px; padding-inline: 11vw; }
  .vm-card { flex-basis: 78vw; border-radius: 14px; }
  .vm-card-testo { padding: 22px 22px 24px; }
  .vm-carosello .vm-car-freccia { width: 44px !important; height: 44px !important; }
  .vm-car-prev { left: 8px; } .vm-car-next { right: 8px; }
}

/* Home › "In cosa crediamo": schede che salgono e si impilano mentre si scorre */
.vm-stack { --vm-top: 120px; display: flex; flex-direction: column; gap: 6vh; margin: 20px 0 40px; padding-inline: 32px; }
.vm-scheda {
  position: sticky; top: calc(var(--vm-top) + var(--i) * 22px);
  display: block; height: min(72vh, 600px); text-decoration: none; color: #fff;
}
.vm-scheda-dentro {
  position: relative; display: block; height: 100%; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #0e344b; box-shadow: 0 -10px 40px rgba(14,52,75,.18);
  transform-origin: 50% 0; will-change: transform, filter;
}
.vm-stack .vm-scheda-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.vm-scheda-dentro::before { content: ""; position: absolute; inset: 0; z-index: 3; background: #000; opacity: var(--vm-scuro, 0); pointer-events: none; }   /* velo che scurisce la scheda coperta */
.vm-scheda-dentro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.05) 80%); }
.vm-scheda:hover .vm-scheda-foto { transform: scale(1.04); }
.vm-scheda:focus-visible .vm-scheda-dentro { outline: 3px solid #fff; outline-offset: -8px; }
.vm-scheda-testo { position: absolute; left: 0; bottom: 0; max-width: 620px; padding: 48px 52px; display: flex; flex-direction: column; gap: 12px; }
.vm-stack .vm-scheda-titolo { color: #fff !important; font-family: Manrope, sans-serif; font-size: clamp(34px, 4.4vw, 64px); font-weight: 400; line-height: 1.05; margin-bottom: 8px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.vm-scheda-p { font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.9); }
@media (max-width: 767px) {
  .vm-stack { --vm-top: 90px; gap: 4vh; padding-inline: 18px; }
  .vm-scheda { height: min(70vh, 520px); top: calc(var(--vm-top) + var(--i) * 14px); }
  .vm-scheda-dentro { border-radius: 16px; }
  .vm-scheda-dentro::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 15%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.85) 100%); }
  .vm-scheda-testo { padding: 26px 24px; }
  .vm-scheda-p { font-size: 15px; }
}

/* Pagine dei servizi › sezione "Servizi": carosello come in home, sotto l'etichetta e a tutta larghezza */
body .e-parent:has(.vm-carosello-servizi) { overflow-x: clip; }
body .e-parent:has(.vm-carosello-servizi) > .e-con-inner { flex-direction: column; }
body .e-parent:has(.vm-carosello-servizi) > .e-con-inner > .e-con:first-child { margin-bottom: 30px; }
body .e-con:has(> .vm-carosello-servizi) { --width: 100%; width: 100% !important; max-width: 100%; }
/* altezza esplicita delle card dei caroselli: Safari su iPhone non la ricava da aspect-ratio */
.vm-carosello .vm-card { height: calc(min(38vw, 460px) * 4 / 3); }
.vm-carosello-team .vm-card { height: calc(min(26vw, 340px) * 4 / 3); }
@media (max-width: 767px) {
  .vm-carosello .vm-card { height: calc(78vw * 4 / 3); }
  .vm-carosello-team .vm-card { height: calc(70vw * 4 / 3); }
}

/* Home › "Il nostro ambulatorio": la pagina resta ferma sulla galleria e lo scroll fa scorrere le foto da destra a sinistra */
body .elementor-element.elementor-element-fc9ae1a { overflow-x: clip; }
/* il vecchio collage (immagine unica) è sostituito dalla fila di foto */
body .elementor-element.elementor-element-a8aa3d0 { display: none !important; }
.vm-striscia { --vm-h: clamp(260px, calc(100vh - 170px), 860px); grid-column: 1 / -1; width: 100vw; margin: 10px 0 10px calc(50% - 50vw); overflow-x: clip; position: relative; }
/* area agganciata alta quanto le foto: niente vuoto sotto il titolo, e quando si aggancia resta centrata */
.vm-striscia-pin { position: sticky; top: calc(50vh - var(--vm-h) / 2 + 45px); height: var(--vm-h); overflow-x: clip; }
.vm-striscia-track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.vm-striscia-foto { margin: 0; flex: 0 0 auto; height: var(--vm-h); aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #d8e6ef; }
.vm-striscia .vm-striscia-foto img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.vm-striscia-foto.vm-striscia-verticale { aspect-ratio: 2 / 3; }   /* foto in verticale della sede */
@media (max-width: 767px) {
  /* su telefono foto verticali quasi a tutta larghezza: una alla volta, si intravede la successiva */
  .vm-striscia-track { gap: 12px; }
  .vm-striscia { --vm-h: min(64vh, calc((100vw - 64px) * 4 / 3)); }   /* la foto intera sta nello schermo */
  .vm-striscia-foto, .vm-striscia-foto.vm-striscia-verticale { aspect-ratio: auto; width: calc(var(--vm-h) * 3 / 4); border-radius: 14px; }   /* larghezza esplicita per Safari */
}

/* Home e Chi siamo (body.vm-barra-trasparente) › barra in alto: in cima solo logo, Cerca, Prenota ora e Menu senza riquadro; lo sfondo compare scendendo */
body.vm-barra-trasparente header.elementor-location-header > .e-con:not(.elementor-sticky__spacer) {
  transition: background-color .4s ease, box-shadow .4s ease;
}
body.vm-barra-trasparente header.elementor-location-header > .elementor-sticky__spacer { display: none !important; }
body.vm-barra-trasparente.vm-barra-nascosta header.elementor-location-header > .e-con {
  background-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important;
}
/* su tablet e telefono */
@media (max-width: 1024px) {
  /* la barra in cima qui non è fissa: la sovrapponiamo al video invece di farle occupare spazio */
  body.vm-barra-trasparente header.elementor-location-header > .elementor-element-3fffa23 { position: absolute !important; top: 0; left: 0; right: 0; z-index: 10; }
  /* il video su telefono lasciava 70px liberi per la barra */
  body.home .elementor-element.elementor-element-2effb7e { margin-top: 0 !important; }
}

/* Home › "Il nostro team": titolo sopra e carosello a tutta larghezza, come "Di cosa ci occupiamo" */
body .elementor-element.elementor-element-b90adba { overflow-x: clip; }
body .elementor-element.elementor-element-b90adba > .e-con-inner { flex-direction: column; }
body .elementor-element.elementor-element-bf103b7 { --width: 100%; width: 100%; max-width: 100%; }
body .elementor-element.elementor-element-2144b89 { margin-bottom: 10px; }
body .elementor-element.elementor-element-5838208 { display: none; }
.vm-carosello-team .vm-card { flex-basis: min(26vw, 340px); }
.vm-carosello-team .vm-card-foto { object-position: center 15%; }
.vm-carosello-team .vm-card-titolo { font-size: clamp(22px, 1.9vw, 28px); }
.vm-carosello-team .vm-card-sotto { font-size: 14px; }
.vm-carosello-team { margin-bottom: 30px; }
@media (max-width: 767px) {
  .vm-carosello-team .vm-card { flex-basis: 70vw; }
}

/* Menu, ricerca e altri popup sempre sopra la barra in alto (prima la barra copriva il riquadro del menu) */
.elementor-popup-modal { z-index: 9999 !important; }

/* Chi siamo › racconto: parole che si accendono e gomitolo che srotola il filo mentre si scende */
body .elementor-element.elementor-element-92a73e6 { overflow-x: clip; }
.vm-racconto { position: relative; width: 100%; }
.vm-racconto-pin {
  position: sticky; top: 100px; height: calc(100vh - 100px); box-sizing: border-box;
  display: grid; grid-template-columns: minmax(150px, 1fr) 2.6fr; gap: 40px; align-items: center; padding: 30px 32px;
}
.vm-racconto--libero .vm-racconto-pin { position: relative; top: 0; height: auto; min-height: 70vh; padding: 70px 32px; }
.vm-racconto-filo { position: relative; height: 100%; min-height: 360px; }
.vm-racconto-filo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vm-filo-traccia {
  fill: none; stroke: #3696d1; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 0 100000;   /* invisibile finché lo script non lo misura */
}
/* ritaglio circolare: toglie i pezzetti di filo rimasti nell'immagine, che ruotando sembravano fili staccati */
.vm-filo-palla {
  position: absolute; left: 0; top: 0; width: 72px; height: 72px; object-fit: cover; object-position: 48% 50%;
  border-radius: 50%; clip-path: circle(47% at 50% 50%); will-change: transform, opacity; box-shadow: 0 8px 16px rgba(14,52,75,.18);
  opacity: 0;
}
.vm-racconto-testo { font-family: Manrope, sans-serif; font-size: clamp(18px, 1.6vw, 25px); line-height: 1.45; color: #0e344b; max-width: 1000px; }
.vm-racconto-testo p { margin: 0 0 .75em; }
.vm-racconto-testo b, .vm-racconto-testo strong { font-weight: 600; }
.vm-parola { color: rgba(14,52,75,.17); transition: color .3s ease; }
.vm-parola.on { color: #0e344b; }
.vm-racconto-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; color: #0e344b !important; text-decoration: none; }
.vm-racconto-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vm-racconto-link:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .vm-racconto-pin { grid-template-columns: 54px 1fr; gap: 14px; padding: 40px 18px; }
  .vm-filo-palla { width: 40px; height: 40px; }
}

/* Chi siamo › immagini grandi con angoli arrotondati, come le card della home */
body .elementor-element-f945e3d img,
body .elementor-element-f945e3d .elementor-image-carousel-wrapper,
body .elementor-element-afea62e img,
body .elementor-element-282954a img,
body .elementor-element-46c3a31 img { border-radius: 18px !important; overflow: hidden; }
@media (max-width: 767px) {
  body .elementor-element-f945e3d img,
  body .elementor-element-f945e3d .elementor-image-carousel-wrapper,
  body .elementor-element-afea62e img,
  body .elementor-element-282954a img,
  body .elementor-element-46c3a31 img { border-radius: 14px !important; }
}
/* il tema dà all'immagine del carosello un bordo inferiore trasparente di 18px: l'arrotondamento finiva lì e gli angoli bassi restavano dritti */
body .elementor-element-f945e3d .swiper-slide-image { border-width: 0 !important; margin-bottom: 18px; }

/* Chi siamo › elementi nello stile Vitamedica: etichetta con l'ovale disegnato a mano e frase grande sottile */
.vm-intestazione { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.vm-etichetta { position: relative; display: inline-block; margin: 40px 0 0 0; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 500; color: #0e344b; }
.vm-etichetta::before {
  /* l'ovale si allarga con la scritta e le resta centrato (nel disegno l'ellisse è a metà altezza dell'immagine) */
  content: ""; position: absolute; left: -18px; top: 50%; width: calc(100% + 36px); aspect-ratio: 300 / 169; transform: translateY(-50%); pointer-events: none;
  background: var(--vm-ovale, url("/wp-content/uploads/modifiche/ovale-azzurro-logo.gif")) no-repeat 0 0 / 100% auto;   /* --vm-ovale: lo script fa ripartire il disegno */
}
.vm-frase { font-family: Manrope, sans-serif; font-size: clamp(30px, 3.4vw, 50px); font-weight: 300; line-height: 1.2; color: #0e344b; margin: 0; }
.vm-bottone-contorno { display: inline-block; border: 1px solid #0e344b; padding: 14px 22px; font-size: 13px; color: #000 !important; background: transparent; text-decoration: none; transition: background .2s, color .2s; }
.vm-bottone-contorno:hover { background: #0e344b; color: #fff !important; }
@media (max-width: 767px) {
  .vm-intestazione { grid-template-columns: 1fr; gap: 26px; margin-bottom: 34px; }
  .vm-etichetta { margin-top: 30px; }
}

/* Chi siamo › "I nostri valori": mentre si scorre cambiano il valore attivo e la foto */
.vm-valori { position: relative; background: #d8e6ef; color: #0e344b; width: 100vw; margin-left: calc(50% - 50vw); }
.vm-valori-ancora { position: absolute; left: 0; width: 1px; height: 1px; }
.vm-valori-pin {
  position: sticky; top: 100px; min-height: calc(100vh - 100px); box-sizing: border-box;
  padding: 40px max(32px, calc((100vw - 1400px) / 2)); display: flex; flex-direction: column; justify-content: center;
}
.vm-valori-griglia { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.vm-valore { position: relative; padding: 4px 0 4px 30px; margin-bottom: 26px; cursor: pointer; }
.vm-valore::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: #0e344b; transform: scaleY(0); transform-origin: top; transition: transform .5s ease; }
.vm-valore.attivo::before { transform: scaleY(1); }
.vm-valore-titolo { font-family: Manrope, sans-serif; font-size: clamp(30px, 3.2vw, 48px) !important; font-weight: 300 !important; line-height: 1.15; margin: 0; color: rgba(14,52,75,.32) !important; transition: color .4s ease; }
.vm-valore.attivo .vm-valore-titolo { color: #0e344b !important; }
.vm-valore-testo { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .4s ease, margin .5s ease; }
.vm-valore-testo > div { overflow: hidden; min-height: 0; }   /* apertura animata del testo */
.vm-valore.attivo .vm-valore-testo { grid-template-rows: 1fr; opacity: 1; margin-top: 16px; }
.vm-valore-testo p { font-size: 16px; line-height: 1.6; color: #0e344b; margin: 0 0 .6em; }
.vm-valore-foto-mobile { display: none; }
.vm-valori-immagine { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 200px); width: 100%; border-radius: 18px; overflow: hidden; background: #c7d9e5; }
.vm-valori .vm-valori-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s ease; }
.vm-valori .vm-valori-foto.attiva { opacity: 1; transform: none; }
@media (max-width: 900px) {
  /* anche su tablet e telefono la sezione resta ferma e i valori si attivano scendendo: foto sopra, valori sotto */
  .vm-valori-pin { top: 70px; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); padding: 22px 20px; justify-content: flex-start; }
  .vm-valori-griglia { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .vm-valori-immagine { order: -1; aspect-ratio: 16 / 10; max-height: 30vh; border-radius: 14px; margin-bottom: 22px; }
  .vm-valore { padding-left: 18px; margin-bottom: 14px; }
  .vm-valore-titolo { font-size: 26px !important; }
  .vm-valore.attivo .vm-valore-testo { margin-top: 10px; }
  .vm-valore-testo p { font-size: 14.5px; line-height: 1.5; }
}

/* Chi siamo › "Continua a scoprire": card con le foto dei servizi in due colonne */
.vm-scopri { width: 100vw; margin-left: calc(50% - 50vw); padding: 64px max(32px, calc((100vw - 1400px) / 2)) 64px; box-sizing: border-box; }
.vm-scopri-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-scopri .vm-card { aspect-ratio: 16 / 10; flex: none; width: auto; }
.vm-scopri .vm-card-titolo { color: #fff !important; font-family: Manrope, sans-serif; font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; line-height: 1.15; }
.vm-scopri .vm-card-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 18%; transition: transform .8s ease; z-index: -2; }
@media (max-width: 767px) {
  .vm-scopri { padding: 60px 18px 70px; }
  .vm-scopri-griglia { grid-template-columns: 1fr; gap: 16px; }
}

/* Chi siamo › "Per le aziende": convenzioni, assicurazioni e medicina del lavoro */
.vm-aziende { width: 100vw; margin-left: calc(50% - 50vw); background: #d8e6ef; padding: 64px max(32px, calc((100vw - 1400px) / 2)) 64px; box-sizing: border-box; }
.vm-aziende-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vm-azienda { background: #fafafa; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: background .3s ease; }
.vm-azienda:hover { background: #fff; }
.vm-aziende .vm-azienda-foto { width: 100% !important; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.vm-azienda-corpo { padding: 28px 24px 32px; display: flex; flex-direction: column; flex: 1; }
.vm-azienda-titolo { font-family: Manrope, sans-serif; font-size: clamp(22px, 2vw, 28px) !important; font-weight: 400 !important; color: #0e344b !important; margin: 0 0 16px; line-height: 1.2; }
.vm-azienda-testo { font-size: 14px; line-height: 1.6; color: #0e344b; margin: 0 0 18px; }
.vm-azienda-lista { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.vm-azienda-lista li { padding: 11px 0; border-top: 1px solid rgba(14,52,75,.18); font-size: 14px; line-height: 1.45; color: #0e344b; }
.vm-azienda-lista li:last-child { border-bottom: 1px solid rgba(14,52,75,.18); }
.vm-azienda-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: #000 !important; text-decoration: none; }
.vm-azienda-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .25s; }
.vm-azienda-link:hover svg { transform: translate(3px, -3px); }
.vm-aziende-cta { text-align: center; margin-top: 50px; }
@media (max-width: 1000px) { .vm-aziende-griglia { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 767px) { .vm-aziende { padding: 60px 18px 70px; } }

/* Specialità › foto dei medici ("Il team di specialisti") con angoli arrotondati, in tutte le pagine delle specialità */
body .elementor-988601 .elementor-element-7c2f6ebb { border-radius: 18px !important; overflow: hidden; }
@media (max-width: 767px) { body .elementor-988601 .elementor-element-7c2f6ebb { border-radius: 14px !important; } }

/* Schede medico › tolto l'angolino bianco decorativo (icona freccia del tema) sopra le foto */
body .elementor-988601 .elementor-element-7fc72a2f { display: none !important; }

/* Pagine dei servizi e "Servizi e specialità" › griglia dei servizi con le foto della home al posto delle icone */
.vm-griglia-servizi { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; }
.vm-griglia-servizi .vm-card { aspect-ratio: 4 / 3; flex: none; width: auto; }
.vm-griglia-servizi .vm-card-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 18%; transition: transform .8s ease; z-index: -2; }   /* foto verticali: si tengono i volti, in alto */
.vm-griglia-servizi .vm-card-titolo { color: #fff !important; font-family: Manrope, sans-serif; font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; line-height: 1.15; }
.vm-griglia-servizi .vm-card-testo { padding: 24px 24px 26px; }
.vm-griglia-servizi .vm-card-icona { width: 34px; height: 34px; }
@media (max-width: 767px) {
  .vm-griglia-servizi { grid-template-columns: 1fr; gap: 14px; }
  .vm-griglia-servizi .vm-card { aspect-ratio: 16 / 11; }
}

/* Home › "Specialità": mappa del corpo stilizzato (linea come le icone del sito) */
.vm-mappa { display: grid; grid-template-columns: minmax(240px, .85fr) 1.5fr; gap: 64px; align-items: start; margin: 10px 0 40px; }
.vm-mappa-corpo { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.vm-mappa-lati { display: flex; }
.vm-mappa .vm-mappa-lati button {
  border: 1px solid #0e344b !important; background: transparent !important; color: #0e344b !important; border-radius: 0 !important;
  padding: 9px 20px !important; font-family: Manrope, sans-serif; font-size: 13px !important; line-height: 1 !important; cursor: pointer; min-width: 0 !important;
}
.vm-mappa .vm-mappa-lati button + button { border-left: 0 !important; }
.vm-mappa .vm-mappa-lati button.attivo { background: #0e344b !important; color: #fff !important; }
.vm-corpo-svg { width: 100%; max-width: 290px; height: auto; max-height: 64vh; overflow: visible; }
.vm-corpo-lato { transition: opacity .45s ease; }
.vm-corpo-lato[data-lato="retro"], .vm-mappa.retro .vm-corpo-lato[data-lato="fronte"] { opacity: 0; pointer-events: none; }
.vm-mappa.retro .vm-corpo-lato[data-lato="retro"] { opacity: 1; pointer-events: auto; }
.vm-corpo-linea { fill: none; stroke: #0e344b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.vm-corpo-linea.vm-tratteggio { stroke-dasharray: .012 .022; stroke-dashoffset: 0; opacity: 0; }
.disegnato .vm-corpo-linea { animation: vm-traccia 2.2s cubic-bezier(.6,0,.3,1) forwards; }
.disegnato .vm-corpo-linea.vm-tratteggio { animation: vm-appari .8s 1.5s ease forwards; }
@keyframes vm-traccia { to { stroke-dashoffset: 0; } }
@keyframes vm-appari { to { opacity: 1; } }
.vm-corpo-area { fill: #3696d1; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.vm-corpo-area.attiva { opacity: .32; }
.vm-corpo-punto { cursor: pointer; opacity: 0; transition: opacity .6s ease; outline: none; }
.disegnato .vm-corpo-punto { opacity: 1; transition-delay: 1.7s; }
.vm-punto { fill: #3696d1; stroke: #fff; stroke-width: 1.5; transition: fill .25s; }
.vm-punto-alone { fill: #3696d1; opacity: .35; transform-box: fill-box; transform-origin: center; animation: vm-pulsa 2.4s ease-out infinite; }
.vm-corpo-punto:hover .vm-punto, .vm-corpo-punto:focus-visible .vm-punto, .vm-corpo-punto.attiva .vm-punto { fill: #0e344b; }
@keyframes vm-pulsa { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }

.vm-mappa-info { min-height: 520px; scroll-margin-top: 100px; }   /* su telefono, scegliendo una zona, il titolo resta sotto la barra */
.vm-mappa-pannello:not([hidden]) { animation: vm-entra .45s ease; }
@keyframes vm-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vm-mappa-nome { font-family: Manrope, sans-serif; font-size: clamp(28px, 3vw, 46px); font-weight: 300; line-height: 1.15; color: #0e344b; margin: 0 0 10px; }
.vm-mappa-sotto { font-size: 15px; color: #0e344b; opacity: .75; margin: 0 0 26px; }
.vm-mappa-elenco-zone, .vm-mappa-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
.vm-mappa .vm-mappa-elenco-zone button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left;
  background: transparent !important; border: 0 !important; border-top: 1px solid rgba(14,52,75,.35) !important; border-radius: 0 !important;
  padding: 15px 0 !important; color: #0e344b !important; font-family: Manrope, sans-serif; font-size: 18px !important; font-weight: 400; line-height: 1.25 !important;
  cursor: pointer; transition: padding .25s ease, color .25s;
}
.vm-mappa .vm-mappa-elenco-zone button:hover, .vm-mappa .vm-mappa-elenco-zone button:focus-visible { padding-left: 10px !important; }
.vm-mappa-elenco-zone button span { font-size: 12px; min-width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: #d8e6ef; color: #0e344b; }
.vm-mappa-gruppo { margin: 38px 0 6px; font-size: 14px; font-weight: 500; color: #0e344b; }
.vm-mappa-lista li a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(14,52,75,.35);
  font-size: 17px; color: #0e344b !important; text-decoration: none; transition: padding .25s ease;
}
.vm-mappa-lista li a:hover { padding-left: 10px; }
.vm-mappa-lista li a svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.vm-mappa .vm-mappa-indietro { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 0 22px; color: #0e344b !important; font-size: 14px !important; cursor: pointer; }
.vm-mappa .vm-mappa-indietro:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .vm-mappa { grid-template-columns: 1fr; gap: 30px; }
  .vm-mappa-corpo { position: relative; top: 0; }
  .vm-corpo-svg { max-width: 220px; max-height: none; }
  .vm-mappa-info { min-height: 0; }
}
@media (max-width: 600px) {
  .vm-mappa-elenco-zone, .vm-mappa-lista { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vm-corpo-linea { stroke-dashoffset: 0; animation: none !important; }
  .vm-corpo-linea.vm-tratteggio { opacity: 1; }
  .vm-corpo-punto { opacity: 1; }
  .vm-punto-alone { animation: none; }
}

/* Home › "La voce dei nostri pazienti": un filo unisce le recensioni e finisce nel gomitolo */
.elementor-element-f6f8947 { position: relative; margin-top: 70px; }   /* spazio sopra per il filo, sotto l'etichetta */
/* la scatola del filo sborda ai lati del carosello: la sezione non deve far scorrere la pagina di lato */
body .elementor-element.elementor-element-e87f11c { overflow-x: clip; }
.vm-filo-rec { position: absolute; inset: -110px -40px 0 -40px; pointer-events: none; z-index: 2; overflow: hidden; }
.vm-filo-rec svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vm-filo-rec path { fill: none; stroke: #3696d1; stroke-width: 2.5; stroke-linecap: round; }
.vm-filo-rec-palla { position: absolute; width: 62px; height: 62px; border-radius: 50%; clip-path: circle(47% at 50% 50%); object-fit: cover; box-shadow: 0 8px 14px rgba(14,52,75,.18); will-change: transform; }
.vm-filo-rec-nodo { fill: #3696d1; }
@media (max-width: 767px) { .vm-filo-rec-palla { width: 44px; height: 44px; } }

/* Home › recensioni: nastro che scorre in modo continuo (al posto del carosello a scatti) */
.vm-nastro .swiper-wrapper { display: flex; will-change: transform; transition: none !important; }
.vm-nastro .swiper-slide { flex: 0 0 var(--vm-w); width: var(--vm-w) !important; margin-right: var(--vm-gap) !important; }
.vm-nastro .swiper-pagination, .vm-nastro .elementor-swiper-button { display: none !important; }

/* Footer Vitamedica (tutte le pagine) */
.vm-footer { background: #f4f4f4; color: #0e344b; padding: 60px max(32px, calc((100vw - 1400px) / 2)) 26px; font-family: Manrope, sans-serif; border-top: 1px solid rgba(14,52,75,.15); }
.vm-footer a { color: #0e344b !important; text-decoration: none; }
.vm-footer a:hover { text-decoration: underline; }
.vm-footer .vm-intestazione { margin-bottom: 0; }
.vm-footer-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.vm-footer .vm-bottone-contorno:hover { text-decoration: none; }
.vm-newsletter { display: flex; flex: 1 1 360px; max-width: 520px; border-bottom: 1px solid #0e344b; }
.vm-newsletter input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 0 !important; font: 400 16px Manrope, sans-serif; color: #0e344b; outline: none; }
.vm-newsletter input::placeholder { color: rgba(14,52,75,.55); }
.vm-newsletter input.vm-errore { color: #b3261e; }
.vm-footer .vm-newsletter button { display: inline-flex; align-items: center; gap: 8px; border: 0 !important; background: transparent !important; color: #0e344b !important; padding: 0 0 0 14px !important; font: 400 15px Manrope, sans-serif; cursor: pointer; min-width: 0 !important; }
.vm-newsletter button svg, .vm-footer-social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.vm-nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vm-footer-filo { position: relative; height: 120px; margin: 20px 0 6px; }
.vm-footer-filo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vm-footer-traccia { fill: none; stroke: #3696d1; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 100000; }

.vm-footer-colonne { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; padding: 10px 0 40px; }
.vm-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.vm-footer-col p { margin: 0; }
.vm-footer-logo img { width: 200px; height: auto; margin-bottom: 8px; }
.vm-footer-titolo { font-size: 14px; font-weight: 500; opacity: .6; margin-bottom: 6px !important; }
.vm-footer-social { display: flex; gap: 22px; margin-top: 8px; }
.vm-footer-social a { display: inline-flex; align-items: center; gap: 6px; }
.vm-footer-orari { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; margin: 0; font-size: 15px; }
.vm-footer-orari dt { font-weight: 400; }
.vm-footer-orari dd { margin: 0; white-space: nowrap; }

.vm-footer-fondo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; border-top: 1px solid rgba(14,52,75,.35); padding-top: 22px; font-size: 13px; opacity: .85; }
.vm-footer-fondo p { margin: 0; }
.vm-footer-legali { display: flex; flex-wrap: wrap; gap: 6px 22px; }

@media (max-width: 1000px) { .vm-footer-colonne { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .vm-footer { padding: 60px 18px 90px; }
  .vm-footer-colonne { grid-template-columns: 1fr; gap: 30px; }
  .vm-footer-filo { height: 110px; }
    .vm-footer-fondo { flex-direction: column; }
}

/* Tolti i separatori neri orizzontali tra le sezioni (bordi superiori/inferiori delle sezioni Elementor) */
body .elementor-element.elementor-element-7fd12f4,
body .elementor-element.elementor-element-d13f9a9,
body .elementor-element.elementor-element-1c58863,
body .elementor-element.elementor-element-6dbb6e7,
body .elementor-element.elementor-element-ad6541d,
body .elementor-element.elementor-element-97f65d1,
body .elementor-element.elementor-element-fee9dd4 { border-top-width: 0 !important; border-bottom-width: 0 !important; }

/* Pulsanti (tutto il sito): su sfondo chiaro pieni blu con scritta bianca maiuscola, su sfondo scuro bianchi con scritta blu.
   La classe vm-pulsante viene data da modifiche.js a ogni vero pulsante (quelli con bordo o sfondo, non i link con freccia). */
body .vm-pulsante, body a.vm-pulsante:visited {
  display: inline-flex !important; align-items: center; justify-content: center;
  background: #0e344b !important; color: #fff !important; border: 1px solid #0e344b !important; border-radius: 0 !important;
  padding: 13px 33px 15px !important; font-family: Manrope, sans-serif !important; font-size: 14px !important; font-weight: 300 !important;
  text-transform: uppercase !important; letter-spacing: .02em; line-height: 1.4 !important; text-decoration: none !important;
  transition: background .3s ease, color .3s ease, border-color .3s ease !important;
}
body .vm-pulsante .elementor-button-text, body .vm-pulsante .elementor-button-content-wrapper { color: inherit !important; font: inherit !important; text-transform: inherit !important; }
body .vm-pulsante:hover, body .vm-pulsante:focus-visible { background: #000 !important; border-color: #000 !important; color: #fff !important; }
body .vm-pulsante.vm-pulsante--scuro { background: #fff !important; color: #0e344b !important; border-color: #fff !important; }
body .vm-pulsante.vm-pulsante--scuro:hover { background: #d8e6ef !important; border-color: #d8e6ef !important; color: #0e344b !important; }
/* "PRENOTA ORA" nella barra in alto resta sempre pieno blu, anche sopra la foto */


/* Ovali disegnati a mano attorno ai titoli: versione nell'azzurro del logo (nome nuovo del file, così il browser non usa quella vecchia in memoria) */
body .elementor-element.elementor-element-14d7ea5,
body .elementor-element.elementor-element-2144b89,
body .elementor-element.elementor-element-30e87f1,
body .elementor-element.elementor-element-3def221,
body .elementor-element.elementor-element-6c81b73,
body .elementor-element.elementor-element-9cafc29,
body .elementor-element.elementor-element-9e81b4c,
body .elementor-element.elementor-element-b0a9301,
body .elementor-element.elementor-element-b8ad0e8,
body .elementor-element.elementor-element-c4a3c2a,
body .elementor-element.elementor-element-c706545,
body .elementor-element.elementor-element-cb9a119,
body .elementor-element.elementor-element-f4a7237,
body .elementor-element.elementor-element-f9a9474,
body .elementor-element.elementor-element-fa9e838,
body .elementor-element.elementor-element-fbfb3a2 { background-image: url("/wp-content/uploads/modifiche/ovale-azzurro-logo.gif") !important; }

/* Elenchi delle specialità (righe modello 988279): compatti, in colonne, ordine alfabetico verso il basso, lettera iniziale nel margine */
body .elementor-loop-container.vm-elenco-colonne {
  grid-template-columns: repeat(var(--vm-colonne, 3), minmax(0, 1fr)) !important;
  grid-template-rows: repeat(var(--vm-righe, 15), auto);
  grid-auto-flow: column; column-gap: 56px !important; row-gap: 0 !important; padding-left: 26px;
}
body .vm-elenco-colonne > .e-loop-item { position: relative; }
body .vm-elenco-colonne .elementor-element-f26d818,
body .vm-elenco-colonne .elementor-element-fe6825e { --padding-top: 13px !important; --padding-bottom: 13px !important; padding-top: 13px !important; padding-bottom: 13px !important; }
body .vm-elenco-colonne .elementor-heading-title { font-size: 18px !important; line-height: 1.3 !important; font-weight: 400 !important; }
body .vm-elenco-colonne .elementor-icon svg { height: 13px !important; width: 13px !important; }
body .vm-elenco-colonne > .e-loop-item[data-lettera]::before {
  content: attr(data-lettera); position: absolute; left: -26px; top: 14px;
  font-family: Manrope, sans-serif; font-size: 14px; font-weight: 500; color: #3696d1;
}
@media (max-width: 767px) {
  body .elementor-loop-container.vm-elenco-colonne { padding-left: 22px; }
  body .vm-elenco-colonne > .e-loop-item[data-lettera]::before { left: -22px; }
}

/* Il nostro team e schede medico › il contenuto della scheda parte dall'alto (prima nome/ruolo in alto e testo spinto in fondo, con un grande vuoto in mezzo) */
body .elementor-988006 .elementor-element.elementor-element-80b4000 { justify-content: flex-start !important; height: auto !important; min-height: 0 !important; }
body .elementor-loop-container:has(> .elementor-988006) { align-items: start !important; }

/* ===== Pagine specialità › descrizione e schede apribili (quando, in cosa consiste, visite) ===== */
body .vm-spec { max-width: 760px; font-family: Manrope, sans-serif; color: #0e344b; }
body .vm-spec-descrizione { font-size: clamp(22px, 2vw, 28px); font-weight: 300; line-height: 1.4; margin: 0 0 36px; color: #0e344b; }
body .vm-spec-voce { border-top: 1px solid rgba(14, 52, 75, .18); }
body .vm-spec-voce:last-child { border-bottom: 1px solid rgba(14, 52, 75, .18); }
body .vm-spec-voce summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 20px; font-weight: 400; color: #0e344b; }
body .vm-spec-voce summary::-webkit-details-marker { display: none; }
body .vm-spec-voce summary:hover { color: #3696d1; }
body .vm-spec-segno { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
body .vm-spec-segno::before, body .vm-spec-segno::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: #3696d1; transition: transform .3s ease; }
body .vm-spec-segno::after { transform: rotate(90deg); }
body .vm-spec-voce[open] .vm-spec-segno::after { transform: rotate(0deg); }
body .vm-spec-corpo { padding: 0 0 28px; font-size: 17px; font-weight: 300; line-height: 1.65; }
body .vm-spec-corpo p { margin: 0 0 16px; }
body .vm-spec-corpo .vm-spec-sotto { margin: 22px 0 10px; font-weight: 500; font-size: 16px; }
body .vm-spec-lista { list-style: none; margin: 0 0 8px; padding: 0; }
body .vm-spec-lista li { position: relative; padding: 5px 0 5px 22px; }
body .vm-spec-lista li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #3696d1; }
body .vm-spec-corpo .vm-bottone-contorno { margin-top: 22px; }
@media (max-width: 767px) {
  body .vm-spec-descrizione { font-size: 21px; margin-bottom: 28px; }
  body .vm-spec-voce summary { font-size: 18px; padding: 18px 0; }
  body .vm-spec-corpo { font-size: 16px; }
}

/* ===== Il nostro team › griglia di foto, ricerca e filtri per specialità ===== */
body .vm-team { width: 100%; font-family: Manrope, sans-serif; color: #0e344b; }
body .vm-team-cerca { width: 100%; box-sizing: border-box; padding: 14px 18px; font: 300 17px Manrope, sans-serif; color: #0e344b; background: #fff; border: 1px solid rgba(14, 52, 75, .2); border-radius: 0; outline: none; }
body .vm-team-cerca:focus { border-color: #3696d1; }
body .vm-team-filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 34px; }
body .vm-team-filtri button { font: 400 14px Manrope, sans-serif; color: #0e344b; background: transparent; border: 1px solid rgba(14, 52, 75, .25); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
body .vm-team-filtri button:hover { border-color: #3696d1; color: #3696d1; background: transparent; }
body .vm-team-filtri button.attivo { background: #0e344b; border-color: #0e344b; color: #fff; }
body .vm-team-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 34px 22px; }
body button.vm-team-scheda { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0; margin: 0; border: 0; background: none !important; color: #0e344b !important; font: inherit; text-align: left; text-transform: none; cursor: pointer; }
body button.vm-team-scheda:focus-visible { outline: 2px solid #3696d1; outline-offset: 4px; border-radius: 18px; }
body .vm-team-scheda[hidden] { display: none; }
body .vm-team-foto { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: 18px; overflow: hidden; background: #d8e6ef; }
body .vm-team-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .5s ease; }
body .vm-team-scheda:hover .vm-team-foto img { transform: scale(1.04); }
body .vm-team-foto::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, rgba(244, 244, 244, 0), rgba(244, 244, 244, .92) 75%); pointer-events: none; }
body .vm-team-iniziali { position: absolute; inset: 0 0 25%; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 300; color: #3696d1; }
body .vm-team-nome { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-size: 21px; font-weight: 400; line-height: 1.15; }
body .vm-team-ruolo { font-size: 14px; font-weight: 300; line-height: 1.45; }
body .vm-team-scheda:hover .vm-team-nome { color: #3696d1; }
body .vm-team-vuoto { font-size: 18px; font-weight: 300; margin: 10px 0 0; }
@media (max-width: 767px) {
  body .vm-team-filtri { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 26px; padding: 0 16px 4px; scrollbar-width: none; }
  body .vm-team-filtri button { flex: 0 0 auto; }
  body .vm-team-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  body .vm-team-foto { border-radius: 14px; }
  body .vm-team-nome { font-size: 17px; left: 12px; right: 12px; bottom: 10px; }
  body .vm-team-iniziali { font-size: 46px; }
  body .vm-team-ruolo { font-size: 13px; }
}
body .vm-team-filtri.vm-chiusi { max-height: 78px; overflow: hidden; margin-bottom: 10px; }
body button.vm-team-altre { display: inline-block; margin: 0 0 30px; padding: 0; background: none !important; border: 0; font: 400 14px Manrope, sans-serif; color: #3696d1 !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body button.vm-team-altre[hidden] { display: none; }

/* Il nostro team › pop-up con la storia del medico */
body .vm-team-popup { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: #0e344b; overflow: hidden; box-shadow: 0 30px 80px rgba(14, 52, 75, .25); }
body .vm-team-popup[open] { display: grid; grid-template-columns: 340px 1fr; animation: vm-popup-entra .35s ease; }
body .vm-team-popup::backdrop { background: rgba(14, 52, 75, .45); backdrop-filter: blur(3px); }
@keyframes vm-popup-entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body .vm-team-popup-foto { position: relative; background: #d8e6ef; min-height: 100%; }
body .vm-team-popup-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
body .vm-team-popup-foto .vm-team-iniziali { inset: 0; font-size: 96px; }
body .vm-team-popup-testo { padding: 54px 48px 44px; overflow-y: auto; max-height: calc(100vh - 48px); box-sizing: border-box; font-family: Manrope, sans-serif; }
body .vm-team-popup-testo .vm-etichetta { display: inline-block; margin-bottom: 26px; }
body .vm-team-popup-nome { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1.1; color: #0e344b; }
body .vm-team-popup-ruolo { margin: 0 0 6px; font-size: 16px; font-weight: 400; }
body .vm-team-popup-specialita { margin: 0 0 24px; font-size: 14px; font-weight: 300; color: #3696d1; }
body .vm-team-popup-specialita:empty { display: none; }
body .vm-team-popup-storia p { margin: 0 0 14px; font-size: 16px; font-weight: 300; line-height: 1.7; }
body .vm-team-popup-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
body a.vm-team-prenota { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #0e344b; text-decoration: none; text-transform: uppercase; }
body a.vm-team-prenota svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body a.vm-team-prenota:hover { color: #3696d1; }
body button.vm-team-chiudi { position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50% !important; border: 0 !important; padding: 0; box-shadow: none !important; background: rgba(255, 255, 255, .9) !important; cursor: pointer; }
body button.vm-team-chiudi::before, body button.vm-team-chiudi::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 1.5px; background: #0e344b; transform: rotate(45deg); }
body button.vm-team-chiudi::after { transform: rotate(-45deg); }
body button.vm-team-chiudi:hover::before, body button.vm-team-chiudi:hover::after { background: #3696d1; }
body button.vm-team-chiudi:focus { outline: none !important; }
body button.vm-team-chiudi:focus-visible { outline: 2px solid #3696d1 !important; outline-offset: 2px; }
body.vm-popup-aperto { overflow: hidden; }
@media (max-width: 767px) {
  body .vm-team-popup { max-height: calc(100vh - 24px); overflow-y: auto; border-radius: 14px; }
  body .vm-team-popup[open] { display: block; }
  body .vm-team-popup-foto { min-height: 0; aspect-ratio: 1 / .9; }
  body .vm-team-popup-testo { padding: 26px 22px 30px; max-height: none; overflow: visible; }
  body .vm-team-popup-testo .vm-etichetta { margin-bottom: 18px; }
}
/* schede dei medici nelle specialità: tutta la scheda apre il pop-up */
body .e-loop-item.vm-medico-cliccabile { cursor: pointer; }
body .e-loop-item.vm-medico-cliccabile:hover .elementor-heading-title { color: #3696d1 !important; }
body .e-loop-item.vm-medico-cliccabile:focus-visible { outline: 2px solid #3696d1; outline-offset: 4px; border-radius: 18px; }
/* niente cornice nera del tema sulle schede dei medici (es. al ritorno dal pop-up); resta quella azzurra da tastiera */
body button.vm-team-scheda, body button.vm-team-scheda:focus, body button.vm-team-scheda:active, body button.vm-team-scheda:hover { border: 0 !important; outline: none !important; box-shadow: none !important; }
body button.vm-team-scheda:focus-visible { outline: 2px solid #3696d1 !important; outline-offset: 4px; }
body .e-loop-item.vm-medico-cliccabile:focus:not(:focus-visible) { outline: none !important; }

/* ===== Prenota ora › tre passi e modulo MediDesk a tutta altezza ===== */
body .elementor-element.elementor-element-77a08e7 { --padding-left: 32px !important; --padding-right: 32px !important; }
body .elementor-element.elementor-element-3b0fb33 { --width: 25% !important; }
body .elementor-element.elementor-element-8e76ce8 { --width: calc(75% - 30px) !important; --margin-right: 0 !important; }
body .vm-prenota-lato { padding-top: 4px; }
body .vm-prenota { font-family: Manrope, sans-serif; color: #0e344b; }
body .vm-passi { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
body .vm-passo { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 28px; background: #fff; border-radius: 18px; margin: 0; }
body .vm-passo::before { content: none !important; }
body .vm-passo-icona svg { width: 46px; height: 46px; fill: none; stroke: #3696d1; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
body .vm-passo-n { font-size: 13px; font-weight: 500; color: #3696d1; letter-spacing: .04em; }
body .vm-passo-titolo { font-size: 21px; font-weight: 400; line-height: 1.25; }
body .vm-passo-testo { font-size: 15px; font-weight: 300; line-height: 1.6; }
body .vm-prenota-modulo { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid rgba(14, 52, 75, .1); }
body .vm-prenota-modulo iframe { display: block; width: 100% !important; height: clamp(640px, 85vh, 1000px) !important; border: 0; }
body .vm-prenota-aiuto { margin: 22px 0 0; font-size: 17px; font-weight: 300; }
body .vm-prenota-aiuto a { color: #0e344b; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
body .vm-prenota-aiuto a:hover { color: #3696d1; }
@media (max-width: 1024px) {
  body .elementor-element.elementor-element-77a08e7 { --padding-left: 20px !important; --padding-right: 20px !important; }
  body .elementor-element.elementor-element-3b0fb33, body .elementor-element.elementor-element-8e76ce8 { --width: 100% !important; }
  body .vm-prenota-lato { padding-left: 14px; margin-bottom: 18px; }
}
@media (max-width: 767px) {
  body .vm-passi { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
  body .vm-passo { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 20px 18px; border-radius: 14px; }
  body .vm-passo-icona { grid-row: 1 / span 3; }
  body .vm-passo-icona svg { width: 40px; height: 40px; margin: 0; }
  body .vm-passo-titolo { font-size: 18px; }
  body .vm-prenota-modulo { border-radius: 14px; }
  body .vm-prenota-modulo iframe { height: 80vh !important; min-height: 560px; }
}
/* schede dei medici nelle specialità: lo spaziatore interno tiene la scheda compatta (foto quadrata, nome in basso) */
body .elementor-988601 .elementor-element-a5f9068 .elementor-spacer-inner { height: 40px !important; }
/* foto dei medici nelle specialità: allineate in alto, così il viso resta sempre visibile anche quando la scheda è larga */
body .elementor-988601 .elementor-element.elementor-element-7c2f6ebb:not(.elementor-motion-effects-element-type-background) { background-position: 50% 12% !important; }
/* pulsanti "contorno" sempre su fondo chiaro: pieni blu già dal caricamento, senza aspettare lo script */
body .vm-footer .vm-bottone-contorno, body .vm-spec .vm-bottone-contorno, body .vm-aziende .vm-bottone-contorno, body .vm-team-popup .vm-bottone-contorno { background: #0e344b; border-color: #0e344b; color: #fff !important; text-transform: uppercase; border-radius: 0; padding: 13px 33px 15px; font-size: 14px; font-weight: 300; }

/* ===== Ricerca del sito › risultati sotto il campo ===== */
body .vm-cerca-risultati { max-height: min(56vh, 460px); overflow-y: auto; margin-top: 14px; font-family: Manrope, sans-serif; text-align: left; }
body .vm-cerca-risultati:empty { display: none; }
body a.vm-cerca-voce { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; padding: 12px 6px; border-top: 1px solid rgba(14, 52, 75, .12); color: #0e344b; text-decoration: none; }
body a.vm-cerca-voce:hover, body a.vm-cerca-voce:focus-visible { background: #f4f4f4; outline: none; }
body .vm-cerca-tipo { grid-row: 1 / span 2; font-size: 12px; font-weight: 500; color: #3696d1; padding-top: 3px; }
body .vm-cerca-titolo { font-size: 17px; font-weight: 400; }
body .vm-cerca-desc { font-size: 13px; font-weight: 300; line-height: 1.45; color: #4a5f6c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .vm-cerca-vuoto { margin: 6px 0 0; font-size: 15px; font-weight: 300; color: #0e344b; }
body .vm-cerca-vuoto a { color: #0e344b; text-decoration: underline; }
@media (max-width: 767px) {
  body a.vm-cerca-voce { grid-template-columns: 1fr; }
  body .vm-cerca-tipo { grid-row: auto; padding: 0; }
}
/* la finestra di ricerca cresce con i risultati */
body .elementor-location-popup .dialog-message:has(.vm-cerca-risultati:not(:empty)), body .elementor-location-popup .e-con:has(> .e-con-inner .vm-cerca-risultati:not(:empty)), body .elementor-location-popup .e-con:has(.vm-cerca-risultati:not(:empty)) { height: auto !important; max-height: none !important; }

/* ===== Aree › elenco "Specialità" a colonne, come in Area pediatrica ===== */
body .vm-area-spec { display: grid; grid-template-columns: 25% 1fr; align-items: start; padding: 50px 46px 70px; box-sizing: border-box; max-width: 1400px; margin: 0 auto; font-family: Manrope, sans-serif; }
body .vm-area-spec-lato .vm-etichetta { margin-top: 18px; }
body .vm-elenco-spec { list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(var(--vm-righe, 3), auto); grid-auto-flow: column; column-gap: 56px; }
body .vm-elenco-spec li { margin: 0; padding: 0; }
body .vm-elenco-spec li::before { content: none !important; }
body .vm-elenco-spec a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #d5d8dc; font-size: 18px; font-weight: 400; color: #0e344b; text-decoration: none; }
body .vm-elenco-spec li.vm-fine-colonna a { border-bottom: 1px solid #d5d8dc; }
body .vm-elenco-spec a[data-lettera]::before { content: attr(data-lettera); position: absolute; left: -26px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 500; color: #3696d1; }
body .vm-elenco-spec a i { font-size: 15px; color: #0e344b; transition: transform .25s ease; }
body .vm-elenco-spec a:hover { color: #3696d1; }
body .vm-elenco-spec a:hover i { color: #3696d1; transform: translate(2px, -2px); }
@media (max-width: 1024px) {
  body .vm-area-spec { grid-template-columns: 1fr; gap: 26px; padding: 40px 20px 50px; }
  body .vm-elenco-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
  body .vm-elenco-spec li.vm-fine-colonna a { border-bottom: 0; }
  body .vm-elenco-spec li:nth-last-child(-n+2) a { border-bottom: 1px solid #d5d8dc; }
}
@media (max-width: 767px) {
  body .vm-elenco-spec { grid-template-columns: 1fr; }
  body .vm-elenco-spec li:nth-last-child(2) a { border-bottom: 0; }
  body .vm-elenco-spec a { font-size: 17px; }
}
/* footer › riga della polizza assicurativa, sotto P.IVA e PEC */
body .vm-footer-fondo .vm-footer-polizza { flex-basis: 100%; order: 1; margin: -4px 0 0; }

/* ===== Blog › filtri e schede degli articoli (prima scheda in evidenza) ===== */
body .vm-blog { width: 100%; font-family: Manrope, sans-serif; color: #0e344b; }
body .vm-blog-filtri { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; align-items: stretch; background: #fff; border: 1px solid rgba(14, 52, 75, .12); margin: 0 0 40px; }
body .vm-blog-select { position: relative; border-right: 1px solid rgba(14, 52, 75, .12); }
body .vm-blog-select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid #0e344b; border-bottom: 1.5px solid #0e344b; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
body .vm-blog-select select { width: 100%; height: 100%; min-height: 58px; padding: 0 44px 0 20px; border: 0; background: transparent; font: 400 16px Manrope, sans-serif; color: #0e344b; appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; }
body .vm-blog-filtri input[type="search"] { min-height: 58px; padding: 0 20px; border: 0; background: transparent; font: 300 16px Manrope, sans-serif; color: #0e344b; outline: none; }
body .vm-blog-filtri .vm-blog-bottone { margin: 7px; padding: 0 30px; background: #0e344b !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; font: 300 14px Manrope, sans-serif; text-transform: uppercase; cursor: pointer; }
body .vm-blog-filtri .vm-blog-bottone:hover { background: #000 !important; }
body .vm-blog-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
body a.vm-blog-scheda { display: flex; flex-direction: column; padding: 14px; background: #fff; border-radius: 18px; color: #0e344b; text-decoration: none; transition: box-shadow .3s ease, transform .3s ease; }
body a.vm-blog-scheda:hover { box-shadow: 0 14px 34px rgba(14, 52, 75, .1); transform: translateY(-3px); }
body a.vm-blog-scheda[hidden] { display: none; }
body .vm-blog-foto { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #d8e6ef; }
body .vm-blog-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
body a.vm-blog-scheda:hover .vm-blog-foto img { transform: scale(1.04); }
body .vm-blog-testo { display: flex; flex-direction: column; gap: 6px; padding: 18px 6px 8px; flex: 1; }
body .vm-blog-argomento { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #3696d1; }
body .vm-blog-testo time { font-size: 13px; font-weight: 300; color: #5b6f7b; }
body .vm-blog-titolo { margin-top: 6px; font-size: 21px; font-weight: 400; line-height: 1.3; }
body .vm-blog-anteprima { font-size: 15px; font-weight: 300; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .vm-blog-leggi { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 13px; text-transform: uppercase; }
body .vm-blog-leggi svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body a.vm-blog-scheda:hover .vm-blog-titolo, body a.vm-blog-scheda:hover .vm-blog-leggi { color: #3696d1; }
/* prima scheda: due colonne, foto a sinistra e testo a destra */
body a.vm-blog-scheda--prima { grid-column: 1 / -1; flex-direction: row; gap: 10px; }   /* riga tutta sua: sotto le schede restano tutte uguali */
body .vm-blog-scheda--prima .vm-blog-foto { flex: 1.4; aspect-ratio: auto; min-height: 380px; }
body .vm-blog-scheda--prima .vm-blog-testo { flex: 1; padding: 22px 20px; justify-content: center; }
body .vm-blog-scheda--prima .vm-blog-titolo { font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; }
body .vm-blog-scheda--prima .vm-blog-anteprima { -webkit-line-clamp: 4; }
body .vm-blog-scheda--prima .vm-blog-leggi { margin-top: 16px; }
body .vm-blog-vuoto { font-size: 18px; font-weight: 300; }
@media (max-width: 1024px) {
  body .vm-blog-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body .vm-blog-filtri { grid-template-columns: 1fr auto; }
  body .vm-blog-select { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(14, 52, 75, .12); }
  body .vm-blog-griglia { grid-template-columns: 1fr; gap: 18px; }
  body a.vm-blog-scheda--prima { grid-column: auto; flex-direction: column; }
  body .vm-blog-scheda--prima .vm-blog-foto { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  body .vm-blog-scheda--prima .vm-blog-testo { padding: 18px 6px 8px; }
  body a.vm-blog-scheda { border-radius: 14px; }
}
/* schede del blog tutte uguali: titolo sempre su 3 righe, anteprima su 2 */
body a.vm-blog-scheda:not(.vm-blog-scheda--prima) .vm-blog-titolo { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.3em * 3); }
body a.vm-blog-scheda:not(.vm-blog-scheda--prima) .vm-blog-anteprima { min-height: calc(1.6em * 2); }

/* Blog › mosaico come il riferimento: per riga una scheda grande (2 colonne) e due piccole, alternate sinistra/destra */
body .vm-blog-griglia { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
body a.vm-blog-scheda { padding: 10px; }
body a.vm-blog-scheda.vm-blog-grande { grid-column: span 2; }
body a.vm-blog-scheda .vm-blog-foto { aspect-ratio: 1 / 1; }
body a.vm-blog-scheda.vm-blog-grande .vm-blog-foto { aspect-ratio: 16 / 9; }
body a.vm-blog-scheda .vm-blog-testo { gap: 4px; padding: 14px 6px 8px; }
body a.vm-blog-scheda:not(.vm-blog-scheda--prima) .vm-blog-titolo { min-height: 0; -webkit-line-clamp: 4; font-size: 17px; }
body a.vm-blog-scheda.vm-blog-grande .vm-blog-titolo { font-size: 22px !important; }
body a.vm-blog-scheda .vm-blog-anteprima, body a.vm-blog-scheda .vm-blog-leggi { display: none !important; }
@media (max-width: 1024px) {
  body .vm-blog-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body .vm-blog-griglia { grid-template-columns: 1fr; }
  body a.vm-blog-scheda.vm-blog-grande { grid-column: auto; }
  body a.vm-blog-scheda .vm-blog-foto, body a.vm-blog-scheda.vm-blog-grande .vm-blog-foto { aspect-ratio: 16 / 10; }
}
/* Blog › meno spazio tra l'introduzione e la barra dei filtri */
body.page-id-1469 .elementor-element.elementor-element-97f65d1 { --margin-bottom: 0px !important; margin-bottom: 0 !important; }
body.page-id-1469 .elementor-element.elementor-element-97f65d1 > .e-con-inner { padding-bottom: 0 !important; }
body.page-id-1469 .elementor-element-97f65d1 p:last-child { margin-bottom: 0; }
body .vm-blog { margin-top: 44px; }
body .vm-blog-filtri input[type="search"] { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }

/* Servizi e specialità: foto in testa sostituita (dottoressa con il tablet al posto del camice) */
body .elementor-988147 .elementor-element.elementor-element-5972b47:not(.elementor-motion-effects-element-type-background),
body .elementor-988147 .elementor-element.elementor-element-5972b47 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("/wp-content/uploads/modifiche/servizi-hero-2.jpg") !important;
  background-size: cover !important;
  background-position: 50% 30% !important;
}

/* Fisioterapia e riabilitazione: foto dell’ambulatorio della sede al posto della palestra, tagliata come l'originale */
body .elementor-element-8bd99a5 img[src*="sede-ambulatorio"] { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 60%; width: 100%; height: auto; }

/* Schede dei medici nelle specialità: senza foto, iniziali come in Il nostro team (al posto della sagoma) */
body .vm-scheda-con-iniziali .elementor-element.elementor-element-7c2f6ebb { position: relative; background-image: none !important; background-color: #f3f7fa !important; }
body .vm-scheda-con-iniziali .elementor-element.elementor-element-7c2f6ebb > .elementor-motion-effects-container { display: none; }
body .vm-scheda-iniziali { position: absolute; inset: 0 0 25%; display: flex; align-items: center; justify-content: center; font: 300 72px/1 Manrope, sans-serif; color: #3696d1; pointer-events: none; }
@media (max-width: 767px) { body .vm-scheda-iniziali { font-size: 56px; } }

/* Medicina e chirurgia estetica › i medici dell'area, come in Il nostro team */
body .vm-area-medici .vm-team-griglia { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Modulistica: schede dei moduli in griglia (al posto delle anteprime scansionate) */
body .vm-moduli { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
body .vm-modulo { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px; background: #fff; border: 1px solid #e3eaef; border-radius: 16px; color: #0e344c; text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
body .vm-modulo:hover, body .vm-modulo:focus-visible { border-color: #3696d1; box-shadow: 0 10px 30px rgba(14, 52, 76, .08); transform: translateY(-2px); }
body .vm-modulo svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
body .vm-modulo-icona { width: 36px; height: 36px; color: #3696d1; margin-bottom: 6px; }
body .vm-modulo-titolo { font: 400 21px/1.25 Manrope, sans-serif; color: #0e344c; }
body .vm-modulo-sotto { font: 400 15px/1.45 Manrope, sans-serif; color: #5b7383; flex: 1; }
body .vm-modulo-scarica { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 16px; border-top: 1px solid #e3eaef; font: 400 15px/1 Manrope, sans-serif; color: #3696d1; }
body .vm-modulo-peso { margin-left: auto; color: #8a9ba6; font-size: 13px; }
body .vm-modulo-scarica svg { width: 20px; height: 20px; }
@media (max-width: 767px) {
  body .vm-moduli { grid-template-columns: 1fr; gap: 14px; }
  body .vm-modulo { padding: 22px 20px 20px; }
}
/* Modulistica: meno spazio tra il testo introduttivo e le schede dei moduli */

/* Lavora con noi: meno spazio prima del piè di pagina e niente riga di separazione */
body.page-id-990211 .elementor-element.elementor-element-0459d8a > .elementor-widget-container { padding-bottom: 0; }
body.page-id-990211 .elementor-element.elementor-element-fee9dd4 { margin-bottom: 0; }
body.page-id-990211 .elementor-element.elementor-element-fee9dd4 > .e-con-inner { padding-bottom: 0; }
body.page-id-990211 .vm-footer { border-top: 0; }

/* Lavora con noi: form di candidatura */
body .vm-candidatura { width: 100%; padding: 80px 46px 70px; box-sizing: border-box; }
body .vm-candidatura .vm-intestazione { grid-template-columns: 44.6% 1fr; gap: 0; margin-bottom: 0; }
body .vm-candidatura .vm-etichetta { margin-top: 40px; }
body .vm-candidatura .vm-frase { font-size: 32px; font-weight: 400; line-height: 1.5; }   /* come il testo sopra */
body .vm-candidatura-intro { font: 300 18px/1.5 Manrope, sans-serif; color: #0e344b; margin: 18px 0 34px; max-width: 640px; }
body .vm-candidatura-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; max-width: 900px; }
body .vm-campo-largo { grid-column: 1 / -1; }
body .vm-candidatura [hidden] { display: none !important; }
body .vm-campo { display: flex; flex-direction: column; gap: 6px; }
body .vm-campo label, body .vm-campo-nome { font: 400 14px/1.3 Manrope, sans-serif; color: #5b7383; }
body .vm-candidatura-form input[type="text"], body .vm-candidatura-form input[type="email"], body .vm-candidatura-form input[type="tel"],
body .vm-candidatura-form select, body .vm-candidatura-form textarea {
  width: 100%; border: 0 !important; border-bottom: 1px solid #b9c7d0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 10px 0 !important; font: 400 17px/1.4 Manrope, sans-serif; color: #0e344b; outline: none; transition: border-color .2s;
}
body .vm-candidatura-form textarea { resize: vertical; min-height: 110px; }
body .vm-candidatura-form :is(input, select, textarea):focus { border-bottom-color: #3696d1 !important; }
body .vm-candidatura-form :is(input, select, textarea)[name].vm-errore { border-bottom-color: #b3261e !important; }
body .vm-campo-select { position: relative; }
body .vm-campo-select select { appearance: none; -webkit-appearance: none; padding-right: 26px !important; cursor: pointer; }
body .vm-campo-select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.4px solid #0e344b; border-bottom: 1.4px solid #0e344b; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
body .vm-file { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 4px; padding: 14px 22px; border: 1px dashed #9fb3bf; border-radius: 12px; font: 400 15px/1.3 Manrope, sans-serif; color: #0e344b !important; cursor: pointer; transition: border-color .2s, background .2s; }
body .vm-file:hover { border-color: #3696d1; background: #fff; }
body .vm-file.vm-errore { border-color: #b3261e; }
body .vm-file svg, body .vm-candidatura-invio svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body .vm-file svg { color: #3696d1; }
body .vm-consenso { display: flex; align-items: flex-start; gap: 12px; font: 400 14px/1.5 Manrope, sans-serif; color: #0e344b; cursor: pointer; }
body .vm-consenso input { margin-top: 3px; width: 17px; height: 17px; accent-color: #0e344b; flex: none; }
body .vm-consenso.vm-errore span { color: #b3261e; }
body .vm-candidatura-invio { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
body .vm-candidatura-invio button { display: inline-flex; align-items: center; gap: 10px; border: 0 !important; border-radius: 0 !important; background: #0e344b !important; color: #fff !important; padding: 16px 28px !important; font: 400 15px/1 Manrope, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; transition: background .2s; }
body .vm-candidatura-invio button:hover { background: #3696d1 !important; }
body .vm-candidatura-errore { font: 400 14px Manrope, sans-serif; color: #b3261e; }
body .vm-candidatura-ok { font: 300 22px/1.4 Manrope, sans-serif; color: #0e344b; margin: 10px 0 0; padding: 26px 28px; background: #fff; border-radius: 16px; max-width: 900px; }
@media (max-width: 767px) {
  body .vm-candidatura { padding: 50px 20px 50px; }
  body .vm-candidatura .vm-intestazione { grid-template-columns: 1fr; gap: 26px; }
  body .vm-candidatura-form { grid-template-columns: 1fr; gap: 22px; }
  body .vm-candidatura-intro { font-size: 16px; margin-bottom: 26px; }
}
@media (max-width: 1024px) {
  body .vm-candidatura .vm-frase { font-size: 19px; }
}

/* Il nostro team: meno spazio tra il testo introduttivo e la ricerca dei medici */
body.page-id-991982 .elementor-element.elementor-element-a0e130b > .elementor-widget-container { padding-bottom: 0; }
body.page-id-991982 .elementor-element.elementor-element-256fc5e { display: none; }
body.page-id-991982 .elementor-element.elementor-element-6dbb6e7 { margin-bottom: 0; }
body.page-id-991982 .elementor-element.elementor-element-6dbb6e7 > .e-con-inner { padding-bottom: 80px; }

/* Pagine con testo introduttivo: niente spazio vuoto in fondo all'introduzione, poi una distanza uguale per tutte */
body.page-id-989745 .elementor-element.elementor-element-fee9dd4,
body.page-id-988147 .elementor-element.elementor-element-fee9dd4,
body.page-id-992100 .elementor-element.elementor-element-fee9dd4,
body.page-id-992064 .elementor-element.elementor-element-fee9dd4,
body.page-id-992084 .elementor-element.elementor-element-fee9dd4,
body.page-id-991626 .elementor-element.elementor-element-fee9dd4,
body.page-id-990940 .elementor-element.elementor-element-fee9dd4,
body.page-id-989664 .elementor-element.elementor-element-fee9dd4 { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body.page-id-989745 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-988147 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-992100 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-992064 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-992084 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-991626 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-990940 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-989664 .elementor-element.elementor-element-fee9dd4 .e-con,
body.page-id-989745 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-988147 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-992100 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-992064 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-992084 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-991626 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-990940 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container,
body.page-id-989664 .elementor-element.elementor-element-fee9dd4 .elementor-widget-text-editor > .elementor-widget-container { padding-bottom: 0 !important; margin-bottom: 0 !important; }
body.page-id-989745 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-988147 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-992100 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-992064 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-992084 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-991626 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-990940 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer,
body.page-id-989664 .elementor-element.elementor-element-fee9dd4 .elementor-widget-spacer { display: none !important; }
body.page-id-989745 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-988147 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-992100 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-992064 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-992084 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-991626 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-990940 .elementor-element.elementor-element-fee9dd4 > .e-con-inner,
body.page-id-989664 .elementor-element.elementor-element-fee9dd4 > .e-con-inner { padding-bottom: var(--vm-dopo-intro, 48px) !important; }   /* + il margine del paragrafo = 80px */
body.page-id-992100, body.page-id-992064, body.page-id-992084 { --vm-dopo-intro: 0px; }   /* subito dopo c'è il piè di pagina, che ha già il suo spazio */
body.page-id-988147 .elementor-element.elementor-element-c8d51eb,
body.page-id-989664 .elementor-element.elementor-element-6c723ec { margin-top: 0 !important; }
@media (max-width: 767px) { body:not(.page-id-992100):not(.page-id-992064):not(.page-id-992084) { --vm-dopo-intro: 20px; } }

/* Progetti speciali: un blocco per progetto (testo a sinistra, foto o video a destra) */
body .vm-progetto + .vm-progetto { border-top: 1px solid #dfe6eb; }
body .vm-progetto-corpo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
body .vm-progetto-titolo { font: 300 clamp(26px, 2.6vw, 40px)/1.2 Manrope, sans-serif !important; color: #0e344b !important; margin: 34px 0 22px !important; }
body .vm-progetto-testo p { font: 300 18px/1.6 Manrope, sans-serif; color: #0e344b; margin: 0 0 16px; }
body .vm-progetto-punti { list-style: none; margin: 8px 0 22px; padding: 0; }
body .vm-progetto-punti li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid #dfe6eb; font: 400 16px/1.45 Manrope, sans-serif; color: #0e344b; }
body .vm-progetto-punti li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #3696d1; }
body .vm-progetto-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 26px 0 18px; }
body .vm-progetto-link { display: inline-flex; align-items: center; gap: 8px; font: 400 15px Manrope, sans-serif; color: #0e344b !important; text-decoration: none; }
body .vm-progetto-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
body .vm-progetto-spec { font-size: 14px !important; color: #5b7383 !important; }
body .vm-progetto-spec a { color: #3696d1; text-decoration: none; }
body .vm-progetto-media { margin-top: 34px; }
body .vm-progetto-foto, body .vm-progetto-video { display: block; width: 100%; height: auto; border-radius: 16px; }
body .vm-progetto-video { max-height: 78vh; aspect-ratio: 9 / 16; object-fit: cover; background: #0e344b; width: auto; max-width: 100%; margin-left: auto; }
body .vm-progetto-vuoto { aspect-ratio: 4 / 3; border: 1px dashed #9fb3bf; border-radius: 16px; display: flex; align-items: center; justify-content: center; font: 400 15px Manrope, sans-serif; color: #8a9ba6; }
@media (max-width: 900px) {
  body .vm-progetto-corpo { grid-template-columns: 1fr; gap: 10px; }
  body .vm-progetto-titolo { margin-top: 10px !important; }
  body .vm-progetto-video { margin: 0 auto; max-height: 70vh; }
}

/* Lavora con noi: foto del team tra il testo e il form */
body .vm-lavora-foto { margin: 80px 46px 0; }
body .vm-lavora-foto img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 0%; border-radius: 16px; }
@media (max-width: 767px) {
  body .vm-lavora-foto { margin: 40px 20px 0; }
  body .vm-lavora-foto img { aspect-ratio: 4 / 3; border-radius: 12px; }
}

/* Servizi alle aziende: la griglia di Chi siamo usata come contenuto della pagina */
body .vm-aziende-pagina { padding-top: 10px; }

/* Il nostro team › tre modi di cercare: medico, specialità, zona del corpo */
body .vm-team-modi { display: inline-flex; gap: 0; margin: 0 0 18px; border: 1px solid #0e344b; }
body .vm-team .vm-team-modi button { font: 400 15px Manrope, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; color: #0e344b !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 12px 22px !important; cursor: pointer; transition: background .2s, color .2s; }
body .vm-team .vm-team-modi button + button { border-left: 1px solid #0e344b !important; }
body .vm-team .vm-team-modi button.attivo { background: #0e344b !important; color: #fff !important; }
body .vm-team-pannello[hidden] { display: none !important; }
body .vm-team-pannello[data-modo="medico"] { margin-bottom: 34px; }
body .vm-team-zona { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; margin-bottom: 30px; }
body .vm-team-corpo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
body .vm-team-corpo .vm-corpo-svg { max-width: 200px; max-height: 420px; }
body .vm-team-corpo .vm-corpo-lato[data-lato="retro"] { opacity: 0; pointer-events: none; }
body .vm-team-corpo.retro .vm-corpo-lato[data-lato="fronte"] { opacity: 0; pointer-events: none; }
body .vm-team-corpo.retro .vm-corpo-lato[data-lato="retro"] { opacity: 1; pointer-events: auto; }
body .vm-team-corpo .vm-corpo-area.attiva { opacity: .32; }
body .vm-team .vm-team-lati button { font: 400 13px Manrope, sans-serif !important; text-transform: none !important; color: #0e344b !important; background: transparent !important; border: 1px solid #0e344b !important; border-radius: 0 !important; padding: 7px 16px !important; }
body .vm-team .vm-team-lati button + button { border-left: 0 !important; }
body .vm-team .vm-team-lati button.attivo { background: #0e344b !important; color: #fff !important; }
body .vm-team-zona-sotto { font: 300 16px/1.5 Manrope, sans-serif; color: #0e344b; margin: 6px 0 4px; }
body .vm-team-zone { margin-top: 10px !important; }
@media (max-width: 767px) {
  body .vm-team-modi { display: flex; width: 100%; }
  body .vm-team .vm-team-modi button { flex: 1; padding: 11px 8px !important; font-size: 14px !important; }
  body .vm-team-zona { grid-template-columns: 1fr; gap: 14px; }
  body .vm-team-corpo .vm-corpo-svg { max-width: 150px; max-height: 300px; }
  body .vm-team-zone { flex-wrap: wrap !important; overflow: visible !important; margin: 10px 0 20px !important; padding: 0 !important; }
}

/* Lavora con noi: posizioni aperte, sopra il form */
body .vm-posizioni { padding: 80px 46px 0; box-sizing: border-box; }
body .vm-posizioni .vm-intestazione { grid-template-columns: 44.6% 1fr; gap: 0; margin-bottom: 0; }
body .vm-posizioni .vm-frase { font-size: 32px; font-weight: 400; line-height: 1.5; }
body .vm-posizioni-elenco { list-style: none; margin: 24px 0 0; padding: 0; max-width: 900px; border-top: 1px solid #c9d6de; }
body .vm-posizione { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid #c9d6de; }
body .vm-posizione-testo { flex: 1; min-width: 0; }
body .vm-posizione-titolo { font: 400 21px/1.3 Manrope, sans-serif !important; color: #0e344b !important; margin: 0 0 4px !important; }
body .vm-posizione-dettagli { font: 400 13px Manrope, sans-serif; color: #3696d1; margin: 0 0 8px; }
body .vm-posizione-descr { font: 300 15px/1.5 Manrope, sans-serif; color: #0e344b; margin: 0; }
body .vm-posizione-candidati { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid #0e344b; color: #0e344b !important; font: 400 14px Manrope, sans-serif; text-decoration: none; transition: background .2s, color .2s; }
body .vm-posizione-candidati:hover { background: #0e344b; color: #fff !important; }
body .vm-posizione-candidati svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body .vm-posizioni-nota { font: 300 15px/1.5 Manrope, sans-serif; color: #5b7383; margin: 18px 0 0; }
body .vm-posizioni + .vm-candidatura { padding-top: 70px; }
@media (max-width: 1024px) { body .vm-posizioni .vm-frase { font-size: 19px; } }
@media (max-width: 767px) {
  body .vm-posizioni { padding: 50px 20px 0; }
  body .vm-posizioni .vm-intestazione { grid-template-columns: 1fr; gap: 26px; }
  body .vm-posizione { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Home su telefono: video a tutto schermo, testi più piccoli, mappa e galleria più corte */
@media (max-width: 767px) {
  /* video in alto: riempie lo schermo (ritagliato ai lati), scendendo compare subito la sezione dopo */
  body.home .elementor-element.elementor-element-2effb7e { height: 100vh; height: 100svh; }
  body.home .elementor-element-2effb7e > .e-con-inner,
  body.home .elementor-element-2effb7e .elementor-element-26d1715,
  body.home .elementor-element-2effb7e .elementor-widget-container,
  body.home .elementor-element-2effb7e .e-hosted-video { width: 100%; height: 100%; }
  body.home .elementor-element-2effb7e video.elementor-video { width: 100%; height: 100%; object-fit: cover; }

  /* "In cosa crediamo": foto inquadrate sulle persone (sono a destra nelle foto orizzontali) */
  .vm-stack .vm-scheda-foto[src*="highlight-connessione"] { object-position: 90% 30%; }
  .vm-stack .vm-scheda-foto[src*="highlight-innovazione"] { object-position: 87% 30%; }
  .vm-stack .vm-scheda-foto[src*="highlight-fianco"] { object-position: 85% 30%; }

  /* titoli troppo grandi */
  /* "Un filo diretto con noi" (home e altre pagine) */
  body .elementor-element-d939b9f .elementor-heading-title,
  body .elementor-element-6f4c546 .elementor-heading-title,
  body .elementor-element-6ad41cc .elementor-heading-title,
  body .elementor-element-61eb2ec .elementor-heading-title,
  body .elementor-element-660b9cd .elementor-heading-title { font-size: 36px !important; line-height: 1.1 !important; }
  body .elementor-element-f3f295b h1.elementor-heading-title,
  body .elementor-element-24be19d .elementor-heading-title { font-size: 25px !important; line-height: 1.3 !important; }       /* C'è chi entra con una domanda… e, in Chi siamo, Ogni scelta che facciamo… */

  /* ovali delle etichette: dentro lo schermo invece che tagliati sul bordo sinistro */
  body .elementor-element.elementor-element-14d7ea5,
  body .elementor-element.elementor-element-2144b89,
  body .elementor-element.elementor-element-30e87f1,
  body .elementor-element.elementor-element-3def221,
  body .elementor-element.elementor-element-6c81b73,
  body .elementor-element.elementor-element-9cafc29,
  body .elementor-element.elementor-element-9e81b4c,
  body .elementor-element.elementor-element-b0a9301,
  body .elementor-element.elementor-element-b8ad0e8,
  body .elementor-element.elementor-element-c4a3c2a,
  body .elementor-element.elementor-element-c706545,
  body .elementor-element.elementor-element-cb9a119,
  body .elementor-element.elementor-element-f4a7237,
  body .elementor-element.elementor-element-f9a9474,
  body .elementor-element.elementor-element-fa9e838,
  body .elementor-element.elementor-element-fbfb3a2 { background-position-x: 8px !important; }   /* tutte le etichette con ovale di Elementor */

  /* Specialità: sagoma del corpo più piccola, elenco delle zone più compatto */
  .vm-mappa { gap: 18px; margin-bottom: 10px; }
  .vm-corpo-svg { max-width: 170px; }
  .vm-mappa .vm-mappa-elenco-zone button { padding: 12px 0 !important; font-size: 17px !important; }
  .vm-mappa-lista li a { padding: 11px 0; font-size: 16px; }
  .vm-mappa-gruppo { margin-top: 26px; }

  /* Recensioni: si scorrono col dito, una alla volta, senza testo tagliato */
  .vm-nastro .swiper { overflow-x: auto !important; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vm-nastro .swiper::-webkit-scrollbar { display: none; }
  .vm-nastro .swiper-slide { scroll-snap-align: start; }
  .vm-nastro .swiper-slide.vm-copia { display: none; }
}

/* Altre pagine su telefono: blocchi lunghi trasformati in file da scorrere, team più fitto, intestazione di Chi siamo a tutto schermo */
@media (max-width: 767px) {
  /* Griglia servizi (12 pagine e Chi siamo): fila da scorrere col dito invece di 10 foto una sotto l'altra */
  body .vm-griglia-servizi { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
  body .vm-griglia-servizi::-webkit-scrollbar { display: none; }
  body .vm-griglia-servizi .vm-card { flex: 0 0 72vw; width: 72vw; height: 90vw; aspect-ratio: auto; scroll-snap-align: start; }   /* altezza esplicita: Safari non la ricava da aspect-ratio */
  /* Chi siamo › "Continua a scoprire i nostri servizi": stessa fila */
  body .vm-scopri-griglia { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; scroll-padding: 0 18px; }
  body .vm-scopri-griglia::-webkit-scrollbar { display: none; }
  body .vm-scopri .vm-card { flex: 0 0 72vw; width: 72vw; height: 90vw; aspect-ratio: auto; scroll-snap-align: start; }

  /* Chi siamo e Servizi alle aziende › "Per le aziende": le tre schede in fila da scorrere */
  .vm-aziende-griglia { display: flex; gap: 12px; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; scroll-padding: 0 18px; }
  .vm-aziende-griglia::-webkit-scrollbar { display: none; }
  .vm-azienda { flex: 0 0 82vw; scroll-snap-align: start; }
  .vm-azienda-corpo { padding: 22px 20px 24px; }
  .vm-aziende-cta { margin-top: 34px; }

  /* Il nostro team: tre colonne, foto più piccole */
  body .vm-team-griglia, body .vm-area-medici .vm-team-griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  body .vm-team-scheda { gap: 6px; }
  body .vm-team-foto { border-radius: 10px; }
  body .vm-team-nome { font-size: 13px; left: 8px; right: 8px; bottom: 7px; }
  body .vm-team-iniziali { font-size: 30px; }
  body .vm-team-ruolo { font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Chi siamo: la foto in alto riempie lo schermo, come il video della home */
  body .elementor-element.elementor-element-bab2f29 { height: 100vh; height: 100svh; }
  body .elementor-element-bab2f29 .elementor-element-008e924,
  body .elementor-element-bab2f29 .elementor-widget-container,
  body .elementor-element-bab2f29 .e-hosted-video { width: 100%; height: 100%; }
  body .elementor-element-bab2f29 video { display: block; width: 100%; height: 100% !important; object-fit: cover; }
}

/* Barra in alto: stesso grigio chiaro della pagina invece del bianco (in home e Chi siamo resta trasparente sopra il video) */
body header.elementor-location-header > .elementor-element-3fffa23 { background-color: #f4f4f4 !important; }
body header.elementor-location-header > .elementor-element-3fffa23 { box-shadow: none !important; border-bottom: 0 !important; }   /* nessuna linea sotto la barra */

/* Nessuno sfondo bianco: riquadri, schede, campi e finestre usano lo stesso grigio chiaro della pagina (#f4f4f4).
   Dove il bianco serviva a staccare il riquadro dalla pagina, una linea sottile ne tiene il contorno.
   Restano bianche solo le frecce rotonde dei caroselli, che stanno sopra le foto. */
body .elementor-popup-modal .dialog-widget-content,
body .e-n-accordion-item-title,
body .e-n-accordion-item > [role="region"],
body .vm-team-cerca,
body .vm-team-popup,
body .vm-passo,
body .vm-prenota-modulo,
body .vm-blog-filtri,
body a.vm-blog-scheda,
body .vm-modulo,
body .vm-file:hover,
body .vm-candidatura-ok,
body .vm-azienda,
body .vm-azienda:hover { background-color: #f4f4f4 !important; }
body .e-n-accordion-item-title,
body .vm-passo,
body a.vm-blog-scheda,
body .vm-candidatura-ok { border: 1px solid rgba(14, 52, 75, .12) !important; }
body .vm-team-popup { border: 1px solid rgba(14, 52, 75, .12); }

/* Home e Chi siamo su computer: il video in alto è alto esattamente quanto lo schermo (prima 105% e 90%) */
@media (min-width: 768px) {
  body .elementor-element.elementor-element-33a3812,
  body .elementor-element.elementor-element-c3bf630 { --min-height: 100vh; min-height: 100vh !important; height: 100vh; }   /* home e Chi siamo */
}

/* Comparse su tablet e telefono (vedi modifiche.js): l'elemento resta nascosto finché non entra nello schermo */
.vm-comparsa { opacity: 0; }
/* Home su telefono › "Ci prendiamo cura di te": cerchio disegnato a mano attorno a "te", come su computer */
.vm-cerchiato { position: relative; display: inline-block; }
.vm-cerchiato::after {
  /* il disegno viene allungato in altezza perché "te" è più alto che largo */
  content: ""; position: absolute; left: -50%; top: 50%; width: 200%; height: 165%; transform: translateY(-50%); pointer-events: none;
  background: var(--vm-ovale, url("/wp-content/uploads/modifiche/ovale-azzurro-logo.gif")) no-repeat 0 0 / 100% 100%;
}
/* menu: anche l'elenco delle voci (e le voci evidenziate) sul grigio chiaro */
body .elementor-nav-menu--dropdown,
body .elementor-nav-menu--dropdown a,
body .elementor-nav-menu--dropdown a.highlighted,
body .elementor-nav-menu--dropdown a.elementor-item-active,
body .elementor-popup-modal .elementor-nav-menu--main .elementor-item { background-color: #f4f4f4 !important; }
/* fondo della pagina (su iPhone si vede ai bordi e tirando la pagina) e barra in alto in tutte le sue versioni */
html, body { background-color: #f4f4f4 !important; }
body header.elementor-location-header > .e-con:not(.elementor-sticky__spacer) { background-color: #f4f4f4 !important; }
/* Home su telefono › "Ci prendiamo cura di te": niente gomitolo con il filo sotto la frase */
@media (max-width: 1024px) {
  body .elementor-element.elementor-element-dd13544 { background-image: none !important; padding-bottom: 50px !important; }
}
/* il contenitore della parola "te" nasconde ciò che esce dai bordi: il cerchio deve vedersi intero */
.vm-cerchiato, .elementor-headline:has(.vm-cerchiato) { overflow: visible !important; }
/* Chi siamo su telefono: come su computer, dopo la foto in alto parte subito il racconto (niente sezione "Siamo un gomitolo") */
body .elementor-element.elementor-element-42de11a { display: none !important; }

/* Telefono: meno spazi vuoti */
@media (max-width: 767px) {
  /* pagine con il gomitolo dentro il testo iniziale (Lavora con noi, Modulistica, Prenota ora…): via il gomitolo, come in home */
  body.page-id-989745 .elementor-element.elementor-element-fee9dd4,
  body.page-id-989664 .elementor-element.elementor-element-fee9dd4,
  body.page-id-990211 .elementor-element.elementor-element-fee9dd4,
  body.page-id-988147 .elementor-element.elementor-element-fee9dd4,
  body.page-id-992084 .elementor-element.elementor-element-fee9dd4,
  body.page-id-992100 .elementor-element.elementor-element-fee9dd4,
  body.page-id-992064 .elementor-element.elementor-element-fee9dd4 { background-image: none !important; }
  /* etichette con l'ovale: altezza minima 100px → quanto basta per l'ovale */
  body .elementor-element.elementor-element-14d7ea5,
  body .elementor-element.elementor-element-2144b89,
  body .elementor-element.elementor-element-30e87f1,
  body .elementor-element.elementor-element-3def221,
  body .elementor-element.elementor-element-6c81b73,
  body .elementor-element.elementor-element-9cafc29,
  body .elementor-element.elementor-element-9e81b4c,
  body .elementor-element.elementor-element-b0a9301,
  body .elementor-element.elementor-element-b8ad0e8,
  body .elementor-element.elementor-element-c4a3c2a,
  body .elementor-element.elementor-element-c706545,
  body .elementor-element.elementor-element-cb9a119,
  body .elementor-element.elementor-element-f4a7237,
  body .elementor-element.elementor-element-f9a9474,
  body .elementor-element.elementor-element-fa9e838,
  body .elementor-element.elementor-element-fbfb3a2 { --min-height: 84px; min-height: 84px !important; margin-bottom: 8px !important; background-size: 150px auto !important; background-position: 8px 50% !important; }   /* ovale 150×85: intero, centrato sulla scritta */
  /* titolo della pagina (Il nostro team, Contatti, ecc.) più vicino alla barra e al contenuto */
  body .elementor-element.elementor-element-788674b { padding-top: 14px !important; padding-bottom: 8px !important; margin-top: 20px !important; }
  body .elementor-element.elementor-element-f8cfc49 { margin-top: 12px !important; }
  body.page-id-991982 .elementor-element.elementor-element-6dbb6e7 { background-image: none !important; }   /* Il nostro team: via il gomitolo sopra il testo */
}

/* Pulsante WhatsApp fisso in basso a destra (aggiunto da modifiche.js): il gomitolo azzurro con il simbolo di WhatsApp
   dentro; passandoci sopra il gomitolo fa un giro e a sinistra compare "Scrivici su WhatsApp" */
.vm-whatsapp {
  position: fixed; right: 16px; bottom: 88px; z-index: 9990; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none !important;
  filter: drop-shadow(0 6px 14px rgba(14, 52, 75, .28));
}
.vm-whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: url("/wp-content/uploads/modifiche/gomitolo-palla.png") no-repeat center / 100% 100%;
  transition: transform .8s cubic-bezier(.3, .7, .2, 1);
}
.vm-whatsapp:hover::before, .vm-whatsapp:focus-visible::before { transform: rotate(360deg); }
.vm-whatsapp svg { position: relative; width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(14, 52, 75, .55)); }
.vm-whatsapp-testo {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap;
  background: #0e344b; color: #fff; font: 400 14px Manrope, sans-serif; padding: 9px 14px; border-radius: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.vm-whatsapp:hover .vm-whatsapp-testo, .vm-whatsapp:focus-visible .vm-whatsapp-testo { opacity: 1; transform: translateY(-50%); }
.vm-whatsapp:focus-visible { outline: 3px solid #0e344b; outline-offset: 3px; }
@media (max-width: 767px) { .vm-whatsapp { right: 12px; bottom: 80px; width: 58px; height: 58px; } .vm-whatsapp svg { width: 27px; height: 27px; } }
@media (prefers-reduced-motion: reduce) { .vm-whatsapp::before { transition: none; } }
/* quando è aperto il menu o un'altra finestra, il pulsante si nasconde */
body.dialog-prevent-scroll .vm-whatsapp, body:has(.vm-team-popup[open]) .vm-whatsapp { opacity: 0; pointer-events: none; }

/* Chi siamo su computer: in alto il video senza scritte al posto dell'immagine fissa */
body .elementor-element.elementor-element-c3bf630 { position: relative; overflow: hidden; }
body .elementor-element-c3bf630 > .vm-video-sfondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
body .elementor-element-c3bf630 > .e-con-inner { position: relative; z-index: 1; }
