/* 
Theme Name: Adimer - Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child Theme
Author: Adimer Srl
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/* ─── Admin Bar offset ─────────────────────────────────────── */

/* !---------
! GLOBAL
! ---------*/
header {
  position: fixed !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}
header .e-con.e-parent {
  transition: all 0.33s cubic-bezier(0.39, 0.575, 0.565, 1);
}
header.scrolled .e-con.e-parent {
  padding-top: 12px;
  padding-bottom: 12px;
}
header .e-off-canvas__main {
  padding: 16px;
}
header .e-off-canvas__main .e-off-canvas__content {
  border-radius: 8px;
}
@media screen and (max-width: 768px) {
  .sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(0);
    opacity: 1;
    background-color: var(--e-global-color-3851221);
  }
}
@media screen and (min-width: 769px) {
  header .elementor-widget-off-canvas {
    display: none !important;
  }
  .sentinel {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    width: 100%;
    height: 100%;
    background-color: var(--e-global-color-3851221);
    opacity: 0;
    z-index: -1;
    transition: all 0.33s cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  header.scrolled .sentinel {
    opacity: 1;
    transform: translateY(0);
  }
}
/* !---------
! ELEMENTOR FIXES
! ---------*/
.elementor-widget-theme-site-logo img {
  border-radius: 0 !important;
}
.e-con-inner {
  width: calc(100% - 5vh) !important;
}
p {
  margin-block-end: 0;
}
/* ?---------
?  Helpers
? ---------*/
.colored-b {
  color: #006f8f;
}
/* ?---------
?  Hero cover image
? ---------*/

.cover-image img {
  max-height: 600px !important;
  width: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}
@media screen and (max-width: 768px) {
  .cover-image img {
    min-height: 550px !important;
  }
}

/* ?---------
? CARD TEAM
? ---------*/
.card-team-image {
  position: relative;
  overflow: hidden;
}
.card-team-image img {
  position: relative;
  z-index: -1;
}
.card-team-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.card-team-image:hover::after {
  opacity: 1;
}
/* === Cursore custom card team === */
#cursor-team {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  will-change: transform, opacity;
}

#cursor-team.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ?---------
? Cerotto - Scrolling text
? ---------*/
.cerotto {
  padding: 32px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--e-global-color-accent);
  border-bottom: 1px solid var(--e-global-color-accent);
}

.scroll-content {
  display: flex;
  width: 200%;
}

