/* =================================================
   FENIXO — Web & Brand Designer
   Palette: nero / crema / oro / blu
================================================= */

:root {
  --nero: #060E13;
  --crema: #FFF7E5;
  --bianco: #FFFBF1;
  --oro: #FFEABB;
  --oro-soft: rgba(255, 234, 187, 0.45);
  --blu: #002E48;
  --muted: rgba(255, 247, 229, 0.55);
  --line: rgba(255, 247, 229, 0.14);
  --pad: clamp(20px, 4vw, 60px);
  --font-sans: 'PP Formula', 'Inter', system-ui, sans-serif;
  --font-serif: 'PP Pangaia', 'Georgia', serif;
  --sub-size: 14px;
  --sub-line: 18px;
  --sub-track: 0.08em;
  --micro-size: 12px;
  --micro-line: 16px;
  --micro-track: 0.08em;
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--nero);
}

html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html {
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: var(--nero);
  color: var(--crema);
  text-transform: uppercase;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Pangaia keeps its editorial casing; Formula is uppercase throughout. */
.hero-title em,
.section-title em,
.service-index,
.about-title em,
.contact-title em,
.contact-mail {
  text-transform: none;
}

::selection {
  background: var(--oro);
  color: var(--nero);
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

sup {
  font-size: 0.55em;
  color: var(--oro);
  margin-right: 0.5em;
  font-style: normal;
}

/* =================================================
   REVEAL MASKS
================================================= */

.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  padding-top: 0.12em;
}

.line-inner {
  display: block;
}

/* 150%: with tight line-heights the glyphs overflow the line box,
   at 120% the letter tops still peeked out of the mask */
html.js .line-inner {
  transform: translateY(150%);
}

html.js [data-reveal] {
  opacity: 0;
}

/* =================================================
   PRELOADER — loading line, curtain splits from the line
================================================= */

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

html.no-js .preloader {
  display: none;
}

.preloader-panel {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--nero);
  z-index: 1;
}

.panel-top {
  top: 0;
}

.panel-bottom {
  bottom: 0;
}

.preloader-line {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: transparent;
  z-index: 3;
}

.preloader-line-fill {
  position: absolute;
  inset: 0;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
}

/* =================================================
   CURSOR
================================================= */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--oro);
}

.cursor-ring {
  position: fixed;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 234, 187, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.cursor-label {
  font-size: var(--micro-size);
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  font-weight: 500;
  color: var(--crema);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor.is-project .cursor-ring {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-color: transparent;
  background: rgba(6, 14, 19, 0.48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cursor.is-project .cursor-label {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* =================================================
   HEADER
================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.5vw, 30px) var(--pad);
  color: var(--crema);
}

.site-header > .logo,
.site-header .main-nav > a,
.site-header .main-nav > .nav-dot,
.site-header .header-actions {
  will-change: transform, opacity;
}

.logo img {
  width: clamp(110px, 10vw, 144px);
  height: auto;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.3s ease;
}

.main-nav {
  position: static;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.main-nav a {
  display: block;
  overflow: hidden;
  font-size: var(--micro-size);
  font-weight: 600;
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--crema);
}

.nav-dot {
  font-size: var(--micro-size);
  font-weight: 600;
  letter-spacing: -0.08em;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
}

.btn-line {
  position: relative;
}

.btn-line::after,
.footer-col a::after,
.mobile-menu-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-line:hover::after,
.footer-col a:hover::after,
.mobile-menu-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-word {
  position: relative;
  display: block;
  line-height: 1.2;
}

.nav-layer {
  display: flex;
  white-space: nowrap;
}

.nav-layer-hover {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--oro);
}

.nav-char {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--char-index) * 0.035s);
}

.main-nav a:hover .nav-layer-current .nav-char,
.main-nav a:focus-visible .nav-layer-current .nav-char {
  transform: translateY(-120%);
}

.main-nav a:hover .nav-layer-hover .nav-char,
.main-nav a:focus-visible .nav-layer-hover .nav-char {
  transform: translateY(-100%);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 32px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--crema);
  transition: transform 0.35s, top 0.35s;
}

.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 19px; }

.menu-toggle.is-open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

/* =================================================
   MOBILE MENU
================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--oro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0% 0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 7vh, 58px);
}

.mobile-nav a {
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--nero);
  text-align: center;
}

.mobile-nav a sup { display: none; }

.mobile-menu-footer {
  position: absolute;
  bottom: var(--pad);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.025em;
  color: var(--nero);
}

.mobile-menu-footer a { position: relative; }

.mobile-lang {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* =================================================
   HERO
================================================= */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-about-flow {
  position: relative;
  overflow: clip;
}

