/* PIMU — direzione editoriale asimmetrica. Palette originale, invariata. */
:root {
  --color-primary: #e89e47;
  --color-secondary: #817fd1;
  --color-text: #f2f3f4;
  --color-bg: #222020;
  --line: rgba(242, 243, 244, 0.22);
  --muted: rgba(242, 243, 244, 0.75);
  --font-primary: Lato, Arial, sans-serif;
  --max-width: 1440px;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@font-face {
  font-family: Lato;
  src: url("assets/lato-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("assets/lato-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("assets/lato-900.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
/* Fondamenta mobile-first e accessibilità. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 1rem/1.65 var(--font-primary);
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.05;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 60;
  padding: 1rem;
  background: var(--color-primary);
  color: var(--color-bg);
}
.skip-link:focus {
  top: 1rem;
}
.section-wrap {
  width: min(var(--max-width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.eyebrow {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}
h2 {
  font-size: clamp(2.7rem, 7vw, 7rem);
  letter-spacing: -0.065em;
  font-weight: 900;
}
h2 em {
  font-style: normal;
  color: var(--color-secondary);
}
/* Copia del componente Coffee: misure, breakpoint, easing e tipografia. */
@font-face {
  font-family: "Coffee Sans";
  src: url("assets/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
.site-header,
.mobile-menu {
  font-family: "Coffee Sans", Arial, sans-serif;
  line-height: 1.5;
}
.site-header svg,
.mobile-menu svg {
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-menu {
  overflow-y: auto;
}
/* Il vecchio header occupava spazio nel flusso; quello Coffee è fixed. */
#main {
  padding-top: 84px;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 76px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    height 0.25s ease;
}
.site-header.is-scrolled {
  height: 66px;
  background: rgba(34, 32, 32, 0.94);
  border-color: rgba(242, 243, 244, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand {
  display: grid;
  place-items: center;
  width: 116px;
  height: 58px;
}
.brand img {
  width: auto;
  height: 35px;
  object-fit: contain;
}
.desktop-nav,
.header-direction {
  display: none;
}
.menu-button {
  color: var(--color-text) !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50% !important;
  border: 1px solid rgba(242, 243, 244, 0.4) !important;
  cursor: pointer;
}
.menu-button svg {
  width: 22px;
  height: 22px;
}
.menu-button .close-icon {
  display: none;
}
.menu-button.is-open .menu-icon {
  display: none;
}
.menu-button.is-open .close-icon {
  display: block;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 92px 24px 36px;
  background: var(--color-bg);
  color: var(--color-text);
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.42s var(--ease),
    visibility 0.42s;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu > a {
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.03;
}
.mobile-menu > a:not(.menu-cta)::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}
.mobile-menu > a:not(.menu-cta):hover::after {
  width: 1.3em;
}
.mobile-menu .menu-cta {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 243, 244, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Lato", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.menu-cta svg {
  width: 20px;
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 30px;
  }
}
@media (min-width: 960px) {
  .menu-button,
  .mobile-menu {
    display: none;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 29px);
    margin-left: auto;
    margin-right: 28px;
    color: var(--color-text);
  }
  .desktop-nav a {
    position: relative;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 1px;
    background: var(--color-primary);
    transition: right 0.2s ease;
  }
  .desktop-nav a:hover::after {
    right: 0;
  }
  .header-direction {
    min-height: 42px;
    padding: 0 14px 0 18px;
    border: 1px solid rgba(242, 243, 244, 0.4);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .header-direction svg {
    width: 16px;
  }
}
@media (min-width: 1280px) {
  .site-header {
    padding-inline: 46px;
  }
}

/* Cevorob / Uiverse, MIT. Adattato al pulsante accessibile esistente.
   Dimensioni interne originali, scala uniforme per il cerchio da 48px. */

/* From Uiverse.io by Cevorob - Tags: hamburger */
.burger {
  position: relative;
  width: 40px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: block;
  transform: scale(0.55);
  transform-origin: center;
}

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: currentColor;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.menu-button.is-open .burger span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.menu-button.is-open .burger span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.menu-button.is-open .burger span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
}

/* Layout a blocchi: sezioni distinte, griglie regolari e lettura mobile-first. */
h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  letter-spacing: -0.045em;
}

.button {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border-radius: 99px;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 700;
  margin-top: 1.5rem;
}
.button span {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.services,
.projects,
.values {
  padding-block: 3.5rem;
}
.section-heading,
.projects-heading {
  margin-bottom: 2rem;
}
.section-heading > .eyebrow,
.projects-heading > .eyebrow {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.section-heading > p:last-child:not(.eyebrow),
.concept-note {
  max-width: 550px;
  color: var(--muted);
  margin-top: 1rem;
}
.service-grid {
  display: grid;
  gap: 1.25rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(242, 243, 244, 0.025);
}
.card-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.card-top > span:last-child {
  font-size: 1.4rem;
  line-height: 1;
}
.service-card > img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  margin-block: 1rem;
}
.service-card h3 {
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}
.service-card > p {
  color: var(--muted);
  margin-block: 1rem 1.5rem;
}
.service-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.service-card li {
  margin-block: 0.5rem;
}
.service-card li::before {
  content: "• ";
  color: var(--color-primary);
}
.projects {
  border-top: 1px solid var(--line);
}
.project-grid {
  display: grid;
  gap: 2rem;
}
.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.project-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.25;
  padding: 1.5rem;
  color: var(--color-bg);
}
.concept-tag {
  position: relative;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.concept-art {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.7s var(--ease);
}
.concept-orbit {
  background: var(--color-secondary);
}
.concept-forma,
.concept-luna {
  background: var(--color-text);
}
.concept-signal {
  background: var(--color-primary);
}
.orbit-word {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  z-index: 1;
}
.orbit-word > span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 1rem;
}
.orbit-mark {
  position: absolute;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  width: 75%;
  height: 32%;
  transform: rotate(-35deg);
}
.forma-word {
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
}
.forma-word span {
  color: var(--color-secondary);
}
.forma-note {
  position: absolute;
  right: 1rem;
  bottom: 4rem;
  font-size: 0.6rem;
  line-height: 1.3;
}
.signal-word {
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.075em;
  transform: rotate(-12deg);
}
.signal-caption {
  position: absolute;
  bottom: 4rem;
  left: 1.5rem;
  font-size: 0.6rem;
}
.luna-word {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(6rem, 17vw, 12rem);
  letter-spacing: -0.08em;
  line-height: 1;
  z-index: 1;
}
.luna-word > span {
  display: block;
  font: 400 0.6rem var(--font-primary);
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 1rem;
}
.luna-orbit {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid var(--color-secondary);
  border-radius: 50%;
}
.project-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1.5rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.8rem;
}
.project-caption {
  padding: 1.5rem;
}
.project-caption h3 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.project-caption > p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
.about {
  background: var(--color-text);
  color: var(--color-bg);
  padding-block: 3.5rem;
  margin-top: 2rem;
}
.about-inner {
  display: grid;
  gap: 2.5rem;
}
.about h2 {
  margin-block: 1rem 1.5rem;
}
.about-copy > p:not(.eyebrow) {
  max-width: 560px;
}
.about-signature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(34, 32, 32, 0.2);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-weight: 700;
}
.about-signature > span {
  font-size: 2.5rem;
  color: var(--color-secondary);
}
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.portrait {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-primary);
}
.person:nth-child(2) .portrait {
  background: var(--color-secondary);
}
.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.person figcaption {
  padding-top: 1rem;
}
.person h3 {
  font-size: 1.4rem;
}
.person p {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.values-grid {
  display: grid;
  gap: 1rem;
}
.value {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
}
.value-symbol {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.value h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.value p {
  color: var(--muted);
  font-size: 0.95rem;
}
/* Footer : ogni collegamento precede la firma, ultimo elemento della pagina. */
.pimu-footer {
  padding: 2rem 0 0;
  background: var(--color-bg);
  color: var(--color-text);
}
.footer-invitation {
  background: var(--color-secondary);
  color: var(--color-bg);
  border-radius: 20px;
  padding: 2rem 1.5rem;
}
.footer-invitation > .eyebrow {
  margin-bottom: 1.5rem;
  max-width: 420px;
}
.footer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}
.footer-title-dot {
  color: var(--color-text);
}
.footer-title-arrow {
  font-size: 1.2em;
  font-weight: 400;
  color: var(--color-text);
}
.footer-connections {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem 2rem;
}
.footer-connections > a {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  min-width: 0;
}
.footer-connections .eyebrow {
  color: var(--color-primary);
}
.footer-connections > a > span:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}
.footer-connections b {
  color: var(--color-secondary);
  font-weight: 400;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-base nav {
  display: flex;
  gap: 1.5rem;
}
.footer-top {
  display: flex;
  gap: 1rem;
}
.pimu-footer details {
  font-size: 0.8rem;
  max-width: 750px;
  margin-top: 1.5rem;
  color: var(--muted);
}
.pimu-footer summary {
  cursor: pointer;
  padding-block: 0.5rem;
}
.footer-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding: 3rem 0 2rem;
  gap: 1rem;
}
.footer-signature img {
  width: 180px;
  height: auto;
}
.footer-signature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.reveal.is-revealed {
  animation: rise 0.65s var(--ease) both;
}
@keyframes rise {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}
@media (min-width: 640px) {
  :root {
    --gutter: 2rem;
  }

  .project-grid,
  .values-grid,
  .footer-connections {
    grid-template-columns: 1fr 1fr;
  }
  .project-visual {
    aspect-ratio: 1;
  }
  .orbit-word {
    font-size: clamp(5rem, 11vw, 10rem);
  }
  .forma-word {
    font-size: clamp(4rem, 9vw, 8rem);
  }
  .signal-word {
    font-size: clamp(3rem, 8vw, 7rem);
  }
  .luna-word {
    font-size: clamp(6rem, 13vw, 12rem);
  }
  .footer-invitation {
    padding: 2.5rem;
  }
  .team {
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 3.5rem;
  }

  .services,
  .projects,
  .values {
    padding-block: 5rem;
  }
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-card {
    padding: 1.75rem;
  }
  .project-visual {
    aspect-ratio: 1.35;
  }
  .about {
    padding-block: 5rem;
  }
  .about-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
  .values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .value h3 {
    min-height: 2.7rem;
  }
  .footer-invitation {
    padding: 3rem;
  }
  .footer-connections > a > span:last-child {
    font-size: 1.2rem;
  }
  .footer-signature {
    padding-top: 4rem;
  }
  .footer-signature img {
    width: 210px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .concept-art {
    transform: scale(1.06);
  }
  .project-overlay {
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
  }
  .project-card:hover .project-overlay {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .project-card:hover .concept-art {
    transform: none;
  }
}

/* Portfolio reale: immagini locali dai tre siti, con collegamenti diretti. */
.project-link {
  display: block;
  height: 100%;
  color: inherit;
}
.real-project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  aspect-ratio: 1.2;
}
.real-project-visual > img {
  display: block;
  max-width: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.project-francesco {
  background: var(--color-secondary);
}
.project-nicole {
  background: var(--color-primary);
}
.project-nicole > img {
  max-height: 85%;
  box-shadow: 8px 12px 24px rgba(34, 32, 32, 0.2);
}
.project-francesco > img {
  align-self: end;
  object-position: bottom;
}
.project-estate {
  padding: 0;
  background: var(--color-bg);
}
.project-estate > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-visit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 99px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.8rem;
  z-index: 1;
}
.project-link:hover .real-project-visual > img {
  transform: scale(1.04);
}
.project-link:focus-visible {
  outline-offset: -4px;
}
.real-projects .project-caption {
  min-height: 115px;
}
@media (min-width: 1024px) {
  .real-projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .real-project-visual {
    aspect-ratio: 1;
  }
  .real-projects .project-caption h3 {
    font-size: 1.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-link:hover .real-project-visual > img {
    transform: none;
  }
}

/* Logo del footer bianco PIMU, senza modificare il file SVG originale. */
.footer-signature img {
  filter: brightness(0) invert(1);
}

/* Firma compatta: logo proporzionato alla dicitura sottostante. */
.footer-signature img {
  width: 110px;
  height: auto;
}
.footer-signature {
  gap: 0.75rem;
}

/* Altezza logo = tre righe della firma (stessa unità tipografica condivisa). */
.footer-signature {
  --signature-line-height: 1.4rem;
}
.footer-signature p {
  line-height: var(--signature-line-height);
}
.footer-signature img {
  height: calc(var(--signature-line-height) * 1);
  width: auto;
}

/* Firma finale: proporzioni più discrete e distanza ottica ravvicinata. */
.footer-signature {
  gap: 0.4rem;
}

.footer-signature p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25rem;
}

/* Hero PIMU: titolo centrale e decorazioni originali, nessun pannello. */
.studio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 3rem 4.5rem;
}
.studio-hero-kicker {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  margin: 0 0 1rem;
}
.studio-hero-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  min-height: 230px;
  margin-bottom: 1.25rem;
  padding: 3rem 0;
}
.studio-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.9rem, 6.6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--color-text);
}
.studio-hero-heading > img {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
}
.studio-orbit {
  z-index: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0.95;
}
.studio-star-left {
  width: 32px;
  height: 32px;
  top: 14px;
  left: 12%;
}
.studio-star-right {
  width: 27px;
  height: 27px;
  bottom: 15px;
  left: 54%;
}
.studio-smile {
  width: 48px;
  height: 44px;
  right: 2%;
  bottom: 9px;
  transform: rotate(10deg);
}
.studio-hero-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}
.studio-hero-description span {
  display: block;
  margin-top: 0.65rem;
}
.studio-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  border-radius: 20px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 700;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.studio-hero-cta span {
  font-size: 1.5rem;
  line-height: 1;
}
.studio-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 158, 71, 0.15);
}
@media (min-width: 640px) {
  .studio-hero {
    padding-block: 4rem 5rem;
  }
  .studio-hero-heading {
    min-height: 320px;
    margin-bottom: 2rem;
  }
  .studio-hero-kicker {
    font-size: 1rem;
  }
  .studio-star-left {
    width: 50px;
    height: 50px;
    top: 22px;
  }
  .studio-star-right {
    width: 42px;
    height: 42px;
    bottom: 20px;
    left: 62%;
  }
  .studio-smile {
    width: 70px;
    height: 64px;
    bottom: 16px;
  }
}
@media (min-width: 1024px) {
  .studio-hero {
    padding-block: 4.5rem 7rem;
  }
  .studio-hero-heading {
    min-height: 370px;
    margin-bottom: 2.5rem;
  }
  .studio-star-left {
    left: 16%;
    top: 28px;
  }
  .studio-smile {
    right: 3%;
    width: 89px;
    height: 81px;
  }
  .studio-hero-description {
    font-size: 1.05rem;
  }
  .studio-hero-cta {
    margin-top: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero-cta {
    transition: none;
  }
  .studio-hero-cta:hover {
    transform: none;
  }
}
/* Primo schermo completo, con spazio riservato all’header fisso. */
.studio-hero {
  min-height: calc(100vh - 84px);
  min-height: calc(100svh - 84px);
  justify-content: center;
  padding-block: clamp(1.5rem, 4svh, 3rem);
}

/* CTA come Coffee: capsula in fondo alla hero, senza sovrapporre i testi. */
.studio-hero {
  justify-content: flex-start;
  padding-bottom: clamp(1.5rem, 4svh, 2.5rem);
}
.studio-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 1.5rem;
}
.studio-hero .studio-hero-cta {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-bg);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.studio-hero-cta svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.studio-hero .studio-hero-cta:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--color-primary) 90%, var(--color-text));
  box-shadow: none;
}
.studio-hero .studio-hero-cta:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero .studio-hero-cta {
    transition: none;
  }
  .studio-hero .studio-hero-cta:hover,
  .studio-hero .studio-hero-cta:active {
    transform: none;
  }
}