.scroll-text {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 2rem;
  font-size: 90px;
  color: var(--e-global-color-primary);
  font-weight: 800;

  padding-right: 2rem;
}
@media screen and (max-width: 992px) {
  .scroll-text {
    font-size: 60px;
  }
}
@media screen and (max-width: 768px) {
  .scroll-text {
    font-size: 46px;
  }
}
@media screen and (max-width: 576px) {
  .scroll-text {
    font-size: 38px;
  }
}
.duplicate {
  position: relative;
  left: 0;
}
/* !--------- 
! MENU-ITEM ACTIVE
! ---------*/
.menu-item {
  position: relative;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-item::before {
  position: absolute;
  content: "";
  left: -2px;
  top: 50%;
  transform: scale(0) translateY(-50%);
  background-color: #0098c3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.current-menu-item::before,
.menu-item:hover::before,
.menu-item:focus::before,
.menu-item:focus-within::before {
  transform: scale(1) translateY(-50%);
}
@media screen and (max-width: 768px) {
  .menu-item::before {
    left: -5px;
  }
}
.title-name {
  font-size: 1.2rem !important;
  font-weight: 400 !important;
}
@media screen and (max-width: 767px) {
  /* !---------
! MENU-ITEM ACTIVE
! ---------*/
  .elementor-nav-menu a,
  .elementor-nav-menu a:focus,
  .elementor-nav-menu a:hover {
    line-height: 1.2;
  }
  .elementor-nav-menu .menu-item a {
    font-size: 36px;
  }
  .menu-item::before {
    width: 10px;
    height: 10px;
  }

  .current-menu-item a {
    color: #0098c3;
  }
  nav .current-menu-item::before {
    transform: scale(1) translateY(-50%);
  }
}
/* ------- Checkbox ------- */
input[type="checkbox"] {
  padding: 0;
  position: relative;
  top: 2px;
  margin-right: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block !important;
  border: 1px solid #002029 !important;
  background-color: transparent !important;
  width: 15px !important;
  min-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  cursor: pointer;
  border-radius: 50px !important;
}
input[type="checkbox"]::before,
input.shipping_method::before {
  position: absolute;
  content: "";
  border: 5px solid #0098c3;
  width: 15px;
  height: 15px;
  top: -7%;
  left: -10%;
  border-radius: 100%;
  transform: scale(0);
  transition: 0.75s all cubic-bezier(0.63, 0.03, 0.21, 1);
}

input[type="checkbox"]:checked::before,
input.shipping_method:checked::before {
  transform: scale(1) !important;
  left: -1px;
  top: -1px;
}
/*
.comment-form-cookies-consent {
  display: flex;
  gap: 5px;
}
*/

/* ------- Submit ------- */
/* input[type="submit"],
button[type="submit"] {
  margin-top: 24px;
  display: block;
  width: 100%;
  padding: 16px 32px;
  background-color: #00485c;
  border: none;
  color: #62c13e;
  border-radius: 4px;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s all ease-in-out;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  color: #62c13e;
  background-color: #006f8f !important;
} */
/* ?---------
? TOOLTIP
? ---------*/
/* =========================================================
   TOOLTIP – solo su dispositivi con hover reale
   ========================================================= */

/* Base comune: serve solo come riferimento per il posizionamento.
   Su touch non viene generato nessun ::after */
.tooltip-link {
  position: relative;
}

/* hover: hover   → l'input principale sa fare hover (mouse/trackpad)
   pointer: fine  → puntatore preciso; esclude i browser Android
                    che dichiarano hover per errore */
@media (hover: hover) and (pointer: fine) {
  .tooltip-link::after {
    content: attr(data-tooltip);
    position: absolute;
    /* Centrato in verticale rispetto al link */
    top: 50%;
    transform: translateY(-50%);
    /* Distanza fissa dal link. Con right:120% la distanza
       cambiava in base alla larghezza del link */
    right: calc(100% + 10px);
    z-index: 10; /* sopra i container Elementor vicini */
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-c82325b);
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden; /* non c'è proprio finché è nascosto */
    pointer-events: none;
    transition:
      opacity 0.2s,
      visibility 0.2s;
  }

  /* Hover col mouse + focus da tastiera (Tab) */
  .tooltip-link:hover::after,
  .tooltip-link:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }
}

