
html, body {
  overflow-x: clip !important;
}



.hero.hero-photo {
  background: #0a0b14;
}

.hero.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero.hero-photo .hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: #0a0b14;
}

.hero.hero-photo .hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 14s linear;
}
.hero.hero-photo .hero-bg-image.entered {
  /* Opacity ridotta: l'immagine fa da texture sotto, non protagonista */
  opacity: 0.45;
  transform: scale(1);
}

/* OVERLAY — due grandi spot blu laterali stile ArtiFolio
   Sinistra: blu electric. Destra: blu + cyan.
   Centro libero così il testo + l'immagine respirano. */
.hero.hero-photo .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background:

    radial-gradient(ellipse 70% 110% at -10% 50%,
      rgba(31, 22, 255, 0.95) 0%,
      rgba(31, 22, 255, 0.65) 18%,
      rgba(31, 22, 255, 0.30) 38%,
      transparent 62%),

    radial-gradient(ellipse 70% 110% at 110% 50%,
      rgba(0, 109, 255, 0.90) 0%,
      rgba(38, 255, 255, 0.55) 18%,
      rgba(0, 109, 255, 0.25) 40%,
      transparent 65%),

    linear-gradient(180deg,
      transparent 60%,
      rgba(10, 11, 20, 0.35) 100%);
}


.hero.hero-photo .hero-overlay::before,
.hero.hero-photo .hero-overlay::after {
  content: '';
  position: absolute;
  top: -10%;
  width: 80%;
  height: 120%;
  pointer-events: none;
  filter: blur(50px);
  mix-blend-mode: screen;
  opacity: 0.6;
}
/* Bagliore extra sinistra — pulsa leggermente */
.hero.hero-photo .hero-overlay::before {
  left: -25%;
  background: radial-gradient(circle, rgba(31, 22, 255, 0.7) 0%, transparent 60%);
  animation: hero-pulse-left 9s ease-in-out infinite;
}
/* Bagliore extra destra */
.hero.hero-photo .hero-overlay::after {
  right: -25%;
  background: radial-gradient(circle, rgba(38, 255, 255, 0.5) 0%, transparent 60%);
  animation: hero-pulse-right 11s ease-in-out infinite;
}

@keyframes hero-pulse-left {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%      { transform: translate(3%, -2%) scale(1.08); opacity: 0.75; }
}
@keyframes hero-pulse-right {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50%      { transform: translate(-3%, 2%) scale(1.1); opacity: 0.65; }
}

.hero.hero-photo .container {
  position: relative;
  z-index: 3;
}

