/* ==========================================
   ZONA C39 — AGENCY 360° LAYER
   Uses only the existing palette tokens
   from style.css (:root).
========================================== */

/* ---------- HEADER CTA ---------- */

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.nav-cta span {
  margin-left: 0;
  display: inline-flex;
}

.nav-cta:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.navigation {
  gap: 28px;
}

.nav-cta bdi,
.btn bdi,
.text-link bdi {
  font: inherit;
}

/* ---------- LANGUAGE SWITCH ---------- */

.lang-switch {
  position: relative;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.lang-switch a {
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color 0.25s, background 0.25s;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- ABOUT STATS ---------- */

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 90px;
  border-top: 1px solid #d9d6d0;
}

.stat {
  padding: 32px 28px 0 0;
}

.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid #d9d6d0;
}

.stat strong {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--dark-text);
}

.stat span {
  display: block;
  max-width: 220px;
  margin-top: 14px;
  color: #66666b;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- SERVICES ---------- */

.services-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 50px;
}

.services-heading .section-description {
  margin-top: 0;
}

.agency-services .service-card {
  min-height: 0;
  justify-content: flex-start;
  gap: 50px;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s;
}

.service-card:hover .service-svg {
  transform: rotate(-8deg) scale(1.08);
}

.agency-services .service-content p {
  min-height: 0;
}

.service-list {
  list-style: none;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  color: #d1cfd0;
  font-size: 13px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

/* ---------- METHOD ---------- */

.method {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.method-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}

.method-step {
  position: relative;
  padding: 34px 28px 10px 0;
  border-top: 1px solid var(--border);
}

.method-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 1.2s ease 0.2s;
}

.method-step.visible::before {
  width: 100%;
}