/* Sfondo ispirato a jerora98 / zxoBxWg: bagliore, orbite e particelle.
   Solo colori PIMU e selettori isolati dalla navigazione. */
.studio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding-inline: var(--gutter);
}
.studio-hero-content,
.studio-hero-cta {
  position: relative;
  z-index: 2;
}
.studio-hero-heading {
  min-height: 0;
  padding-block: 1.5rem 2rem;
  max-width: 1040px;
}
.studio-hero-kicker {
  color: var(--color-primary);
}
.pimu-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.pimu-glow {
  position: absolute;
  left: 50%;
  top: var(--glow-center-y, 50%);
  width: var(--glow-size, min(850px, 150vw, 75svh));
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 40% 40%,
    rgba(232, 158, 71, 0.19),
    rgba(129, 127, 209, 0.12) 38%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  animation: pimu-glow-pulse 4s ease-in-out infinite alternate;
}
.pimu-light-ring {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(340px, 68vw);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 158, 71, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pimu-orbit-turn 30s linear infinite;
}
.pimu-light-ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 15px rgba(232, 158, 71, 0.45);
  transform: translateX(-50%);
}
.pimu-light-ring-outer {
  width: min(520px, 92vw);
  border: 1px dashed rgba(129, 127, 209, 0.2);
  animation-duration: 60s;
  animation-direction: reverse;
}
.pimu-light-ring-outer::after {
  background: var(--color-secondary);
  width: 5px;
  height: 5px;
  top: -2.5px;
  box-shadow: 0 0 12px rgba(129, 127, 209, 0.5);
}
.pimu-particles {
  position: absolute;
  inset: 0;
}
.pimu-particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  animation: pimu-particle-rise var(--duration) var(--delay) linear infinite;
}
/* Posizioni e tempi delle 24 particelle decorative. */
.pimu-particles i:nth-child(1) {
  --x: 11%;
  --y: 65%;
  --duration: 5s;
  --delay: -0s;
}
.pimu-particles i:nth-child(2) {
  --x: 48%;
  --y: 78%;
  --duration: 6s;
  --delay: -0.73s;
}
.pimu-particles i:nth-child(3) {
  --x: 85%;
  --y: 91%;
  --duration: 7s;
  --delay: -1.46s;
}
.pimu-particles i:nth-child(4) {
  --x: 22%;
  --y: 69%;
  --duration: 8s;
  --delay: -2.19s;
}
.pimu-particles i:nth-child(5) {
  --x: 59%;
  --y: 82%;
  --duration: 9s;
  --delay: -2.92s;
}
.pimu-particles i:nth-child(6) {
  --x: 96%;
  --y: 95%;
  --duration: 10s;
  --delay: -3.65s;
}
.pimu-particles i:nth-child(7) {
  --x: 33%;
  --y: 73%;
  --duration: 11s;
  --delay: -4.38s;
}
.pimu-particles i:nth-child(8) {
  --x: 70%;
  --y: 86%;
  --duration: 12s;
  --delay: -5.11s;
}
.pimu-particles i:nth-child(9) {
  --x: 7%;
  --y: 99%;
  --duration: 5s;
  --delay: -5.84s;
}
.pimu-particles i:nth-child(10) {
  --x: 44%;
  --y: 77%;
  --duration: 6s;
  --delay: -6.57s;
}
.pimu-particles i:nth-child(11) {
  --x: 81%;
  --y: 90%;
  --duration: 7s;
  --delay: -7.3s;
}
.pimu-particles i:nth-child(12) {
  --x: 18%;
  --y: 68%;
  --duration: 8s;
  --delay: -8.03s;
}
.pimu-particles i:nth-child(13) {
  --x: 55%;
  --y: 81%;
  --duration: 9s;
  --delay: -8.76s;
}
.pimu-particles i:nth-child(14) {
  --x: 92%;
  --y: 94%;
  --duration: 10s;
  --delay: -9.49s;
}
.pimu-particles i:nth-child(15) {
  --x: 29%;
  --y: 72%;
  --duration: 11s;
  --delay: -10.22s;
}
.pimu-particles i:nth-child(16) {
  --x: 66%;
  --y: 85%;
  --duration: 12s;
  --delay: -10.95s;
}
.pimu-particles i:nth-child(17) {
  --x: 3%;
  --y: 98%;
  --duration: 5s;
  --delay: -11.68s;
}
.pimu-particles i:nth-child(18) {
  --x: 40%;
  --y: 76%;
  --duration: 6s;
  --delay: -12.41s;
}
.pimu-particles i:nth-child(19) {
  --x: 77%;
  --y: 89%;
  --duration: 7s;
  --delay: -13.14s;
}
.pimu-particles i:nth-child(20) {
  --x: 14%;
  --y: 67%;
  --duration: 8s;
  --delay: -13.87s;
}
.pimu-particles i:nth-child(21) {
  --x: 51%;
  --y: 80%;
  --duration: 9s;
  --delay: -14.6s;
}
.pimu-particles i:nth-child(22) {
  --x: 88%;
  --y: 93%;
  --duration: 10s;
  --delay: -15.33s;
}
.pimu-particles i:nth-child(23) {
  --x: 25%;
  --y: 71%;
  --duration: 11s;
  --delay: -16.06s;
}
.pimu-particles i:nth-child(24) {
  --x: 62%;
  --y: 84%;
  --duration: 12s;
  --delay: -16.79s;
}
.pimu-particles i:nth-child(even) {
  background: var(--color-secondary);
}
.pimu-motion-toggle {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
}
.pimu-motion-toggle:not([hidden]) {
  display: grid;
  place-items: center;
}
.studio-hero.motion-paused .pimu-ambient * {
  animation-play-state: paused;
}
@keyframes pimu-glow-pulse {
  from {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
@keyframes pimu-orbit-turn {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes pimu-particle-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: translateY(-10px) scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.5);
  }
}
@media (max-width: 480px) {
  .studio-hero .studio-hero-cta {
    margin-bottom: 3.5rem;
  }
  .pimu-motion-toggle {
    bottom: 1rem;
    right: calc(50% - 22px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pimu-ambient * {
    animation: none !important;
  }
  .pimu-particles i {
    opacity: 0.3;
  }
  .pimu-motion-toggle {
    display: none !important;
  }
}

/* Freccia di scorrimento nel cerchio precedentemente usato per la pausa. */
.pimu-scroll-down {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--color-bg);
  color: var(--color-text);
}
.pimu-scroll-down svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pimu-scroll-down:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
@media (max-width: 480px) {
  .pimu-scroll-down {
    bottom: 1rem;
    right: calc(50% - 22px);
  }
}

/* Decorazioni PIMU originali sopra lo sfondo animato, che resta invariato. */
.studio-hero-heading {
  min-height: 230px;
  padding: 3rem 0;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .studio-hero-heading {
    min-height: 320px;
    margin-bottom: 2rem;
  }
}
@media (min-width: 1024px) {
  .studio-hero-heading {
    min-height: 370px;
    margin-bottom: 2.5rem;
  }
}

/* Centro condiviso dai due anelli: coincide con il centro del titolo. */
.studio-hero .pimu-light-ring {
  left: var(--orbit-center-x, 50%);
  top: var(--orbit-center-y, 50%);
}

/* Paragrafo nella fascia inferiore e CTA larga quanto lo spazio utile. */
.studio-hero-content {
  padding-bottom: 1rem;
}
.studio-hero > .studio-hero-description {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 0 auto 1.5rem;
}
.studio-hero .studio-hero-cta {
  width: 100%;
  max-width: var(--max-width);
  margin: 0;
  min-height: 56px;
}
/* Freccia su una riga propria, per non sovrapporsi alla CTA a tutta larghezza. */
.studio-hero .pimu-scroll-down {
  position: relative;
  right: auto;
  bottom: auto;
  flex-shrink: 0;
  margin-top: 1rem;
}

/* Mockup dei progetti: laptop e smartphone con schermate autentiche.
   Le cornici scalano con la card senza alterare le immagini originali. */
.real-project-visual {
  padding: 2rem 1rem 3.8rem;
  aspect-ratio: 1.2;
  overflow: hidden;
  background: #e8e6f2;
}
.project-nicole {
  background: #f0e3d3;
}
.project-estate {
  background: #e0e9ec;
}
.device-composition {
  position: relative;
  width: 100%;
  aspect-ratio: 1.7;
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 14px 12px rgba(34, 32, 32, 0.16));
}
.device-laptop {
  position: absolute;
  left: 0;
  top: 0;
  width: 88%;
}
.device-screen {
  width: 88%;
  margin-inline: auto;
  padding: 2.1% 1.2% 2.6%;
  background: #171719;
  border: 1px solid #929295;
  border-radius: 7px 7px 2px 2px;
  overflow: hidden;
}
.device-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.device-base {
  position: relative;
  height: 5px;
  background: linear-gradient(#dedee0, #9c9c9f);
  border-radius: 1px 1px 50% 50%;
}
.device-base::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 0;
  width: 16%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: #767679;
}
.device-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  padding: 1%;
  border-radius: 12px;
  border: 1px solid #a5a5a8;
  background: #171719;
  overflow: hidden;
}
.device-phone::after {
  content: "";
  position: absolute;
  top: 4%;
  left: 35%;
  width: 30%;
  height: 3%;
  border-radius: 20px;
  background: #171719;
}
.device-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.device-ready {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-link:hover .device-composition,
.project-link:focus-visible .device-composition {
  transform: translateY(-5px) scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
  .device-composition {
    transition: none;
  }
  .project-link:hover .device-composition,
  .project-link:focus-visible .device-composition {
    transform: none;
  }
}

/* Geometria condivisa: testo nel cerchio arancione e vettoriali nel viola.
   Anche gli angoli dei riquadri restano entro la circonferenza. */
.studio-hero {
  --hero-orbit-size: min(
    680px,
    calc(100vw - var(--gutter) - var(--gutter)),
    65svh
  );
  --hero-inner-size: calc(var(--hero-orbit-size) * 0.76);
}
.studio-hero .studio-hero-heading {
  width: var(--hero-orbit-size);
  height: var(--hero-orbit-size);
  min-height: 0;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0;
  margin-bottom: 1rem;
}
.studio-hero .pimu-light-ring {
  width: var(--hero-inner-size);
}
.studio-hero .pimu-light-ring-outer {
  width: var(--hero-orbit-size);
}
.studio-hero #hero-title {
  width: max-content;
  white-space: nowrap;
  margin: 0;
  font-size: calc(var(--hero-orbit-size) * 0.08);
  line-height: 1.15;
  overflow-wrap: normal;
}
.studio-hero .studio-orbit {
  width: 93%;
  height: 35.75%;
  inset: 32.125% auto auto 3.5%;
}
.studio-hero .studio-star-left {
  width: 8%;
  height: 8%;
  inset: 20% auto auto 20%;
}
.studio-hero .studio-star-right {
  width: 7%;
  height: 7%;
  inset: 71% auto auto 55%;
}
.studio-hero .studio-smile {
  width: 11%;
  height: 10%;
  inset: 68% auto auto 84%;
  transform: rotate(10deg);
}

