@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');


:root, :root[data-theme="dark"] {
  --bg: #150e0f; --bg-alt: #1d1214; --panel: #261719;
  --line: rgba(240, 160, 155, 0.15);
  --green: #D9545B; --green-bright: #F08C91; --green-deep: #E0666D; --green-dark: #F2CFC8;
  --amber: #C9A36B; --text: #F6EBE6; --text-muted: #B49E9B;
  --acc-rgb: 217, 84, 91; --deep-rgb: 224, 102, 109; --shadow-rgb: 0, 0, 0;
  --bg-rgb: 21, 14, 15; --panel-rgb: 38, 23, 25; --amber-rgb: 201, 163, 107;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FAF2EA; --bg-alt: #F3E5DA; --panel: #FFFCF8;
  --line: rgba(148, 43, 47, 0.15);
  --green: #C94A52; --green-bright: #DE6B72; --green-deep: #942B2F; --green-dark: #5E1A1E;
  --amber: #B98A4E; --text: #2D2325; --text-muted: #8C7673;
  --acc-rgb: 201, 74, 82; --deep-rgb: 148, 43, 47; --shadow-rgb: 94, 26, 30;
  --bg-rgb: 250, 242, 234; --panel-rgb: 255, 252, 248; --amber-rgb: 185, 138, 78;
  color-scheme: light;
}
html, body { background: var(--bg); }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--green) var(--bg-alt);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--green), var(--green-deep)); border-radius: 999px; border: 3px solid var(--bg-alt); background-clip: padding-box; transition: background 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--green-bright), var(--green)); background-clip: padding-box; }

#root {
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 1000px 600px at 12% 8%, rgba(var(--acc-rgb), 0.08), transparent 55%),
    radial-gradient(ellipse 800px 500px at 88% 30%, rgba(var(--amber-rgb), 0.05), transparent 55%),
    radial-gradient(ellipse 900px 700px at 50% 90%, rgba(var(--deep-rgb), 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}
#root h1, #root h2, #root h3 { font-family: 'Poppins', sans-serif; margin: 0; }
#root p { margin: 0; }
#root a { color: inherit; text-decoration: none; }
.pf-mono { font-family: 'IBM Plex Mono', monospace; }
::selection { background: var(--green); color: #fff; }

/* ---------- Cursore custom ---------- */
@media (pointer: fine) { body.pf-custom-cursor-active, body.pf-custom-cursor-active * { cursor: none !important; } }
.pf-cursor-dot { position: fixed !important; top: 0; left: 0; z-index: 200; width: 6px; height: 6px; margin: -3px; background: var(--green); border-radius: 50%; pointer-events: none; will-change: transform; }
.pf-cursor-ring { position: fixed !important; top: 0; left: 0; z-index: 200; width: 32px; height: 32px; margin: -16px; border: 2px solid var(--green); border-radius: 50%; pointer-events: none; will-change: transform; transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.pf-cursor-ring.pf-cursor-hover { width: 52px; height: 52px; margin: -26px; background: rgba(var(--acc-rgb), 0.1); border-color: var(--green-deep); }

/* ---------- Scroll reveal ---------- */
.pf-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.pf-reveal.pf-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .pf-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pf-hero-skin-ground, .pf-badge-live-dot, .pf-skin-halo { animation: none !important; }
}

/* ---------- Pallini di navigazione laterale ---------- */
.pf-dot-nav {
  position: fixed; left: 24px; top: 50%; transform: translateY(-50%);
  z-index: 45;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.pf-dot-nav.pf-visible { opacity: 1; pointer-events: auto; }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 1px solid var(--green); cursor: pointer; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.pf-dot:hover { background: var(--green-bright); transform: scale(1.3); }
.pf-dot.active { background: var(--green); width: 11px; height: 26px; border-radius: 999px; }

/* ---------- Nav: adattiva / bubble on scroll ---------- */
.pf-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(20px, 5vw, 64px); background: rgba(var(--bg-rgb), 0.75); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); border-radius: 0; transition: all 0.5s cubic-bezier(0.16,1,0.3,1); }
.pf-nav-scrolled { top: 14px; left: 50%; right: auto; transform: translateX(-50%); width: min(680px, calc(100vw - 32px)); padding: 10px 12px 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--panel-rgb), 0.9); box-shadow: 0 16px 40px -14px rgba(var(--shadow-rgb), 0.35); }
.pf-nav-scrolled .pf-nav-links { gap: 2px; }
.pf-logo { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; white-space: nowrap; color: var(--text); }
.pf-logo-mark { width: 13px; height: 13px; border-radius: 5px; background: var(--green); box-shadow: 0 0 12px 2px rgba(var(--acc-rgb),0.4); flex-shrink: 0; }
.pf-nav-links { display: flex; gap: 4px; transition: gap 0.4s ease; }
.pf-nav-link { padding: 8px 15px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--text-muted); cursor: pointer; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease; }
.pf-nav-link:hover { color: var(--text); background: rgba(var(--acc-rgb),0.08); }
.pf-nav-link.active { color: #fff; background: var(--green); font-weight: 500; }
.pf-nav-link:focus-visible, .pf-btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pf-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px; color: var(--text); cursor: pointer; }
.pf-mobile-menu { position: fixed; inset: 0; z-index: 49; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.pf-mobile-menu a { font-size: 22px; font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text); }