.hero.hero-photo .hero-tag {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: var(--white) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero.hero-photo .hero-tag .dot {
  background: var(--cyan) !important;
  box-shadow: 0 0 10px var(--cyan);
}

.hero.hero-photo h1 {
  color: var(--white) !important;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero.hero-photo h1 .accent {
  color: var(--cyan) !important;
}
.hero.hero-photo h1 .h-underline {
  position: relative;
  display: inline-block;
}
.hero.hero-photo h1 .h-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.32em;
  background: linear-gradient(90deg, rgba(31,22,255,0.55), rgba(38,255,255,0.35));
  z-index: -1;
  border-radius: 4px;
}

.hero.hero-photo .hero-sub {
  color: rgba(255,255,255,0.82) !important;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.hero.hero-photo .hero-sub strong {
  color: var(--white) !important;
}

/* Bottoni CTA su sfondo scuro */
.hero.hero-photo .btn-pill.primary {
  background: var(--white) !important;
  color: #0a0b14 !important;
}
.hero.hero-photo .btn-pill.primary .arr-circle {
  background: var(--accent) !important;
  color: var(--white) !important;
}
.hero.hero-photo .btn-pill.primary:hover {
  background: var(--cyan) !important;
  color: #0a0b14 !important;
}
.hero.hero-photo .btn-pill.ghost {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.35) !important;
  color: var(--white) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero.hero-photo .btn-pill.ghost .arr-circle {
  background: var(--white) !important;
  color: #0a0b14 !important;
}
.hero.hero-photo .btn-pill.ghost:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: var(--white) !important;
}

.hero.hero-photo .hero-scroll {
  color: rgba(255,255,255,0.7) !important;
}
.hero.hero-photo .hero-scroll-line {
  background: rgba(255,255,255,0.4) !important;
}
.hero.hero-photo .hero-scroll-line::after {
  background: var(--white) !important;
}



:root {
  --container: 1720px;
}


.container {
  max-width: 1720px !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Hero: il flex column del parent può rompere il centraggio.
   Forzo align-self center. */
.hero .container {
  align-self: center !important;
}

/* Tolgo il max-width 1100px hardcoded su .hero h1 per
   farlo respirare dentro il container 1720 senza sembrare incassato */
.hero h1 {
  max-width: 1280px !important;
}
.hero-sub {
  max-width: 720px !important;
}

/* CTA banner pre-footer — anche lui usa var(--container) ma in più
   ha padding interno 100px 80px che vogliamo mantenere */
.cta-banner-inner {
  max-width: 1720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Footer — niente di particolare, ma forzo per sicurezza */
.site-footer .container {
  max-width: 1720px !important;
}

/* Menu bento — già impostati */
.menu-modal-top,
.menu-bento {
  max-width: 1720px !important;
}



.container-wide {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .container-wide { padding: 0 24px; }
}



.site-header {
  padding: 18px 0 !important;
  gap: 0 !important;
  display: block !important;
}
.site-header.scrolled {
  padding: 14px 0 !important;
}
.site-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 1024px) {
  .site-header-inner > .header-left { display: none; }
  .site-header-inner > .header-center { justify-content: flex-start; }
}



.menu-toggle-v2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 11px 11px 20px;
  background: #18181f;
  color: var(--white);
  border-radius: var(--r-full);
  border: 1px solid #28282f;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.menu-toggle-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.menu-toggle-v2:hover {
  background: #0a0b14;
  border-color: #383844;
  padding-left: 24px;
}
.menu-toggle-v2:hover::before { opacity: 1; }

.menu-toggle-label {
  position: relative; z-index: 1;
  line-height: 1;
}
.menu-toggle-icon {
  position: relative; z-index: 1;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
}
.menu-toggle-icon span {
  display: block;
  height: 1.5px;
  background: #0a0b14;
  border-radius: 1px;
  transition: all 0.4s var(--ease);
}
.menu-toggle-icon span:first-child { width: 12px; }
.menu-toggle-icon span:last-child  { width: 7px;  }
.menu-toggle-v2:hover .menu-toggle-icon span:first-child { width: 12px; }
.menu-toggle-v2:hover .menu-toggle-icon span:last-child  { width: 12px; }

@media (max-width: 640px) {
  .menu-toggle-label { display: none; }
  .menu-toggle-v2 { padding: 11px; }
}



.logo-text { position: relative; display: inline-block; white-space: nowrap; line-height: 1; }
.logo-text-base { color: var(--text); position: relative; z-index: 1; }
.logo-text-wave {
  position: absolute; top: 0; left: 0;
  pointer-events: none; z-index: 2;
  background-image: linear-gradient(90deg,
    transparent 0%, transparent 35%,
    var(--blue) 44%, var(--blue-mid) 49%, var(--cyan) 54%,
    transparent 65%, transparent 100%);
  background-size: 280% 100%;
  background-repeat: no-repeat;
  background-position: -80% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: logo-wave 4.5s var(--ease) infinite;
  filter: drop-shadow(0 0 8px rgba(31,22,255,.35));
}
@keyframes logo-wave {
  0%   { background-position: -80% 50%; }
  100% { background-position: 180% 50%; }
}



.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 44px;
  position: relative; z-index: 3;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 26px;
  border-radius: var(--r-full);
  font-weight: 400;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}
