/* ============================================
   DUALPOINT – Main Stylesheet
   ============================================ */

:root {
  --primary:      #FF6563;
  --black:        #0a0a0a;
  --white:        #ffffff;
  --yellow:       #f0c040;
  --coral:        #e84c3d;
  --pink:         #e8587a;
  --grey:         #1a1a1a;
  --grey-mid:     #2c2c2c;
  --text-muted:   #888;
  --font:         'DM Sans', sans-serif;
  --page-padding: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  padding: 0 var(--page-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ── Single post: footer e contact senza padding laterale ── */
.single .contact-section {
  padding-left: 0;
  padding-right: 0;
}

.single .footer-wordmark-wrap {
  padding-left: 0;
  padding-right: 0;
}

.single .footer-bottom-bar {
  padding-left: 0;
  padding-right: 0;
}

/* ── Light header — pagine a sfondo bianco (blog, archivi, singolo post) ── */
.blog .site-nav a,
.archive .site-nav a,
.single .site-nav a {
  color: rgba(0, 0, 0, 0.55);
}

.blog .site-nav a:hover,
.blog .site-nav a.active,
.blog .site-nav li.current-menu-item > a,
.blog .site-nav li.current-menu-parent > a,
.blog .site-nav li.current-menu-ancestor > a,
.archive .site-nav a:hover,
.archive .site-nav a.active,
.archive .site-nav li.current-menu-item > a,
.archive .site-nav li.current-menu-parent > a,
.archive .site-nav li.current-menu-ancestor > a,
.single .site-nav a:hover,
.single .site-nav a.active,
.single .site-nav li.current-menu-item > a,
.single .site-nav li.current-menu-parent > a,
.single .site-nav li.current-menu-ancestor > a {
  color: #000;
}

.blog .site-nav a::after,
.blog .site-nav li.current-menu-item > a::after,
.blog .site-nav li.current-menu-parent > a::after,
.blog .site-nav li.current-menu-ancestor > a::after,
.archive .site-nav a::after,
.archive .site-nav li.current-menu-item > a::after,
.archive .site-nav li.current-menu-parent > a::after,
.archive .site-nav li.current-menu-ancestor > a::after,
.single .site-nav a::after,
.single .site-nav li.current-menu-item > a::after,
.single .site-nav li.current-menu-parent > a::after,
.single .site-nav li.current-menu-ancestor > a::after {
  background: #000;
}

.blog .site-logo-img,
.archive .site-logo-img,
.single .site-logo-img {
  filter: invert(1);
}

.blog .site-header.scrolled,
.archive .site-header.scrolled,
.single .site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.blog .nav-toggle span,
.archive .nav-toggle span,
.single .nav-toggle span {
  background: #000;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo-img {
  height: 26px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

.site-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.site-nav a {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  color: rgba(255,255,255,0.7);
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--white);
  transition: left .3s ease, right .3s ease, opacity .3s ease;
  opacity: 0;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav li.current-menu-item > a,
.site-nav li.current-menu-parent > a,
.site-nav li.current-menu-ancestor > a {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.active::after,
.site-nav li.current-menu-item > a::after,
.site-nav li.current-menu-parent > a::after,
.site-nav li.current-menu-ancestor > a::after {
  left: 0;
  right: 0;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-dark {
  background: var(--grey-mid);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-dark:hover { background: #3a3a3a; }

.btn-nav {
  display: flex;
  height: 50px;
  min-width: 150px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-nav:hover { background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-black-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.3);
}
.btn-black-outline:hover { background: rgba(0,0,0,0.06); }

/* ============================================
   PEARL BUTTON (body buttons)
   ============================================ */
.button {
  --white: #ffe7ff;
  --bg: #080808;
  --radius: 100px;
  outline: none;
  cursor: pointer;
  border: 0;
  position: relative;
  border-radius: var(--radius);
  background-color: var(--bg);
  transition: all 0.2s ease;
  box-shadow:
    inset 0 0.3rem 0.9rem rgba(255, 255, 255, 0.3),
    inset 0 -0.1rem 0.3rem rgba(0, 0, 0, 0.7),
    inset 0 -0.4rem 0.9rem rgba(255, 255, 255, 0.5),
    0 3rem 3rem rgba(0, 0, 0, 0.3),
    0 1rem 1rem -0.6rem rgba(0, 0, 0, 0.8);
  text-decoration: none;
  display: inline-block;
}
.button .wrap {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 18px 36px;
  border-radius: inherit;
  position: relative;
  overflow: hidden;
}
.button .wrap p span:nth-child(2) { display: none; }
.button:hover .wrap p span:nth-child(1) { display: none; }
.button:hover .wrap p span:nth-child(2) { display: inline-block; }
.button .wrap p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  transition: all 0.2s ease;
  transform: translateY(2%);
  mask-image: linear-gradient(to bottom, white 40%, transparent);
}
.button .wrap::before,
.button .wrap::after {
  content: "";
  position: absolute;
  transition: all 0.3s ease;
}
.button .wrap::before {
  left: -15%;
  right: -15%;
  bottom: 60%;
  top: -100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
}
.button .wrap::after {
  left: 6%;
  right: 6%;
  top: 12%;
  bottom: 40%;
  border-radius: 22px 22px 0 0;
  box-shadow: inset 0 10px 8px -10px rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%);
}
.button:hover {
  box-shadow:
    inset 0 0.3rem 0.5rem rgba(255, 255, 255, 0.4),
    inset 0 -0.1rem 0.3rem rgba(0, 0, 0, 0.7),
    inset 0 -0.4rem 0.9rem rgba(255, 255, 255, 0.7),
    0 3rem 3rem rgba(0, 0, 0, 0.3),
    0 1rem 1rem -0.6rem rgba(0, 0, 0, 0.8);
}
.button:hover .wrap::before { transform: translateY(-5%); }
.button:hover .wrap::after  { opacity: 0.4; transform: translateY(5%); }
.button:hover .wrap p       { transform: translateY(-4%); }
.button:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 0.3rem 0.5rem rgba(255, 255, 255, 0.5),
    inset 0 -0.1rem 0.3rem rgba(0, 0, 0, 0.8),
    inset 0 -0.4rem 0.9rem rgba(255, 255, 255, 0.4),
    0 3rem 3rem rgba(0, 0, 0, 0.3),
    0 1rem 1rem -0.6rem rgba(0, 0, 0, 0.8);
}

/* Variante su sfondo chiaro */
.button--light {
  --bg: #1a1a1a;
  box-shadow:
    inset 0 0.3rem 0.9rem rgba(255, 255, 255, 0.25),
    inset 0 -0.1rem 0.3rem rgba(0, 0, 0, 0.7),
    inset 0 -0.4rem 0.9rem rgba(255, 255, 255, 0.4),
    0 1rem 2rem rgba(0, 0, 0, 0.18),
    0 0.4rem 0.8rem -0.2rem rgba(0, 0, 0, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--page-padding);
}

.hero-title {
  font-size: clamp(27px, 4.13vw, 77px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--white);
}

/* ============================================
   AGENCY INTRO — sticky scroll scrub
   ============================================ */
.agency-intro-wrapper {
  height: 250vh; /* scroll space */
}

.agency-intro {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--page-padding);
  overflow: hidden;
}

.agency-intro-inner {
  max-width: 680px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.1s linear, transform 0.1s linear;
  will-change: opacity, transform;
}

.agency-intro p {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.3px;
}

.agency-intro p .word {
  color: rgba(255,255,255,0.2);
  transition: color 0.2s ease;
  display: inline;
}

/* ============================================
   CLIENT LOGOS STRIP
   ============================================ */
.logos-strip {
  background: #f07060;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logos-strip:hover .logos-track {
  animation-play-state: paused;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 100px;
  flex-shrink: 0;
  animation: scroll-logos 22s linear infinite;
}

.logos-track img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  object-fit: contain;
  flex-shrink: 0;
}

.logos-track span {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--white);
  color: var(--black);
  padding: 100px var(--page-padding);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0;
}

.services .section-title {
  text-align: center;
  color: var(--black);
  margin-bottom: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 60px;
}

.services-col h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--black);
  letter-spacing: -0.2px;
}

