/* ============================================================
   PET GUARDIAN PLAN — Sito web
   Foglio di stile condiviso
   ============================================================ */

@font-face {
  font-family: 'Garamond';
  src: url('GARA.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* Brand */
  --ambra:        #C17F4A;
  --ambra-600:    #A86D35;
  --ambra-dark:   #8B5A2B;
  --ambra-300:    #E8B88A;
  --ambra-100:    #F5E4CC;
  --ambra-50:     #FBF4EB;
  --salvia:       #5B7E6A;
  --salvia-700:   #3D6150;
  --salvia-800:   #2E5140;
  --salvia-100:   #E0EDEA;
  --salvia-50:    #F2F8F5;
  --pesca:        #E8A87C;

  /* Neutrals (warm) */
  --n-900: #1A100C;
  --n-800: #2C2420;
  --n-700: #46382F;
  --n-600: #6B5B52;
  --n-500: #8C7B71;
  --n-400: #A09088;
  --n-300: #C4B8B0;
  --n-200: #D5C9C3;
  --n-100: #EDE6E0;
  --n-50:  #F5F0E8;
  --bg:    #FDFAF5;

  --font-display: 'Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --shadow-sm:  0 1px 3px rgba(44,36,32,0.08);
  --shadow-md:  0 4px 12px rgba(44,36,32,0.10);
  --shadow-lg:  0 8px 24px rgba(44,36,32,0.12);
  --shadow-xl:  0 16px 48px rgba(44,36,32,0.14);

  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--n-800);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--salvia);
}
.display {
  font-family: var(--font-display); font-weight: 400;
  line-height: 1.08; letter-spacing: -0.015em; color: var(--n-800);
}
.display em { font-style: italic; color: var(--ambra); }
.lead { font-size: 19px; line-height: 1.7; color: var(--n-600); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,250,245,0.82);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--n-200);
  box-shadow: 0 1px 0 rgba(44,36,32,0.03), 0 14px 32px -26px rgba(44,36,32,0.35);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  height: 92px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: 20px; flex-shrink: 0; }