/* One continuous media layer shared by Hero and About. The frame begins
   full-screen and is resized by the About timeline — the video never changes. */
.shared-media {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
}

.shared-media-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: var(--nero);
  will-change: top, left, width, height, border-radius;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.03) saturate(1.05);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
  text-align: center;
}

.hero-eyebrow {
  position: absolute;
  left: 10vw;
  top: 26%;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 18px;
  color: var(--oro);
  text-align: left;
}

.hero-based {
  position: absolute;
  right: 12vw;
  bottom: 22%;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 17px;
  color: var(--oro);
  text-align: right;
}

.hero-title {
  font-size: 10.4vw;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--oro);
}

/* generous mask so italic ascenders/descenders never clip */
.hero-title .line-wrap {
  padding: 0.18em 0.12em 0.14em;
}

.hero-title .line-wrap + .line-wrap {
  margin-top: calc(-0.3em + 18px);
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.1em;
  color: var(--oro);
}

.hero-title .amp {
  font-style: normal;
}


.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 22px;
  height: 36px;
}

.has-scrolled .scroll-hint {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) !important;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  overflow: visible;
}

.scroll-mouse-body {
  fill: none;
  stroke: var(--oro);
  stroke-width: 1.2;
}

.scroll-mouse-track {
  stroke: rgba(201, 168, 76, 0.15);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.scroll-mouse-line {
  stroke: var(--oro);
  stroke-width: 1.2;
  stroke-linecap: round;
  animation: scrollhint 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes scrollhint {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(14px); }
}

/* =================================================
   SECTIONS — COMMON
================================================= */

.portfolio-flow {
  position: relative;
  background:
    radial-gradient(110vw 1450px at -8% 12%, rgba(0, 46, 72, 0.46) 0%, rgba(0, 46, 72, 0.14) 42%, rgba(0, 46, 72, 0) 72%),
    radial-gradient(94vw 1650px at 108% 52%, rgba(0, 46, 72, 0.38) 0%, rgba(0, 46, 72, 0.11) 44%, rgba(0, 46, 72, 0) 74%),
    radial-gradient(100vw 1350px at 38% 84%, rgba(0, 46, 72, 0.34) 0%, rgba(0, 46, 72, 0.09) 46%, rgba(0, 46, 72, 0) 76%),
    linear-gradient(180deg, var(--nero) 0%, #07141C 32%, #071720 67%, var(--nero) 100%);
}

section {
  padding: 150px var(--pad);
}

.section-head {
  margin-bottom: 150px;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--oro);
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.section-title {
  font-size: clamp(44px, 7vw, 110px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1em;
  color: var(--oro);
}

.section-title strong {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--crema);
}

.section-title .title-shift {
  padding-left: clamp(3rem, 13vw, 13rem);
}

.section-title .dash {
  display: inline-block;
  width: clamp(60px, 8vw, 170px);
  height: 2px;
  background: var(--oro);
  vertical-align: middle;
  margin-left: 0.25em;
}

.section-title {
  color: var(--oro);
}

.section-title .line-wrap {
  padding-top: 0.16em;
  padding-bottom: 0.12em;
}

.section-title .line-wrap + .line-wrap {
  margin-top: -0.22em;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--micro-size);
  font-weight: 500;
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  padding-bottom: 4px;
}

.btn-line::after { bottom: -1px; }

.btn-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.btn-line:hover .btn-arrow,
.btn-line:focus-visible .btn-arrow {
  transform: translateX(4px) rotate(45deg);
}

/* =================================================
   WORK
================================================= */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(56px, 8vh, 96px) clamp(24px, 3vw, 48px);
  align-items: start;
}

/* le due colonne si dissolvono: le schede si affiancano in un'unica riga */
.projects-col { display: contents; }

.project-link { display: block; }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.project-media-inner {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}