.services-col ul {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.services-col ul li {
  font-size: 20px;
  color: rgba(0,0,0,0.45);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  line-height: 1.4;
  font-weight: 400;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  background: var(--white);
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.marquee-track {
  display: flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  animation: scroll-marquee 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
  opacity: 0.15;
}

.marquee-track span.accent { opacity: 1; }

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   WORK
   ============================================ */
.work {
  background: var(--grey);
  padding: 80px var(--page-padding) 100px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.work .section-title { color: var(--white); margin-bottom: 0; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.work-featured {
  border-radius: 12px;
  overflow: hidden;
  background: var(--grey);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease;
  position: relative;
}

.work-featured img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}

.work-featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f7070 0%, #1ba3a3 50%, #0f8080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  letter-spacing: 1px;
}

.work-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.work-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey);
  aspect-ratio: 1/0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 16px;
  padding: 12%;
  transition: background-color 0.4s ease;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-card-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-logo svg { width: 100%; height: 100%; }

.work-card-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: var(--grey-mid);
  color: var(--white);
  position: absolute;
  bottom: 20px;
}

.work-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  padding-bottom: 80px;
}

.button--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.work-wip {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* ============================================
   TEAM
   ============================================ */
.team {
  background: var(--black);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.team .section-title {
  color: var(--white);
  text-align: center;
  padding: 60px var(--page-padding) 0;
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  flex: 1;
}

.team-card {
  position: relative;
  overflow: hidden;
  min-height: 64vh;
}

/* Gradiente nero dal basso — evidenzia nome e ruolo */
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 35%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
}

.team-avatar {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(100%);
  display: block;
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  letter-spacing: -2px;
}

.team-info {
  position: absolute;
  bottom: 52px;
  left: var(--page-padding);
  z-index: 2;
}

.team-name {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.team-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-role {
  font-size: 24px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
  flex-shrink: 0;
}

.team-linkedin:hover { background: rgba(255,255,255,0.3); }

.team-linkedin svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,0.9);
}