.nav-logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.nav-logo-img { height: 52px; width: auto; flex-shrink: 0; }
@media (max-width: 560px) { .nav-logo-img { height: 40px; } }
.nav-brand {
  font-family: var(--font-display); font-size: 22px; color: var(--n-800);
  letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a.nav-cta-mobile { display: none !important; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.005em; color: var(--n-800); text-decoration: none;
  white-space: nowrap;
  transition: color 200ms; position: relative;
}
.nav-links a:hover { color: var(--ambra); }
.nav-links a.active { color: var(--ambra); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-size: 14px; color: var(--n-600); text-decoration: none; display: flex; align-items: center; gap: 7px;
  white-space: nowrap; flex-shrink: 0; padding: 8px 12px 8px 16px; border-left: 1px solid var(--n-200);
  border-radius: 0 999px 999px 0; transition: color 200ms ease, background 200ms ease;
}
.nav-phone:hover { color: var(--ambra-dark); background: var(--ambra-50); }
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--salvia); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--n-800); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  padding: 13px 24px; border-radius: 8px; transition: all 200ms ease-out;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary { background: var(--ambra); color: #fff; }
.btn-primary:hover { background: var(--ambra-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: scale(0.985); }
.btn-outline { background: transparent; color: var(--n-700); border: 1.5px solid var(--n-200); }
.btn-outline:hover { border-color: var(--ambra); color: var(--ambra); }
.btn-ghost { background: transparent; color: var(--n-600); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--ambra); }
.btn-white { background: #fff; color: var(--ambra-dark); }
.btn-white:hover { background: var(--ambra-50); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 104px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1.12; letter-spacing: -0.015em; color: var(--n-800); margin-bottom: 18px; }
.section-title em { font-style: italic; color: var(--ambra); }
.section-lead { font-size: 18px; line-height: 1.7; color: var(--n-600); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-alt { background: var(--n-50); }
.bg-sage { background: var(--salvia-50); }
.bg-amber { background: var(--ambra-50); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--n-200); border-radius: 16px;
  padding: 30px; box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 50px; height: 50px; border-radius: 13px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-icon.amber { background: var(--ambra-50); color: var(--ambra); }
.feature-icon.sage  { background: var(--salvia-50); color: var(--salvia); }
.feature-title { font-size: 18px; font-weight: 600; color: var(--n-800); margin-bottom: 9px; }
.feature-desc { font-size: 15px; line-height: 1.65; color: var(--n-600); }

/* ---------- Pill / badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 13px; border-radius: 999px;
}
.pill-sage { background: var(--salvia-100); color: var(--salvia-700); border: 1px solid #A8C4B4; }
.pill-amber { background: var(--ambra-100); color: var(--ambra-dark); border: 1px solid var(--ambra-300); }

/* ---------- Image frames ---------- */
.imgframe { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.imgframe img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--ambra); padding: 92px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band .mark-wm { position: absolute; right: -40px; bottom: -60px; width: 320px; opacity: 0.10; pointer-events: none; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: 50px; line-height: 1.1; color: #fff; margin-bottom: 18px; }
.cta-band p { font-size: 19px; color: rgba(255,255,255,0.86); margin-bottom: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--n-900); color: var(--n-300); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand-row img { height: 40px; width: auto; }
.footer-blurb { font-size: 14px; line-height: 1.7; color: var(--n-400); max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ambra-300); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--n-300); text-decoration: none; margin-bottom: 12px; transition: color 200ms; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--n-500); }
.footer-bottom .fb-links { display: flex; gap: 22px; }
.footer-bottom .fb-links a { font-size: 13px; color: var(--n-500); text-decoration: none; }
.footer-bottom .fb-links a:hover { color: var(--n-300); }
.footer-bottom .fb-links { align-items: center; }
.fb-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--n-400); transition: color 200ms ease, transform 200ms ease; }
.fb-icon svg { width: 18px; height: 18px; }
.fb-icon:hover { color: var(--ambra-300); transform: translateY(-2px); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .section-title { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .nav-logo { margin-right: auto; }
  .nav-right { order: 2; }
  .nav-toggle {
    order: 3; margin-left: 8px; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; transition: background 160ms ease;
  }
  .nav-toggle:active { background: var(--n-100); }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 100%); overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--bg); border-bottom: 1px solid var(--n-200);
    padding: 8px 0; box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { padding: 16px 32px; width: 100%; font-size: 16px; min-height: 44px; display: flex; align-items: center; box-sizing: border-box; }
  .nav-links.open a.nav-cta-mobile {
    display: flex !important; margin: 8px 20px 4px; width: auto; padding: 14px 20px;
    background: var(--ambra); color: #fff; border-radius: 10px; font-weight: 700;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 16px; }
  .nav-toggle { flex-shrink: 0; }
  .nav-right { gap: 6px; }
  .nav-right .pgp-lang { flex-shrink: 0; }
  .nav-right .pgp-lang-cur { display: none; }
  .nav-right .pgp-lang-btn { padding: 8px; }
  .nav-right .btn-primary {
    padding: 9px 12px; font-size: 12.5px; gap: 0; white-space: nowrap;
  }
  .nav-right .btn-primary svg { display: none; }
  section { padding: 72px 0; }
  .cta-band h2 { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-right .btn-primary { display: none; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.pgp-cookie {
  position: fixed; left: 24px; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1200;
  max-width: 760px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--n-200);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 360ms ease-out, transform 360ms ease-out;
}
.pgp-cookie.in { opacity: 1; transform: none; }
.pgp-cookie::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--ambra);
}
.pgp-cookie-head { display: flex; align-items: center; gap: 12px; }
.pgp-cookie-head img { width: 32px; height: 32px; flex-shrink: 0; }
.pgp-cookie-head h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 22px;
  color: var(--n-800); line-height: 1;
}
.pgp-cookie-body p { font-size: 14.5px; line-height: 1.65; color: var(--n-600); margin: 0; }
.pgp-cookie-body a { color: var(--ambra-600); text-decoration: underline; text-underline-offset: 2px; }
.pgp-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pgp-cookie-actions .spacer { flex: 1 1 auto; }
.pgp-ck-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  border-radius: 8px; padding: 11px 20px; cursor: pointer; border: none;
  transition: all 180ms ease-out; white-space: nowrap;
}
.pgp-ck-btn.solid { background: var(--ambra); color: #fff; }
.pgp-ck-btn.solid:hover { background: var(--ambra-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pgp-ck-btn.outline { background: transparent; color: var(--n-700); border: 1.5px solid var(--n-200); }
.pgp-ck-btn.outline:hover { border-color: var(--salvia); color: var(--salvia-700); }
.pgp-ck-btn.text { background: transparent; color: var(--n-600); padding: 11px 12px; }
.pgp-ck-btn.text:hover { color: var(--ambra); }

/* Preferences modal */
.pgp-ck-overlay {
  position: fixed; inset: 0; z-index: 1300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(26,16,12,0.42); opacity: 0; transition: opacity 240ms ease-out;
}
.pgp-ck-overlay.show { display: flex; }
.pgp-ck-overlay.in { opacity: 1; }
.pgp-ck-modal {
  background: var(--bg); border-radius: 20px; box-shadow: var(--shadow-xl);
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  transform: translateY(14px) scale(0.98); transition: transform 240ms ease-out;
}
.pgp-ck-overlay.in .pgp-ck-modal { transform: none; }
.pgp-ck-modal-head { padding: 28px 30px 18px; border-bottom: 1px solid var(--n-100); }
.pgp-ck-modal-head .eyebrow { display: block; margin-bottom: 12px; color: var(--salvia-700); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pgp-ck-modal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--n-800); line-height: 1.1; }
.pgp-ck-modal-head em { font-style: italic; color: var(--ambra); }
.pgp-ck-list { padding: 8px 30px 4px; }
.pgp-ck-cat { padding: 20px 0; border-bottom: 1px solid var(--n-100); }
.pgp-ck-cat:last-child { border-bottom: none; }
.pgp-ck-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.pgp-ck-cat-top h4 { font-size: 15.5px; font-weight: 600; color: var(--n-800); }
.pgp-ck-cat p { font-size: 13.5px; line-height: 1.6; color: var(--n-600); margin: 0; }
.pgp-ck-tag { font-size: 12px; font-weight: 600; color: var(--salvia-700); background: var(--salvia-50); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
/* toggle */
.pgp-sw { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.pgp-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pgp-sw .track { position: absolute; inset: 0; background: var(--n-200); border-radius: 999px; transition: background 180ms ease-out; }
.pgp-sw .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 180ms ease-out; }
.pgp-sw input:checked ~ .track { background: var(--salvia); }
.pgp-sw input:checked ~ .thumb { transform: translateX(20px); }
.pgp-sw input:disabled { cursor: not-allowed; }
.pgp-sw input:disabled ~ .track { background: var(--salvia-700); opacity: 0.55; }
.pgp-ck-modal-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 30px 28px; }
.pgp-ck-modal-foot .pgp-ck-btn { flex: 1 1 auto; }

@media (max-width: 560px) {
  .pgp-cookie { left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 20px; }
  .pgp-cookie-actions { gap: 8px; }
  .pgp-cookie-actions .pgp-ck-btn.solid,
  .pgp-cookie-actions .pgp-ck-btn.outline { flex: 1 1 auto; }
  .pgp-cookie-actions .spacer { display: none; }
}

/* ============================================================
   PULSANTE WHATSAPP FISSO
   ============================================================ */
.pgp-wa {
  position: fixed; right: max(26px, calc(env(safe-area-inset-right) + 14px)); bottom: calc(26px + env(safe-area-inset-bottom) + var(--cookie-h, 0px)); z-index: 1000000;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(18,140,126,0.32), 0 16px 36px -14px rgba(37,211,102,0.55);
  transition: background 200ms ease, box-shadow 260ms ease, transform 220ms cubic-bezier(.2,.7,.3,1), padding 260ms cubic-bezier(.2,.7,.3,1), bottom 240ms ease-out;
}
.pgp-wa-ic { display: flex; width: 26px; height: 26px; flex-shrink: 0; }
.pgp-wa-ic svg { width: 100%; height: 100%; }
.pgp-wa-txt {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width 260ms cubic-bezier(.2,.7,.3,1), opacity 200ms ease;
}
.pgp-wa:hover, .pgp-wa:focus-visible {
  background: #1DA851; transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18,140,126,0.36), 0 22px 46px -14px rgba(37,211,102,0.6);
  padding: 14px 20px 14px 14px;
}
.pgp-wa:hover .pgp-wa-txt, .pgp-wa:focus-visible .pgp-wa-txt { max-width: 220px; opacity: 1; margin-left: 2px; }
.pgp-wa:active { transform: scale(0.96); }

@media (prefers-reduced-motion: no-preference) {
  .pgp-wa { position: fixed; }
  .pgp-wa::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none;
    animation: pgpWaPulse 2.6s ease-out 1.4s 3;
  }
  @keyframes pgpWaPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  }
}
@media (max-width: 560px) {
  .pgp-wa { right: max(16px, calc(env(safe-area-inset-right) + 10px)); bottom: calc(16px + env(safe-area-inset-bottom) + var(--cookie-h, 0px)); padding: 13px; }
  .pgp-wa:hover, .pgp-wa:focus-visible { padding: 13px; }
  .pgp-wa-txt, .pgp-wa:hover .pgp-wa-txt { max-width: 0; opacity: 0; margin-left: 0; }
}