.project-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-gold .project-media-inner  { background: radial-gradient(120% 120% at 20% 10%, #3a2c12 0%, #14100a 55%, #050505 100%); }
.media-blue .project-media-inner  { background: radial-gradient(120% 120% at 80% 15%, #1B2C6B 0%, #0E1633 55%, #050505 100%); }
.media-cream .project-media-inner { background: radial-gradient(120% 120% at 30% 85%, #4b4232 0%, #171310 55%, #050505 100%); }
.media-night .project-media-inner { background: radial-gradient(120% 120% at 70% 80%, #24263c 0%, #0c0d18 55%, #050505 100%); }

.project-mono {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 18vw, 300px);
  color: rgba(255, 234, 187, 0.16);
  line-height: 1;
  user-select: none;
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding-top: 16px;
}

.project-name {
  font-family: 'PP Formula', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  transition: color 0.35s ease;
}

.project:hover .project-name { color: #fff; }

.project-tags {
  font-size: var(--micro-size);
  line-height: var(--micro-line);
  font-weight: 400;
  text-align: left;
  text-transform: none;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -0.044em;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .project-link:hover .project-media-inner {
    filter: none;
    transform: scale(1.06);
  }
}

@media (hover: none), (pointer: coarse) {
  .project-meta {
    gap: 16px;
  }
}

/* 200px of air between the Behance link and the services section */
.work {
  padding-top: 300px;
  padding-bottom: 200px;
  background: transparent;
}

.work-more {
  margin-top: clamp(160px, 15vh, 320px);
  text-align: center;
}

.work-more .btn-line {
  font-size: var(--sub-size);
  line-height: var(--sub-line);
  border-bottom: 1px solid rgba(255, 234, 187, 0.28);
}

/* Featured — Works centered */
.work .section-head {
  text-align: center;
}

.work .section-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.work .section-title .title-shift {
  padding-left: 0;
}

/* Creative — Services centered */
.services .section-head {
  text-align: center;
}

.services .section-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.services .section-title .title-shift {
  padding-left: clamp(36px, 5vw, 76px);
}

/* =================================================
   SERVICES
================================================= */

.services-footer-flow {
  background:
    radial-gradient(110% 36% at 85% 8%, rgba(1, 62, 96, 0.5) 0%, rgba(0, 30, 48, 0) 58%),
    radial-gradient(120% 52% at 8% 72%, rgba(0, 10, 17, 0.72) 0%, rgba(0, 22, 36, 0) 64%),
    linear-gradient(180deg,
      rgba(0, 26, 43, 0) 0%,
      rgba(0, 26, 43, 0.92) 8%,
      #001A2B 18%,
      #001A2B 100%);
}

@media (min-width: 901px) {
  html:is([lang="it"], [lang="en"]) .contact {
    padding-bottom: 30px;
  }

  html:is([lang="it"], [lang="en"]) .site-footer {
    padding-top: 75px;
  }
}

.services {
  background: transparent;
  border-radius: 0;
  margin: 0;
  width: 100%;
  padding-top: 250px;
  padding-bottom: 200px;
  position: relative;
}

.service-list {
  list-style: none;
  border-top: 1px solid var(--line);
  width: 100%;
}

.service-row {
  display: grid;
  grid-template-columns: clamp(48px, 8vw, 120px) 1fr auto;
  align-items: center;
  padding: clamp(28px, 4.5vh, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-content {
  min-width: 0;
}

.service-row:hover {
  padding-left: clamp(8px, 1.5vw, 24px);
}

.service-index {
  align-self: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--oro);
  transition: color 0.3s ease;
}

.service-name {
  font-size: clamp(22px, 2.6vw, 35px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color 0.3s;
}

.service-row:hover .service-name,
.service-row.is-open .service-name { color: var(--oro); }

.service-desc-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease 0.08s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    margin-top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-desc {
  width: 760px;
  max-width: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: -0.044em;
  color: #fff;
}

.service-desc strong {
  display: block;
  font-weight: 500;
  color: #fff;
}

.service-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px 4px;
  border: 1px solid var(--muted);
  border-radius: 3px;
  font-size: var(--micro-size);
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  color: var(--crema);
  white-space: nowrap;
}

.service-arrow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--crema);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.service-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row:hover .service-arrow,
.service-row.is-open .service-arrow {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--nero);
}

.service-row:hover .service-arrow svg,
.service-row.is-open .service-arrow svg {
  transform: rotate(45deg);
}

.service-row:hover .service-desc-wrap,
.service-row.is-open .service-desc-wrap {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 28px;
}

/* floating preview that follows the mouse */
.service-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 700;
  width: clamp(200px, 20vw, 300px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0;
  border-radius: 6px;
  overflow: hidden;
}

.service-float-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: var(--blu);
}

.service-float-media.is-visible { opacity: 1; }

.service-float-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================================
   ABOUT
================================================= */

/* the full-bleed video sits flush against the services section above */
.about {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 430px;
  background: transparent;
}

.about-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: clamp(600px, 88vh, 860px);
}

.about-eyebrow {
  position: absolute;
  top: calc(50svh + clamp(200px, 22vw, 300px) - 80px - clamp(120px, 10vw, 150px));
  left: calc(44% - clamp(150px, 16.5vw, 225px) - clamp(70px, 6vw, 96px));
  z-index: 2;
  width: clamp(140px, 15vw, 190px);
  aspect-ratio: 1;
  transform-origin: center;
}

.about-eyebrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: about-orbit 28s linear infinite;
}

.about-eyebrow text {
  fill: var(--oro);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

@keyframes about-orbit {
  to { transform: rotate(360deg); }
}

.about-title {
  position: absolute;
  /* photo top (centered, −80px pin offset) + 40px */
  top: calc(50svh - clamp(200px, 22vw, 300px) - 40px);
  left: 58%;
  z-index: 2;
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-align: left;
}

html:is([lang="it"], [lang="en"]) .about-title {
  top: calc(50svh - clamp(200px, 22vw, 300px) + 10px);
}

/* Pull the signature 7px closer to "Stancarone," */
.about-title .line-wrap:last-child {
  margin-top: -7px;
}

.about-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: calc(1.1em + 12px);
  color: var(--oro);
}

.about-text {
  position: absolute;
  right: 0;
  top: 55%; /* fallback — JS aligns its bottom precisely to the photo bottom */
  z-index: 2;
  max-width: 300px;
  font-size: var(--sub-size);
  line-height: var(--sub-line);
  text-transform: uppercase;
  letter-spacing: var(--sub-track);
  color: var(--crema);
  text-align: left;
}

.stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -330px;
  z-index: 2;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(64px, 8vw, 150px);
}

.stats li {
  text-align: left;
}

.stat-num {
  font-size: clamp(36px, 5vw, 82px);
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.9;
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 40px);
  color: var(--oro);
}

.stat-label {
  display: block;
  font-size: var(--micro-size);
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--crema);
  margin-top: 14px;
}

.stat-label span {
  display: block;
}

/* =================================================
   CONTACT
================================================= */

.contact {
  text-align: center;
  padding-top: 0;
  padding-bottom: 60px;
  margin-top: 150px;
  background: transparent;
}

.contact .section-label {
  margin-bottom: clamp(24px, 4vh, 44px);
}

.contact-title {
  font-size: clamp(44px, 7vw, 110px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.contact-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1em;
  color: var(--oro);
}

.contact-title .line-wrap {
  padding-top: 0.16em;
  padding-bottom: 0.12em;
}

.contact-title .line-wrap + .line-wrap {
  margin-top: -0.12em;
}

.contact-mail {
  display: inline-block;
  position: relative;
  margin-top: clamp(48px, 8vh, 90px);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 46px);
  color: var(--crema);
  border-bottom: 1px solid rgba(255, 234, 187, 0.28);
  padding-bottom: 6px;
  transition: color 0.3s, border-color 0.3s;
}

.contact-mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-mail:hover {
  color: var(--oro);
  border-color: transparent;
}

.contact-links {
  margin-top: clamp(72px, 12vh, 140px);
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2vw, 30px);
  flex-wrap: wrap;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
  padding: 0 9px;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  font-size: 30px;
  color: var(--crema);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.contact-social-link i {
  flex: 0 0 30px;
  width: 30px;
  text-align: center;
}

.contact-social-label {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  font-size: var(--micro-size);
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  font-weight: 500;
  transition:
    max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  width: 136px;
  color: var(--oro);
}

.contact-social-link[aria-label="Instagram"]:hover,
.contact-social-link[aria-label="Instagram"]:focus-visible {
  width: 154px;
}

.contact-social-link[aria-label="Instagram"]:hover .contact-social-label,
.contact-social-link[aria-label="Instagram"]:focus-visible .contact-social-label {
  max-width: 100px;
}

.contact-social-link:hover .contact-social-label,
.contact-social-link:focus-visible .contact-social-label {
  max-width: 84px;
  margin-left: 10px;
  opacity: 1;
  transform: translateX(0);
}

/* =================================================
   FOOTER
================================================= */

.site-footer {
  overflow: hidden;
  padding: 150px 0 24px;
  background: transparent;
}

.footer-ticker {
  overflow: hidden;
  width: 100%;
}

.footer-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(30px, 1vw, 90px);
  will-change: transform;
  animation: footer-ticker 60s linear infinite;
}

.footer-wordmark {
  flex: none;
  height: clamp(120px, 14vw, 180px);
  width: auto;
  aspect-ratio: 89 / 26;
  fill: none;
  stroke: var(--oro);
  stroke-opacity: 0.2;
  stroke-width: 1;
}

/* every ticker wordmark uses the same 20% outline */
.footer-wordmark:nth-child(even) {
  fill: none;
  stroke: var(--oro);
  stroke-opacity: 0.2;
}

@keyframes footer-ticker {
  to { transform: translateX(-50%); }
}

.footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(10px, 1.5vh, 20px);
  padding: 0 var(--pad);
  text-align: center;
  font-size: var(--micro-size);
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  color: var(--crema);
}