/* Un'unica freccia diagonale, condivisa da hero, servizi, progetti e footer. */
svg.icon-arrow-up-right {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.studio-hero-cta .icon-arrow-up-right {
  width: 19px;
  height: 19px;
}

/* Hero desktop: testo 40%, universo PIMU 60%. Mobile invariato. */
@media (min-width: 1024px) {
  .studio-hero {
    --hero-orbit-size: min(620px, 49vw, 62svh);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    text-align: left;
  }
  .studio-hero .studio-hero-content {
    grid-column: 2;
    grid-row: 1 / 5;
    min-width: 0;
    padding: 0;
    text-align: center;
    align-self: center;
  }
  .studio-hero .studio-hero-heading { margin-bottom: 0; }
  .studio-hero > .studio-hero-description {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 2rem;
    max-width: 100%;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.7;
    text-align: left;
  }
  .studio-hero .studio-hero-cta {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    width: 100%;
  }
  .studio-hero .pimu-ambient {
    left: 40%;
  }
  .studio-hero .pimu-glow {
    left: var(--orbit-center-x, 50%);
    top: var(--orbit-center-y, 50%);
    width: min(var(--glow-size), calc(var(--hero-orbit-size) * 1.3));
  }
}

/* Il copy conserva la resa originale su mobile. */
.studio-hero-description .hero-desktop-lead { font: inherit; }
.studio-hero-description .hero-copy-divider,
.studio-hero-description .hero-desktop-detail { display: inline; margin: 0; }

/* Desktop: messaggio principale a sinistra, universo come illustrazione. */
@media (min-width: 1024px) {
  .studio-hero {
    --hero-orbit-size: min(460px, 39vw, 54svh);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 6rem);
  }
  .studio-hero-description .hero-desktop-lead {
    display: block;
    max-width: 12ch;
    color: var(--color-text);
    font-size: clamp(2.8rem, 4.5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.08;
  }
  .hero-desktop-lead::after { content: '.'; color: var(--color-primary); }
  .studio-hero-description .hero-copy-divider { display: none; }
  .studio-hero-description .hero-desktop-detail {
    display: block;
    margin-top: 1.5rem;
    max-width: 44ch;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.7;
  }
  .hero-desktop-detail::first-letter { text-transform: uppercase; }
  .studio-hero .studio-hero-cta {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    gap: 2rem;
    padding-inline: 1.5rem;
  }
  .studio-hero .pimu-ambient { left: 50%; opacity: .65; }
  .studio-hero .studio-hero-kicker { font-size: .75rem; }
}

/* Informazioni di contesto della sola hero desktop. */
.hero-audience, .hero-expertise { display: none; }
@media (min-width: 1024px) {
  .studio-hero { grid-template-rows: 1fr auto auto auto auto 1fr; }
  .studio-hero .studio-hero-content { grid-row: 1 / 7; }
  .hero-audience {
    display: block;
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 1.25rem;
    color: var(--color-primary);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .studio-hero > .studio-hero-description { grid-row: 3; }
  .studio-hero .studio-hero-cta { grid-row: 4; }
  .hero-expertise {
    display: block;
    grid-column: 1;
    grid-row: 5;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.8;
  }
  .hero-expertise span { margin-inline: .35rem; color: var(--color-secondary); }
}

/* Il richiamo Creative Studio resta nella hero mobile. */
@media (min-width: 1024px) {
  .studio-hero .studio-hero-kicker { display: none; }
}

/* Composizione desktop dal riferimento: tre righe e accento su concept. */
.hero-concept { background: none; color: inherit; }
.hero-desktop-break { display: none; }
@media (min-width: 1024px) {
  .studio-hero {
    --hero-orbit-size: min(550px, 38vw, 62svh);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    padding-inline: 5vw;
  }
  .studio-hero-description .hero-desktop-lead {
    max-width: none;
    font-size: clamp(3.2rem, 5.7vw, 5.8rem);
    letter-spacing: -.055em;
    line-height: 1.06;
  }
  .hero-desktop-break { display: block; }
  .hero-concept {
    background: none;
    color: var(--color-primary);
    padding: 0;
  }
  .studio-hero-description .hero-desktop-detail {
    margin-top: 1.75rem;
    max-width: 43ch;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.65;
  }
  .hero-audience { font-size: .8rem; margin-bottom: 1.5rem; }
  .studio-hero .studio-hero-cta {
    min-height: 60px;
    padding-inline: 2rem;
    gap: 2rem;
    font-size: .85rem;
  }
  .hero-expertise { margin-top: 1.25rem; font-size: .85rem; }
  .hero-expertise span { margin-inline: .65rem; }
  .studio-hero .pimu-ambient { left: 48%; opacity: .85; }
}

/* Banner autonomo e footer ispirato al portfolio Piero Longino. */
.project-invite { padding-block: 3rem 4rem; }
.project-invite-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 24px; background: var(--color-secondary); color: var(--color-bg); }
.project-invite-panel .eyebrow { margin-bottom: 1rem; font-size: .75rem; }
.project-invite-panel h2 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 1.25rem; }
.project-invite-panel p:last-child { font-size: .95rem; line-height: 1.7; max-width: 54ch; }
.project-invite-panel > a { display: inline-flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; border-radius: 99px; background: var(--color-bg); color: var(--color-text); font-weight: 700; font-size: .85rem; }
.project-invite-panel > a:hover { background: var(--color-text); color: var(--color-bg); }
.pimu-footer { padding-top: 0; }
.portfolio-footer-body { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; background: var(--color-primary); color: var(--color-bg); }
.portfolio-footer-grid { display: grid; gap: 2.5rem; }
.portfolio-footer-heading h2 { font-size: clamp(2.5rem, 4.7vw, 4.5rem); font-weight: 900; line-height: .98; letter-spacing: -.05em; margin-bottom: 1.75rem; }
.portfolio-talk { display: inline-flex; align-items: center; gap: .8rem; padding: .5rem 1.2rem .5rem .6rem; border-radius: 99px; background: var(--color-bg); color: var(--color-text); font-size: .8rem; font-weight: 900; }
.portfolio-avatars { display: flex; }
.portfolio-avatars img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-bg); }
.portfolio-avatars img + img { margin-left: -10px; }
.portfolio-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; min-width: 0; }
.portfolio-footer-links h3 { font-size: .85rem; font-weight: 900; margin-bottom: .7rem; }
.portfolio-footer-links a { font-size: .9rem; overflow-wrap: anywhere; }
.portfolio-footer-links address { display: flex; flex-direction: column; gap: .7rem; font-style: normal; max-width: 100%; }
.portfolio-footer-links p { margin-top: 1rem; font-size: .85rem; }
.portfolio-footer-body a:hover { text-decoration: underline; text-underline-offset: 4px; }
.portfolio-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid rgba(34,32,32,.3); padding-top: 1.5rem; margin-top: 3rem; font-size: .75rem; }
.portfolio-footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.portfolio-footer-body details { color: var(--color-bg); }
@media (min-width: 640px) {
  .portfolio-footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-footer-heading { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .portfolio-footer-grid { grid-template-columns: 1.3fr .7fr 1fr; gap: 3rem; }
  .portfolio-footer-heading { grid-column: auto; }
}

/* Continuità con il sito: fondo scuro, bordi sottili e accenti PIMU. */
.project-invite { padding-block: clamp(3rem, 6vw, 6rem) 2rem; }
.project-invite-panel {
  background: radial-gradient(ellipse at 100% 0%, rgba(129,127,209,.15), transparent 65%), var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--line);
  border-radius: 20px;
  gap: 2.5rem;
}
.project-invite-panel .eyebrow { color: var(--color-primary); letter-spacing: .12em; }
.project-invite-panel h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.project-invite-panel h2 em { color: var(--color-secondary); font-style: normal; }
.project-invite-panel p:last-child { color: var(--muted); }
.project-invite-panel > a {
  background: var(--color-primary);
  color: var(--color-bg);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .06em;
  min-height: 56px;
}
.project-invite-panel > a:hover { background: var(--color-text); }
.portfolio-footer-body { background: var(--color-bg); color: var(--color-text); padding-block: clamp(2rem, 4vw, 4rem) 0; }
.footer-studio-label { font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 1rem; }
.footer-studio-label span { color: var(--color-primary); }
.footer-studio-description { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.portfolio-footer-links h3 { color: var(--color-secondary); font-size: .7rem; letter-spacing: .12em; }
.portfolio-footer-links p, .portfolio-footer-legal, .portfolio-footer-body details { color: var(--muted); }
.portfolio-footer-links svg { color: var(--color-primary); }
.portfolio-footer-body a:hover { color: var(--color-primary); }
.portfolio-footer-legal { border-color: var(--line); }
@media (max-width: 639px) {
  .project-invite-panel > a { width: 100%; justify-content: space-between; }
}

/* Separazione morbida e piccoli vettoriali originali della hero. */

.portfolio-footer-legal { border-top: 0; padding-top: 1rem; }
.footer-socials { display: flex; align-items: center; gap: .75rem; margin-top: 1.2rem; }
.footer-social-icon {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(129,127,209,.12); color: var(--color-text);
}
.footer-social-icon svg { width: 20px; height: 20px; color: inherit; }
.portfolio-footer-body a.footer-social-icon:hover { background: var(--color-secondary); color: var(--color-bg); }


/* Accesso al portfolio completo. */
.projects-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.projects-all-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 1.5rem; border-radius: 99px; background: var(--color-primary); color: var(--color-bg); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.projects-all-button:hover { background: var(--color-text); }
.projects-page-intro { padding-top: 3rem; }
.projects-page-intro a { color: var(--color-primary); font-size: .9rem; }
.projects-page-intro p { color: var(--muted); margin-top: 2rem; }
@media(max-width:639px) { .projects-all-button { width: 100%; } }


/* Etichetta invariata anche quando è l'unico elemento della riga. */
.service-card .card-top > span:first-child {
  font-size: .7rem;
  line-height: inherit;
}

/* Hover coerente per le tre azioni principali. */
:root { --color-primary-hover: #f0b66f; }
.studio-hero .studio-hero-cta,
.projects-all-button,
.project-invite-panel > a {
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.studio-hero .studio-hero-cta:hover,
.projects-all-button:hover,
.project-invite-panel > a:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg);
}
.studio-hero .studio-hero-cta:focus-visible,
.projects-all-button:focus-visible,
.project-invite-panel > a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero .studio-hero-cta,
  .projects-all-button,
  .project-invite-panel > a { transition: none; }
}