/* ============================================================
   v8 — DINAMISMO AGGIUNTIVO
   Barra di avanzamento scroll, comparsa a cascata delle statistiche,
   tilt leggero delle card, dissolvenza morbida tra le pagine, menu
   mobile animato. Tutto rispetta prefers-reduced-motion.
   ============================================================ */

/* ---- Barra di avanzamento scroll ---- */
.pgp-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1250;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--salvia-700), var(--ambra));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .pgp-progress { display: none; } }

/* ---- Statistiche: comparsa a cascata ---- */
@media (prefers-reduced-motion: no-preference) {
  .stats-grid .stat {
    opacity: 0; transform: translateY(14px) scale(0.96);
    transition: opacity 560ms cubic-bezier(.16,.84,.32,1), transform 560ms cubic-bezier(.16,.84,.32,1);
  }
  .stats-grid.in .stat { opacity: 1; transform: none; }
  .stats-grid.in .stat:nth-child(1) { transition-delay: 0ms; }
  .stats-grid.in .stat:nth-child(2) { transition-delay: 90ms; }
  .stats-grid.in .stat:nth-child(3) { transition-delay: 180ms; }
  .stats-grid.in .stat:nth-child(4) { transition-delay: 270ms; }
}

/* ---- Card con tilt: transizione di ritorno morbida al mouseleave ---- */
.service-card, .testi-grid .card, .cat, .ben, .emg-card {
  transition: transform 320ms cubic-bezier(.2,.7,.3,1), box-shadow 260ms ease, border-color 260ms ease;
}

/* ---- Immagini di contenuto: tenda a scorrimento + assestamento zoom ---- */
@media (prefers-reduced-motion: no-preference) {
  .imgframe--anim::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(135deg, var(--salvia-700), var(--ambra-dark));
    transform: translateX(0); transition: transform 850ms cubic-bezier(.65,0,.35,1);
  }
  .imgframe--anim.in::before { transform: translateX(101%); }
  .imgframe--anim:not(.in) img { transform: translateY(var(--py, 0px)) scale(1.12); transition: none; }
  .imgframe--anim.in img { transition: transform 950ms cubic-bezier(.16,.84,.32,1); }
}