.btn-pill .arr-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
  line-height: 1;
}
.btn-pill:hover .arr-circle { transform: rotate(-45deg); }
.btn-pill.primary { background: #0a0b14; color: var(--white); }
.btn-pill.primary .arr-circle { background: var(--accent); color: var(--white); }
.btn-pill.primary:hover { background: #18181f; transform: translateY(-2px); }
.btn-pill.ghost {
  background: rgba(255,255,255,0.7);
  color: var(--text);
  border-color: rgba(0,0,0,0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.btn-pill.ghost .arr-circle { background: #0a0b14; color: var(--white); }
.btn-pill.ghost:hover { background: var(--white); border-color: var(--text); transform: translateY(-2px); }



.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mid);
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
}
.section-eyebrow.accent { color: var(--accent); }


/* ====================================================================
   CHI SIAMO
   ==================================================================== */
.about-block {
  padding: 180px 0 140px;
  position: relative;
  overflow: hidden;
}
.about-block::before {
  content: '';
  position: absolute;
  top: 20%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(31,22,255,0.10) 0%, transparent 70%);
  filter: blur(100px);
  z-index: 0;
}
.about-block .container-wide { position: relative; z-index: 1; }

.about-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 100px;
  gap: 32px;
  flex-wrap: wrap;
}
.about-meta {
  display: flex;
  gap: 40px;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 300;
}
.about-meta strong {
  color: var(--text);
  font-weight: 500;
}

.about-headline {
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #000;
  max-width: 18ch;
  margin-bottom: 100px;
}
.about-headline em {
  font-style: normal;
  background-image: linear-gradient(transparent 72%, var(--accent-soft) 72%);
  padding: 0 4px;
}
.about-headline .accent {
  color: var(--accent);
  font-weight: 200;
}

.about-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 120px;
  align-items: start;
}
.about-body-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  padding-top: 8px;
}
.about-body-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-body-content p {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  color: var(--text);
  line-height: 1.55;
  font-weight: 300;
  max-width: 56ch;
  letter-spacing: -0.005em;
}
.about-body-content p strong {
  color: #000;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .about-block { padding: 120px 0 100px; }
  .about-body-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-meta { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .about-block { padding: 80px 0 60px; }
  .about-eyebrow-row { margin-bottom: 60px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .about-meta { flex-direction: column; gap: 8px; }
}


/* ====================================================================
   SERVIZI — lista accordion fullwidth monocromatica
   ==================================================================== */
.services-block {
  padding: 100px 0 180px;
  position: relative;
  overflow: hidden;
}
.services-block .container-wide { position: relative; z-index: 1; }

.services-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: end;
  margin-bottom: 100px;
}
.services-head-title {
  font-size: clamp(2.8rem, 6.4vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #000;
  max-width: 14ch;
}
.services-head-title .accent {
  color: var(--accent);
  font-weight: 200;
}
.services-head-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 16px;
}
.services-head-side p {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 48ch;
  font-weight: 300;
}
.services-head-side p strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .services-block { padding: 60px 0 100px; }
  .services-head { grid-template-columns: 1fr; gap: 32px; align-items: start; margin-bottom: 60px; }
}

/* Lista accordion */
.services-list { border-top: 1px solid var(--border-2); }

.service-row {
  position: relative;
  border-bottom: 1px solid var(--border-2);
  transition: background 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.service-row:hover { background: var(--paper); }
.service-row.is-open { background: var(--paper); }

.service-row-head {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 44px 0;
  position: relative;
  z-index: 1;
}

/* Numero con trattino orizzontale, niente blu */
.service-row-num {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--grey-300);
  font-variant-numeric: tabular-nums;
  transition: all 0.5s var(--ease);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-row-num::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  margin-right: 4px;
  transition: width 0.5s var(--ease);
}
.service-row:hover .service-row-num,
.service-row.is-open .service-row-num {
  color: #000;
}
.service-row:hover .service-row-num::before,
.service-row.is-open .service-row-num::before {
  width: 48px;
}

/* Titolo */
.service-row-title {
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  transition: transform 0.6s var(--ease);
  margin: 0;
}
.service-row:hover .service-row-title {
  transform: translateX(12px);
}
.service-row-title .accent-thin {
  color: var(--accent);
  font-style: italic;
  font-weight: 200;
}