/* Azione di contatto nella navbar. */
.site-header .header-direction:hover {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Il richiamo visita risponde all'intera card, anche da tastiera. */
.project-visit {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-bg);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.project-link:hover .project-visit,
.project-link:focus-visible .project-visit {
  background: #383535;
  color: var(--color-text);
  border-color: #383535;
}
.project-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .project-visit { transition: none; }
}

/* Stesso movimento della CTA hero per le altre azioni principali. */
.projects-all-button:hover,
.project-invite-panel > a:hover {
  transform: translateY(-2px);
}
.projects-all-button:active,
.project-invite-panel > a:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .projects-all-button:hover,
  .projects-all-button:active,
  .project-invite-panel > a:hover,
  .project-invite-panel > a:active {
    transform: none;
  }
}

/* Card dei servizi statiche, anche quando vengono raggiunte allo scroll. */
.service-card.reveal.is-revealed { animation: none; }

/* CTA nella fascia inferiore: resta parte dell'unico link della card. */
.project-link .project-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.project-caption-copy { flex: 1 1 150px; min-width: 0; }
.project-caption-copy p { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.project-caption .project-visit {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: .65rem .9rem;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.project-link:hover .project-caption .project-visit,
.project-link:focus-visible .project-caption .project-visit {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-bg);
}
.real-project-visual { padding-bottom: 2rem; }

/* Azione compatta accanto al nome, con etichetta sul link della card. */
.project-link .project-caption {
  flex-wrap: nowrap;
}
.project-caption-copy { flex: 1 1 0; }
.project-caption .project-visit {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
  gap: 0;
}
.project-caption .project-visit svg { width: 20px; height: 20px; }

/* Particelle della hero dietro ai contenuti di Chi siamo. */
.about { position: relative; isolation: isolate; overflow: hidden; }
.about-particles { z-index: 0; pointer-events: none; }
.about > .about-inner { position: relative; z-index: 1; }
.about-particles i { width: 3px; height: 3px; }
@media (prefers-reduced-motion: reduce) {
  .about-particles i { animation: none; opacity: .3; }
}



/* Movimento della sola freccia circolare, quando viene puntata direttamente. */
.project-caption .project-visit {
  transition: background-color 200ms ease, color 200ms ease,
    border-color 200ms ease, transform 200ms ease;
}
@media (hover: hover) {
  .project-caption .project-visit:hover { transform: translateY(-2px); }
}
.project-caption .project-visit:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .project-caption .project-visit { transition: none; }
  .project-caption .project-visit:hover,
  .project-caption .project-visit:active { transform: none; }
}