.footer-location {
  justify-self: end;
  text-align: right;
}

.footer-privacy {
  justify-self: end;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 234, 187, 0.28);
}

.footer-bar a {
  position: relative;
  transition: color 0.3s;
}

.footer-bar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-bar a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bar a:hover { color: var(--oro); }

/* Shared contact/footer composition (Italian and English) */
html:is([lang="it"], [lang="en"]) .contact-actions {
  margin-top: clamp(34px, 5vh, 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 78px);
}

html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta {
  display: inline-block;
  position: relative;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 234, 187, 0.28);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.1;
  color: var(--crema);
  text-transform: none;
  transition: color 0.3s, border-color 0.3s;
}

html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta:hover,
html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta:focus-visible {
  color: var(--oro);
  border-color: transparent;
}

html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta:hover::after,
html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

html:is([lang="it"], [lang="en"]) .site-footer {
  padding: 45px 0 0;
  margin-top: -50px;
}

html:is([lang="it"], [lang="en"]) .footer-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 0 var(--pad);
  text-align: left;
  transform: translateY(calc(clamp(190px, 21vw, 300px) + clamp(14px, 2vh, 22px) - 30px));
}

html:is([lang="it"], [lang="en"]) .footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1vw, 16px);
  justify-self: end;
  width: auto;
}