/* "+" senza cerchio */
.service-row-toggle {
  position: relative;
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease);
  color: #000;
  background: none;
  border: none;
}
.service-row-toggle::before,
.service-row-toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.5s var(--ease);
}
.service-row-toggle::before {
  width: 22px; height: 1.5px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.service-row-toggle::after {
  width: 1.5px; height: 22px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.service-row.is-open .service-row-toggle {
  transform: rotate(45deg);
}

/* Mouse-follow tint */
.service-row::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(10,11,20,0.04) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  z-index: 0;
}
.service-row:hover::before { opacity: 1; }

/* Body espanso */
.service-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease);
}
.service-row.is-open .service-row-body { grid-template-rows: 1fr; }
.service-row-body-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 48px 48px;
  column-gap: 48px;
}
.service-row.is-open .service-row-body-inner { padding-bottom: 60px; }
.service-row-spacer { grid-row: 1 / span 2; }

.service-row-description {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--text);
  line-height: 1.55;
  font-weight: 300;
  max-width: 56ch;
  letter-spacing: -0.005em;
  margin: 0;
}
.service-row-description strong {
  color: #000;
  font-weight: 500;
}

.service-row-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
}
.service-row-features li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--text);
  font-weight: 300;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.service-row-features li:first-child { padding-top: 0; }
.service-row-features li:last-child  { border-bottom: none; padding-bottom: 0; }
.service-row-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* CTA per ogni servizio — pillola ghost, span 2 colonne in basso */
.service-row-cta {
  grid-column: 2 / span 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 22px;
  background: transparent;
  color: #000;
  border: 1px solid #000;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.service-row-cta .arr-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #000;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.service-row-cta:hover {
  background: #0a0b14;
  color: var(--white);
  transform: translateY(-2px);
}
.service-row-cta:hover .arr-circle {
  background: var(--accent);
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .service-row-head { grid-template-columns: 80px 1fr auto; gap: 24px; padding: 36px 0; }
  .service-row-body-inner { grid-template-columns: 80px 1fr; gap: 24px; }
  .service-row-features { grid-column: 2; }
  .service-row-cta { grid-column: 2; grid-row: auto; }
  .service-row.is-open .service-row-body-inner { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .service-row-head { grid-template-columns: 40px 1fr 28px; gap: 16px; padding: 28px 0; }
  .service-row-num { font-size: 1.1rem; }
  .service-row-num::before { display: none; }
  .service-row-title { font-size: 1.6rem; }
  .service-row-toggle { width: 24px; height: 24px; }
  .service-row-toggle::before { width: 16px; }
  .service-row-toggle::after  { height: 16px; }
  .service-row-body-inner { grid-template-columns: 1fr; }
  .service-row-features { grid-column: 1; }
  .service-row-cta { grid-column: 1; width: 100%; justify-content: space-between; }
}


/* ====================================================================
   SLIDE-OVER CONTATTI
   ==================================================================== */
.contact-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,11,20,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  z-index: 300;
  pointer-events: none;
  transition: all 0.6s var(--ease);
}
.contact-backdrop.open {
  background: rgba(10,11,20,0.38);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  pointer-events: auto;
}

.contact-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(94vw, 900px);
  background: rgba(246,248,255,0.86);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,0.9);
  box-shadow: -40px 0 100px -20px rgba(31,22,255,0.18);
  z-index: 310;
  transform: translateX(100%);
  transition: transform 0.7s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-panel.open { transform: translateX(0); }
.contact-panel::before {
  content: '';
  position: absolute;
  top: -220px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(31,22,255,0.20) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none; z-index: -1;
}
.contact-panel::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,109,255,0.20) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none; z-index: -1;
}

.contact-panel-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 56px 68px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,11,20,0.16) transparent;
}
.contact-panel-inner::-webkit-scrollbar { width: 8px; }
.contact-panel-inner::-webkit-scrollbar-track { background: transparent; }
.contact-panel-inner::-webkit-scrollbar-thumb {
  background: rgba(10,11,20,0.14);
  border-radius: var(--r-full);
}
.contact-panel-inner::-webkit-scrollbar-thumb:hover { background: rgba(10,11,20,0.26); }

.contact-panel-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 72px;
}