/* ---- Dissolvenza in uscita verso un'altra pagina ---- */
@media (prefers-reduced-motion: no-preference) {
  html.pgp-page-out body { opacity: 0; transition: opacity 160ms ease-out; }
}

/* ---- Menu mobile: comparsa a cascata dei link ---- */
@media (prefers-reduced-motion: no-preference) {
  .nav-links.open a {
    animation: pgpFadeUp 380ms cubic-bezier(.16,.84,.32,1) both;
  }
  .nav-links.open a:nth-child(1) { animation-delay: 0ms; }
  .nav-links.open a:nth-child(2) { animation-delay: 40ms; }
  .nav-links.open a:nth-child(3) { animation-delay: 80ms; }
  .nav-links.open a:nth-child(4) { animation-delay: 120ms; }
  .nav-links.open a:nth-child(5) { animation-delay: 160ms; }
  .nav-links.open a:nth-child(6) { animation-delay: 200ms; }
}

.nav-right .btn-primary { font-weight: 700; }

/* ============================================================
   SELETTORE LINGUA (IT · EN · FR)
   ============================================================ */
.pgp-lang { position: relative; }
.pgp-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--n-700);
  background: transparent; border: 1.5px solid var(--n-200); border-radius: 8px;
  padding: 10px 12px; min-height: 44px; cursor: pointer; transition: all 180ms ease-out; white-space: nowrap;
}
.pgp-lang-btn:hover { border-color: var(--ambra); color: var(--ambra); }
.pgp-lang-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pgp-lang-caret { transition: transform 200ms ease-out; opacity: 0.7; }
.pgp-lang.open .pgp-lang-caret { transform: rotate(180deg); }
.pgp-lang-cur { line-height: 1; }
.pgp-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: var(--bg); border: 1px solid var(--n-200); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
}
.pgp-lang.open .pgp-lang-menu { opacity: 1; visibility: visible; transform: none; }
.pgp-lang-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  font-family: var(--font-body); font-size: 14.5px; color: var(--n-700); text-align: left;
  background: transparent; border: none; border-radius: 8px; padding: 12px 12px; min-height: 44px; cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.pgp-lang-item:hover { background: var(--n-50); color: var(--n-800); }