html:is([lang="it"], [lang="en"]) .footer-socials .contact-social-link {
  flex: 0 0 auto;
  width: 48px;
}

html:is([lang="it"], [lang="en"]) .footer-socials .contact-social-link::after {
  display: none;
}

html:is([lang="it"], [lang="en"]) .footer-socials .contact-social-link:hover,
html:is([lang="it"], [lang="en"]) .footer-socials .contact-social-link:focus-visible {
  width: 48px;
  color: var(--oro);
}

html:is([lang="it"], [lang="en"]) .footer-ticker {
  width: 100%;
  height: clamp(190px, 21vw, 300px);
  margin-top: clamp(14px, 2vh, 22px);
  padding: 0;
  overflow: hidden;
}

html:is([lang="it"], [lang="en"]) .footer-ticker-track {
  align-items: flex-start;
}

html:is([lang="it"], [lang="en"]) .footer-wordmark {
  height: clamp(240px, 26vw, 380px);
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 900px) {

  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 15vw; }
  .hero-title em { font-size: 1.1em; }

  .hero-eyebrow { display: none; }
  .hero-based {
    right: var(--pad);
    bottom: 10%;
  }
  .hero-services { left: var(--pad); bottom: 11%; }


  .projects { grid-template-columns: 1fr; }
  .projects-col-right { margin-top: 0; }
  .projects-col-left,
  .projects-col-right { gap: clamp(70px, 12vh, 120px); }
  .projects-col-left { margin-bottom: clamp(70px, 12vh, 120px); }

  .project-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .project-name,
  .project-tags {
    display: block;
    width: 100%;
    text-align: left;
  }

  .service-list { width: 100%; }

  .service-row {
    grid-template-columns: 1fr auto;
    width: 100%;
    min-width: 0;
    cursor: pointer;
  }

  .service-index {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .service-content {
    min-width: 0;
  }

  .service-desc {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .service-desc strong {
    width: 100%;
    white-space: normal;
  }

  .service-tag {
    white-space: nowrap;
  }

  .service-arrow {
    width: 48px;
    height: 48px;
  }

  .service-arrow svg {
    width: 20px;
    height: 20px;
  }

  .service-float { display: none; }

  .about {
    padding-bottom: 120px;
  }

  .about-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .about-eyebrow,
  .about-title,
  .about-text,
  .stats {
    position: static;
    transform: none;
    inset: auto;
  }

  .about-title { font-size: clamp(34px, 9vw, 50px); }

  html:is([lang="it"], [lang="en"]) .about-title {
    margin-top: 50px;
  }

  .about-eyebrow { display: none; }

  .about-text { max-width: 100%; top: auto; }

  .stats {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px 40px;
    margin-top: 12px;
  }

  .stats li,
  .stats li:nth-child(2),
  .stats li:nth-child(3) { text-align: left; }

  .section-head { margin-bottom: 90px; }

  .work {
    padding-top: 140px;
    padding-bottom: 140px;
  }

  .services {
    padding-top: 140px;
    padding-bottom: 120px;
  }

  .contact {
    margin-top: 80px;
    padding-bottom: 10px;
  }

  .contact-mail {
    display: table;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(36px, 10vw, 46px);
    opacity: 1;
  }


  .site-footer {
    padding-top: 25px;
  }

  html:is([lang="it"], [lang="en"]) .contact-actions {
    margin-top: 38px;
    flex-direction: column;
    gap: 18px;
  }

  html:is([lang="it"], [lang="en"]) .contact-actions .contact-cta {
    font-size: clamp(28px, 9vw, 42px);
  }

  html:is([lang="it"], [lang="en"]) .site-footer {
    padding-top: 35px;
  }

  html:is([lang="it"], [lang="en"]) .footer-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
    transform: translateY(calc(clamp(120px, 36vw, 170px) + 14px - 30px));
  }

  html:is([lang="it"], [lang="en"]) .footer-socials {
    grid-row: 1;
    justify-self: center;
    justify-content: center;
  }

  html:is([lang="it"], [lang="en"]) .footer-legal {
    grid-row: 2;
  }

  html:is([lang="it"], [lang="en"]) .footer-ticker {
    height: clamp(120px, 36vw, 170px);
    margin-top: 14px;
  }

  html:is([lang="it"], [lang="en"]) .footer-wordmark {
    height: clamp(170px, 49vw, 230px);
  }

  .footer-bar {
    justify-content: center;
  }

  .footer-privacy { justify-self: end; }

  .menu-open .logo {
    opacity: 0;
    pointer-events: none;
  }

  .menu-toggle.is-open span {
    background: var(--nero);
  }
}

