
  /* =========================================================
     SFONDO GRADIENTE ANIMATO E NOISE (Estratto dal File A)
     ========================================================= */

  /* Colori del gradiente radiale come custom properties: @property li rende
     animabili nativamente dal browser, cosi il JS di scroll puo cambiarli
     con una transizione fluida (niente riscrittura manuale frame-by-frame) */
  @property --grad-c1 { syntax: '<color>'; inherits: true; initial-value: #d8705d; }
  @property --grad-c2 { syntax: '<color>'; inherits: true; initial-value: #ca8094; }
  @property --grad-c3 { syntax: '<color>'; inherits: true; initial-value: #ee9e83; }
  @property --grad-c4 { syntax: '<color>'; inherits: true; initial-value: #f5d6c6; }

  :root{
    --grad-c1: #d8705d; /* Terracotta */
    --grad-c2: #ca8094; /* Rosa antico */
    --grad-c3: #ee9e83; /* Pesca chiaro */
    --grad-c4: #f5d6c6; /* Crema caldo */
    transition: --grad-c1 1.2s ease, --grad-c2 1.2s ease, --grad-c3 1.2s ease, --grad-c4 1.2s ease;
  }

  /* Layer gradiente animato centrato */
  body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: 
      radial-gradient(circle at 35% 45%, var(--grad-c1) 0%, transparent 60%),
      radial-gradient(circle at 60% 65%, var(--grad-c2) 0%, transparent 55%),
      radial-gradient(circle at 50% 30%, var(--grad-c3) 0%, transparent 60%),
      radial-gradient(circle at 70% 35%, var(--grad-c4) 0%, transparent 50%);
    filter: blur(55px);
    transform: translate(-50%, -50%) scale(0.6);
    animation: pulseExpand 10s ease-in-out infinite alternate;
    z-index: -9999; /* Garantisce che stia sotto tutto */
    pointer-events: none;
  }

  /* Layer texture di rumore (SVG grain) */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.42'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -9998;
  }

  /* Animazione lenta di espansione e contrazione */
  @keyframes pulseExpand {
    0% {
      transform: translate(-50%, -50%) scale(0.5);
      opacity: 0.7;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.0);
      opacity: 1;
    }
  }

  /* =========================================================
     STILI ORIGINALI DEL FILE B (Non modificati)
     ========================================================= */

  :root{
    --bg: #eef1f6;
    --bg-deep: #e6eaf1;
    --ink: #0b0c0e;
    --muted: #666e7a;
    --line: rgba(11,12,14,0.09);
    --surface: #ffffff;

    --mint: #a9ddc4;
    --mint-deep: #7fc7a7;
    --blue: #bcd7ef;
    --blue-deep: #0047dd;
    --lavender: #d2c6f2;
    --lavender-deep: #b09fe8;
    --peach: #f6cda1;
    --peach-deep: #eeab6f;

    --pill-bg: #eef0f4;
    --pill-text: #454b54;

    --dot-base: #c7cdd7;
    --dot-active: #0b0c0e;

    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 999px;

    --container: 1280px;
    --font-display: "Lexend", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --ease: cubic-bezier(.22,.68,0,1);

    /* Calendar Variables */
    --tile-default-stroke: #b4b4b4;
    --tile-active-color: #000000;
    --accent-color: #0047dd;
    --free-bg: #eff6ff;
    --free-border: #bfdbfe;
    --free-text: #1d4ed8;
    --booked-bg: #f1f5f9;
    --booked-border: #e2e8f0;
    --booked-text: #94a3b8;
  }

  *,*::before,*::after{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  }

  body{
    margin:0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .name {
    font-family: var(--font-display);
    padding: 12px 2px;
    font-size: 24px;
}

  .role {
    font-family: var(--font-display);
    padding: 12px 2px;
    font-size: 16px;
}

  h1,h2,h3{ font-family: var(--font-display); margin:0; scroll-margin: 10rem; }
  p{ margin:0; }
  a{ color: inherit; text-decoration: none; }
  button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
  ul{ list-style: none; margin:0; padding:0; }
  img,svg{ display:block; max-width:100%; }

  :focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

  .skip-link{
    position:absolute; left:16px; top: -60px; z-index: 100;
    background: var(--ink); color:#fff; padding:10px 16px; border-radius: var(--radius-sm);
    font-size:.875rem; font-weight:600; transition: top .25s var(--ease);
  }
  .skip-link:focus{ top:16px; }

  /* ---------- Dot grid background ---------- */
  #dotgrid{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
  }

  /* ---------- Layout helpers ---------- */
  .wrap{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    padding-bottom: 120px;
  }
  main{ position: relative; z-index: 1; }
  section{ position: relative; z-index: 1; }

  .reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }

  .reveal.is-visible{ 
     opacity: 1; 
     transform: none;
  }

  /* ---------- Header ---------- */
  header{
    position: sticky; top:0; z-index: 50;
    background: rgba(238,241,246,.72);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease);
  }
  header.scrolled{ border-bottom-color: var(--line); }
  
  .header-inner{
    display:flex; 
    align-items:center; 
    justify-content: space-between;
    padding: 22px 22px;
  }
  
  .logo {
    font-size: 1.2rem; font-weight: 400; letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .logo-icon {
    animation: spin 8s linear infinite;
    flex-shrink: 0;
  }

  @keyframes spin {
    100% { transform: rotate(360deg); }
  }

  .logoname {
    font-family: "Silkscreen", cursive;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: normal;
  }

  nav.primary-nav{ 
    display:flex; 
    align-items:center; 
    gap: 40px;
  }
  
  .nav-links{ 
    display:flex; 
    align-items: center;
    gap: 32px; 
  }
  
  .nav-links a{
    font-size: 1.2rem; font-weight: 500; color: var(--ink);
    position: relative; padding: 4px 0;
  }
  
  .nav-links a::after{
    content:""; position:absolute; left:0; bottom:0; height:1.5px; width:0;
    background: var(--ink); transition: width .3s var(--ease);
  }
  
  .nav-links a:hover::after{ width:100%; }

  .btn{
    display: inline-flex; align-items:center; gap:8px;
    background: var(--ink); color:#fff;
    padding: 13px 24px; border-radius: var(--radius-sm);
    font-size: .9375rem; font-weight: 600;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
    box-shadow: 0 1px 2px rgba(11,12,14,.08);
    margin-top: 0;
    text-align: center;
  }

  .navbtn{
    display: inline-flex; align-items:center; justify-content:center; gap:8px;
    background: var(--ink); color:#fff;
    height:44px; padding: 0 24px; border-radius: var(--radius-sm);
    font-size: .9375rem; font-weight: 600;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
    box-shadow: 0 1px 2px rgba(11,12,14,.08);
    margin-top: 0;
    text-align: center;
    background: #000; color: var(--surface);
  }
   
  .btn:hover{ transform:none; box-shadow:0 4px 12px -8px rgba(11,12,14,.32); }
  .btn:active{ transform:none; }
  .btn svg{ width:14px; height:14px; transition: transform .3s var(--ease); }
  .btn:hover svg{ transform: translate(2px,-2px); }

  .btncard{
    display: block; align-items:center; gap:8px;
    background: var(--ink); color:#fff;
    padding: 13px 24px; border-radius: var(--radius-sm);
    font-size: .9375rem; font-weight: 600;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
    box-shadow: 0 1px 2px rgba(11,12,14,.08);
    margin-top: auto;
    text-align: center;
  }
  .btncard:hover{ transform:none; box-shadow:0 4px 12px -8px rgba(11,12,14,.32); }
  .btncard:active{ transform:none; }
  .btncard svg{ width:14px; height:14px; transition: transform .3s var(--ease); }
  .btncard:hover svg{ transform: translate(2px,-2px); }


  /* Stable hover: buttons and project cards stay in place */
  .navbtn:hover,.navbtn:active{transform:none;}
  .work-grid > .card:hover{transform:translateY(-8px);box-shadow:0 26px 44px -22px rgba(11,12,14,.28);}
  .nav-toggle{
    display:none; width:40px; height:40px; align-items:center; justify-content:center;
    border-radius: 10px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
    content:""; display:block; width:20px; height:2px; background: var(--ink);
    position: relative; transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-toggle span::before{ position:absolute; top:-6px; }
  .nav-toggle span::after{ position:absolute; top:6px; }
  body.menu-open .nav-toggle span{ background: transparent; }
  body.menu-open .nav-toggle span::before{ top:0; transform: rotate(45deg); background: var(--ink); }
  body.menu-open .nav-toggle span::after{ top:0; transform: rotate(-45deg); background: var(--ink); }

  .mobile-menu{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 28px;
    flex-direction: column; gap: 4px;
    transform: translateY(-8px); opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  body.menu-open .mobile-menu{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a{ padding: 14px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn{ margin-top: 16px; justify-content:center; }

  /* ---------- Hero ---------- */
  .hero{ padding: 96px 0 120px; scroll-margin: 10rem; }
  .hero-grid{
    display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; max-width: 1000px; margin: 0 auto;
  }
  .hero h1{
    font-size: 40;
    font-weight: 600; line-height: 1.06; letter-spacing: -0.02em;
  }
  .hero p.lede{
    margin-top: 24px; font-size: 1.5rem; line-height: 1.6; color: var(--muted);
    max-width: 460px;
  }
  .hero .btn{ margin-top: 36px; }

  /* ---------- Reuleaux Triangle Graphic Component ---------- */
  .hero-graphic{
    position: relative;
    aspect-ratio: 320 / 380;
    height: 100%;
    box-shadow: 0 30px 60px -30px rgba(11,12,14,.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
    border-radius: var(--radius-lg);
  }

  .hero-graphic svg{ 
    width: 100%; 
    height: 100%; 
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  /* Gruppi dei Cerchi e Testi dal nuovo SVG */
  .circle-group {
    cursor: pointer;
  }

  .circle-group circle {
    fill: rgba(0, 0, 0, 0.01);
    stroke: #000000;
    stroke-width: 3;
    transition: fill 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
    transform-box: fill-box;
    transform-origin: center;
    /*animation: wf-circle-float 4.5s ease-in-out infinite;*/
  }

  /* Sfasamento del tempo di avvio tra un cerchio e l'altro */
  /*
  .circle-human circle {
    animation-delay: 0s;
  }

  .circle-tech circle {
    animation-delay: 1.5s;
  }

  .circle-business circle {
    animation-delay: 3s;
  }

  @keyframes wf-circle-float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-14px);
    }
  }
*/
  .circle-group:hover circle {
    fill: rgba(0, 0, 0, 0);
    stroke-width: 4;
    filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.12));
  }

  .text-group {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
  }

  .circle-group:hover .text-group {
    transform: scale(1.18);
  }

  .human-text { transform-origin: 400px -7.5px; }
  .tech-text { transform-origin: 100px 652.5px; }
  .business-text { transform-origin: 700px 652.5px; }

  /* =========================================================
     ANIMAZIONE FLUTTUANTE IMMAGINI SVG SUL CERCHIO HOVER
     ========================================================= */
  .floating-img {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    animation: floatVertical 3.8s ease-in-out infinite;
    pointer-events: none;
  }

  .circle-group:hover .floating-img {
    opacity: 1;
    visibility: visible;
  }

  /* Sfasamento del tempo di avvio tra una e l'altra */
  .img-head {
    animation-delay: 0s;
  }

  .img-cpu {
    animation-delay: 1.25s;
  }

  .img-target {
    animation-delay: 2.5s;
  }

  @keyframes floatVertical {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-12px);
    }
  }

  .reuleaux-animated-line {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-dasharray: 12 12;
    animation: dash-clockwise 19s linear infinite;
    pointer-events: none;
  }

  @keyframes dash-clockwise {
    from {
      stroke-dashoffset: 0;
    }
    to {
      stroke-dashoffset: -480;
    }
  }

  .title {
    font-size: 28px;
    font-weight: 800;
    fill: #000000;
    letter-spacing: 1px;
  }

  .subtitle {
    font-size: 16px;
    font-weight: 600;
    fill: #666666;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .subsvgTop{ 
    font-family: "Space Lexend", sans-serif; 
    font-size: 8px; 
    font-weight: 700; 
    letter-spacing: 0.04em;
    transform: translateY(16px);
    fill: #47dd00;
  }

  .subsvgBottom{ 
    font-family: "Space Lexend", sans-serif; 
    font-size: 8px; 
    font-weight: 700; 
    letter-spacing: 0.04em;
    transform: translateY(16px);
    fill: #47dd00;
  }

  .textTopHero{
    margin: 8px;
  }

  /* ---------- Section headings ---------- */
  .section-head{
    display:flex; align-items:center; justify-content: space-between; gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
  }
  .section-head h2{ font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }

  /* ---------- Work grid ---------- */
  .work{ padding: 40px 0 110px; }
  .work-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .card{
    background: var(--surface);
    border-radius: 100px;
    corner-shape:squircle;--corner-shape:squircle;
    overflow: hidden;
    display:flex; flex-direction:column;
    box-shadow: 0 1px 2px rgba(11,12,14,.05);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  }
  .card:hover{ transform:none; box-shadow:0 3px 10px rgba(11,12,14,.07); }
  .card-cover{
    height: 250px;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  }
  .card--blue{ --c1: var(--blue); --c2: var(--blue-deep); }
  .card--lavender{ --c1: var(--lavender); --c2: var(--lavender-deep); }
  .card--peach{ --c1: var(--peach); --c2: var(--peach-deep); }

  /* PiazzaTi project cover — self-contained brand treatment with public-site fallback icon */
  .card-cover--piazzati{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:34px;
    background:#fff;
    overflow:hidden;
  }
  .card-cover--piazzati::before{
    content:"";
    position:absolute; inset:-25%;
    background:
      radial-gradient(circle at 20% 30%, rgba(188,215,239,.58), transparent 34%),
      radial-gradient(circle at 78% 70%, rgba(210,198,242,.48), transparent 36%),
      radial-gradient(circle at 58% 18%, rgba(169,221,196,.32), transparent 30%);
    filter:blur(12px);
  }
  .piazzati-brand-lockup{
    position:relative; z-index:1;
    width:min(82%, 290px); min-height:138px;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(11,12,14,.08);
    border-radius:38px; corner-shape:squircle;--corner-shape:squircle;
    box-shadow:0 18px 44px -30px rgba(11,12,14,.35);
  }
  .piazzati-brand-lockup img{
    width:34px; height:34px; object-fit:contain; border-radius:8px;
  }
  .piazzati-wordmark{
    font-family:var(--font-display);
    font-size:clamp(2rem,3.8vw,2.8rem);
    font-weight:700; letter-spacing:-.055em; color:#0b0c0e; line-height:1;
  }
  .piazzati-strap{
    font-size:.72rem; font-weight:600; color:var(--muted); letter-spacing:.02em;
  }
  .btncard[aria-disabled="true"]{ opacity:.48; cursor:default; pointer-events:none; }

  .card-body{ padding: 26px 26px 24px; display:flex; flex-direction:column; gap:16px; flex:1; height:100%; }
  .card-body h3{ font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
  .card-body .desc{ font-size: .9375rem; line-height: 1.55; color: var(--muted); }
  .tags{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 2px; }
  .tag{
    font-size: .78rem; font-weight: 500; color: var(--pill-text);
    background: var(--pill-bg); padding: 6px 12px; border-radius: var(--radius-sm);
  }
  .case-link{
    margin-top: auto; padding-top: 6px;
    display:inline-flex; align-items:center; gap:6px;
    font-size: 1.1rem; font-weight: 500;
  }
  .case-link svg{ width:14px; height:14px; transition: transform .3s var(--ease); }
  .case-link:hover svg{ transform: translateX(4px); }

  /* ---------- About ---------- */
  .About{ padding: 0 0 80px; }
  .quote-panel{
    background: linear-gradient(155deg, var(--surface) 0%, var(--surface) 100%);
    border-radius: clamp(40px, 8vw, 100px);
    corner-shape:squircle;--corner-shape:squircle;
    padding: 56px 60px;
    box-shadow: 0 30px 60px -34px rgba(11,12,14,.12);
  }
  .quote-panel p{
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: #000;
    font-weight: 500; line-height: 1.4; letter-spacing: -0.01em;
    max-width: 100%;
  }

  /* ---------- Precision Centered Timeline Styles (Integrated Playbook Section) ---------- */
  .timeline-nav-container {
    position: sticky;
    top: 90px;
    z-index: 100;
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
    pointer-events: none;
  }

  .timeline-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--surface);
    padding: 8px;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px -12px rgba(11,12,14,0.15);
    border: 1px solid var(--line);
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .timeline-nav .nav-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .25s var(--ease);
  }

  .timeline-nav .nav-btn.active {
    background: var(--ink);
    color: var(--surface);
    box-shadow: 0 2px 8px rgba(11,12,14,0.08);
  }

  .timeline-container {
    position: relative;
    padding: 20px 0;
  }

  .timeline-container::before {
    content: "";
    position: absolute;
    left: 50%;
    top: var(--line-top, 0px);
    height: var(--line-height, 100%);
    width: 2px;
    background: var(--line);
    transform: translateX(-43.5%);
  }

  .timeline-active-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--ink);
    border: 3px solid var(--surface);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--ink);
    z-index: 10;
    pointer-events: none;
    will-change: top;
  }

  .step-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    position: relative;
  }

  .content-side {
    width: 44%;
    text-align: left;
  }

  .timeline-container .card {
    background: var(--surface);
    padding: 32px;
    box-shadow: 0 12px 32px -12px rgba(11,12,14,0.1);
    border: 1px solid var(--line);
    opacity: 0.35;
    transform: scale(0.98);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }

  .step-item.active-card .card {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 40px -16px rgba(11,12,14,0.18);
  }

  .timeline-container .card:hover {
    opacity: 0.8;
  }

  .step-item.active-card .card:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }

  .phase-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: var(--line);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    width: fit-content;
  }

  .timeline-container .card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 8px 0;
  }

  .timeline-container .card .subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 16px;
  }

  .timeline-container .card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
  }

  .empty-side {
    width: 44%;
  }

  /* ---------- Path section styles ---------- */
  .path-section { padding: 40px 0 110px; }
  .path-container {
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px -12px rgba(11,12,14,0.1);
    border: 1px solid var(--line);
    max-width: 900px;
    margin: 0 auto;
  }
  
  .timeline-switcher {
    display: inline-flex;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    gap: 4px;
  }
  .switch-btn {
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: transparent;
    transition: all .25s var(--ease);
  }
  .switch-btn.active {
    background: var(--ink);
    color: var(--surface);
    box-shadow: 0 2px 8px rgba(11,12,14,0.08);
  }

  .timeline-wrapper {
    display: grid;
  }
  .timeline-content {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .timeline-content.active-timeline {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .path-track-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 28px;
    margin-top: 32px;
  }
  .path-track-container::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-image: linear-gradient(to bottom, var(--ink) 50%, transparent 50%);
    background-size: 2px 10px;
    animation: timelineDash 1.5s linear infinite;
  }
  @keyframes timelineDash {
    to { background-position: 0 -20px; }
  }
  .path-checkpoint {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    transition: transform .2s var(--ease);
    width: 100%;
  }
  .path-checkpoint::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot-base);
    border: 2px solid var(--surface);
    transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  }
  .path-checkpoint:hover::before,
  .path-checkpoint.active::before {
    background: var(--ink);
    transform: scale(1.35);
  }
  @keyframes pulseCheckpoint {
    0% { box-shadow: 0 0 0 0 rgba(11,12,14,0.35); }
    70% { box-shadow: 0 0 0 8px rgba(11,12,14,0); }
    100% { box-shadow: 0 0 0 0 rgba(11,12,14,0); }
  }
  .path-checkpoint:hover::before {
    animation: pulseCheckpoint 1.2s infinite;
  }
  .path-checkpoint-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }
  .checkpoint-year {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    transition: color .3s var(--ease);
  }
  .path-checkpoint:hover .checkpoint-year,
  .path-checkpoint.active .checkpoint-year {
    color: var(--ink);
  }
  .checkpoint-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
  }
  .path-desc-panel {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  }

  .path-checkpoint:hover .path-desc-panel {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--surface);
  }

  /* ---------- Get In Touch / Recruiter Contact Form ---------- */
  .contact-section{
    padding:40px 0 110px;
    scroll-margin-top:5rem;
  }

  .contact-wrapper-card{
    max-width:980px;
    margin:0 auto;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(11,12,14,.07);
    border-radius:64px;
    corner-shape:squircle;--corner-shape:squircle;
    padding:48px;
    box-shadow:0 26px 70px -36px rgba(11,12,14,.26);
  }

  .contact-head{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);
    gap:36px;
    align-items:end;
    margin-bottom:34px;
  }

  .contact-eyebrow{
    display:inline-flex;
    align-items:center;
    width:max-content;
    padding:7px 11px;
    border-radius:var(--radius-sm);
    background:var(--pill-bg);
    color:var(--pill-text);
    font-size:.72rem;
    font-weight:600;
    letter-spacing:.02em;
    margin-bottom:16px;
  }

  .contact-head h2{
    font-family:var(--font-display);
    font-size:clamp(2rem,4vw,3.4rem);
    line-height:1.02;
    letter-spacing:-.04em;
    margin:0;
    font-weight:600;
  }

  .contact-intro{
    color:var(--muted);
    font-size:.98rem;
    line-height:1.7;
    max-width:600px;
    margin-top:16px;
  }

  .availability-note{
    justify-self:end;
    max-width:310px;
    padding:18px 20px;
    border-radius:26px;
    corner-shape:squircle;--corner-shape:squircle;
    background:#f7f8fa;
    border:1px solid var(--line);
    font-size:.82rem;
    line-height:1.55;
    color:var(--muted);
  }

  .availability-note strong{
    display:block;
    color:var(--ink);
    font-size:.88rem;
    margin-bottom:5px;
    font-weight:600;
  }

  .recruiter-contact-form{
    width:100%;
  }

  .contact-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
  }

  .contact-field{
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .contact-field.full{
    grid-column:1/-1;
  }

  .contact-field label,
  .contact-field-label{
    font-size:.82rem;
    font-weight:600;
    color:var(--ink);
  }

  .contact-optional{
    color:var(--muted);
    font-weight:500;
  }

  .contact-field input,
  .contact-field textarea{
    width:100%;
    border:1px solid var(--line);
    background:#f8f9fb;
    color:var(--ink);
    border-radius:22px;
    padding:15px 17px;
    font:inherit;
    font-size:.95rem;
    outline:none;
    transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
  }

  .contact-field input:focus,
  .contact-field textarea:focus{
    background:#fff;
    border-color:rgba(11,12,14,.26);
    box-shadow:0 0 0 4px rgba(11,12,14,.04);
  }

  .contact-field textarea{
    min-height:150px;
    resize:vertical;
    line-height:1.6;
  }

  .contact-field input::placeholder,
  .contact-field textarea::placeholder{
    color:#9aa1ab;
  }

  .contact-options{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
  }

  .contact-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
  }

  .contact-option label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:var(--radius-sm);
    background:var(--pill-bg);
    color:var(--pill-text);
    cursor:pointer;
    transition:all .22s var(--ease);
    border:1px solid transparent;
  }

  .contact-option input:checked + label{
    background:var(--ink);
    color:#fff;
  }

  .contact-option input:focus-visible + label{
    outline:2px solid var(--ink);
    outline-offset:3px;
  }

  .contact-field-hint{
    font-size:.76rem;
    line-height:1.5;
    color:var(--muted);
    margin-top:-1px;
  }

  .contact-form-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-top:26px;
  }

  .contact-privacy{
    max-width:560px;
    color:var(--muted);
    font-size:.75rem;
    line-height:1.55;
  }

  .contact-submit{
    flex:0 0 auto;
    border:0;
    background:var(--ink);
    color:#fff;
    min-height:48px;
    padding:0 24px;
    border-radius:var(--radius-sm);
    font:inherit;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 1px 2px rgba(11,12,14,.08);
    transition:box-shadow .25s ease;
  }

  .contact-submit:hover{
    box-shadow:0 8px 22px -14px rgba(11,12,14,.55);
  }

  @media(max-width:760px){
    .contact-section{padding:16px 0 40px}
    .contact-wrapper-card{padding:28px 20px;border-radius:36px}
    .contact-head{grid-template-columns:1fr;gap:18px}
    .availability-note{justify-self:stretch;max-width:none}
    .contact-form-grid{grid-template-columns:1fr}
    .contact-field.full{grid-column:auto}
    .contact-form-footer{align-items:stretch;flex-direction:column}
    .contact-submit{width:100%}
  }


  /* Desktop contact card: reduce vertical footprint without clipping form content.
     Mobile layout (<=760px) and form behavior remain unchanged. */
  @media (min-width: 761px) {
    .contact-section {
      padding-top: clamp(12px, 2vh, 26px);
      padding-bottom: clamp(24px, 4vh, 48px);
    }
    .contact-wrapper-card {
      padding: clamp(24px, 3vh, 36px) clamp(28px, 3.5vw, 44px);
    }
    .contact-head {
      margin-bottom: 18px;
      gap: 24px;
    }
    .contact-eyebrow { margin-bottom: 9px; padding-block: 5px; }
    .contact-head h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
    .contact-intro { margin-top: 9px; line-height: 1.4; }
    .availability-note { padding: 11px 15px; line-height: 1.4; }
    .contact-form-grid { gap: 10px 16px; }
    .contact-field { gap: 5px; }
    .contact-field input, .contact-field textarea {
      padding: 10px 14px;
      border-radius: 16px;
    }
    .contact-field textarea { min-height: 78px; }
    .contact-option label { min-height: 34px; padding-inline: 12px; }
    .contact-options { gap: 7px; }
    .contact-field-hint { line-height: 1.3; }
    .contact-form-footer { margin-top: 12px; gap: 16px; }
    .contact-submit { min-height: 42px; }
    #contact-verification { margin-top: 9px !important; }
    #contact-status { margin: 6px 0 !important; }
  }

  /* ---------- Footer ---------- */
  footer{ border-top: 1px solid var(--line); padding: 36px 0 48px; background-color: #fff; }
  .footer-inner{ display:flex; align-items:center; justify-content: space-between; flex-wrap:wrap; gap: 16px; }
  .footer-links{ display:flex; gap: 28px; }
  .footer-links a{ font-size: .9rem; font-weight: 500; color: var(--ink); }
  .footer-links a:hover{ text-decoration: underline; text-underline-offset: 4px; }
  .copyright{ font-size: .85rem; color: var(--muted); margin:0;}
  .footer-credit{ font-size:.85rem; color:var(--muted); margin:0; }

  /* ---------- Toast ---------- */
  #toast-root{
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-43.5%);
    z-index: 200; display:flex; flex-direction:column; align-items:center; gap:8px;
    pointer-events: none;
  }
  .toast{
    background: var(--ink); color:#fff; font-size: .875rem; font-weight:500;
    padding: 12px 20px; border-radius: var(--radius-sm);
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
    opacity:0; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .toast.show{ opacity:1; transform: translateY(0); }

  /* ---------- Responsive ---------- */
  @media (max-width: 980px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-graphic{ max-width: 380px; margin: 0 auto; order:-1; }
    .work-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 880px){
    .nav-links, nav.primary-nav > .btn, nav.primary-nav > .navbtn, nav.primary-nav .header-actions > .navbtn { display:none !important; }
    .nav-toggle{ display:flex; }
    .mobile-menu{ display:flex; }
    .mobile-menu .navbtn {
      display: inline-flex !important;
      margin-top: 12px;
      justify-content: center;
      width: 100%;
    }
  }
  @media (max-width: 768px) {
    html {
      font-size: 85%;
    }
    .timeline-container::before {
      left: 20px;
    }
    .timeline-active-dot {
      left: 20px;
    }
    .step-item {
      flex-direction: column;
      align-items: flex-start;
      padding-left: 45px;
    }
    .content-side, .empty-side {
      width: 100%;
      text-align: left !important;
    }
    .timeline-nav-container {
      padding: 0 16px;
      margin-bottom: 40px;
      width: 100%;
      overflow: hidden;
    }
    .timeline-nav {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      justify-content: flex-start;
      gap: 8px;
      width: 100%;
      max-width: 100%;
      padding: 6px 12px;
      box-sizing: border-box;
    }
    .timeline-nav::-webkit-scrollbar {
      display: none;
    }
    .timeline-nav .nav-btn {
      display: inline-block !important;
      flex-shrink: 0;
      white-space: nowrap;
      padding: 8px 14px;
      font-size: 0.8rem;
    }
    .booking-section {
      padding: 16px 0 40px;
    }
    .booking-wrapper-card {
      padding: 8px;
      width: 100%;
    }
    .month-switcher {
      padding: 3px 8px;
      gap: 6px;
    }
    .month-display {
      font-size: 0.75rem;
      min-width: 95px;
      letter-spacing: 0.3px;
    }
    .today-btn {
      padding: 4px 10px;
      font-size: 11px;
    }
    .unified-booking-panel {
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 16px;
      width: 100%;
      max-width: 340px;
    }
    .calendar-panel, .booking-container {
      width: 100%;
      max-width: 100%;
    }
    .booking-container {
      height: auto;
      min-height: 320px;
      padding: 18px 14px;
      gap: 12px;
      border-radius: 18px;
    }
    .booking-day {
      font-size: 1.25rem;
    }
    .booking-date {
      font-size: 0.95rem;
    }
    .slots-grid {
      max-height: none;
    }
  }


  @media (max-width: 640px){
    html {
      font-size: 80%;
    }
    .wrap{ padding: 0 16px; }
    .hero{ padding: 40px 0 48px; }
    .work{ padding: 12px 0 48px; }
    .work-grid{ grid-template-columns: 1fr; }
    .quote-panel{ padding: 24px 20px; }
    .footer-inner{ flex-direction: column; align-items:flex-start; }
    .path-container { padding: 18px 14px; }
  }


  @media (max-width: 640px) {
  /* Stack name title and switcher vertically to fit narrow screens */
  .path-container > div:first-child {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .path-container .name {
    font-size: 1.125rem;
    padding: 0;
    line-height: 1.3;
  }

  /* Make the switcher full width for easy touch interaction */

  .name {
    text-align: center;
}

  .timeline-switcher {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  /* Equal width buttons with accessible touch-target heights */
  .switch-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.85rem;
    min-height: 40px;
  }
}

  /* text-calendar title aligned to the center */

   @media (max-width: 640px) {
  .title-calendar {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================
   ANIMAZIONE TESTO HERO - IMPORTATO da parole1.1.9.html
   Nessun conflitto rilevato con classi/id/variabili esistenti:
   nessun prefisso aggiuntivo necessario.
   ========================================================== */

.wf-extracted-interactive-container {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  margin-top: -100px; /* Valore modificato per sollevarlo verticalmente ed avvicinarlo alla Hero */
  margin: 160px 0 160px 0;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -124px);
  text-align: center;
  z-index: 10;
  white-space: nowrap;
}

.header-title h2 {
  margin: 0;
  color: #181715;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
}

.hero-role-title{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  line-height:1.05;
}

.hero-role-main{
  display:block;
  font-family:"Noto Sans",sans-serif;
  font-size:clamp(2rem,3.2vw,3.25rem);
  font-weight:600;
  letter-spacing:-0.035em;
}

.hero-role-secondary{
  display:block;
  font-family:"Noto Sans",sans-serif;
  font-size:clamp(1rem,1.45vw,1.35rem);
  font-weight:400;
  letter-spacing:-0.015em;
}

.wf-extracted-left-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.wf-extracted-visualizer-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border: 2px solid #181715;
  border-radius: 30px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.wf-extracted-canvas-wave {
  width: 100px;
  height: 26px;
  display: block;
  transform: rotate(180deg);
}

.wf-extracted-ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 38px;
  background: #181715;
  color: #FFFFFF;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
  padding-left: 60px;
  box-sizing: border-box;
}

.wf-extracted-ribbon-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: wf-marquee-left-to-right 20s linear infinite;
}

.wf-extracted-ribbon-item {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  letter-spacing: 0.2px;
}

.wf-extracted-ribbon-dot {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes wf-marquee-left-to-right {
  0% {
    transform: translateX(-43.5%);
  }
  100% {
    transform: translateX(0%);
  }
}
/* ===== FINE ANIMAZIONE TESTO HERO ===== */

/* ==========================================================
   SCUBA DIVER ANIMATO (hero top) - centro basso schermo
   ========================================================== */

.wf-diver-wrap {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform:translateX(-43.5%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 40;
  opacity: 1;
  transition: bottom 0.4s ease, opacity 0.4s ease, transform 0.6s ease, top 0.4s ease;
  
}

.wf-diver-svg-box {
  position: relative;
  width: 64px;
  height: 80px;
}

.wf-diver-svg {
  width: 100%;
  height: 100%;
  display: block;
  scale: 0.60;
}

.wf-bubble {
  position: absolute;
  top: 10px;
  left: 48px; /* spostato a destra, all'altezza dello snorkel */
  border-radius: 50%;
  background-color: #181715;
  opacity: 0;
  animation: wf-bubble-rise 6s ease-in infinite;
}

.wf-bubble-1 { width: 11px; height: 11px; margin-left: -2px; animation-delay: 0s; }
.wf-bubble-2 { width: 8px;  height: 8px;  margin-left: 3px; animation-delay: 2s; }
.wf-bubble-3 { width: 7px;  height: 7px;  margin-left: 0px; animation-delay: 4s; }
.wf-bubble-4 { width: 6px;  height: 6px;  margin-left: -3px; animation-delay: 4.7s; }

@keyframes wf-bubble-rise {
  0% {
    transform: translate(-40%, 0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  75% {
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -60px) scale(1.05);
    opacity: 0;
  }
}

.wf-dive-text {
  font-family: "M PLUS 1", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000000;
  margin: -20px 0 0;
  animation: wf-dive-text-fade 3.6s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

@keyframes wf-dive-text-fade {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* "Scroll" is visible only in the Hero, as in the original behavior. */
.wf-diver-wrap.is-fixed .wf-dive-text {
  opacity: 0 !important;
  animation: none;
  pointer-events: none;
}

.wf-diver-wrap{
  cursor:pointer;
}
/* Perfect horizontal alignment with the design-process vertical axis */
.wf-diver-wrap{
  left:50%;
  transform:translateX(-43.5%);
}


/* Tooltip narrativa del diver */
.wf-diver-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translate(-50%,8px);
  min-width:220px;
  padding:11px 15px 12px;
  border-radius:22px;
  corner-shape:squircle;--corner-shape:squircle;
  background:#0b0c0e;
  color:#fff;
  box-shadow:0 12px 28px -16px rgba(11,12,14,.42);
  text-align:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
  z-index:3;
}



.wf-diver-tooltip strong{
  display:block;
  font-family:"M PLUS 1",sans-serif;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:1.15px;
  text-transform:uppercase;
  white-space:nowrap;
}

.wf-diver-tooltip span{
  display:block;
  margin-top:4px;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:500;
  line-height:1.3;
  color:rgba(255,255,255,.72);
  white-space:nowrap;
}

/* Nella Hero compare soltanto il messaggio di immersione */
.wf-diver-wrap:not(.is-fixed) .wf-diver-svg-box:hover ~ .wf-diver-tooltip--hero,
.wf-diver-wrap:not(.is-fixed):focus-visible .wf-diver-tooltip--hero{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}

/* Stato attivo allo scroll: SVG resta fisso e discreto */
.wf-diver-wrap.is-fixed{
  position:fixed;
  bottom:24px;
  left:50%;
  opacity:.2;
  transform:translateX(-43.5%);
}

.wf-diver-wrap.is-fixed:hover,
.wf-diver-wrap.is-fixed:focus-visible{
  opacity:1;
}

/* Quando raggiunge il footer si posa nella pagina */
.wf-diver-wrap.is-fixed.is-settled{
  position:absolute;
  bottom:auto;
  left:50%;
  opacity:1;
  transform:translateX(-43.5%);
}

/* Al footer compare soltanto il messaggio di ritorno */
.wf-diver-wrap.is-settled .wf-diver-svg-box:hover ~ .wf-diver-tooltip--footer,
.wf-diver-wrap.is-settled:focus-visible .wf-diver-tooltip--footer{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}

@media(max-width:640px){
  .wf-diver-tooltip{
    min-width:190px;
    padding:10px 12px;
  }
  .wf-diver-tooltip strong{font-size:10px}
  .wf-diver-tooltip span{font-size:10px}
}
/* ===== FINE SCUBA DIVER ANIMATO ===== */

/* ===== Requested refinements: Path + language switcher ===== */
.path-heading-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:16px;
}
.path-heading-row .timeline-switcher{
  height:53px;
  align-items:center;
  flex:0 0 auto;
}
.path-heading-row .switch-btn{
  height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* ===== Shared EN / IT header control ===== */
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}
.language-switcher{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:92px;
  height:44px;
  padding:4px;
  gap:4px;
  margin:0;
  box-sizing:border-box;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  flex:0 0 92px;
  vertical-align:middle;
}
.language-switcher .lang-btn{
  width:40px;
  height:34px;
  min-width:40px;
  padding:0;
  margin:0;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  border-radius:var(--radius-sm);
  color:var(--muted);
  background:transparent;
  font-family:var(--font-body);
  font-size:.78rem;
  font-weight:600;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  transition:all .25s var(--ease);
  appearance:none;
  -webkit-appearance:none;
}
.language-switcher .lang-btn.active{
  background:var(--ink);
  color:var(--surface);
  box-shadow:0 2px 8px rgba(11,12,14,.08);
}
@media(max-width:880px){
  nav.primary-nav{margin-left:auto;margin-right:10px;}
  nav.primary-nav .header-actions{display:flex!important;}
  nav.primary-nav .language-switcher{display:inline-flex!important;}
}
@media(max-width:640px){
  .path-heading-row{flex-direction:column;align-items:stretch;}
  .path-heading-row .timeline-switcher{width:100%;height:53px;}
}


/* Footer mobile: area superiore riservata al diver animato. */
@media (max-width: 760px) {
  footer:not(.case-footer) { padding-top: 148px; padding-bottom: 54px; }
  footer:not(.case-footer) .footer-inner { row-gap: 12px; }
}
/* Mobile footer: copyright and credit centered; desktop unchanged. */
@media (max-width: 760px) {
  footer:not(.case-footer) .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  footer:not(.case-footer) .footer-inner .copyright,
  footer:not(.case-footer) .footer-inner .footer-credit {
    width: 100%;
    text-align: center;
  }
}

  /* The animated statement is part of the About section, ahead of Projects. */
  .philosophy > #hero-intro { padding: 56px 0 80px; }
  @media (max-width:640px) { .philosophy > #hero-intro { padding: 32px 0 48px; } }

/* About introduction: mobile order is heading, diagram, body copy, CTA.
   Desktop retains its original two-column grid. */
@media (max-width: 768px) {
  .philosophy #hero-intro .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .philosophy #hero-intro .hero-copy {
    display: contents;
  }
  .philosophy #hero-intro .hero-copy > h1 { order: 1; }
  .philosophy #hero-intro .hero-graphic {
    order: 2;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .philosophy #hero-intro .hero-copy > .lede { order: 3; }
  .philosophy #hero-intro .hero-copy > .btn { order: 4; align-self: flex-start; }
}

/* About Me: reduce typography only on desktop; mobile is unchanged. */
@media (min-width: 769px) {
  .philosophy .quote-panel p { font-size:clamp(1.15rem,1.45vw,1.4rem); line-height:1.52; }
  .philosophy #hero-intro .hero-copy > h1 { font-size:clamp(2rem,2.7vw,2.4rem); line-height:1.12; }
  .philosophy #hero-intro .hero-copy > .lede { font-size:1.125rem; line-height:1.65; }
}


/* Contact card refinement — compact desktop and landscape tablets.
   Mobile <=760px keeps existing field sizes for touch usability. */
@media (min-width: 761px) {
  .contact-section { padding-top: clamp(8px, 1.3vh, 16px); padding-bottom: clamp(18px, 2.5vh, 32px); }
  .contact-wrapper-card { padding: clamp(16px, 2.2vh, 28px) clamp(24px, 3vw, 40px); }
  .contact-head { margin-bottom: 10px; gap: 16px; }
  .contact-intro { margin-top: 6px; line-height: 1.35; }
  .availability-note { padding: 9px 13px; line-height: 1.35; }
  .contact-form-grid { gap: 7px 14px; }
  .contact-field { gap: 4px; }
  .contact-field input, .contact-field textarea { padding-top: 8px; padding-bottom: 8px; }
  .contact-field textarea { min-height: 64px; }
  .contact-options { gap: 4px; }
  .contact-option label { min-height: 34px; }
  .contact-form-footer { gap: 8px; margin-top: 8px; }
}
@media (min-width: 761px) and (max-height: 850px) {
  .contact-wrapper-card { padding-top: 16px; padding-bottom: 16px; }
  .contact-head { margin-bottom: 8px; }
  .contact-field textarea { min-height: 64px; }
}


/* Hero: percorso del testo allineato al centro della pillola su tablet e mobile.
   L'estremità destra dello SVG coincide con il centro del visualizzatore;
   la larghezza minima evita di comprimere la curva sugli schermi stretti. */
@media (max-width: 1024px) {
  .wf-extracted-interactive-container .wf-extracted-left-svg {
    left: auto;
    right: 50%;
    top: 50%;
    width: max(50%, 440px);
    height: 220px;
    transform: translateY(-50%);
  }
}

/* Desktop: compact opportunity description while preserving manual vertical resizing. */
@media (min-width: 761px) {
  .recruiter-contact-form #contact-message {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
    resize: vertical;
  }
}


/* Parliamone — desktop/tablet landscape: balanced compact layout.
   Preserve text sizes, form fields, Turnstile and mobile <=760px. */
@media (min-width: 761px) {
  .contact-wrapper-card {
    padding-block: clamp(16px, 2.1vh, 24px);
  }
  .contact-head { margin-bottom: 9px; gap: 14px; }
  .contact-intro { margin-top: 5px; }
  .availability-note { padding: 8px 12px; }
  .contact-form-grid { row-gap: 7px; }
  .contact-field { gap: 4px; }
  .contact-options { gap: 5px; }
  .contact-form-footer { margin-top: 7px; }
  .recruiter-contact-form #contact-message {
    height: 72px;
    min-height: 72px;
    padding: 10px 14px;
    line-height: 1.45;
    resize: vertical;
  }
}
@media (min-width: 761px) and (max-height: 850px) {
  .contact-section { padding-top: 8px; padding-bottom: 16px; }
  .contact-wrapper-card { padding-top: 16px; padding-bottom: 16px; }
  .contact-head { margin-bottom: 7px; }
  .contact-form-grid { row-gap: 6px; }
  .contact-form-footer { margin-top: 6px; }
}
