/* A quiet refresh of the original dark, violet-accented portfolio. */
:root { --text-muted: #a0a0a4; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { text-rendering: optimizeLegibility; }
.layout { opacity: 1 !important; }
a:focus-visible, button:focus-visible { outline: 2px solid #b58aff; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: 12px 18px; border-radius: 8px; background: #b58aff; color: #161616; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sidebar-header-avatar { object-position: 50% 28%; }
.navbar-link { color: #a0a0a4; border-radius: 8px; }
.navbar-link.w--current { color: #f4f1fa; }
.navbar-link-active-bg { border-color: #40344d; background: #29232f; border-radius: 8px; }
.navbar-list-divider { opacity: .45; }
.button { border-radius: 8px; transition: background-color .18s, border-color .18s; }
.footer { margin-top: 88px; padding-top: 48px; }
.ab-photo { object-position: center 30%; }
@media (min-width: 992px) {
  .sidebar { flex-basis: 260px; }
  .sidebar-header { padding-top: 0; }
  .sidebar-header-wrap { position: relative; padding: 52px 24px 40px; align-items: flex-start; gap: 16px; }
  .sidebar-header-avatar-wrap { width: 64px; height: 64px; }
  .sidebar-header-info { text-align: left; align-items: flex-start; gap: 6px; }
  .sidebar-header-name { font-size: 18px; }
  .sidebar-header-title { font-size: 12px; color: #a0a0a4; }
  .sidebar-navbar { padding: 0 20px; }
  .navbar-link { height: 46px; }
  .sidebar-controls-wrap { align-items: flex-start; flex-direction: column; gap: 16px; }
  .main > .container.is-wide { max-width: 1200px; padding-left: 48px; padding-right: 48px; }
}
.is-home { --ink: #f1f0f3; --ink-2: #acaaaf; --ink-3: #a09ba6; --violet: #b38ae7; --hair: #ffffff14; }
.portfolio-topline { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 22px; border-bottom: 1px solid var(--hair); color: #aaa6b0; font-size: 12px; }
.portfolio-topline strong { font-weight: 500; color: #e1dce8; }
.topline-status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6dcc9a; flex: none; }
.is-home .hero-block { margin: 52px 0 0; }
.is-home .hero-glow { display: none; }
.is-home .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.is-home .hero-kicker { border: 0; background: none; padding: 0; color: #b7a1cd; font-size: 11px; letter-spacing: .14em; margin-bottom: 22px; }
.is-home h1.hero-heading.is-big { font-size: clamp(44px, 4.8vw, 68px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; margin-bottom: 24px; text-wrap: initial; }
.is-home .hero-heading.is-big .hl { background: none; color: #b58ae9; }
.is-home .text-lead { max-width: 45ch; font-size: 16px; line-height: 1.8; }
.is-home .hero-links { margin-top: 28px; gap: 10px; }
.is-home .hero-links .button, .is-home .cta-buttons .button { padding: 12px 19px; border-radius: 8px; font-size: 13px; }
.is-home .button.is-primary { background: #aa78de; border: 1px solid #aa78de; color: #16111d; box-shadow: none; font-weight: 600; }
.is-home .button.is-primary:hover { background: #bc91e9; border-color: #bc91e9; }
.hero-footnote { display: flex; gap: 8px; align-items: center; margin-top: 24px; color: #9f9ba6; font-size: 12px; }
.hero-footnote .status-dot { width: 5px; height: 5px; }
.is-home .profile-card { padding: 0; border-radius: 12px; background: #242322; border: 1px solid #ffffff12; }
.is-home .profile-card::before { content: none; }
.is-home .profile-shot { border-radius: 0; }
.is-home .profile-photo { height: auto; aspect-ratio: 4/5; object-position: center 28%; }
.is-home .profile-scrim { padding: 64px 24px 22px; background: linear-gradient(transparent, #111111db); }
.is-home .profile-name { font-size: 14px; font-weight: 500; }
.is-home .profile-where { font-size: 11px; letter-spacing: .03em; }
.is-home .stat-row { margin-top: 42px; border-radius: 0; border: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: none; }
.is-home .stat { padding: 26px 24px; }
.is-home .stat:first-child { padding-left: 0; }
.is-home .stat-num { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.is-home .stat:nth-child(3) .stat-num { color: var(--ink); }
.is-home .stat-label { font-size: 11px; color: #a09ba6; }
.tech-line { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 0 4px; font-size: 11px; color: #aaa6ae; }
.tech-line-label { color: #77717e; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.is-home .block-divider { margin: 52px 0; }
.is-home .content-title { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.is-home .content-title.is-text { font-size: 13px; font-weight: 400; letter-spacing: 0; color: #a09ba6; margin-top: 6px; }
.is-home .content-title-dot { display: none; }
.is-home .section-head-row { margin-bottom: 26px; }
.is-home .case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.is-home .case-card { border-radius: 12px; background: #1b1b1c; }
.is-home .case-card:hover { transform: translateY(-3px); border-color: #9473b1; box-shadow: none; }
.is-home .case-product { position: relative; height: 250px; overflow: hidden; background: var(--case-bg, #202523); border-bottom: 1px solid var(--hair); }
.is-home .case-product img { display: block; transition: transform .35s; }
.is-home .case-card:hover .case-product img { transform: translateY(-3px); }
.case-product.is-mobile { display: flex; gap: 18px; justify-content: center; align-items: flex-start; padding-top: 32px; }
.case-product.is-mobile img { width: 32%; border-radius: 16px; border: 4px solid #161616; box-shadow: 0 8px 24px #0004; }
.case-product.is-mobile img + img { margin-top: 25px; }
.case-product.is-web { padding: 34px 24px 0; }
.case-product.is-web img { width: 100%; border-radius: 7px 7px 0 0; border: 1px solid #ffffff19; box-shadow: 0 8px 24px #0003; }
.is-home .case-badge { top: 12px; left: 14px; padding: 4px 8px; border-radius: 5px; font-size: 9px; background: #151515dc; }
.is-home .case-body { padding: 22px 24px 24px; gap: 10px; }
.is-home .case-title { font-size: 22px; font-weight: 500; }
.is-home .case-desc { display: block; font-size: 13px; line-height: 1.75; color: #aba6b0; }
.is-home .case-tag { font-size: 9px; letter-spacing: .1em; }
.is-home .case-cta { padding-top: 12px; font-size: 12px; font-weight: 500; justify-content: space-between; }
.is-home .case-cta .arw { font-size: 18px; }
.is-home .stack-grid { gap: 16px; }
.is-home .stack-card { background: #1b1b1c; border-radius: 10px; padding: 24px; }
.is-home .stack-card p { color: #aaa6ae; line-height: 1.75; }
.is-home .exp-list { background: none; border: 0; border-radius: 0; }
.is-home .exp-item { grid-template-columns: 160px 1fr; padding: 26px 0; }
.is-home .exp-item:first-child { border-top: 1px solid var(--hair); }
.is-home .exp-desc { line-height: 1.75; }
.is-home .cta-panel { padding: 40px; border-radius: 12px; background: #211c27; border: 1px solid #b58ae924; }
.is-home .cta-panel h2 { max-width: 20ch; font-size: 36px; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
.is-home .cta-panel p { max-width: 60ch; color: #b1a8bc; }
.is-home .cta-buttons .is-whatsapp { background: transparent; color: #c2b8cd; border-color: #ffffff24; box-shadow: none; }
.wa-float { width: 44px; height: 44px; background: #26222c; color: #bcb2c9; border: 1px solid #ffffff20; box-shadow: 0 5px 18px #0003; }
.wa-float .wa-ico { width: 22px; height: 22px; }
@media (min-width: 1600px) { .is-home .hero-grid { gap: 64px; } }
@media (min-width: 992px) and (max-width: 1180px) {
  .main > .container.is-wide { padding-left: 32px; padding-right: 32px; }
  .is-home .hero-grid { gap: 24px; }
  .is-home h1.hero-heading.is-big { font-size: 48px; }
}
@media (max-width: 991px) {
  .is-home { padding-left: 28px; padding-right: 28px; }
  .is-home .hero-grid { gap: 28px; }
  .is-home h1.hero-heading.is-big { font-size: 48px; }
  .is-home .hero-kicker { line-height: 1.7; }
  .is-home .text-lead { font-size: 14px; }
}
@media (max-width: 700px) {
  .is-home { padding-left: 20px; padding-right: 20px; }
  .portfolio-topline { padding: 20px 0; font-size: 10px; }
  .is-home .hero-block { margin-top: 36px; }
  .is-home .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .is-home h1.hero-heading.is-big { font-size: clamp(44px, 10.5vw, 60px); }
  .is-home .text-lead { font-size: 15px; }
  .is-home .profile-card { max-width: 440px; width: 100%; }
  .is-home .profile-photo { aspect-ratio: 5/4; object-position: center 30%; }
  .is-home .stat-row { margin-top: 32px; }
  .is-home .stat { padding: 22px 16px; }
  .is-home .stat:nth-child(odd) { padding-left: 0; }
  .tech-line { gap: 14px 20px; line-height: 1.5; }
  .tech-line-label { width: 100%; }
  .is-home .block-divider { margin: 36px 0; }
  .is-home .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .is-home .stack-grid { grid-template-columns: 1fr; }
  .is-home .exp-item { grid-template-columns: 1fr; gap: 10px; }
  .is-home .cta-panel { padding: 28px 24px; }
  .is-home .cta-panel h2 { font-size: 30px; }
  .is-home .cta-buttons { flex-direction: column; align-items: stretch; }
  .is-home .cta-buttons .button { text-align: center; }
  .footer { margin-top: 56px; padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.is-home .content-title-wrap .content-title { display: block; }
@media (max-width: 991px) {
  .sidebar-content { display: none !important; }
  .sidebar-bg-tablet { display: none !important; }
  .sidebar .menu-burger { display: block !important; opacity: 1 !important; }
  .sidebar .menu-close { display: none !important; }
  .sidebar[data-navigation="open"] .sidebar-content { display: flex !important; transform: none !important; opacity: 1 !important; }
  .sidebar[data-navigation="open"] .sidebar-bg-tablet { display: block !important; position: fixed; inset: 0; width: 100vw; height: 100dvh; background: #0009; opacity: 1 !important; }
  .sidebar[data-navigation="open"] .menu-burger { display: none !important; }
  .sidebar[data-navigation="open"] .menu-close { display: block !important; opacity: 1 !important; }
  .sidebar-tablet-menu { position: relative; z-index: 3; }
}
@media (max-width: 991px) {
  .sidebar[data-navigation="open"] .sidebar-navbar-tablet { z-index: 3; }
  .sidebar[data-navigation="open"] .sidebar-tablet-brand { visibility: hidden; }
  .sidebar[data-navigation="open"] .sidebar-bg-tablet { z-index: 1; }
}
/* Product process graphic and recruiting introduction. */
.delivery-flow { margin-top: 38px; padding: 20px 24px 22px; border: 1px solid #ffffff12; border-radius: 12px; background: linear-gradient(115deg, #201b27, #19191b 65%); }
.flow-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #a9a0b3; }
.motion-toggle { border: 0; padding: 3px 0 3px 10px; background: transparent; color: #b6a2ca; font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; }
.motion-toggle:hover { color: #ece1f9; }
.flow-diagram { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.flow-connections { position: absolute; left: 0; top: 0; width: 100%; height: 48px; fill: none; stroke-width: 1; }
.flow-track { stroke: #4b3b5c; }
.flow-packet { stroke: #be94ed; stroke-width: 2; stroke-dasharray: 30 670; stroke-dashoffset: 30; filter: drop-shadow(0 0 3px #b58ae9); }
.flow-step { z-index: 1; display: flex; gap: 12px; align-items: center; justify-self: center; background: #1c1a20; padding: 4px 14px; }
.flow-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #645071; border-radius: 10px; background: #26202d; color: #c5a5e9; }
.flow-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.flow-step strong { display: block; color: #e1dce8; font-weight: 500; font-size: 13px; }
.flow-step small { display: block; color: #958c9f; font-size: 10px; margin-top: 2px; }
.is-home .delivery-flow + .stat-row { margin-top: 24px; }
.team-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 48px; }
.working-photo { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid #ffffff14; }
.working-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.working-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 44px 22px 22px; color: #d4cec4; background: linear-gradient(transparent, #111e); font-size: 11px; }
.team-copy h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.18; color: #eeeaf2; margin: 0 0 22px; }
.team-copy p { font-size: 14px; line-height: 1.8; color: #aaa6af; margin: 0 0 14px; }
.team-copy p a { color: #d2b7ed; text-decoration: underline; text-underline-offset: 3px; }
.role-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.role-list span { padding: 7px 10px; border: 1px solid #ffffff15; border-radius: 5px; color: #b9adca; font-size: 10px; }
.team-availability { color: #c0b9c8; font-size: 11px; line-height: 1.9; }
.team-availability .status-dot { display: inline-block; vertical-align: middle; margin-right: 7px; }
.team-availability > span:last-child { color: #97909f; }
.about-working-photo { margin: 28px 0; }
.about-working-photo img { width: 100%; height: auto; max-height: 320px; object-fit: cover; object-position: center 40%; border-radius: 10px; }
.about-working-photo figcaption { margin-top: 9px; font-size: 11px; color: #98919f; }
/* Animation is opt-in via JS so the static page remains complete and readable. */
@keyframes signal-travel { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -670; } }
@keyframes node-light { 0%, 65%, 100% { border-color: #645071; box-shadow: none; } 25% { border-color: #c498ed; box-shadow: 0 0 18px #ae7adc20; } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .flow-packet { animation: signal-travel 4.5s linear infinite; }
  html[data-motion="on"] .flow-icon { animation: node-light 4.5s ease infinite; }
  html[data-motion="on"] .flow-step:nth-of-type(2) .flow-icon { animation-delay: 1.5s; }
  html[data-motion="on"] .flow-step:nth-of-type(3) .flow-icon { animation-delay: 3s; }
  html[data-motion="on"] .hero-copy { animation: hero-arrive .7s ease both; }
  html[data-motion="on"] .profile-card { animation: hero-arrive .8s .12s ease both; }
  .reveal-ready { transition: opacity .65s ease, transform .65s cubic-bezier(.2,.65,.3,1); }
  html[data-motion="on"] .reveal-ready.is-waiting { opacity: 0; transform: translateY(22px); }
  html[data-motion="on"] .case-card:hover .case-product img { transform: translateY(-6px) scale(1.015); }
}
html[data-motion="off"] .flow-packet { stroke-dasharray: none; stroke: #75568e; }
@media (max-width: 991px) {
  .team-section { gap: 28px; grid-template-columns: .9fr 1.1fr; }
  .team-copy p { font-size: 13px; }
}
@media (max-width: 700px) {
  .delivery-flow { padding: 18px 10px; margin-top: 28px; }
  .flow-heading { padding: 0 6px; font-size: 8px; letter-spacing: .06em; }
  .flow-step { flex-direction: column; text-align: center; gap: 8px; padding: 0 8px; background: transparent; }
  .flow-step > span:last-child { background: #1b191f; }
  .flow-icon { width: 36px; height: 36px; }
  .flow-connections { height: 36px; }
  .flow-step small { font-size: 9px; }
  .flow-step strong { font-size: 12px; }
  .team-section { grid-template-columns: 1fr; gap: 28px; }
  .working-photo img { aspect-ratio: 5/4; object-position: center 38%; }
  .team-copy h2 { font-size: 34px; }
  .team-copy p { font-size: 14px; }
  .hero-footnote { align-items: flex-start; line-height: 1.6; }
  .hero-footnote .status-dot { margin-top: 7px; }
}
/* Language controls stay visible in the mobile header, outside the menu. */
.language-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #ffffff20; border-radius: 7px; padding: 3px; background: #1b191f; width: max-content; }
.language-switch a { display: grid; place-items: center; min-width: 35px; min-height: 32px; padding: 4px 7px; border-radius: 4px; color: #aaa3b3; font-size: 11px; font-weight: 500; text-decoration: none; }
.language-switch a:hover { background: #ffffff08; color: #e9ddf7; }
.language-switch a[aria-current="true"] { background: #3b2e48; color: #e9d6ff; }
.sidebar-controls .language-switch { margin-bottom: 18px; }
.mobile-header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-header-actions .language-switch a { min-width: 32px; min-height: 32px; }
@media (max-width: 991px) {
  .mobile-header-actions { z-index: 3; }
  .sidebar[data-navigation="open"] .mobile-header-actions .language-switch { visibility: hidden; }
}
@media (max-width: 380px) {
  .sidebar-navbar-tablet { padding-left: 12px; padding-right: 12px; }
  .sidebar-tablet-avatar-name { font-size: 12px; }
  .sidebar-tablet-avatar-title { font-size: 10px; }
  .sidebar-tablet-avatar-wrap { width: 28px; height: 28px; }
  .sidebar-tablet-brand { gap: 7px; }
  .mobile-header-actions { gap: 7px; }
  .mobile-header-actions .language-switch a { min-width: 29px; }
}
@media (max-width: 380px) {
  html[lang="it"] .is-home h1.hero-heading.is-big { font-size: 36px; line-height: 1.12; }
}