.pgp-lang-item.active { color: var(--ambra); font-weight: 600; }
.pgp-lang-flag {
  display: inline-block; width: 20px; height: 14px; flex-shrink: 0;
  border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(44,36,32,0.14);
  background-size: cover;
}
.pgp-lang-flag-cur { display: inline-block; width: 18px; height: 13px; flex-shrink: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(44,36,32,0.14); }
.pgp-flag-it { background: linear-gradient(to right, #009246 0 33.3%, #fff 33.3% 66.6%, #CE2B37 66.6% 100%); }
.pgp-flag-en {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%2300247d'/><g stroke='%23ffffff' stroke-width='8'><line x1='0' y1='0' x2='60' y2='40'/><line x1='60' y1='0' x2='0' y2='40'/></g><g stroke='%23cf142b' stroke-width='4'><line x1='0' y1='0' x2='60' y2='40'/><line x1='60' y1='0' x2='0' y2='40'/></g><rect x='24' width='12' height='40' fill='%23ffffff'/><rect y='14' width='60' height='12' fill='%23ffffff'/><rect x='26' width='8' height='40' fill='%23cf142b'/><rect y='16' width='60' height='8' fill='%23cf142b'/></svg>");
  background-size: cover; background-position: center;
}
.pgp-flag-fr { background: linear-gradient(to right, #0055A4 0 33.3%, #fff 33.3% 66.6%, #EF4135 66.6% 100%); }
.pgp-flag-de { background: linear-gradient(to bottom, #000 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6% 100%); }
.pgp-flag-es { background: linear-gradient(to bottom, #AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75% 100%); }
.pgp-flag-pt { background: linear-gradient(to right, #046A38 0 40%, #DA020E 40% 100%); }
@media (max-width: 860px) {
  .pgp-lang-btn { padding: 8px 9px; }
}

/* ---- Nota traduzione di cortesia (pagine legali) ---- */
.pgp-legal-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 8px; margin-bottom: 8px; padding: 16px 20px;
  background: var(--salvia-50); border: 1px solid var(--salvia-100);
  border-left: 4px solid var(--salvia); border-radius: 12px;
}
.pgp-legal-note svg { width: 20px; height: 20px; color: var(--salvia-700); flex-shrink: 0; margin-top: 1px; }
.pgp-legal-note p { font-size: 14px; line-height: 1.6; color: var(--n-700); margin: 0; }

/* ============================================================
   v6 — LIVELLO DI RIFINITURA UX/UI
   Migliora tutte le pagine: tipografia fluida, profondità,
   micro-interazioni e accessibilità. Nessuna modifica ai
   contenuti o alla struttura — solo presentazione e comportamento.
   ============================================================ */

/* ---- Qualità del testo ---- */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: hidden; max-width: 100%; }
body { text-rendering: optimizeLegibility; overflow-x: hidden; }
a, button, .btn, .nav-links a, .faq-q, .pgp-lang-btn, .pgp-lang-item { touch-action: manipulation; }
h1, h2, h3, .section-title, .display, .cta-band h2, .page-hero h1 { text-wrap: balance; }
p, .lead, .section-lead, .feature-desc, .footer-blurb { text-wrap: pretty; }
::selection { background: var(--ambra-100); color: var(--ambra-dark); }

/* ---- Accessibilità: focus visibile su tutti gli elementi interattivi ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.pgp-ck-btn:focus-visible,
.pgp-lang-btn:focus-visible,
.pgp-lang-item:focus-visible,
.faq-q:focus-visible {
  outline: 2.5px solid var(--ambra);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus:not(:focus-visible) { outline: none; }

/* ---- Tipografia fluida per i titoli condivisi ----
   (la specificità con "body" supera le regole inline per-pagina;
   clamp() rende la scala continua, senza salti ai breakpoint) */
body .section-title { font-size: clamp(32px, 1.55rem + 2.1vw, 48px); line-height: 1.12; }
body .page-hero h1  { font-size: clamp(38px, 1.7rem + 3.1vw, 58px); line-height: 1.06; letter-spacing: -0.02em; }
body .cta-band h2   { font-size: clamp(32px, 1.4rem + 2.6vw, 52px); }
body .hero h1       { font-size: clamp(40px, 1.6rem + 3.4vw, 64px); }
.lead, .section-lead { max-width: 62ch; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Ritmo verticale fluido ---- */
section { padding: clamp(64px, 8vw, 108px) 0; }

/* ---- Eyebrow editoriale (lineetta guida) ---- */
.eyebrow { position: relative; }
.section-head:not(.center) .eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1.5px;
  background: currentColor; opacity: 0.55; vertical-align: middle;
  margin-right: 11px; border-radius: 2px;
}

/* ---- NAV: ombra alla scroll + sottolineatura animata ---- */
.nav {
  transition: box-shadow 320ms ease, background 320ms ease, border-color 320ms ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 20px -14px rgba(44,36,32,0.18);
}
.nav.scrolled {
  background: rgba(253,250,245,0.95);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(44,36,32,0.05), 0 12px 32px -18px rgba(44,36,32,0.4);
}
.nav-links a { padding: 6px 1px; transition: color 200ms, transform 200ms cubic-bezier(.2,.7,.3,1); display: inline-block; position: relative; }
.nav-links a::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -3px; height: 10px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(44,36,32,0.14), transparent 75%);
  opacity: 0; transition: opacity 220ms ease; pointer-events: none;
}
.nav-links a:hover::before, .nav-links a.active::before { opacity: 1; }
.nav-links a:hover { transform: translateY(-1px); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--ambra);
  box-shadow: 0 3px 8px -1px rgba(193,127,74,0.55);
  transition: right 260ms cubic-bezier(.4,.6,.2,1);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
@media (max-width: 860px) { .nav-links.open a::after { display: none; } }

/* ---- BOTTONI: micro-interazioni e ombre rifinite ---- */
.btn {
  border-radius: 10px;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1), box-shadow 220ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-primary { box-shadow: 0 1px 2px rgba(139,90,43,0.22), 0 8px 18px -8px rgba(193,127,74,0.55); }
.btn-primary:hover { box-shadow: 0 2px 5px rgba(139,90,43,0.24), 0 14px 30px -10px rgba(193,127,74,0.65); }
.btn-white { box-shadow: 0 1px 2px rgba(44,36,32,0.10), 0 10px 24px -10px rgba(44,36,32,0.30); }
.btn svg { transition: transform 240ms cubic-bezier(.2,.7,.3,1); }
.btn:hover svg.lucide-arrow-right,
.btn:hover svg[data-lucide="arrow-right"] { transform: translateX(4px); }

/* ---- CARD: profondità più morbida e a strati ---- */
.card {
  border-color: rgba(44,36,32,0.07);
  box-shadow: 0 1px 2px rgba(44,36,32,0.04), 0 12px 32px -14px rgba(44,36,32,0.18);
}
.service-card { transition: transform 260ms cubic-bezier(.2,.7,.3,1), box-shadow 260ms ease; }
.service-card:hover { box-shadow: 0 2px 6px rgba(44,36,32,0.06), 0 22px 48px -18px rgba(44,36,32,0.26); }

/* ---- Icone feature: anello interno sottile ---- */
.feature-icon { box-shadow: inset 0 0 0 1px rgba(193,127,74,0.12); }
.feature-icon.sage { box-shadow: inset 0 0 0 1px rgba(91,126,106,0.16); }

/* ---- Cornici immagine: anello + zoom delicato ---- */
.imgframe { box-shadow: 0 1px 2px rgba(44,36,32,0.06), 0 26px 64px -24px rgba(44,36,32,0.30); }
.imgframe::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(44,36,32,0.07); pointer-events: none;
}
.imgframe img { transition: transform 700ms cubic-bezier(.2,.7,.3,1); transform: translateY(var(--py, 0px)); will-change: transform; }
.imgframe:hover img { transform: translateY(var(--py, 0px)) scale(1.035); }

/* ---- Piano in evidenza (pagina Piani): bagliore ambra ---- */
body .plan.featured {
  box-shadow: 0 2px 8px rgba(44,36,32,0.14), 0 34px 70px -28px rgba(193,127,74,0.5);
}

/* ---- FAQ: stato hover sulla domanda ---- */
.faq-q { transition: color 180ms ease; }
.faq-q:hover { color: var(--ambra); }

/* ---- CTA band: luce radiale + contenuto in primo piano ---- */
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(115% 130% at 82% -10%, rgba(255,255,255,0.18), transparent 56%);
}
.cta-band .wrap { position: relative; z-index: 1; }

/* ---- Footer: hover dei link più rifinito ---- */
.footer-col a { width: fit-content; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ambra-300); }

/* ---- Skip-link accessibile (inserito da site.js) ---- */
.pgp-skip {
  position: fixed; top: 12px; left: 50%; z-index: 1400;
  transform: translate(-50%, -160%);
  background: var(--ambra); color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; box-shadow: var(--shadow-lg);
  transition: transform 220ms ease-out;
}
.pgp-skip:focus { transform: translate(-50%, 0); outline: none; }

/* ---- Rispetto delle preferenze di movimento ridotto ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .imgframe:hover img { transform: none; }
  .imgframe img { transform: none !important; }
}

/* ============================================================
   v7 — SITO PIÙ DINAMICO
   Stagger sull'ingresso, micro-interazioni più ricche su hover/
   click, transizioni tra sezioni più morbide. Tutto sottile,
   coerente col resto del sistema, e rispettoso di
   prefers-reduced-motion (già gestito sopra).
   ============================================================ */

/* ---- Reveal: curva più elegante + leggero effetto di profondità ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    transition-timing-function: cubic-bezier(.16,.84,.32,1);
    transition-duration: 700ms, 700ms;
  }
}

/* ---- Card generiche: lift coerente su tutte, non solo service-card ---- */
.card, .plan, .price-chip, .cat, .pw, .emg-card {
  transition: transform 260ms cubic-bezier(.2,.7,.3,1), box-shadow 260ms ease, border-color 260ms ease;
}
.card:hover, .plan:hover, .price-chip:hover, .cat:hover:not(.featured), .emg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(44,36,32,0.07), 0 26px 54px -20px rgba(44,36,32,0.28);
  border-color: rgba(193,127,74,0.28);
}
body .plan.featured:hover, .price-chip.featured:hover { transform: translateY(-4px); }

/* ---- Icone: piccola risposta al passaggio del mouse sulla card ---- */
.feature-icon, .cat-ic, .bi, .ei {
  transition: transform 260ms cubic-bezier(.2,.7,.3,1), background 200ms ease;
}
.card:hover .feature-icon, .cat:hover .cat-ic, .card:hover .bi, .emg-card:hover .ei {
  transform: scale(1.08) rotate(-3deg);
}

/* ---- Numeri di step/timeline: piccolo "tick" quando la card entra in vista ---- */
.step-num, .tl-num, .pw-num {
  transition: transform 320ms cubic-bezier(.34,1.4,.4,1), background 200ms ease, color 200ms ease;
}
.step:hover .step-num, .tl-step:hover .tl-num, .pw:hover .pw-num {
  transform: scale(1.1);
}

/* ---- Link di testo generici (footer, contenuti) con sottolineatura animata ---- */
.footer-blurb a, .lead a, .section-lead a, .faq-a a {
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 180ms ease;
}

/* ---- Pill/badge: piccola pulsazione discreta all'hover ---- */
.pill { transition: transform 200ms cubic-bezier(.2,.7,.3,1), box-shadow 200ms ease; }
.pill:hover { transform: translateY(-1px); }

/* ---- Bottoni: risposta più decisa al click, coerente su tutte le varianti ---- */
.btn:active { transform: scale(0.97); }
.btn-outline:active, .btn-ghost:active, .btn-white:active { transform: scale(0.97); }

/* ---- Testimonianze: leggero effetto "carta sollevata" alternato ---- */
.testi-grid .card { transition: transform 300ms cubic-bezier(.2,.7,.3,1), box-shadow 300ms ease; }

/* ---- Profondità 3D reale: gli elementi interni "galleggiano" su
   assi Z distinti rispetto alla superficie della card, dando un
   vero senso di strati sovrapposti durante il tilt. ---- */
.service-card, .cat, .price-chip, .plan, .emg-card, .ben {
  transform-style: preserve-3d;
}
.service-card .feature-icon, .cat .cat-ic, .price-chip .plan-name, .plan .plan-name, .emg-card .ei, .ben .bi {
  transform: translateZ(38px);
  transition: transform 320ms cubic-bezier(.2,.7,.3,1);
}
.service-card .feature-title, .price-chip .price, .plan .price {
  transform: translateZ(22px);
  transition: transform 320ms cubic-bezier(.2,.7,.3,1);
}
.service-card:hover .feature-icon, .cat:hover .cat-ic, .price-chip:hover .plan-name, .plan:hover .plan-name, .emg-card:hover .ei, .ben:hover .bi {
  transform: translateZ(54px);
}
.service-card:hover .feature-title, .price-chip:hover .price, .plan:hover .price {
  transform: translateZ(32px);
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .cat, .price-chip, .plan, .emg-card, .ben { transform-style: flat; }
  .service-card .feature-icon, .cat .cat-ic, .price-chip .plan-name, .plan .plan-name, .emg-card .ei, .ben .bi,
  .service-card .feature-title, .price-chip .price, .plan .price { transform: none !important; }
}

/* ---- Avvertenza importante: nota discreta con accento ambra ---- */
.disclaimer-band { padding: 0 0 64px; }
.disclaimer-note {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(152deg, var(--ambra-50), #fff 65%);
  border: 1px solid var(--ambra-100); border-left: 4px solid var(--ambra);
  border-radius: 16px; padding: 28px 32px;
  box-shadow: 0 1px 1px rgba(44,36,32,0.04), 0 20px 40px -26px rgba(44,36,32,0.18);
}
.disclaimer-note .di {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(152deg, var(--ambra-100), var(--ambra-50));
  color: var(--ambra-dark); box-shadow: inset 0 0 0 1px rgba(193,127,74,0.16);
}
.disclaimer-note .di svg, .disclaimer-note .di i { width: 20px; height: 20px; }
.disclaimer-note h4 {
  font-family: var(--font-display); font-weight: 400; font-size: 20px;
  color: var(--n-800); margin-bottom: 8px;
}
.disclaimer-note p { font-size: 14.5px; line-height: 1.7; color: var(--n-600); margin: 0; }
.nav-logo-img, .nav-logo svg { transition: transform 320ms cubic-bezier(.34,1.4,.4,1); }
.nav-logo:hover .nav-logo-img, .nav-logo:hover svg { transform: rotate(-4deg) scale(1.04); }

/* ---- Sezioni: dissolvenza morbida tra bande di sfondo alternate ---- */
.bg-alt, .bg-sage, .bg-amber { position: relative; }

/* ---- Hero: comparsa iniziale più viva (senza "reveal", entra da sola al load) ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js header.hero .hero-visual,
  html.js header.page-hero .imgframe {
    animation: pgpHeroIn 900ms cubic-bezier(.16,.84,.32,1) both;
    animation-delay: 80ms;
  }
  html.js header.hero .hero-grid > div:first-child > * {
    animation: pgpFadeUp 700ms cubic-bezier(.16,.84,.32,1) both;
  }
  html.js header.hero .hero-grid > div:first-child > *:nth-child(1) { animation-delay: 0ms; }
  html.js header.hero .hero-grid > div:first-child > *:nth-child(2) { animation-delay: 70ms; }
  html.js header.hero .hero-grid > div:first-child > *:nth-child(3) { animation-delay: 140ms; }
  html.js header.hero .hero-grid > div:first-child > *:nth-child(4) { animation-delay: 210ms; }
  html.js header.hero .hero-grid > div:first-child > *:nth-child(5) { animation-delay: 280ms; }
  html.js header.hero .hero-grid > div:first-child > *:nth-child(6) { animation-delay: 340ms; }
  @keyframes pgpFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes pgpHeroIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   v9 — PROFONDITÀ E DINAMISMO
   Luce ambientale di sfondo, ombre stratificate più ricche,
   piccoli rilievi (rim-light) su card/icone/numeri, tilt 3D
   più esteso alle immagini principali. Tutto discreto e
   rispettoso di prefers-reduced-motion.
   ============================================================ */

/* ---- Luce ambientale fissa dietro al contenuto (mesh multi-punto, profondità atmosferica) ---- */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; inset: -10%; pointer-events: none;
  will-change: transform;
}
body::before {
  background:
    radial-gradient(48% 42% at 12% 2%, rgba(232,184,138,0.20), transparent 70%),
    radial-gradient(50% 46% at 92% 14%, rgba(91,126,106,0.12), transparent 72%);
  animation: pgpDriftA 26s ease-in-out infinite;
  transform: translate3d(0, calc(var(--pgp-sy, 0) * 0.05px), 0);
}
body::after {
  background:
    radial-gradient(52% 48% at 88% 96%, rgba(91,126,106,0.15), transparent 72%),
    radial-gradient(42% 38% at 8% 90%, rgba(193,127,74,0.13), transparent 70%);
  animation: pgpDriftB 26s ease-in-out infinite;
  animation-delay: -13s;
  transform: translate3d(0, calc(var(--pgp-sy, 0) * -0.035px), 0);
}
@keyframes pgpDriftA { 0%,100% { transform: translate3d(0, calc(var(--pgp-sy, 0) * 0.05px), 0) scale(1); } 50% { transform: translate3d(16px, calc(var(--pgp-sy, 0) * 0.05px - 12px), 0) scale(1.04); } }
@keyframes pgpDriftB { 0%,100% { transform: translate3d(0, calc(var(--pgp-sy, 0) * -0.035px), 0) scale(1); } 50% { transform: translate3d(-14px, calc(var(--pgp-sy, 0) * -0.035px + 10px), 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; transform: none !important; } }

/* ---- Mesh gradient anche sulle bande a sfondo alternato ---- */
.bg-alt, .bg-sage, .bg-amber { position: relative; isolation: isolate; }
.bg-alt::before, .bg-sage::before, .bg-amber::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.bg-alt::before { background: radial-gradient(55% 65% at 88% -6%, rgba(193,127,74,0.09), transparent 68%), radial-gradient(45% 60% at 4% 108%, rgba(91,126,106,0.08), transparent 66%); }
.bg-sage::before { background: radial-gradient(55% 70% at 90% -8%, rgba(255,255,255,0.35), transparent 66%), radial-gradient(45% 55% at 0% 106%, rgba(193,127,74,0.08), transparent 64%); }
.bg-amber::before { background: radial-gradient(55% 65% at 92% -8%, rgba(255,255,255,0.4), transparent 66%), radial-gradient(48% 58% at 2% 104%, rgba(91,126,106,0.09), transparent 64%); }

/* ---- Mesh gradient dedicato all'hero: sfondo vivo dietro al primo schermo ---- */
header.hero, header.page-hero {
  position: relative;
}
header.hero::before, header.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 60% at 82% 8%, rgba(232,184,138,0.30), transparent 68%),
    radial-gradient(40% 55% at 6% 92%, rgba(91,126,106,0.20), transparent 66%),
    radial-gradient(60% 70% at 30% 0%, rgba(245,228,204,0.55), transparent 70%);
}

/* ---- Ombre stratificate più profonde su card e superfici elevate ---- */
.card, .price-chip, .hero-float {
  box-shadow: 0 1px 1px rgba(44,36,32,0.05), inset 0 1px 0 rgba(255,255,255,0.55), 0 20px 40px -18px rgba(44,36,32,0.22), 0 48px 88px -44px rgba(44,36,32,0.18), 0 90px 130px -70px rgba(44,36,32,0.14);
}
body .plan.featured, .price-chip.featured {
  box-shadow: 0 1px 1px rgba(44,36,32,0.06), inset 0 1px 0 rgba(255,255,255,0.5), 0 24px 46px -18px rgba(193,127,74,0.32), 0 54px 96px -40px rgba(193,127,74,0.28), 0 100px 140px -70px rgba(193,127,74,0.18);
}
.imgframe { box-shadow: 0 1px 2px rgba(44,36,32,0.07), 0 30px 60px -24px rgba(44,36,32,0.32), 0 64px 110px -50px rgba(44,36,32,0.22), 0 110px 150px -80px rgba(44,36,32,0.16); }

/* ---- Icone: rilievo con leggero gradiente invece del colore piatto ---- */
.feature-icon.amber { background: linear-gradient(152deg, var(--ambra-50), var(--ambra-100)); }
.feature-icon.sage  { background: linear-gradient(152deg, var(--salvia-50), var(--salvia-100)); }
.vp-item .vi { background: linear-gradient(152deg, var(--ambra-50), var(--ambra-100)); box-shadow: inset 0 0 0 1px rgba(193,127,74,0.14); }

/* ---- Numeri step / avatar: profondità con gradiente + ombra colorata ---- */
.step-num {
  background: linear-gradient(152deg, var(--ambra), var(--ambra-600));
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 22px -8px rgba(193,127,74,0.55);
}
.testi-avatar { background: linear-gradient(152deg, var(--ambra-100), var(--ambra-300)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }

/* ---- Fascia statistiche: vignetta radiale + filo di luce superiore ---- */
.stats { position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 160% at 50% -20%, rgba(232,184,138,0.14), transparent 60%);
}
.stat-num { text-shadow: 0 2px 18px rgba(193,127,74,0.35); }

/* ---- CTA band: rilievo sotto la fascia + filo di luce superiore ---- */
.cta-band { box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 40px 80px -40px rgba(139,90,43,0.5); }

/* ---- Nav: profondità leggermente più marcata allo scroll ---- */
.nav.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 1px 0 rgba(44,36,32,0.06), 0 24px 50px -20px rgba(44,36,32,0.5), 0 60px 90px -50px rgba(44,36,32,0.3); }
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(44,36,32,0.06), transparent); opacity: 0; transition: opacity 320ms ease;
}
.nav.scrolled::after { opacity: 1; }