/* ============================================
   TEAM CTA — sticky scroll scrub
   ============================================ */
.team-cta-wrapper {
  height: 250vh;
}

.team-cta {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--white);
  color: var(--black);
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
}

.team-cta-inner {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.team-cta-inner > p {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
  max-width: 900px;
}

.team-cta-inner > p .word {
  color: rgba(0,0,0,0.15);
  transition: color 0.2s ease;
  display: inline;
}

/* ============================================
   FORM SECTION
   ============================================ */
.cta-form-section {
  background: var(--white);
  color: var(--black);
  padding: 80px var(--page-padding) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.cta-form-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 48px;
  width: 100%;
  max-width: 680px;
}

/* ============================================
   CONTACT FORM 7 — team-cta section
   ============================================ */
.cta-form-wrap {
  margin-top: 48px;
  width: 100%;
  max-width: 680px;
}

/* Reset CF7 */
.cta-form-wrap .wpcf7 { margin: 0; }
.cta-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 35px; }

/* Nome + Cognome affiancati */
.cf7-row {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.cf7-row > * {
  flex: 1;
}

/* Ogni campo */
.cta-form-wrap .wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
}

.cta-form-wrap .wpcf7-form label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 8px;
}

.cta-form-wrap .wpcf7-form input[type="text"],
.cta-form-wrap .wpcf7-form input[type="email"],
.cta-form-wrap .wpcf7-form input[type="tel"],
.cta-form-wrap .wpcf7-form textarea {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  border-radius: 0;
  padding: 8px 0 10px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.cta-form-wrap .wpcf7-form input:focus,
.cta-form-wrap .wpcf7-form textarea:focus {
  border-bottom-color: var(--black);
}

.cta-form-wrap .wpcf7-form textarea {
  resize: auto;
  height: 150px !important;
}

/* Placeholder */
.cta-form-wrap .wpcf7-form input::placeholder,
.cta-form-wrap .wpcf7-form textarea::placeholder {
  color: rgba(0,0,0,0.25);
}

.wpcf7-acceptance label {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 0;
}

/* Submit — il button viene sostituito via JS con Pearl Button */
.cta-form-wrap .wpcf7-form button.button {
  margin-top: 0;
  width: 180px;
  height: 60px;
  display: inline-block;
}

/* Messaggi risposta */
.cta-form-wrap .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.6);
}