/* ---------- Bottoni ---------- */
.pf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600; cursor: pointer; border-radius: var(--radius-lg); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.2s ease; }
.pf-btn:hover { transform: translateY(-3px) scale(1.02); }
.pf-btn:active { transform: translateY(0) scale(0.98); }
.pf-btn-bevel { background: linear-gradient(160deg, var(--green), var(--green-deep)); color: #fff; box-shadow: 0 10px 28px -8px rgba(var(--deep-rgb), 0.45); }
.pf-btn-bevel:hover { box-shadow: 0 14px 34px -8px rgba(var(--deep-rgb), 0.6); }
.pf-btn-ghost { background: var(--panel); color: var(--text); border: 1.5px solid var(--line); }
.pf-btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.pf-social-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--text-muted); background: var(--panel); border-radius: 50%; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.pf-social-icon:hover { color: #fff; background: var(--green); border-color: var(--green); transform: translateY(-4px) rotate(-6deg); }

/* ---------- Hero ---------- */
.pf-hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: 100px clamp(20px, 6vw, 80px) 30px; overflow: hidden; }
.pf-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: end; width: 100%; max-width: 1220px; margin: 0 auto; max-height: 100%; }
.pf-hero-text { padding-bottom: 30px; animation: pf-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.pf-eyebrow { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em; color: var(--green-deep); padding: 6px 14px; background: rgba(var(--acc-rgb),0.08); border-radius: 999px; margin-bottom: 18px; }
.pf-hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1; letter-spacing: -0.01em; }
.pf-name-bold { font-weight: 800; color: var(--text); }
.pf-name-light { font-weight: 400; color: var(--green-deep); }
.pf-hero-role { margin-top: 12px; font-size: clamp(15px, 2vw, 19px); color: var(--amber); font-weight: 600; font-family: 'Poppins', sans-serif; }
.pf-hero-tagline { margin-top: 14px; max-width: 46ch; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.pf-social-row { display: flex; gap: 10px; margin-top: 22px; }
@keyframes pf-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.pf-hero-skin { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-height: 500px; animation: pf-fade-up 1s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
.pf-skin-halo { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(var(--acc-rgb), 0.3); box-shadow: 0 0 60px 10px rgba(var(--acc-rgb), 0.1), inset 0 0 60px 10px rgba(var(--acc-rgb), 0.06); top: 2%; animation: pf-halo-pulse 5s ease-in-out infinite; z-index: 0; }
@keyframes pf-halo-pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.pf-hero-skin-ground { position: absolute; bottom: 14px; width: 230px; height: 44px; background: radial-gradient(ellipse, rgba(var(--acc-rgb), 0.28), transparent 72%); filter: blur(3px); z-index: 0; animation: pf-ground-pulse 4s ease-in-out infinite; }
@keyframes pf-ground-pulse { 0%, 100% { opacity: 0.7; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.1); } }
.pf-skin-canvas { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; filter: drop-shadow(0 20px 26px rgba(var(--shadow-rgb),0.25)); }
.pf-skin-fallback { position: relative; z-index: 1; width: 260px; height: auto; image-rendering: pixelated; }
.pf-scroll-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--text-muted); animation: pf-chevron 1.8s ease-in-out infinite; }
@keyframes pf-chevron { 0%, 100% { transform: translate(-50%, 0); opacity: 0.4; } 50% { transform: translate(-50%, 8px); opacity: 0.9; } }

/* ---------- Terreno a due strati ---------- */
.pf-terrain { position: relative; z-index: 1; width: 100%; line-height: 0; }
.pf-terrain-svg { width: 100%; height: 52px; display: block; overflow: visible; }
.pf-terrain-back rect { fill: rgba(var(--shadow-rgb), 0.25); }
.pf-terrain-body { fill: var(--green-deep); }
.pf-terrain-cap { fill: var(--green); filter: drop-shadow(0 0 6px rgba(var(--acc-rgb),0.3)); }
.pf-terrain-shine { opacity: 0.45; mix-blend-mode: overlay; animation: pf-shine-move 6s ease-in-out infinite; }
@keyframes pf-shine-move { 0%, 100% { transform: translateX(-15%); } 50% { transform: translateX(15%); } }