.contact-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  transition: all 0.3s var(--ease);
  line-height: 1;
  border: none;
  cursor: pointer;
}
.contact-close:hover { background: var(--accent); transform: rotate(90deg) scale(1.08); }
.contact-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.contact-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.contact-title {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #000;
  margin: 0;
  max-width: 16ch;
}
.contact-title .accent { color: var(--accent); font-weight: 200; }

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.contact-field { display: flex; flex-direction: column; gap: 14px; }
.contact-field-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

.contact-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-pill {
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(10,11,20,0.07);
  box-shadow: 0 1px 2px rgba(10,11,20,0.03);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  font-family: inherit;
  white-space: nowrap;
}
.contact-pill:hover {
  background: #fff;
  border-color: rgba(31,22,255,0.45);
  color: var(--accent);
  transform: translateY(-1px);
}
.contact-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(31,22,255,0.6);
}
.contact-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-budget .contact-pill { font-size: 0.88rem; padding: 9px 16px; }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-field .contact-row + .contact-row { margin-top: 12px; }
.contact-input {
  width: 100%;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(10,11,20,0.09);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10,11,20,0.04);
  padding: 15px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: #000;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.contact-input::placeholder { color: var(--grey-500); font-weight: 300; }
.contact-input:hover { border-color: rgba(10,11,20,0.2); }
.contact-input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,22,255,0.14), 0 8px 22px -12px rgba(31,22,255,0.55);
}
.contact-input:not(:placeholder-shown):invalid {
  border-color: #d8453a;
  box-shadow: 0 0 0 3px rgba(216,69,58,0.12);
}
textarea.contact-input { resize: vertical; min-height: 132px; line-height: 1.55; }