/* Footer del portfolio: medesima struttura, spaziatura e gerarchia, identità PIMU. */
.reference-footer-surface { background: var(--color-primary); color: var(--color-bg); padding: 3.75rem 1.875rem; }
.reference-footer-container { max-width: 1440px; margin-inline: auto; display: flex; flex-direction: column; gap: 2rem; }
.reference-footer-header { display: flex; flex-direction: column; gap: 2rem; }
.reference-footer-header h2 { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.reference-footer-cta { display: inline-flex; width: fit-content; padding: .5rem 1.625rem .5rem .9375rem; align-items: center; gap: .75rem; border-radius: 6.25rem; border: 1px solid var(--color-bg); background: var(--color-bg); color: var(--color-text); font-weight: 800; }
.reference-footer-cta:hover { border-color: var(--color-text); }
.reference-footer-avatars { display: flex; }
.reference-footer-avatars img { width: 40px; height: 40px; border-radius: 50%; }
.reference-footer-avatars img + img { margin-left: -10px; }
.reference-footer-block { display: flex; flex-direction: column; gap: .3125rem; margin-top: .94rem; line-height: 2.125rem; min-width: 0; }
.reference-footer-block h3 { font-size: 1.1rem; font-weight: 900; }
.reference-footer-block address { display: flex; flex-direction: column; font-style: normal; }
.reference-footer-block a { overflow-wrap: anywhere; }
.reference-footer-block a:not(.footer-social-icon), .reference-footer-bottom a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb,currentColor 60%,transparent); }
.reference-footer .footer-socials { margin-top: 1rem; gap: .75rem; }
.reference-footer .footer-social-icon { background: var(--color-bg); color: var(--color-text); }
.reference-footer .footer-social-icon:hover { background: var(--color-text); color: var(--color-bg); }
.reference-footer-divider { border: 0; height: 1px; width: 100%; margin: 0; background: repeating-linear-gradient(to right,var(--color-secondary) 0 .25rem,transparent .25rem .5rem); }
.reference-footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .875rem; line-height: 1.9375rem; letter-spacing: -.0175rem; }
.reference-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.reference-footer-surface details { color: var(--color-bg); margin-top: 0; }
@media(min-width:1024px) {
  .reference-footer-surface { padding: 5.625rem 6.25rem 2.6875rem; }
  .reference-footer-up { display: flex; justify-content: space-between; gap: 3rem; }
  .reference-footer-main { display: flex; gap: clamp(2rem,6vw,7rem); }
  .reference-footer-block { margin-top: 0; }
}