.cta-form-wrap .wpcf7-mail-sent-ok {
  border-color: #2e7d32;
  color: #2e7d32;
  background: rgba(46,125,50,0.06);
}

.cta-form-wrap .wpcf7-validation-errors,
.cta-form-wrap .wpcf7-mail-sent-ng {
  border-color: #c62828;
  color: #c62828;
  background: rgba(198,40,40,0.06);
}

.cta-form-wrap .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #c62828;
  margin-top: 4px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--white);
  color: var(--black);
  padding: 100px var(--page-padding) 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-tagline {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--black);
}

.contact-sub {
  font-size: 16px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 36px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.3);
  background: transparent;
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.btn-contact:hover { background: rgba(0,0,0,0.05); }

/* Contact table */
.contact-table { width: 100%; }

.contact-table-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 0;
  height: 50px;
}

.contact-table-row.has-label {
  padding-bottom: 4px;
}

/* Dalla seconda has-label in poi (es. Networks) */
.contact-table-row.has-label ~ .contact-table-row.has-label {
  margin-top: 40px;
}

.contact-table-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
}

.contact-table-link {
  font-size: 15px;
  color: rgba(0,0,0,0.7);
  transition: color .2s;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  height: 100%;
  display: flex;
  align-items: center;
}
.contact-table-link:hover { color: var(--black); }
.contact-table-link.is-empty,
.contact-table-email.is-empty { border-bottom: none; }

.contact-table-email {
  font-size: 15px;
  color: rgba(0,0,0,0.4);
  transition: color 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  height: 100%;
  display: flex;
  align-items: center;
}

.contact-table-email:hover {
  color: var(--black);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--white);
}

.footer-wordmark-wrap {
  padding: 40px var(--page-padding) 20px;
}

.footer-logo-complete {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-bottom-bar {
  padding: 20px var(--page-padding) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}

.footer-copyright {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}

.footer-bottom-tags {
  display: flex;
  gap: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --page-padding: 60px; }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}

/* X quando aperto */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Header sopra l'overlay quando il menu è aperto */
.site-header.menu-open { z-index: 1200; }

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay-inner {
  text-align: center;
}

.nav-overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-overlay-nav li {
  overflow: hidden;
}