/* Niente transizione per chi ha attivato "riduci movimento" */
@media (prefers-reduced-motion: reduce) {
  .tooltip-link::after {
    transition: none;
  }
}
/* .tooltip-link {
  position: relative;
}
.tooltip-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -10%;
  right: 120%;
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-c82325b);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tooltip-link:hover::after {
  opacity: 1;
} */
.elementor .elementor-widget-html:has(.cs-pipe) {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
.cs-pipe {
  --c-circle-done: #adc4ca; /* cerchio fase completata / in corso */
  --c-circle-todo: #e8f3f7; /* cerchio fase futura */
  --c-icon-done: #1d2b30;
  --c-icon-todo: #b9cbd2;
  --c-line-done: #4f8fb3; /* oppure var(--e-global-color-primary) */
  --c-line-todo: #d6e8ef;
  --c-text: #11202a;
  --c-text-todo: #5f6e74; /* ~5,3:1 sul bianco: resta leggibile anche "spento" */

  container: cs-pipe / inline-size; /* tutte le misure seguono la larghezza del blocco */
  width: 100%;
}

/* ---------- Lista: misure + a capo ---------- */
.cs-pipe .cs-pipe__list {
  /* 150px (step minimo) e 24px (gap) entrano nelle soglie delle @container più sotto */
  --gap: 24px;
  --w: clamp(
    150px,
    calc((100cqi - 5 * var(--gap) - 2px) / 6),
    200px
  ); /* 6 step + 5 gap = tutta la riga */
  --size: calc(var(--w) * 0.7); /* diametro cerchio */
  --icon: calc(var(--size) * 0.5); /* icona = metà cerchio */
  --line: 2px; /* spessore connettore */
  --label-h: 3.5rem; /* spazio sopra i cerchi per i titoli di gruppo */
  --row-gap: 1.25rem; /* distanza tra le righe quando va a capo */
  --gap-v: 1.75rem; /* distanza tra step in verticale */

  display: flex;
  flex-wrap: wrap; /* va a capo un elemento alla volta */
  justify-content: center;
  align-items: flex-start;
  column-gap: var(--gap);
  row-gap: var(--row-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Step + varianti ---------- */
.cs-pipe .cs-pipe__step {
  --_circle: var(--c-circle-todo); /* default = fase futura */
  --_icon: var(--c-icon-todo);
  --_line: var(--c-line-todo); /* colore del tratto IN USCITA */
  --_text: var(--c-text-todo);

  position: relative; /* riferimento per connettore e titolo gruppo */
  flex: 0 0 var(--w); /* tutti gli step identici */
  width: var(--w);
  min-width: 0;
  margin: 0;
  padding: var(--label-h) 0 0; /* spazio riservato al titolo di gruppo */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.cs-pipe .cs-pipe__step::before {
  content: none;
} /* annulla eventuali pallini del tema */

.cs-pipe .cs-pipe__step.is-done {
  --_circle: var(--c-circle-done);
  --_icon: var(--c-icon-done);
  --_line: var(--c-line-done); /* completata: linea verso la successiva blu */
  --_text: var(--c-text);
}

.cs-pipe .cs-pipe__step.is-current {
  --_circle: var(--c-circle-done);
  --_icon: var(--c-icon-done);
  --_text: var(--c-text); /* linea in uscita resta chiara */
}

/* ---------- Connettore: centro cerchio → centro del successivo ---------- */
.cs-pipe .cs-pipe__step::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--label-h) + var(--size) / 2);
  left: 50%;
  width: calc(
    100% + var(--gap)
  ); /* step + gap = distanza esatta tra due centri */
  height: var(--line);
  transform: translateY(-50%);
  background: var(--_line);
  pointer-events: none;
}

.cs-pipe .cs-pipe__step:last-child::after {
  content: none;
}

/* ---------- Titolo di gruppo (sopra il primo step del gruppo) ---------- */
.cs-pipe .cs-pipe__group {
  --span: 3; /* quanti step copre sulla sua riga */
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--span) * var(--w) + (var(--span) - 1) * var(--gap));
  height: var(--label-h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0 0 0.9rem;
  box-sizing: border-box;
  font-family: inherit; /* stesso font degli step, ignora quello h3 del kit */
  font-size: clamp(1rem, 1.6cqi, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
  color: var(--c-text);
}

/* ---------- Cerchio + icona ---------- */
.cs-pipe .cs-pipe__icon {
  position: relative;
  z-index: 1; /* sopra al connettore */
  flex: none;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--_circle);
  color: var(--_icon);
}

.cs-pipe .cs-pipe__icon svg {
  width: var(--icon);
  height: var(--icon);
  overflow: visible;
}

/* colore degli SVG: segue la variante, rispetta i "none" (icone a linea) */
.cs-pipe .cs-pipe__icon svg[stroke]:not([stroke="none"]),
.cs-pipe .cs-pipe__icon svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}
.cs-pipe .cs-pipe__icon svg[fill]:not([fill="none"]),
.cs-pipe .cs-pipe__icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

/* ---------- Testi ---------- */
.cs-pipe .cs-pipe__title {
  margin: 0;
  font-size: clamp(1rem, 1.45cqi, 1.1875rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--_text);
  text-wrap: balance;
}