@media (max-width: 640px) {
  .hero-services { display: none; }

  /* iOS Safari samples the first painted edge color for its browser chrome.
     Keep a dark 2px perimeter while preserving the yellow loading curtain. */
  @supports (-webkit-touch-callout: none) {
    html[lang="en"] .preloader {
      background: var(--nero);
    }

    html[lang="en"] .panel-top {
      top: 2px;
      height: calc(50% - 2px);
    }

    html[lang="en"] .panel-bottom {
      bottom: 2px;
      height: calc(50% - 2px);
    }
  }
}

/* =================================================
   REDUCED MOTION
================================================= */

@media (prefers-reduced-motion: reduce) {
  .scroll-mouse-line { animation: none; }
  .about-eyebrow svg { animation: none; }
}

/* Preloader saltato dalla seconda visita */
.intro-seen .preloader { display: none !important; }

/* =================================================
   SERVICES — fisarmonica orizzontale (desktop)
================================================= */
@media (min-width: 901px) {
  .service-list {
    display: flex;
    height: clamp(500px, 66vh, 680px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .service-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 0;
    padding: clamp(24px, 2.4vw, 36px);
    border-bottom: 0;
    border-left: 1px solid var(--line);
    overflow: hidden;
    transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .service-row:first-child { border-left: 0; }
  .service-row:hover { flex-grow: 2.3; padding-left: clamp(24px, 2.4vw, 36px); }

  .service-index { align-self: flex-start; margin-bottom: clamp(20px, 3vh, 36px); }
  .service-content { width: 100%; }
  .service-name { font-size: clamp(22px, 2.3vw, 34px); }

  .service-desc { width: 100%; }
  .service-row:hover .service-desc-wrap { margin-top: 20px; }

  .service-media {
    margin-top: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .service-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .service-row:hover .service-media { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }

  .service-arrow {
    position: absolute;
    top: clamp(20px, 2vw, 32px);
    right: clamp(20px, 2vw, 32px);
    width: 44px;
    height: 44px;
  }
  .service-arrow svg { width: 18px; height: 18px; }
}

@media (max-width: 900px) {
  .service-media { display: none; }
}

/* ---------- Header: menu a tendina Servizi ---------- */
.nav-dd { position: relative; }
.nav-sub { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 16px; z-index: 60; }
.nav-dd:hover .nav-sub, .nav-dd:focus-within .nav-sub { display: block; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; bottom: 0; background: var(--bianco); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.main-nav .nav-sub a { position: relative; display: block; overflow: visible; white-space: nowrap; margin: 6px; padding: 12px 16px; border-radius: 10px; color: var(--nero); }
.main-nav .nav-sub a:hover, .main-nav .nav-sub a:focus-visible { background: rgba(6,14,19,.08); }
.mobile-nav a.mobile-sub { font-size: clamp(20px, 5vw, 26px); opacity: .6; margin-top: -14px; }

/* =================================================
   HEADER: voce attiva, CTA, popup progetto
================================================= */
.nav-item { position: relative; }
.nav-item.is-current::after,
.nav-dd.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: currentColor;
}

.nav-cta {
  appearance: none;
  cursor: pointer;
  margin-left: clamp(4px, 1vw, 16px);
  padding: 10px 18px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: var(--micro-size);
  font-weight: 600;
  line-height: var(--micro-line);
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--bianco); color: var(--nero); }
.cs-light .nav-cta:hover { background: var(--nero); color: var(--bianco); }

.mobile-cta {
  appearance: none;
  cursor: pointer;
  margin-top: 8px;
  padding: 16px 28px 14px;
  border: 1px solid var(--nero);
  border-radius: 6px;
  background: transparent;
  color: var(--nero);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* popup fullscreen, tutto bianco */
.pm {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bianco);
  color: var(--nero);
}
.pm[hidden] { display: none; }
.pm-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.pm-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(96px, 12vh, 140px) var(--pad) clamp(56px, 8vh, 96px);
}
.pm-close {
  position: fixed;
  top: clamp(18px, 2.5vw, 30px);
  right: var(--pad);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--nero);
  border-radius: 50%;
  background: var(--bianco);
  cursor: pointer;
}
.pm-close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: var(--nero); }
.pm-close span:first-child { transform: rotate(45deg); }
.pm-close span:last-child { transform: rotate(-45deg); }