/* ---------- Sezioni ---------- */
.pf-section { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(20px, 6vw, 80px) 60px; }
.pf-section-alt { background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb),0.03), transparent); }
.pf-section-head { max-width: 640px; margin: 0 auto 40px; }
.pf-section-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--green-deep); letter-spacing: 0.06em; text-transform: uppercase; }
.pf-section h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 8px; font-weight: 700; }
.pf-section-desc { margin-top: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.pf-section > .pf-section-head, .pf-section > .pf-project-grid, .pf-section > .pf-exp-grid, .pf-section > .pf-cv-grid, .pf-section > .pf-skills-grid { max-width: 1180px; margin-left: auto; margin-right: auto; width: 100%; }

/* ---------- Progetti ---------- */
.pf-project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pf-project-card { position: relative; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px -8px rgba(var(--shadow-rgb),0.1); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease; }
.pf-project-card:hover { transform: translateY(-6px); border-color: rgba(var(--acc-rgb), 0.4); box-shadow: 0 20px 40px -16px rgba(var(--shadow-rgb),0.2); }
.pf-project-spine { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--green); padding: 14px 8px; flex-shrink: 0; text-align: center; }
.pf-project-spine[data-type="Plugin"] { background: var(--green-bright); }
.pf-project-spine[data-type="Bot Discord"] { background: var(--amber); }
.pf-project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pf-project-title { font-size: 18px; font-weight: 700; margin: 0; }
.pf-project-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; flex-grow: 1; }
.pf-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--acc-rgb),0.06); color: var(--text-muted); border: 1px solid var(--line); }
.pf-project-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-project-action { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; transition: all 0.2s ease; }
.pf-project-action:hover { color: #fff; background: var(--green); border-color: var(--green); }

/* ---------- Competenze ---------- */
.pf-skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; grid-auto-rows: 1fr; }
.pf-skills-card { height: 100%; display: flex; flex-direction: column; }
.pf-skills-list { display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* ---------- Esperienza: card orizzontali per percorso ---------- */
.pf-exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.pf-exp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 18px -8px rgba(var(--shadow-rgb),0.1); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease; }
.pf-exp-card:hover { transform: translateY(-5px); border-color: rgba(var(--acc-rgb),0.35); }
.pf-exp-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pf-exp-logo-lg { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(160deg, var(--green), var(--green-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(var(--deep-rgb),0.5); }
.pf-exp-logo-lg img { width: 100%; height: 100%; object-fit: cover; }
.pf-exp-org { font-size: 19px; font-weight: 700; font-family: 'Poppins', sans-serif; }
.pf-exp-summary { margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.pf-role-grid { display: flex; flex-direction: column; gap: 8px; }
.pf-role-chip { display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--green-deep); transition: border-color 0.2s ease, transform 0.2s ease; }
.pf-role-chip:hover { border-color: rgba(var(--acc-rgb),0.4); transform: translateX(2px); }
.pf-role-chip-title { font-weight: 600; font-size: 13.5px; color: var(--text); flex: 1; }
.pf-role-chip-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pf-role-chip.current { border-color: rgba(var(--acc-rgb),0.5); background: var(--panel); }
.pf-role-chip.current .pf-role-chip-date { color: var(--green-deep); }
/* ---------- Ruoli secondari collegati con linea tratteggiata ---------- */
.pf-role-block { display: flex; flex-direction: column; }
.pf-subrole-list { position: relative; margin: 0 0 4px 22px; padding-left: 22px; border-left: 2px dashed rgba(var(--acc-rgb),0.55); display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.pf-subrole-item { position: relative; }
.pf-subrole-item::before { content: ""; position: absolute; left: -22px; top: 50%; width: 22px; border-top: 2px dashed rgba(var(--acc-rgb),0.55); }
.pf-role-sub { background: var(--panel); padding: 8px 12px; }
.pf-role-sub .pf-role-chip-title { font-weight: 500; font-size: 12.5px; }
.pf-role-sub svg { transform: rotate(-90deg); }
.pf-badge-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pf-pulse 1.6s ease-in-out infinite; }
@keyframes pf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Curriculum ---------- */
.pf-cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; grid-auto-rows: 1fr; }
.pf-cv-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; height: 100%; box-shadow: 0 4px 18px -8px rgba(var(--shadow-rgb),0.08); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease; }
.pf-cv-card:hover { transform: translateY(-4px); border-color: rgba(var(--acc-rgb),0.3); }
.pf-cv-card h3 { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--green-deep); margin-bottom: 15px; font-family: 'Inter', sans-serif; }
.pf-cv-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pf-cv-info-list li { display: flex; justify-content: space-between; font-size: 13.5px; }
.pf-cv-info-list li span { color: var(--text-muted); }
.pf-cv-edu-list, .pf-cv-lang-list, .pf-cv-cert-list { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: flex-start; }
.pf-cv-edu-item { display: flex; flex-direction: column; gap: 3px; }
.pf-cv-edu-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pf-cv-edu-title { font-weight: 600; font-size: 13px; }
.pf-cv-edu-dates { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--amber); white-space: nowrap; }
.pf-cv-edu-inst { font-size: 12px; color: var(--text-muted); }
.pf-cv-lang-item { display: flex; flex-direction: column; gap: 6px; }
.pf-cv-lang-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.pf-cv-lang-level { color: var(--text-muted); font-size: 10.5px; }
.pf-level-bar { height: 6px; background: rgba(var(--acc-rgb),0.1); overflow: hidden; border-radius: 999px; }
.pf-level-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-deep), var(--green)); border-radius: 999px; transition: width 1s cubic-bezier(0.16,1,0.3,1); }
.pf-cv-cert-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: var(--radius-sm); transition: background 0.2s ease; }
.pf-cv-cert-item:hover { background: rgba(var(--acc-rgb),0.05); }
.pf-cv-cert-title { display: block; font-weight: 600; font-size: 12.5px; }
.pf-cv-cert-issuer { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.pf-cv-cert-year { font-size: 10.5px; color: var(--amber); white-space: nowrap; }
.pf-tag-license { color: var(--amber); border-color: rgba(var(--amber-rgb), 0.3); background: rgba(var(--amber-rgb), 0.08); }

/* ---------- Footer ---------- */
.pf-footer { position: relative; z-index: 1; min-height: 55vh; display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(20px, 6vw, 80px) 40px; background: var(--bg-alt); }
.pf-footer-top { max-width: 1180px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.pf-footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; max-width: 32ch; }
.pf-footer-heading { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-deep); margin-bottom: 14px; }
.pf-footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.pf-footer-link { display: block; color: var(--text-muted); font-size: 14px; padding: 5px 0; cursor: pointer; transition: color 0.2s ease, transform 0.2s ease; }
.pf-footer-link:hover { color: var(--green-deep); transform: translateX(4px); }
.pf-footer-bottom { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); }
.pf-back-top { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-muted); transition: color 0.2s ease, transform 0.2s ease; }
.pf-back-top:hover { color: var(--green-deep); transform: translateY(-2px); }

