:root {
    --blu:    #596dff;
    --navy:   #2a2c4f;
    --lilla:  #9aa5ff;
    --rosa:   #ffb9d0;
    --cream:  #fdf8f5;
    --warm:   #f5f0eb;
    --text:   #2a2c4f;
    --muted:  #7a7d9c;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Prompt', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 3rem;
    background: rgba(253,248,245,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(89,109,255,.1);
    transition: box-shadow .3s;
  }
  nav.scrolled { box-shadow: 0 2px 24px rgba(42,44,79,.08); }
  .nav-logo {
    font-family: 'Black Han Sans', sans-serif;

    color: var(--navy); letter-spacing: .04em;
    text-decoration: none;
  }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    text-decoration: none; color: var(--muted);
    font-size: .85rem; font-weight: 500; letter-spacing: .06em;
    text-transform: uppercase; transition: color .2s;
  }
  .nav-links a:hover { color: var(--blu); }
  .nav-cta {
    background: var(--blu); color: #fff;
    border: none; border-radius: 40px;
    padding: .55rem 1.4rem;
    font-family: 'Prompt', sans-serif;
    font-size: .85rem; font-weight: 500;
    cursor: pointer; transition: background .2s, transform .15s;
    text-decoration: none;
  }
  .nav-cta:hover { background: var(--navy); transform: translateY(-1px); }

  .accent { color: var(--blu); }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 7rem 3rem 4rem;
    gap: 4rem;
    max-width: 1200px; margin: 0 auto;
  }
  .hero-text { animation: fadeUp .9s ease both; }
  .hero-badge {
    display: inline-block;
    background: var(--rosa); color: var(--navy);
    font-size: .78rem; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 20px;
    margin-bottom: 1.5rem;
  }
  .hero-text h1 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4rem);

    color: var(--navy); margin-bottom: 1rem;
  }
  .hero-text p {
    font-size: 1rem; line-height: 1.75;
    color: var(--muted); max-width: 480px; margin-bottom: 2rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    background: var(--blu); color: #fff;
    border: none; border-radius: 40px;
    padding: .8rem 2rem; font-size: .95rem; font-weight: 500;
    cursor: pointer; transition: all .2s; text-decoration: none;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(89,109,255,.3); }
  .btn-outline {
    background: transparent; color: var(--navy);
    border: 1.5px solid var(--navy); border-radius: 40px;
    padding: .8rem 2rem; font-size: .95rem; font-weight: 500;
    cursor: pointer; transition: all .2s; text-decoration: none;
    display: inline-block;
  }
  .btn-outline:hover { background: var(--navy); color: #fff; }

  /* HERO VISUAL */
  .hero-visual {
    display: flex; justify-content: center; align-items: center;
    animation: fadeUp .9s .2s ease both;
  }
  .hero-illustration {
    position: relative;
    width: 100%; max-width: 520px;
    filter: drop-shadow(0 24px 48px rgba(89,109,255,.22));
    border-radius: 20px;
    overflow: hidden;
  }
  .hero-illustration svg {
    width: 100%; height: auto;
    display: block;
    border-radius: 20px;
  }
  /* floating badge sovrapposto */
  .hero-badge-float {
    position: absolute;
    bottom: 18px; left: 18px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: .7rem 1.1rem;
    display: flex; align-items: center; gap: .7rem;
    box-shadow: 0 8px 24px rgba(42,44,79,.15);
  }
  .hero-badge-float .hbf-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #4ade80; flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  }
  .hero-badge-float span {
    font-size: .78rem; font-weight: 500; color: var(--navy);
  }
  .hero-stars-float {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: .55rem .9rem;
    box-shadow: 0 8px 24px rgba(42,44,79,.15);
    font-size: .82rem; font-weight: 600; color: var(--navy);
  }
  .hero-stars-float .s { color: #596dff; }

  /* ── QUOTE STRIP ── */
  .quote-strip {
    background: var(--navy); color: #fff;
    padding: 3rem 3rem;
    text-align: center;
  }
  .quote-strip blockquote {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);

    max-width: 760px; margin: 0 auto;
    line-height: 1.6;
  }
  .quote-strip cite {
    display: block; margin-top: .8rem;
    font-style: normal; font-size: .8rem;
    opacity: .6; letter-spacing: .08em; text-transform: uppercase;
  }

  /* ── SECTIONS ── */
  section { padding: 5rem 3rem; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-label {
    font-size: .78rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--blu); margin-bottom: .8rem;
  }
  .section-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);

    line-height: 1.2; margin-bottom: 1.5rem;
  }

  /* ── CHI SONO ── */
  #chi-sono { background: var(--warm); }
  .chi-sono-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem; align-items: start;
  }
  .chi-sono-left p {
    font-size: .95rem; line-height: 1.85; color: var(--muted);
    margin-bottom: 1.2rem;
  }
  .chi-sono-left p strong { color: var(--navy); font-weight: 500; }
  .credential-list { list-style: none; margin-top: 2rem; }
  .credential-list li {
    display: flex; align-items: flex-start; gap: .8rem;
    font-size: .88rem; color: var(--navy);
    margin-bottom: .85rem; line-height: 1.5;
  }
  .credential-list li::before {
    content: '';
    flex-shrink: 0;
    margin-top: .35rem;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blu);
  }
  .highlight-box {
    background: white; border-radius: 20px;
    padding: 2rem; border-left: 4px solid var(--blu);
    margin-top: 1rem;
  }
  .highlight-box h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.3rem; color: var(--navy); margin-bottom: .8rem;
  }
  .highlight-box p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

  /* ── SERVIZI ── */
  #servizi { background: var(--cream); }
  .servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2.5rem;
  }
  .servizio-card {
    background: white; border-radius: 20px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(89,109,255,.12);
    transition: transform .25s, box-shadow .25s;
  }
  .servizio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(89,109,255,.14); }
  .servizio-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem; font-size: 1.4rem;
  }
  .icon-blu  { background: rgba(89,109,255,.12); }
  .icon-rosa { background: rgba(255,185,208,.25); }
  .icon-lilla{ background: rgba(154,165,255,.18); }
  .icon-navy { background: rgba(42,44,79,.1); }
  .servizio-card h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.2rem; color: var(--navy);
    margin-bottom: .6rem;
  }
  .servizio-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

  /* ── RECENSIONI ── */
  #approccio .section-title { color: #fff; }
  #approccio .section-label { color: var(--lilla); }
  .approccio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; margin-top: 2.5rem;
  }
  .metodo-card {
    background: rgba(255,255,255,.07); border-radius: 16px;
    padding: 1.8rem; border: 1px solid rgba(255,255,255,.1);
    transition: background .2s;
  }
  .metodo-card:hover { background: rgba(255,255,255,.12); }
  .metodo-card h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.2rem; color: var(--rosa);
    margin-bottom: .6rem;
  }
  .metodo-card p { font-size: .87rem; color: rgba(255,255,255,.7); line-height: 1.7; }

  /* ── TIMELINE ── */
  .timeline { position: relative; padding-left: 1.6rem; }
  .timeline::before {
    content: '';
    position: absolute; left: 6px; top: 4px; bottom: 4px;
    width: 2px; background: linear-gradient(to bottom, var(--blu), var(--lilla), var(--rosa));
    border-radius: 2px;
  }
  .tl-item {
    position: relative; margin-bottom: 1.6rem;
    display: flex; gap: 1rem; align-items: flex-start;
  }
  .tl-dot {
    position: absolute; left: -1.6rem; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--blu); border: 2px solid white;
    box-shadow: 0 0 0 2px var(--blu); flex-shrink: 0;
  }
  .tl-dot-rosa { background: var(--rosa); box-shadow: 0 0 0 2px var(--rosa); }
  .tl-dot-lilla { background: var(--lilla); box-shadow: 0 0 0 2px var(--lilla); }
  .tl-content { flex: 1; }
  .tl-year {
    display: inline-block; font-size: .72rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--blu); margin-bottom: .2rem;
  }
  .tl-content strong { display: block; color: var(--navy); font-size: .92rem; margin-bottom: .2rem; }
  .tl-content p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0; }

  /* ── TAG CLOUD SERVIZI ── */
  .tag-cloud {
    display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem;
  }
  .stag {
    background: white; color: var(--navy);
    border: 1.5px solid rgba(89,109,255,.18);
    border-radius: 30px; padding: .45rem 1rem;
    font-size: .82rem; font-weight: 500;
    transition: all .2s; cursor: default;
  }
  .stag:hover { background: var(--lilla); color: #fff; border-color: var(--lilla); }
  .stag-cta {
    background: var(--blu); color: #fff;
    border-color: var(--blu); cursor: pointer;
  }
  .stag-cta:hover { background: var(--navy); border-color: var(--navy); }

  /* ── ORARI ── */
  .orari-box {
    background: white; border-radius: 20px;
    padding: 2rem; border: 1px solid rgba(89,109,255,.12);
  }
  .orari-table { width: 100%; overflow-x: auto; }
  .orari-row {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: .4rem; margin-bottom: .4rem;
  }
  .orari-head span {
    text-align: center; font-size: .78rem; font-weight: 600;
    color: var(--navy); letter-spacing: .06em; text-transform: uppercase;
    padding: .4rem 0;
  }
  .orario-cell {
    background: rgba(89,109,255,.07); border-radius: 8px;
    text-align: center; font-size: .75rem; color: var(--navy);
    padding: .5rem .3rem; line-height: 1.4;
  }
  .orario-cell.full {
    background: rgba(89,109,255,.15); font-weight: 600; color: var(--blu);
  }
  .orario-cell.closed {
    background: rgba(42,44,79,.05); color: var(--muted); font-style: italic;
  }

  /* ── APPROCCIO ── */
  #approccio { background: var(--navy); color: #fff; }
  #approccio .section-title { color: #fff; }
  #approccio .section-label { color: var(--lilla); }
  .approccio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; margin-top: 2.5rem;
  }
  .metodo-card {
    background: rgba(255,255,255,.07); border-radius: 16px;
    padding: 1.8rem; border: 1px solid rgba(255,255,255,.1);
    transition: background .2s;
  }
  .metodo-card:hover { background: rgba(255,255,255,.12); }
  .metodo-card h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.2rem; color: var(--rosa);
    margin-bottom: .6rem;
  }
  .metodo-card p { font-size: .87rem; color: rgba(255,255,255,.7); line-height: 1.7; }

  /* ── RECENSIONI ── */
  #recensioni { background: var(--warm); overflow: hidden; }
  /* ── CAROSELLO RECENSIONI ── */
  .rec-wrapper { position: relative; }
  .rec-track {
    display: flex; gap: 1.5rem;
    margin-top: 2.5rem;
    overflow-x: auto; padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .rec-track::-webkit-scrollbar { display: none; }
  .rec-card {
    flex-shrink: 0; width: 320px;
    background: white; border-radius: 20px;
    padding: 1.8rem; scroll-snap-align: start;
    border: 1px solid rgba(89,109,255,.1);
  }
  .rec-card .stars { color: var(--blu); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1rem; }
  .rec-card blockquote {
    font-size: .9rem; line-height: 1.7; color: var(--muted);
    font-style: italic; margin-bottom: 1rem;
  }
  .rec-card cite { font-style: normal; font-size: .8rem; font-weight: 500; color: var(--navy); }
  .rec-card .rec-date { font-size: .75rem; color: var(--muted); margin-top: .2rem; }

  /* Frecce desktop */
  .rec-arrow {
    display: none;
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: white; border: 1.5px solid rgba(89,109,255,.2);
    box-shadow: 0 4px 16px rgba(42,44,79,.1);
    cursor: pointer; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, transform .15s;
    z-index: 10;
  }
  .rec-arrow:hover { background: var(--blu); border-color: var(--blu); transform: translateY(-50%) scale(1.08); }
  .rec-arrow:hover svg { stroke: #fff; }
  .rec-arrow svg { stroke: var(--navy); fill: none; width: 18px; height: 18px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .rec-arrow-prev { left: -22px; }
  .rec-arrow-next { right: -22px; }
  .rec-arrow.hidden { opacity: 0; pointer-events: none; }

  @media (min-width: 901px) {
    .rec-arrow { display: flex; }
    .rec-wrapper { padding: 0 .5rem; }
  }

  /* ── CONTATTI ── */
  #contatti { background: var(--cream); }
  .contatti-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
  }
  .contact-info h2 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2rem; color: var(--navy); margin-bottom: 1.5rem;
  }
  .contact-item {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.4rem;
  }
  .contact-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(89,109,255,.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem;
  }
  .contact-detail { font-size: .9rem; }
  .contact-detail strong { display: block; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
  .contact-detail a { color: var(--blu); text-decoration: none; }
  .contact-detail a:hover { text-decoration: underline; }
  .contact-detail span { color: var(--muted); }

  .contact-form {
    background: white; border-radius: 24px;
    padding: 2.5rem; border: 1px solid rgba(89,109,255,.12);
  }
  .contact-form h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem;
  }
  .form-group { margin-bottom: 1.2rem; }
  .form-group label { display: block; font-size: .8rem; font-weight: 500; color: var(--navy); margin-bottom: .4rem; letter-spacing: .04em; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid rgba(89,109,255,.2);
    border-radius: 10px; font-size: .9rem;
    font-family: 'Prompt', sans-serif;
    color: var(--navy); background: var(--cream);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none; appearance: none;
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--blu);
    box-shadow: 0 0 0 3px rgba(89,109,255,.12);
  }
  .form-group textarea { height: 120px; resize: vertical; }
  .form-note { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

  /* ── FOOTER ── */
  footer {
    background: var(--navy); color: rgba(255,255,255,.7);
    padding: 3rem; text-align: center; font-size: .85rem;
    line-height: 1.8;
  }
  footer a { color: var(--lilla); text-decoration: none; }
  footer strong { color: #fff; }

  /* ── ANIMAZIONI ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .reveal { transition: opacity .7s ease, transform .7s ease; }
  .reveal.animated { opacity: 0; transform: translateY(20px); }
  .reveal.animated.visible { opacity: 1; transform: none; }

  /* striscia teste mobile — nascosta su desktop */
  .hero-mobile-strip { display: none; }

  /* ── BOTTOM NAV ── */
  .bottom-nav { display: none; }

  @media (max-width: 900px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); max-width: 100vw; }
    nav { padding: .9rem 1.2rem; max-width: 100vw; }
    .nav-logo { font-size: 1rem; }
    .nav-links { display: none; }
    .nav-cta { display: none; }

    #hero { grid-template-columns: 1fr; padding: 5.5rem 1.2rem 2.5rem; gap: 1.5rem; min-height: auto; width: 100%; overflow: hidden; }
    .hero-text h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.15; }
    .hero-text p { font-size: .92rem; max-width: 100%; }
    .hero-visual { display: none; }
    .hero-mobile-strip { display: block; margin: .8rem 0; width: 100%; border-radius: 12px; overflow: hidden; }
    .hero-actions { flex-direction: column; gap: .75rem; }
    .hero-actions a { text-align: center; width: 100%; box-sizing: border-box; }

    .quote-strip { padding: 2rem 1.2rem; }
    section { padding: 2.8rem 1.2rem; }
    .chi-sono-grid, .contatti-grid { grid-template-columns: 1fr; gap: 2rem; }
    .servizi-grid { grid-template-columns: 1fr; gap: 1rem; }
    .approccio-grid { grid-template-columns: 1fr; gap: 1rem; }
    .rec-card { width: 280px; }
    .tag-cloud { gap: .45rem; }
    .stag { font-size: .78rem; padding: .38rem .8rem; }
    .orari-table { overflow-x: auto; }
    .orari-row { grid-template-columns: repeat(7,1fr); gap: .2rem; min-width: 340px; }
    .orario-cell { font-size: .62rem; padding: .4rem .1rem; }
    .orari-head span { font-size: .62rem; }
    .foto-chiara-wrap { position: static; max-width: 220px; margin: 0 auto 1.5rem; }
    .contact-form { padding: 1.5rem; }
    .timeline { padding-left: 1.2rem; }

    .bottom-nav {
      display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
      background: rgba(253,248,245,.97);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border-top: 1px solid rgba(89,109,255,.12);
      padding: 0 .25rem env(safe-area-inset-bottom);
      box-shadow: 0 -4px 24px rgba(42,44,79,.08);
      height: calc(64px + env(safe-area-inset-bottom));
      align-items: stretch;
    }
    .bn-item {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 3px; text-decoration: none; color: var(--muted);
      font-size: .58rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
      padding: .5rem .2rem; border-radius: 12px; margin: .3rem .1rem;
      transition: color .2s, background .2s;
      -webkit-tap-highlight-color: transparent;
    }
    .bn-item svg {
      width: 22px; height: 22px; stroke: currentColor; fill: none;
      stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
      transition: stroke .2s, transform .15s;
    }
    .bn-item.active { color: var(--blu); background: rgba(89,109,255,.1); }
    .bn-item.active svg { stroke: var(--blu); transform: translateY(-1px) scale(1.1); }
    .bn-cta {
      flex: 1; color: #fff !important; background: var(--blu);
      border-radius: 14px; font-weight: 600; font-size: .6rem;
    }
    .bn-cta svg { stroke: #fff !important; }
    .bn-cta:active { background: var(--navy) !important; }
    .bn-cta.active { background: var(--blu) !important; color: #fff !important; }
  }

  @media (max-width: 480px) {
    .hero-text h1 { font-size: clamp(1.7rem, 9vw, 2.2rem); }
    .nav-logo { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 60px); }
  }