.method-index {
  display: block;
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.method-step h3 {
  margin-top: 22px;
  font-family: var(--font-main);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -1px;
}

.method-step p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- CONTACT / BRIEF FORM ---------- */

.contact-layout {
  max-width: none;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.contact-details--stacked {
  margin-top: 45px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-form {
  display: grid;
  gap: 26px;
  padding: clamp(26px, 3.5vw, 44px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.brief-group {
  border: 0;
  min-width: 0;
}

.brief-group legend {
  margin-bottom: 14px;
}

.brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: #c5c5ca;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s;
}

.chip:hover span {
  border-color: var(--accent);
  color: var(--text);
}

.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brief-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 10px) 52%,
    calc(100% - 5px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--bg-secondary);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.brief-actions .btn {
  border: 0;
}

.brief-status {
  color: var(--text-muted);
  font-size: 13px;
}

.brief-status.is-error {
  color: var(--accent-light);
}

/* ---------- FOOTER ---------- */

.footer {
  padding-top: 70px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col .contact-caption {
  margin-bottom: 6px;
}

.footer-col a {
  color: #c5c5ca;
  font-size: 13px;
  transition: color 0.25s;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--accent);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1280px) {
  .navigation {
    gap: 18px;
  }

  .nav-container {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .lang-switch {
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .nav-cta {
    display: none;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    padding-top: 40px;
  }

  .services-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-heading .section-description {
    margin-top: 30px;
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .about-stats {
    margin-top: 60px;
  }

  .stat {
    padding-right: 16px;
  }

  .stat + .stat {
    padding-left: 16px;
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .stat span {
    font-size: 13px;
  }

  .agency-services .service-card {
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .method-steps {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .brief-row {
    grid-template-columns: 1fr;
  }

  .contact-details--stacked {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-step::before {
    width: 100%;
  }
}

/* ==========================================
   VISUAL EFFECTS (js/effects.js) — subtle
========================================== */

/* ---------- TITLES: WORD BY WORD ---------- */

z-w {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.35em);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.visible z-w {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Stats keep a steady width while counting. */
.stat strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- SERVICE CARDS: TILT + GLOW ---------- */

.agency-services .service-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.agency-services .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(185, 164, 141, 0.13),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.agency-services .service-card:hover::before {
  opacity: 1;
}

.agency-services .service-top,
.agency-services .service-content {
  position: relative;
  z-index: 1;
}

/* Follow the pointer quickly; ease back slowly on leave. */
.agency-services .service-card.is-tilting {
  transition:
    transform 0.15s ease-out,
    background 0.35s,
    border-color 0.35s;
}

/* ---------- MAGNETIC BUTTONS ---------- */

.hero-actions .btn,
.nav-cta,
.brief-actions .btn {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.3s,
    border-color 0.3s;
}

/* ---------- SCROLL PROGRESS ---------- */

.scroll-progress {
  position: fixed;
  z-index: 1003;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- PARALLAX ---------- */

.hero-media,
.hero-content,
.statement-content h2 {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  z-w {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ==========================================
   MOBILE — COMPACT LAYOUT
========================================== */

@media (max-width: 768px) {

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-label {
    margin-bottom: 18px;
  }

  .section-description,
  .services-heading .section-description {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  /* ---------- Services: compact cards ---------- */

  .services-grid.agency-services {
    gap: 12px;
  }

  .agency-services .service-card {
    gap: 14px;
    padding: 20px 20px 22px;
  }

  .agency-services .service-card:hover {
    transform: none;
  }

  /* Icon sits on the title line; the number is hidden. */
  .agency-services .service-top {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .agency-services .service-number {
    display: none;
  }

  .service-svg {
    width: 26px;
    height: 26px;
  }

  .agency-services .service-content h3 {
    padding-right: 40px;
    font-size: 21px;
    letter-spacing: -0.5px;
  }

  .agency-services .service-content p {
    max-width: none;
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
    margin-top: 16px;
    padding-top: 14px;
  }

  .service-list li {
    padding-left: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .service-list li::before {
    width: 7px;
  }

  /* ---------- About ---------- */

  .about-layout {
    gap: 24px;
  }

  .large-text {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .about-stats {
    margin-top: 44px;
  }

  .stat {
    padding-top: 22px;
  }

  .stat:nth-child(n + 3) {
    padding-top: 26px;
  }

  .stat strong {
    font-size: 38px;
  }

  .stat span {
    margin-top: 8px;
    font-size: 12.5px;
  }

  /* ---------- Method: 2 columns ---------- */

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }

  .method-step {
    padding: 20px 0 0;
  }

  .method-step h3 {
    margin-top: 12px;
    font-size: 19px;
    letter-spacing: -0.5px;
  }

  .method-step p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.65;
  }

  /* ---------- Statement ---------- */

  .statement {
    min-height: 0;
    padding: 80px 0;
  }

  /* ---------- Contact + form ---------- */

  .contact {
    padding: 64px 0 70px;
  }

  .contact-layout {
    gap: 36px;
  }

  .contact-details--stacked {
    margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .contact-social,
  .contact-address {
    font-size: 13.5px;
  }

  .brief-form {
    gap: 20px;
    padding: 22px 18px;
  }

  .brief-chips {
    gap: 7px;
  }

  .chip span {
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .brief-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .field {
    gap: 4px;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 9px 0;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .field textarea {
    min-height: 90px;
  }

  .brief-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  /* ---------- Footer: 2 columns ---------- */

  .footer {
    padding-top: 50px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    padding-bottom: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-col a {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .contact-details--stacked {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   V3 — CASES, PACKAGES, PROOF, FAQ,
   WHATSAPP, COOKIES, LEGAL
========================================== */

/* ---------- SERVICE CARD LINK ---------- */

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: gap 0.3s;
}

.service-more:hover {
  gap: 14px;
}

/* ---------- CASES ---------- */

.cases {
  background: var(--bg-light);
  color: var(--dark-text);
}

.cases .section-label span {
  color: #888;
}

.cases .section-description {
  color: #66666b;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e3dfd8;
  transition: transform 0.4s, box-shadow 0.4s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(17, 18, 22, 0.35);
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.case-media--screen img {
  object-position: top center;
}

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

.case-kpi {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(17, 18, 22, 0.82);
  backdrop-filter: blur(8px);
  color: #e5e3e0;
  font-size: 12px;
}

.case-kpi strong {
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 15px;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 28px 30px;
}

.case-tags {
  color: #8d8175;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.case-body h3 {
  margin-top: 10px;
  font-family: var(--font-main);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.8px;
}

.case-body p:not(.case-tags) {
  margin: 12px 0 24px;
  color: #66666b;
  font-size: 14px;
  line-height: 1.75;
}

.case-body .text-link {
  margin-top: auto;
}

.case-card--cta {
  justify-content: center;
  gap: 14px;
  padding: 40px;
  background: var(--bg);
  border-color: var(--bg);
  color: var(--text);
}

.case-cta-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.case-card--cta strong {
  font-family: var(--font-main);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.case-cta-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- PACKAGES ---------- */

.packages {
  background: #15161a;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-card);
}

.package-card--featured {
  border-color: rgba(185, 164, 141, 0.55);
  background: linear-gradient(180deg, rgba(185, 164, 141, 0.09), var(--bg-card) 55%);
}

.package-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.package-card h3 {
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.package-price strong {
  color: var(--text);
  font-family: var(--font-main);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.package-price.is-quote strong {
  font-size: 22px;
}

.package-price.is-quote .price-unit {
  display: none;
}

.package-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.package-list li {
  position: relative;
  padding-left: 22px;
  color: #d1cfd0;
  font-size: 13.5px;
  line-height: 1.5;
}

.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

.packages-note {
  margin-top: 34px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.packages-note a {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- PROOF ---------- */

.proof {
  background: var(--bg-light);
  color: var(--dark-text);
}

.proof .section-label span {
  color: #888;
}

.proof-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-size: 14px;
}

.proof-stars {
  color: var(--accent);
  letter-spacing: 3px;
}

.proof-rating strong {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 800;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quote-card {
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid #e3dfd8;
}

.quote-card blockquote {
  color: #2b2a28;
  font-size: 16px;
  line-height: 1.75;
}

.quote-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  font-size: 13px;
}

.quote-card figcaption span {
  color: #8d8175;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 44px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #d9d6d0;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  color: #55555b;
  font-family: var(--font-main);
  font-weight: 700;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.client-logo:hover {
  opacity: 1;
  filter: none;
}

.client-logo img {
  display: block;
  max-width: 140px;
  max-height: 44px;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-light);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq-item p {
  max-width: 620px;
  padding: 0 0 26px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- FORM: CONSENT + HONEYPOT ---------- */

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.consent-field input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-field a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- FOOTER LEGAL ---------- */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
}

.legal-line {
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.legal-links a {
  color: #c5c5ca;
  transition: color 0.25s;
}

.legal-links a:hover {
  color: var(--accent);
}

/* ---------- WHATSAPP ---------- */

.wa-button {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, background 0.3s;
}

.wa-button:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--accent-light);
}

body.menu-open .wa-button,
body.lightbox-open .wa-button {
  display: none;
}

/* ---------- COOKIE BANNER ---------- */

.cookie-banner {
  position: fixed;
  z-index: 4000;
  left: 22px;
  bottom: 22px;
  max-width: 440px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(25, 26, 32, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.cookie-banner p {
  color: #d1cfd0;
  font-size: 13px;
  line-height: 1.65;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cookie-btn {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.cookie-accept {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-body {
    padding: 20px 20px 24px;
  }

  .case-body p:not(.case-tags) {
    margin: 8px 0 18px;
    font-size: 13.5px;
  }

  .case-card--cta {
    padding: 30px 22px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .package-card {
    padding: 24px 20px;
  }

  .package-price {
    margin: 10px 0 16px;
    padding-bottom: 14px;
  }

  .package-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .package-list li {
    padding-left: 18px;
    font-size: 12.5px;
  }

  .faq-item summary {
    padding: 18px 36px 18px 0;
    font-size: 16px;
  }

  .faq-item p {
    font-size: 14px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-button {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

.brief-status.is-ok {
  color: var(--accent-light);
}

/* ==========================================
   FOOTER — SINGLE BOTTOM LINE
   The copyright doubles as a discreet link
   to the admin area: it looks like plain text.
========================================== */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 11.5px;
}

.footer-bottom .legal-links {
  margin-left: auto;
}

.footer-copy,
.footer-copy:hover,
.footer-copy:visited {
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: default;
  text-decoration: none;
}

.footer-bottom .legal-line {
  color: var(--text-muted);
}

.footer-bottom .back-top {
  font-size: 11.5px;
}

@media (max-width: 900px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-bottom .legal-links {
    margin-left: 0;
  }
}

/* ==========================================
   CONTACT — HOMEPAGE SUMMARY + CONTACT PAGE
========================================== */

.contact--summary {
  padding: 110px 0;
}

.contact-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
}

.contact-summary .contact-description {
  max-width: 460px;
  margin-top: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-actions .btn {
  min-height: 52px;
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-quick a {
  color: #e5e3e0;
  transition: color 0.25s;
}

.contact-quick a:hover {
  color: var(--accent);
}

/* Contact page */

.contact-page {
  padding-top: 70px;
  border-top: 0;
}

.contact-page .breadcrumb {
  margin-bottom: 24px;
}

.contact-page .contact-title {
  font-size: clamp(48px, 6vw, 80px);
}

.contact-page .contact-social span,
.contact-page .contact-address span {
  font-size: 12px;
}

@media (max-width: 768px) {
  .contact--summary {
    padding: 64px 0 70px;
  }

  .contact-summary {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-actions .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .contact-page {
    padding-top: 40px;
  }
}

/* ==========================================
   HOMEPAGE PREVIEWS + SECTION PAGES
========================================== */

/* Current page in the menu (data-current is set by the build;
   main.js manages .active / aria-current for in-page anchors). */
.nav-link[data-current="true"] {
  color: var(--accent);
}

.section-more {
  margin-top: 40px;
}

/* ---------- Services preview ---------- */

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

.service-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-card);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.service-mini strong {
  flex: 1;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.service-mini .service-number {
  font-size: 11px;
}

.service-mini-arrow {
  color: var(--accent);
  transition: transform 0.3s;
}

.service-mini:hover {
  border-color: rgba(185, 164, 141, 0.45);
  background: #24252c;
}

.service-mini:hover .service-mini-arrow {
  transform: translateX(4px);
}

/* ---------- Case study preview ---------- */

.cases-grid--mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card--mini .case-body {
  padding: 20px 22px 24px;
}

.case-card--mini h3 {
  font-size: 19px;
}

/* ---------- Packages preview ---------- */

.packages-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.package-mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s;
}

.package-mini > strong {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
}

.package-mini .package-price {
  margin: 0;
  padding: 0;
  border: 0;
}

.package-mini .package-price strong {
  font-size: 28px;
}

.package-mini:hover {
  border-color: rgba(185, 164, 141, 0.45);
  transform: translateY(-3px);
}

/* ---------- Portfolio preview ---------- */

.portfolio--teaser .portfolio-heading {
  margin-bottom: 36px;
}

.frames-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-secondary);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s, filter 0.5s;
}

.frame:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

/* ---------- Section pages: first section clears the fixed header ---------- */

body:not(.page-home) main > section:first-child {
  padding-top: calc(var(--header-height) + 80px);
}

/* ---------- Section pages: always-visible menu ----------
   On the homepage the header is transparent over the video.
   Section pages start straight on content (often light),
   so the bar is solid from the top. */

body:not(.page-home) .site-header {
  background: rgba(17, 18, 22, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- Section pages: dark/light rhythm ---------- */

/* Deeper black so the cards read as lighter panels. */
.page-services .services,
.page-packages .packages {
  background: var(--bg);
}

.page-services .service-card,
.page-packages .package-card {
  border-color: rgba(255, 255, 255, 0.09);
}

/* FAQ on the light tone, like Agenzia / Case study / Portfolio. */
.page-packages .faq {
  background: var(--bg-light);
  color: var(--dark-text);
  border-top: 0;
}

.page-packages .faq .section-label span {
  color: #888;
}

.page-packages .faq-item,
.page-packages .faq-item:first-child {
  border-color: rgba(17, 18, 22, 0.12);
}

.page-packages .faq-item summary:hover {
  color: #8c7761;
}

.page-packages .faq-item p {
  color: #66666b;
}

/* Light call-to-action band at the end of a dark page. */
.page-cta {
  padding: 110px 0;
  background: var(--bg-light);
  color: var(--dark-text);
}

.page-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
}

.page-cta-side p {
  max-width: 420px;
  margin-bottom: 28px;
  color: #66666b;
  font-size: 16px;
  line-height: 1.8;
}

.page-cta .btn-primary {
  background: var(--bg);
  color: #f8f7f5;
}

.page-cta .btn-primary:hover {
  background: var(--accent);
  color: #151515;
}

@media (max-width: 768px) {
  .page-cta {
    padding: 70px 0;
  }

  .page-cta-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---------- Hidden scrollbar (page still scrolls) ---------- */

html {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Edge */
}

/* ---------- Hero: no grid lines over the cover ---------- */

.hero-grid {
  display: none;
}

/* ---------- Packages without prices ---------- */

.package-card h3 {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .packages-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .services-mini,
  .cases-grid--mini {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-more {
    margin-top: 28px;
  }

  .services-mini {
    gap: 8px;
  }

  .service-mini {
    padding: 16px;
    gap: 10px;
  }

  .service-mini strong {
    font-size: 15px;
  }

  .cases-grid--mini {
    grid-template-columns: 1fr;
  }

  .case-card--mini .case-media {
    aspect-ratio: 16 / 8;
  }

  .packages-mini {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .package-mini {
    padding: 16px;
    gap: 8px;
  }

  .package-mini > strong {
    font-size: 14px;
  }

  .package-mini .package-price {
    gap: 4px;
    font-size: 11px;
  }

  .package-mini .package-price strong {
    font-size: 22px;
  }

  .frames-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body:not(.page-home) main > section:first-child {
    padding-top: calc(var(--header-height) + 44px);
  }
}

@media (max-width: 420px) {
  .services-mini {
    grid-template-columns: 1fr;
  }
}