.contact-foot { display: flex; flex-direction: column; gap: 14px; }
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 7px 7px 26px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-full);
  font-weight: 400;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.4s var(--ease);
  box-shadow: 0 16px 40px -14px rgba(31,22,255,0.5);
  font-family: inherit;
}
.contact-submit .submit-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.contact-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }
.contact-submit:hover .submit-circle { transform: rotate(-45deg); }
.contact-submit:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.contact-consenso {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.contact-consenso input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.contact-consenso-box {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--white);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-consenso-box svg { width: 13px; height: 13px; }
.contact-consenso:hover .contact-consenso-box { border-color: var(--accent); }
.contact-consenso input:checked + .contact-consenso-box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.contact-consenso input:focus-visible + .contact-consenso-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.contact-consenso.is-errore .contact-consenso-box {
  border-color: #d8453a;
  box-shadow: 0 0 0 3px rgba(216, 69, 58, 0.14);
}
.contact-terms { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; }
.contact-terms a { color: var(--accent); text-decoration: underline; }

.contact-esito {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 34px;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -30px rgba(10, 11, 20, 0.28);
}
.contact-esito.is-visible { display: flex; }
.contact-esito-icona {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #00b96f;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.contact-esito-titolo {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #000;
}
.contact-esito-testo {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 46ch;
}
.contact-esito-rif {
  margin: 0;
  padding: 12px 18px;
  background: var(--paper-2);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.01em;
}
.contact-esito-rif strong {
  color: #000;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.contact-esito-chiudi {
  margin-top: 4px;
  padding: 12px 26px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.contact-esito-chiudi:hover { border-color: #000; color: #000; }

@media (max-width: 640px) {
  .contact-esito { padding: 32px 22px; gap: 16px; }
  .contact-esito-testo { font-size: 0.95rem; }
}

@media (max-width: 1024px) {
  .contact-panel { width: min(96vw, 760px); }
  .contact-panel-inner { padding: 48px 40px 56px; gap: 32px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-panel-head { padding-right: 64px; }
}
@media (max-width: 640px) {
  .contact-panel { width: 100%; border-left: none; }
  .contact-panel-inner {
    padding: 76px 20px calc(28px + env(safe-area-inset-bottom));
    gap: 28px;
  }
  .contact-close { top: 16px; right: 16px; width: 42px; height: 42px; }
  .contact-panel-head { padding-right: 56px; gap: 14px; }
  .contact-pill { font-size: 0.88rem; padding: 9px 15px; white-space: normal; }
  .contact-budget .contact-pill { font-size: 0.85rem; }
  .contact-input { padding: 14px 16px; border-radius: 12px; }
  textarea.contact-input { min-height: 112px; }
  #contactForm { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-panel, .contact-backdrop, .contact-pill, .contact-input, .contact-submit { transition-duration: 0.01ms; }
}


.menu-modal {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ====================================================================
   MENU MODAL — tocchi premium
   ==================================================================== */
.menu-nav-list a:hover .arrow { animation: arrow-jump 0.5s var(--ease); }
@keyframes arrow-jump {
  0%   { transform: rotate(0) translateY(0); }
  40%  { transform: rotate(-45deg) translateY(-4px); }
  100% { transform: rotate(-45deg) translateY(0); }
}
.menu-axyom { transition: all 0.6s var(--ease); }
.menu-axyom::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(38,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 1s var(--ease);
  pointer-events: none;
}
.menu-axyom:hover::after { transform: translateX(100%); }
.menu-modal-close:hover {
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 24px rgba(31,22,255,0.4);
}
.menu-nav-list a:hover .num { color: var(--accent); }


/* ====================================================================
   MENU BENTO — layout compatto: tolto menu-features, menu-contact
   diventa una CTA orizzontale wide che occupa col 2-3 della riga 2
   ==================================================================== */

/* Hide menu-features in qualsiasi pagina dove fosse rimasto */
.menu-cell.menu-features { display: none !important; }

/* menu-contact ora è CTA wide orizzontale */
.menu-cell.menu-contact {
  grid-column: 2 / -1 !important;
  grid-row: 2 !important;
  background: #0a0b14 !important;
  border-color: #0a0b14 !important;
  color: var(--white);
  padding: 24px 32px !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease);
}
/* Row 1: left + info + CTA (il vecchio layout orizzontale) */
.menu-contact-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
/* Row 2: socials + copyright (la vecchia menu-bottom assorbita) */
.menu-contact-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.menu-contact-bottom-socials {
  display: flex;
  gap: 22px;
}
.menu-contact-bottom-socials a {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.005em;
  transition: color 0.3s var(--ease);
}
.menu-contact-bottom-socials a:hover {
  color: var(--white);
}
.menu-contact-copyright {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
}
.menu-cell.menu-contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(31,22,255,0.45) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.menu-cell.menu-contact::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(38,255,255,0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.menu-cell.menu-contact:hover {
  background: #18181f !important;
}

.menu-contact-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative; z-index: 1;
  min-width: 0;
}
.menu-contact-left .menu-cell-label {
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
}
.menu-contact-left h4 {
  font-size: clamp(1.4rem, 2vw, 1.9rem) !important;
  font-weight: 200 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
  color: var(--white) !important;
  margin: 0 !important;
}
.menu-contact-left h4 .accent {
  color: var(--cyan);
  font-weight: 200;
}

.menu-contact-info {
  display: flex;
  gap: 32px;
  position: relative; z-index: 1;
  flex-wrap: wrap;
  align-items: center;
}
.menu-contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.menu-contact-info-item span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.menu-contact-info-item a,
.menu-contact-info-item strong {
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.005em;
  transition: color 0.3s var(--ease);
}
.menu-contact-info-item a:hover { color: var(--cyan); }

.menu-contact-cta {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 22px;
  background: var(--white);
  color: #0a0b14;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.menu-contact-cta .arr-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.menu-cell.menu-contact:hover .menu-contact-cta { transform: translateY(-2px); }
.menu-cell.menu-contact:hover .menu-contact-cta .arr-circle { transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-cell.menu-contact {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    gap: 16px;
    padding: 24px !important;
  }
  .menu-contact-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .menu-contact-info { gap: 18px; }
  .menu-contact-cta { width: 100%; justify-content: space-between; }
  .menu-contact-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .menu-contact-info { flex-direction: column; gap: 14px; align-items: flex-start; }
  .menu-contact-bottom-socials { gap: 16px; flex-wrap: wrap; }
}


/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-text-wave,
  .service-row::before,
  .menu-axyom::after { animation: none !important; transition: none !important; }
  .logo-text-wave { opacity: 0; }
}