.nav-overlay-nav a {
  display: block;
  font-size: clamp(36px, 10vw, 64px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}

.nav-overlay.is-open .nav-overlay-nav a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger per ogni voce */
.nav-overlay.is-open .nav-overlay-nav li:nth-child(1) a { transition-delay: 0.05s; }
.nav-overlay.is-open .nav-overlay-nav li:nth-child(2) a { transition-delay: 0.10s; }
.nav-overlay.is-open .nav-overlay-nav li:nth-child(3) a { transition-delay: 0.15s; }
.nav-overlay.is-open .nav-overlay-nav li:nth-child(4) a { transition-delay: 0.20s; }
.nav-overlay.is-open .nav-overlay-nav li:nth-child(5) a { transition-delay: 0.25s; }
.nav-overlay.is-open .nav-overlay-nav li:nth-child(6) a { transition-delay: 0.30s; }

.nav-overlay-nav a:hover { color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  :root { --page-padding: 24px; }

  .site-nav { display: none; }
  .nav-cta-btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 100svh; }

  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .services-col { padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .services-col:last-child { border-bottom: none; }

  .work-sub-grid { grid-template-columns: 1fr; }
  .work-featured { aspect-ratio: 1/0.85; }
  .work-featured img { width: 70%; height: 70%; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card { min-height: 60vh; }
  .team-info { left: 32px; bottom: 36px; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-table { display: block; }
  .contact-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 50px;
    height: auto;
    gap: 0;
  }
  .contact-table-label {
    grid-column: 1 / -1;
    font-size: 10px;
    padding-top: 12px;
  }
  .contact-table-row.has-label .contact-table-label {
    padding-top: 0;
  }
  .contact-table-link { font-size: 14px; }
  .contact-table-email { font-size: 13px; }
  .contact-table-row.no-email .contact-table-link {
    grid-column: 1 / -1;
  }

  .footer-wordmark { letter-spacing: -2px; }
  .footer-bottom-bar { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
}

/* ══════════════════════════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════════════════════════ */
.blog-page {
  background: #fff;
  min-height: 100vh;
  padding: 140px var(--page-padding) 100px;
}

/* Header */
.blog-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Author header */
.author-header {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 760px;
  margin: 0 auto 56px;
}

.author-header-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-header-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.author-header-name {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.author-header-bio {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
  max-width: 520px;
}

@media (max-width: 768px) {
  .author-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .author-header-avatar { width: 80px; height: 80px; }
}

/* Category pills */
.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 72px;
}

.blog-cat-pill {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-cat-pill:hover,
.blog-cat-pill.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

/* Card */
.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
  margin-bottom: 20px;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-img--empty {
  background: linear-gradient(135deg, #ebebeb 0%, #d8d8d8 100%);
}

.blog-card-body {
  padding: 0 2px;
}

.blog-card-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.blog-card:hover .blog-card-title {
  opacity: 0.55;
}

.blog-card-date {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.04em;
}

/* Empty state */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  padding: 60px 0;
}

/* Pagination */
.blog-page .navigation.pagination {
  margin-top: 64px;
  text-align: center;
}

.blog-page .nav-links {
  display: inline-flex;
  gap: 6px;
}

.blog-page .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-page .page-numbers.current,
.blog-page .page-numbers:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-page { padding: 100px 24px 60px; }
  .blog-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-categories { gap: 8px; margin-bottom: 48px; }
  .blog-card-title { font-size: 18px; }

  .single-post { padding: 100px 24px 60px; }
  .single-post-title { font-size: clamp(30px, 7vw, 48px); }
  .single-post-hero { margin: 40px -24px 48px; border-radius: 0; }
  .single-post-nav { flex-direction: column; gap: 24px; }
  .single-post-nav-next { text-align: left; }
}

/* ══════════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════════ */
.single-post {
  background: #fff;
  min-height: 100vh;
  padding: 80px var(--page-padding) 100px;
}

/* Header */
.single-post-header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.single-post-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.single-post-cat:hover { color: #000; }

.single-post-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.38);
  letter-spacing: 0.04em;
}

.single-post-meta-dot { opacity: 0.4; }

/* Featured image */
.single-post-hero {
  max-width: 960px;
  margin: 0 auto 64px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.single-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content body */
.single-post-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.82);
}

.single-post-body p { margin-bottom: 1.6em; }

.single-post-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  margin: 2.4em 0 0.8em;
  line-height: 1.2;
}

.single-post-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.01em;
  margin: 2em 0 0.7em;
  line-height: 1.3;
}

.single-post-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-body ul,
.single-post-body ol {
  padding-left: 1.4em;
  margin-bottom: 1.6em;
}

.single-post-body li { margin-bottom: 0.5em; }

.single-post-body blockquote {
  margin: 2.8em 0;
  padding: 44px 148px 44px 35px;
  background-color: #f2f2f2;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 16px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  color: #000;
  line-height: 38px;
  text-align: left;
}

.single-post-body blockquote { quotes: none; }
.single-post-body blockquote::before,
.single-post-body blockquote::after { content: none; }

.single-post-body blockquote strong { font-weight: 700; }

.single-post-body blockquote p { margin-bottom: 0; }

.single-post-body blockquote cite {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

.single-post-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.6em 0;
  display: block;
}

.single-post-body hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 3em 0;
}

/* Footer post */
.single-post-footer {
  max-width: 680px;
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.single-post-back {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.single-post-back:hover { color: #000; }

/* Autore */
.single-author {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.single-author-avatar { flex-shrink: 0; }

.single-author-img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.single-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.single-author-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.single-author-name {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.single-author-name:hover { opacity: 0.55; }

.single-author-bio {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
}

/* Correlati */
.single-related {
  max-width: 960px;
  margin: 80px auto 0;
  padding-top: 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.single-related-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 36px;
  text-align: center;
}

.single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .single-related-grid { grid-template-columns: 1fr; gap: 28px; }
  .single-related { margin-top: 56px; padding-top: 40px; }
}

/* Prev / Next */
.single-post-nav {
  max-width: 680px;
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.single-post-nav-item { flex: 1; }

.single-post-nav-next { text-align: right; }

.single-post-nav-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}

.single-post-nav-item a {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.2s;
}

.single-post-nav-item a:hover { opacity: 0.5; }