.cs-pipe .cs-pipe__desc {
  margin: 0.35rem 0 0;
  font-size: clamp(0.875rem, 1.2cqi, 0.9375rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--_text);
  text-wrap: balance;
}

/* =====================================================
   A CAPO — soglie = N step × 150px + (N−1) gap × 24px + 2px
   (le condizioni delle query non accettano var(): numeri scritti a mano)
   ===================================================== */

/* 5 per riga */
@container cs-pipe (848px <= width < 1022px) {
  .cs-pipe .cs-pipe__step:nth-child(5n)::after {
    content: none;
  } /* fine riga: niente linea */
  .cs-pipe .cs-pipe__step:nth-child(4) .cs-pipe__group {
    --span: 2;
  } /* "Sviluppo clinico" copre 4-5 */
}

/* 4 per riga */
@container cs-pipe (674px <= width < 848px) {
  .cs-pipe .cs-pipe__step:nth-child(4n)::after {
    content: none;
  }
  .cs-pipe .cs-pipe__step:nth-child(4) .cs-pipe__group {
    --span: 1;
  } /* copre solo lo step 4 */
}

/* 3 per riga */
@container cs-pipe (600px <= width < 674px) {
  .cs-pipe .cs-pipe__step:nth-child(3n)::after {
    content: none;
  }
}

/* =====================================================
   VERTICALE — sotto 600px
   ===================================================== */
@container cs-pipe (width < 600px) {
  .cs-pipe .cs-pipe__list {
    --size: 64px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    row-gap: var(--gap-v);
  }

  /* cerchio a sinistra; titolo gruppo, titolo e descrizione a destra, centrati sul cerchio */
  .cs-pipe .cs-pipe__step {
    flex: none;
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: var(--size) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      "icon ."
      "icon group"
      "icon title"
      "icon desc"
      "icon .";
    column-gap: 1rem;
    text-align: left;
  }

  .cs-pipe .cs-pipe__group {
    grid-area: group;
    position: static;
    width: auto;
    height: auto;
    display: block;
    padding: 0 0 0.3rem;
    font-size: 0.875rem;
    text-align: left;
  }

  .cs-pipe .cs-pipe__icon {
    grid-area: icon;
    align-self: start;
    margin: 0;
  }
  .cs-pipe .cs-pipe__title {
    grid-area: title;
  }
  .cs-pipe .cs-pipe__desc {
    grid-area: desc;
  }

  /* connettore verticale: tutti gli step tranne l'ultimo */
  .cs-pipe .cs-pipe__step::after {
    top: calc(var(--size) / 2);
    left: calc(var(--size) / 2);
    width: var(--line);
    height: calc(
      100% + var(--gap-v)
    ); /* arriva al centro del cerchio successivo */
    transform: translateX(-50%);
  }
}
.cs-pipe.first .cs-pipe__step:nth-child(3) .cs-pipe__icon::before {
  content: "";
  position: absolute;
  inset: 0; /* = top:0; left:0; width:100%; height:100% */
  z-index: -1; /* sopra lo sfondo chiaro, sotto l'SVG */
  border-radius: 50%;
  background: var(--c-circle-done);
  /* inset(alto destra basso sinistra): taglia solo da destra → resta la parte a sinistra */
  clip-path: inset(0 calc(100% - 80%) 0 0);
}
.cs-pipe .cs-pipe__step:nth-child(3) .cs-pipe__icon svg {
  color: var(--c-icon-done);
}
.cs-pipe.second .cs-pipe__step:nth-child(3) .cs-pipe__icon::before {
  content: "";
  position: absolute;
  inset: 0; /* = top:0; left:0; width:100%; height:100% */
  z-index: -1; /* sopra lo sfondo chiaro, sotto l'SVG */
  border-radius: 50%;
  background: var(--c-circle-done);
  /* inset(alto destra basso sinistra): taglia solo da destra → resta la parte a sinistra */
  clip-path: inset(0 calc(100% - 50%) 0 0);
}