.pm, .pm * { text-transform: none; }
.pm-label { font-size: var(--micro-size); letter-spacing: var(--micro-track); text-transform: uppercase !important; margin-bottom: 20px; color: var(--nero); }
.pm-title { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.06em; color: var(--nero); margin-bottom: clamp(32px, 5vh, 56px); }

.pm-form { display: grid; gap: 28px; }
.pm-field { display: grid; gap: 10px; min-width: 0; border: 0; padding: 0; margin: 0; }
.pm-field label, .pm-field legend {
  font-size: var(--micro-size); line-height: var(--micro-line); letter-spacing: var(--micro-track);
  text-transform: uppercase !important; color: var(--nero); padding: 0;
}
.pm-field input[type="text"], .pm-field input[type="email"], .pm-field input[type="tel"], .pm-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--nero); border-radius: 0; background: transparent; color: var(--nero);
  font-family: 'Inter', system-ui, sans-serif; font-size: 18px; letter-spacing: -0.8px; padding: 10px 0; outline: none;
}
.pm-field textarea { resize: vertical; }
.pm-field input:focus, .pm-field textarea:focus { border-bottom-width: 2px; }
.pm-field .is-invalid { border-bottom-color: #c00; }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

fieldset.pm-field { gap: 22px; }
.pm-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-pills label { position: relative; cursor: pointer; text-transform: none !important; }
.pm-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pm-pills span {
  display: inline-flex; padding: 11px 18px; border: 1px solid var(--nero); border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 16px; letter-spacing: -0.04em; text-transform: none !important; color: var(--nero);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.pm-pills label:hover span { background: rgba(6,14,19,.08); }
.pm-pills input:checked + span { background: var(--nero); color: var(--bianco); }
.pm-pills input:focus-visible + span { outline: 2px solid var(--nero); outline-offset: 2px; }

.pm-consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; text-transform: none !important; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; letter-spacing: -0.04em; line-height: 1.4; }
.pm-consent input {
  flex: none; width: 22px; height: 22px; margin: 0; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--nero); border-radius: 4px; background: var(--bianco); display: grid; place-items: center; cursor: pointer;
}
.pm-consent input::after { content: ''; width: 11px; height: 6px; border-left: 2px solid var(--bianco); border-bottom: 2px solid var(--bianco); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s ease; }
.pm-consent input:checked { background: var(--nero); }
.pm-consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.pm-consent input:focus-visible { outline: 2px solid var(--nero); outline-offset: 2px; }
.pm-consent input.is-invalid { border-color: #c00; }

.pm-submit {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 18px 28px 16px; border: 1px solid var(--nero); border-radius: 6px; background: var(--nero); color: var(--bianco);
  font-family: inherit; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase !important;
}
.pm-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pm-submit:hover { background: var(--bianco); color: var(--nero); }
.pm-status { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; letter-spacing: -0.04em; min-height: 1.4em; }

body.pm-open { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  body:has(.cursor) .pm, body:has(.cursor) .pm * { cursor: none !important; }
}
body.pm-open .cursor { z-index: 100001; }
body.pm-open .cursor-dot { background: var(--nero); }
body.pm-open .cursor-ring { border-color: rgba(0,0,0,.45); }
@media (max-width: 700px) { .pm-row { grid-template-columns: 1fr; } }
.nav-dd > a:not([href]), .mobile-nav a:not([href]) { cursor: default; }
.mobile-nav a.mobile-label { pointer-events: none; }

/* popup: domande, descrizioni e opzioni condizionali */
.pm-field[hidden] { display: none; }
.pm-hint { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; letter-spacing: -0.04em; color: #555; text-transform: none !important; }
.pm-pills--desc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-pills--desc label { display: block; }
.pm-pills--desc span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border-radius: 20px; padding: 16px 20px; height: 100%; }
.pm-pills--desc b { font-weight: 500; font-size: 16px; }
.pm-pills--desc small { font-size: 14px; line-height: 1.35; opacity: .7; }
@media (max-width: 700px) { .pm-pills--desc { grid-template-columns: 1fr; } }
fieldset.pm-field > legend { margin-bottom: 10px; float: none; }
fieldset.pm-field { gap: 0; }
fieldset.pm-field > .pm-pills { margin-top: 18px; }
html:has(body.pm-open), html:has(body.pm-open) body { overflow: hidden !important; }


/* Tendina Servizi: più respiro, icone, Inter minuscolo */
.nav-sub { min-width: 290px; }
.main-nav .nav-sub a {
  display: flex; align-items: center; gap: 14px;
  margin: 10px; padding: 16px 20px; border-radius: 12px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; text-transform: none;
}
.main-nav .nav-sub a + a { margin-top: 0; }
.main-nav .nav-sub a i { flex: none; font-size: 22px; line-height: 1; }

/* Cursore sopra header e tendina; scuro quando la tendina (sfondo chiaro) è sotto il mouse */
.cursor { z-index: 10000; }
body:has(.nav-sub:hover) .cursor-dot { background: var(--nero); }
body:has(.nav-sub:hover) .cursor-ring { border-color: rgba(6, 14, 19, 0.55); }

/* Popup: label più vicine alle opzioni */
fieldset.pm-field { gap: 10px; }
.pm-field { gap: 2px; }
.pm-field legend small { text-transform: none; opacity: .6; letter-spacing: 0; }
.pm-form { gap: 24px; }
fieldset.pm-field { gap: 0; }
fieldset.pm-field > legend { margin: 0 0 12px; padding: 0; }
fieldset.pm-field .pm-pills { margin: 0; }
.pm-row { margin-top: 20px; }

/* Footer senza logo: barra legale + social in linea */
html:is([lang="it"], [lang="en"]) .site-footer { padding: 36px 0 36px; margin-top: 0; }
html:is([lang="it"], [lang="en"]) .footer-bar { transform: none; }
html:is([lang="it"], [lang="en"]) .footer-legal { font-size: 14px; letter-spacing: -0.02em; text-transform: none; }

/* Home: numeri con il + prima, testi centrati, stelle sotto le recensioni */
ul.stats li{text-align:center}
ul.stats .stat-plus{font-style:normal;font-family:inherit;vertical-align:top;margin-right:.08em;line-height:1}
ul.stats .stat-label{text-align:center}
ul.stats .stat-stars{display:flex;justify-content:center;gap:4px;margin-top:8px}
ul.stats .stat-stars svg{width:15px;height:15px;fill:var(--oro)}