/* ---- Gradienti animati: hero e CTA con mesh in movimento continuo ---- */
header.hero::before, header.page-hero::before {
  background-size: 140% 140%;
  animation: pgpMeshMove 18s ease-in-out infinite;
  will-change: background-position;
}
@keyframes pgpMeshMove {
  0%,100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: -12% 8%, 10% -6%, 6% 10%; }
}
.cta-band {
  background-image: linear-gradient(120deg, var(--ambra-600), var(--ambra) 45%, var(--salvia-800) 100%);
  background-size: 160% 160%;
  animation: pgpCtaMove 20s ease-in-out infinite;
  will-change: background-position;
}
@keyframes pgpCtaMove {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  header.hero::before, header.page-hero::before, .cta-band { animation: none; }
}

/* ---- Movimento idle su icone e numeri: respiro discreto e continuo ---- */
@media (prefers-reduced-motion: no-preference) {
  .card:hover .feature-icon, .card:hover .vi { animation: pgpBreath 2.4s ease-in-out infinite; }
  @keyframes pgpBreath { 0%,100% { transform: scale(1.08) rotate(-3deg); } 50% { transform: scale(1.14) rotate(-3deg); } }
  .cta-band .mark-wm { animation: pgpMarkFloat 7s ease-in-out infinite; }
  @keyframes pgpMarkFloat { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-10px,-14px) rotate(-2deg); } }
}