/* ---------- FAB ---------- */
.pf-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 15px 22px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(160deg, var(--green), var(--green-deep)); border: none; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(var(--deep-rgb), 0.5); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease; animation: pf-fab-bounce 3s ease-in-out infinite; }
.pf-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 36px -8px rgba(var(--deep-rgb), 0.65); }
@keyframes pf-fab-bounce { 0%, 90%, 100% { transform: translateY(0); } 95% { transform: translateY(-6px); } }

/* ---------- Contatti: overlay a schermo intero ---------- */
.pf-contact-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pf-contact-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 900px 700px at 50% 40%, rgba(var(--acc-rgb), 0.18), var(--bg) 75%); backdrop-filter: blur(6px); }
.pf-contact-overlay.pf-overlay-in .pf-contact-bg { animation: pf-fade-in 0.4s ease forwards; }
.pf-contact-overlay.pf-overlay-out .pf-contact-bg { animation: pf-fade-out 0.4s ease forwards; }
@keyframes pf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pf-fade-out { from { opacity: 1; } to { opacity: 0; } }
.pf-modal-close-fs { position: fixed; top: 26px; right: 26px; z-index: 101; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 4px 14px -6px rgba(var(--shadow-rgb),0.2); }
.pf-modal-close-fs:hover { color: #fff; background: var(--green); transform: rotate(90deg) scale(1.08); }
.pf-contact-fs-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 50px; max-width: 900px; width: 100%; }
.pf-contact-overlay.pf-overlay-in .pf-contact-fs-inner { animation: pf-panel-pop 0.55s cubic-bezier(0.2,1.4,0.4,1) forwards; }
.pf-contact-overlay.pf-overlay-out .pf-contact-fs-inner { animation: pf-panel-pop-out 0.35s ease forwards; }
@keyframes pf-panel-pop { from { opacity: 0; transform: translateY(40px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pf-panel-pop-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(20px) scale(0.94); } }
.pf-contact-fs-skin { display: flex; justify-content: center; }
.pf-contact-fs-skin .pf-skin-canvas { filter: drop-shadow(0 20px 26px rgba(var(--shadow-rgb),0.3)); }
.pf-contact-fs-text h2 { font-size: clamp(30px, 4.5vw, 46px); margin-top: 10px; }
.pf-contact-fs-text p { margin-top: 14px; color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 40ch; }
.pf-contact-email { margin-top: 26px; }
.pf-contact-socials { display: flex; gap: 10px; margin-top: 20px; }
