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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: hsl(0 0% 4%);
  scroll-behavior: smooth;
}

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
.port {
  --bg:      hsl(0 0% 4%);
  --surface: hsl(0 0% 8%);
  --text:    hsl(0 0% 96%);
  --muted:   hsl(0 0% 53%);
  --stroke:  hsl(0 0% 12%);
  --blue:    #4E85BF;
  --blue-lt: #89AACC;
  --grad:    linear-gradient(90deg, #89AACC 0%, #4E85BF 100%);
  --grad-r:  linear-gradient(270deg, #89AACC 0%, #4E85BF 100%);

  --f-body:    'Inter', sans-serif;
  --f-display: 'Instrument Serif', 'Georgia', serif;

  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.port em { font-family: var(--f-display); font-style: italic; }

/* ══════════════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════════════ */
.port-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.55s ease;
}

.port-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.port-loader__label {
  position: absolute;
  top: 2rem; left: 2rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.port-loader__sd {
  position: absolute;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(8rem, 30vw, 22rem);
  color: rgba(137, 170, 204, 0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.port-loader__word-wrap {
  height: 7rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.port-loader__word {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  transition: opacity 0.22s, transform 0.22s;
}

.port-loader__counter {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  font-family: var(--f-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: rgba(137, 170, 204, 0.1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.port-loader__bar-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
}

.port-loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(137,170,204,0.4);
  transition: width 0.08s linear;
}

/* word / role fade helpers (JS toggles .is-entering / .is-leaving) */
.port-fade-item { transition: opacity 0.22s, transform 0.22s; }
.port-fade-item.is-leaving { opacity: 0; transform: translateY(-18px); }
.port-fade-item.is-entering-from { opacity: 0; transform: translateY(18px); }

/* ══════════════════════════════════════════════
   HERO + WORMHOLE
══════════════════════════════════════════════ */
.port-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.port-hero__video-wrap {
  position: absolute;
  inset: 0;
}

.port-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.port-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
}

.port-hero__fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 14rem;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Floating Nav ── */
.port-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
}

.port-nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(10,10,10,0.72);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9999px;
  padding: 0.35rem 0.35rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.3s;
}

.port-nav--scrolled .port-nav__pill {
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}

.port-nav__logo { padding: 0 0.25rem; }

.port-nav__logo-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  padding: 1.5px;
  transition: transform 0.3s;
}

.port-nav__logo-ring:hover { transform: scale(1.1); }

.port-nav__logo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.port-nav__div {
  width: 1px; height: 18px;
  background: var(--stroke);
  margin: 0 0.2rem;
}

.port-nav__links { display: flex; gap: 0.1rem; }

.port-nav__link {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 9999px;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.port-nav__link:hover,
.port-nav__link--active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* ── Hero content ── */
.port-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 920px;
}

.port-hero__eyebrow {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 2rem;
}

.port-hero__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.port-hero__role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.port-hero__role-word {
  color: var(--text);
  display: inline-block;
}

.port-hero__desc {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.port-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.port-hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.port-hero__scroll-label {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.port-hero__scroll-line {
  width: 1px; height: 38px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.port-hero__scroll-dot {
  position: absolute;
  top: -40%; left: 0;
  width: 100%; height: 40%;
  background: var(--blue-lt);
  animation: port-scroll-down 1.5s ease-in-out infinite;
}

@keyframes port-scroll-down {
  0%   { top: -40%; }
  100% { top: 140%; }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.port-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.88rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.87rem;
  font-family: var(--f-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}

.port-btn:hover { transform: scale(1.04); }

.port-btn--solid {
  background: var(--text);
  color: var(--bg);
}

.port-btn--solid:hover {
  background: var(--bg);
  color: var(--text);
  outline: 2px solid var(--blue);
}

.port-btn--outline {
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text);
}

.port-btn--outline:hover {
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(78,133,191,0.2);
}

/* ══════════════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════════════ */
.port-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.port-section-header { margin-bottom: 3.5rem; }

.port-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 1.25rem;
}

.port-eyebrow__line {
  display: block;
  width: 2rem; height: 1px;
  background: var(--stroke);
}

.port-section-title {
  font-family: var(--f-body);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.port-section-title em {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.port-section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   STACK — Framework Logos
══════════════════════════════════════════════ */
.port-stack {
  padding: 5rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-stack .port-section-header { padding: 0 2rem; }

.port-marquee {
  overflow: hidden;
  margin-top: 1.5rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.port-marquee--rev .port-marquee__inner { direction: rtl; }

.port-marquee__inner {
  display: flex;
  white-space: nowrap;
}

.port-marquee__row {
  display: inline-flex;
  gap: 0.75rem;
  padding-right: 0.75rem;
  flex-shrink: 0;
}

.port-fw {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.52);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: default;
}

.port-fw:hover {
  border-color: var(--fw-color, rgba(255,255,255,0.2));
  color: var(--fw-color, rgba(255,255,255,0.9));
  background: rgba(255,255,255,0.06);
}

.port-fw__dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fw-dot, #fff);
  opacity: 0.75;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   PROGETTI
══════════════════════════════════════════════ */
.port-works {
  padding: 5rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.port-bento .port-card:nth-child(1) { grid-column: span 7; }
.port-bento .port-card:nth-child(2) { grid-column: span 5; }
.port-bento .port-card:nth-child(3) { grid-column: span 5; }
.port-bento .port-card:nth-child(4) { grid-column: span 7; }

.port-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--stroke);
  cursor: pointer;
}

.port-card__img-wrap {
  position: relative;
  padding-bottom: 56%;
  overflow: hidden;
}

.port-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.port-card:hover .port-card__img { transform: scale(1.06); }

.port-card__halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.port-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.port-card:hover .port-card__hover-overlay { opacity: 1; }

.port-card__hover-pill {
  background: #fff;
  color: #0a0a0a;
  padding: 0.52rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  background-image: linear-gradient(#fff, #fff), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
}

.port-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
}

.port-card__tag {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.port-card__title {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   STATISTICHE
══════════════════════════════════════════════ */
.port-stats {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.port-stats__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.port-stats__label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   FOOTER — VIDEO
══════════════════════════════════════════════ */
.port-footer {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 3rem;
  overflow: hidden;
  background: var(--bg);
}

.port-footer__video-wrap {
  position: absolute;
  inset: 0;
}

.port-footer__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: 100%;
  transform: translate(-50%, -50%) scaleY(-1);
  object-fit: cover;
}

.port-footer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
}

.port-footer__inner {
  position: relative;
  z-index: 10;
}

/* Footer marquee */
.port-footer-marquee {
  overflow: hidden;
  margin-bottom: 4rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.port-footer-marquee__track {
  display: flex;
  white-space: nowrap;
  animation: port-footer-scroll 22s linear infinite;
}

.port-footer-marquee__text {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  color: rgba(245,245,245,0.12);
  padding-right: 0.5rem;
  flex-shrink: 0;
}

@keyframes port-footer-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.port-footer__cta {
  text-align: center;
  padding: 2rem 0 4rem;
}

.port-footer__eyebrow {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 1.25rem;
}

.port-footer__title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.port-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.port-footer__socials { display: flex; gap: 1.5rem; }

.port-footer__social {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.port-footer__social:hover { color: var(--text); }

.port-footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.port-footer__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: port-pulse 2s infinite;
}

@keyframes port-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.port-footer__back {
  font-size: 0.76rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--stroke);
  border-radius: 9999px;
  padding: 0.38rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.port-footer__back:hover {
  color: var(--text);
  border-color: rgba(137,170,204,0.4);
}

/* ══════════════════════════════════════════════
   REVEAL (JS toggles .is-visible when in view)
══════════════════════════════════════════════ */
.port-reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.port-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* initial state for name/blur intro (JS adds .is-in after load) */
.port-name {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 1.3s cubic-bezier(0.22,0.9,0.34,1), transform 1.3s cubic-bezier(0.22,0.9,0.34,1);
}
.port-name.is-in { opacity: 1; transform: translateY(0); }

.port-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.22,0.9,0.34,1), filter 1.1s cubic-bezier(0.22,0.9,0.34,1), transform 1.1s cubic-bezier(0.22,0.9,0.34,1);
}
.port-blur.is-in { opacity: 1; filter: blur(0px); transform: translateY(0); }

/* ══════════════════════════════════════════════
   CHI SONO
══════════════════════════════════════════════ */
.port-about {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.port-about__avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  background: var(--grad);
  padding: 2px;
  overflow: hidden;
}

.port-about__avatar-img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  border-radius: calc(1.5rem - 2px);
  filter: saturate(1.08) contrast(1.05) brightness(0.96);
  will-change: transform;
  transform: translateY(0);
}

.port-about__avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: calc(1.5rem - 2px);
  background: linear-gradient(180deg, rgba(78,133,191,0.22) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
}

.port-about__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.port-about__list {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.port-about__list li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}

.port-about__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.port-about__cta {
  margin-top: 2rem;
}

/* ══════════════════════════════════════════════
   SERVIZI
══════════════════════════════════════════════ */
.port-services {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.port-service-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  transition: border-color 0.25s, transform 0.25s;
}

.port-service-card:hover {
  border-color: rgba(78,133,191,0.4);
  transform: translateY(-4px);
}

.port-service-card__icon {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}

.port-service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.port-service-card__desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   COME LAVORO / PROCESSO
══════════════════════════════════════════════ */
.port-process {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.port-process-card {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  position: relative;
}

.port-process-card__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 2.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.port-process-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.port-process-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   VISUAL PLAYGROUND / EXPLORATIONS
══════════════════════════════════════════════ */
.port-explore {
  position: relative;
  padding: 5rem 0 6rem;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
  overflow: hidden;
}

.port-explore__header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
}

.port-explore__header .port-eyebrow {
  justify-content: center;
}

.port-explore__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}

.port-explore__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.port-explore__col--right {
  padding-top: 3rem;
}

.port-explore__item {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  cursor: pointer;
  max-width: 220px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.port-explore__col--left .port-explore__item { margin-left: auto; }
.port-explore__col--right .port-explore__item { margin-right: auto; }

.port-explore__item:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
}

.port-explore__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Lightbox ── */
.port-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4,4,4,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.port-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.port-lightbox__img {
  max-width: min(900px, 90vw);
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.port-lightbox.is-open .port-lightbox__img {
  transform: scale(1);
}

.port-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.port-lightbox__close:hover {
  background: rgba(255,255,255,0.16);
  transform: rotate(90deg);
}

/* ══════════════════════════════════════════════
   TESTIMONIANZE
══════════════════════════════════════════════ */
.port-testimonials {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.port-testimonial-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.port-testimonial-card__quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.port-testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}

.port-testimonial-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.port-testimonial-card__role {
  font-size: 0.76rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */
.port-faq {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--stroke);
}

.port-faq__list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.port-faq-item {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--surface);
  overflow: hidden;
}

.port-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.port-faq-item__icon {
  flex-shrink: 0;
  color: var(--blue-lt);
  font-size: 1.2rem;
  transition: transform 0.25s;
}

.port-faq-item.is-open .port-faq-item__icon {
  transform: rotate(45deg);
}

.port-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.port-faq-item.is-open .port-faq-item__a {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.port-faq-item__a p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   FORM DI CONTATTO — MULTI STEP
══════════════════════════════════════════════ */
.port-contact-form {
  max-width: 560px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.port-contact-form__progress {
  margin-bottom: 2rem;
}

.port-contact-form__progress-track {
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.port-contact-form__progress-fill {
  height: 100%;
  width: 33.33%;
  background: var(--grad);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

.port-contact-form__progress-label {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.port-form-step {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  animation: port-form-step-in 0.35s ease;
}

.port-form-step.is-active {
  display: flex;
}

@keyframes port-form-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.port-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.port-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.port-contact-form__field label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.port-contact-form__field input,
.port-contact-form__field textarea,
.port-contact-form__field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.port-contact-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2389AACC' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.port-contact-form__field input:focus,
.port-contact-form__field textarea:focus,
.port-contact-form__field select:focus {
  border-color: var(--blue);
}

.port-contact-form__field input.is-invalid,
.port-contact-form__field textarea.is-invalid {
  border-color: #f87171;
}

.port-contact-form__field input::placeholder,
.port-contact-form__field textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.port-contact-form__error {
  font-size: 0.75rem;
  color: #f87171;
}

.port-contact-form__success {
  display: none;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.port-contact-form__success.is-visible {
  display: block;
  animation: port-form-step-in 0.35s ease;
}

.port-contact-form__fail {
  display: none;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.port-contact-form__fail.is-visible {
  display: block;
  animation: port-form-step-in 0.35s ease;
}

.port-contact-form__body.is-hidden {
  display: none;
}

.port-contact-form__reset {
  margin-top: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  color: #4ade80;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.port-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.port-contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.port-contact-form__actions .port-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
}

.port-contact-form__summary {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
}

.port-contact-form__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.port-contact-form__summary-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.port-contact-form__summary-row strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.port-contact-form__summary-row--block {
  flex-direction: column;
  align-items: flex-start;
}

.port-contact-form__summary-row--block strong {
  text-align: left;
}

.port-footer__or {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.port-footer__or a {
  color: var(--blue-lt);
  text-decoration: none;
}

.port-footer__or a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .port-bento {
    grid-template-columns: 1fr !important;
  }
  .port-bento .port-card {
    grid-column: 1 !important;
  }
  .port-stats__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .port-nav__div { display: none; }
  .port-nav {
    padding: 1rem 0.75rem;
    justify-content: flex-start;
  }
  .port-nav__pill {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .port-nav__pill::-webkit-scrollbar {
    display: none;
  }
  .port-nav__logo,
  .port-nav__logo-ring,
  .port-nav__link,
  .port-nav__sayhi {
    flex-shrink: 0;
  }
  .port-nav__logo-ring {
    width: 30px;
    height: 30px;
  }
  .port-nav__link {
    padding: 0.34rem 0.6rem;
    font-size: 0.74rem;
  }
  .port-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .port-about__grid {
    grid-template-columns: 1fr;
  }
  .port-about__avatar {
    max-width: 260px;
    margin: 0 auto;
  }
  .port-services__grid {
    grid-template-columns: 1fr;
  }
  .port-process__grid {
    grid-template-columns: 1fr 1fr;
  }
  .port-testimonials__grid {
    grid-template-columns: 1fr;
  }
  .port-contact-form__row {
    grid-template-columns: 1fr;
  }
  .port-contact-form__actions {
    flex-wrap: wrap;
  }
  .port-explore {
    padding: 3.5rem 0;
    overflow: hidden;
  }
  .port-explore__grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 1.5rem;
    gap: 0.75rem;
    margin-top: 2.5rem;
    transform: rotate(-4deg);
  }
  .port-explore__col--left {
    padding-top: 0;
  }
  .port-explore__col--right {
    padding-top: 2.25rem;
  }
  .port-explore__item {
    max-width: 100%;
  }
  .port-lightbox {
    padding: 1.5rem;
  }
}