/* Studio Legale Agovino Monteforte — Modern Wix-inspired design */

:root {
  --black: #0a0a0b;
  --dark: #141416;
  --charcoal: #1e1e22;
  --white: #ffffff;
  --off: #f4f2ee;
  --muted: #8a8a94;
  --text: #2a2a30;
  --gold: #c4a052;
  --gold-light: #e8d5a8;
  --law-blue: #2d4496;
  --law-blue-dark: #1a2f6e;
  --law-blue-deep: #0f1d4a;
  --law-blue-mid: #243b7a;
  --law-blue-glow: rgba(45, 68, 150, 0.55);
  --law-blue-soft: rgba(45, 68, 150, 0.25);
  --accent: #3d5a80;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --logo: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }

/* ---- Utilities ---- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.eyebrow--light { color: var(--gold-light); }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.btn--primary {
  background: var(--law-blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #3a5cb8;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(45, 68, 150, 0.45);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--full { width: 100%; }

.btn--immigration {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c4a052 0%, #e8d5a8 35%, #5a7fd4 100%);
  background-size: 200% 200%;
  color: var(--law-blue-deep);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(196, 160, 82, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  line-height: 1.35;
  padding: 0.85rem 1.5rem;
  animation: immigrationGlow 5s ease infinite;
}

.btn--immigration__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: immigrationShine 4s ease-in-out infinite;
}

.btn--immigration__icon {
  display: flex;
  flex-shrink: 0;
}

.btn--immigration__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.btn--immigration__label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-align: left;
}

.btn--immigration:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(196, 160, 82, 0.55), 0 0 24px rgba(90, 127, 212, 0.35);
  border-color: var(--white);
}

@keyframes immigrationGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes immigrationShine {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.btn--dark {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(42, 42, 48, 0.2);
}

.btn--dark:hover {
  background: rgba(45, 68, 150, 0.08);
  border-color: var(--law-blue);
  color: var(--law-blue);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(15, 29, 74, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--law-blue);
  box-shadow: 0 4px 30px rgba(45, 68, 150, 0.35);
}

.nav__bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  position: relative;
  text-decoration: none;
  padding-bottom: 5px;
}

.nav__brand::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--law-blue), #7fa3e8 75%, transparent);
  width: 0;
  opacity: 0;
  animation: brandSigLine 0.8s var(--ease) forwards;
  animation-delay: 0.48s;
  transition: width 0.4s var(--ease), opacity 0.3s, background 0.35s;
}

.nav__brand-name {
  font-family: var(--logo);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28em;
}

.brand-part {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.38em);
  animation: brandPartIn 0.52s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.13s);
  transition: color 0.35s var(--ease);
}

.nav__brand-tag {
  font-family: var(--logo);
  font-size: clamp(0.65rem, 1.1vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7fa3e8;
  margin-top: 0.25rem;
  opacity: 0;
  animation: brandTagIn 0.55s var(--ease) forwards;
  animation-delay: 0.36s;
  transition: letter-spacing 0.45s var(--ease), color 0.35s;
}

@media (hover: hover) {
  .nav__brand:hover::after,
  .nav__brand:focus-visible::after {
    width: 100%;
    opacity: 1;
    background: linear-gradient(90deg, #5a7fd4, #8eb4ff 85%, transparent);
  }

  .nav__brand:hover .brand-part:last-child,
  .nav__brand:focus-visible .brand-part:last-child {
    color: #a8c4ff;
  }

  .nav__brand:hover .nav__brand-tag,
  .nav__brand:focus-visible .nav__brand-tag {
    letter-spacing: 0.42em;
    color: #9bc0ff;
  }
}

.nav__brand:active::after {
  width: 100%;
  opacity: 1;
}

@keyframes brandPartIn {
  from {
    opacity: 0;
    transform: translateY(0.38em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandTagIn {
  from {
    opacity: 0;
    letter-spacing: 0.1em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.35em;
  }
}

@keyframes brandSigLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 70%;
    opacity: 0.9;
  }
}

.nav__links {
  display: none;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 0.75rem; }

.nav__links a.active {
  color: var(--white);
}

.nav__links a.active::after {
  width: 100%;
  background: var(--gold);
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s;
}

.lang-switcher__toggle svg {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.8;
}

.lang-switcher__toggle:hover,
.lang-switcher.open .lang-switcher__toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9rem;
  padding: 0.35rem;
  background: rgba(15, 29, 74, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  list-style: none;
  display: none;
  z-index: 1100;
}

.lang-switcher.open .lang-switcher__menu {
  display: block;
}

.lang-switcher__item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switcher__item:hover,
.lang-switcher__item.active {
  background: rgba(45, 68, 150, 0.45);
  color: var(--white);
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:first-child { transform: rotate(45deg) translate(5px, 6px); }
.nav__burger.active span:last-child { transform: rotate(-45deg) translate(5px, -6px); }

.nav__drawer {
  display: none;
  flex-direction: column;
  background: var(--law-blue-deep);
  padding: 1rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__drawer.open { display: flex; }

.nav__drawer a {
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__drawer a:hover { color: var(--gold); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* ---- WhatsApp floating ---- */
.whatsapp-float {
  position: fixed;
  bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  right: max(1.75rem, env(safe-area-inset-right, 0px));
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  color: var(--white);
}

@media (max-width: 540px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ---- Lawyer cards (mai sovrapposti) ---- */
.lawyer-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.lawyer-card__img {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(196, 160, 82, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  height: min(408px, 57.6vw);
}

.lawyer-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.lawyer-card__caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0 0;
}

.lawyer-card__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.lawyer-card__role {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.lawyer-card--profile .lawyer-card__name { color: var(--white); }

.lawyer-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

.lawyer-card--link:hover {
  transform: translateY(-6px);
}

.lawyer-card--link:hover .lawyer-card__img {
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(196, 160, 82, 0.25);
}

.lawyer-card--link:hover .lawyer-card__cta {
  color: var(--gold-light);
}

.lawyer-card__cta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s var(--ease);
}

.profile {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.profile:target {
  border-color: rgba(196, 160, 82, 0.45);
  box-shadow: 0 0 0 1px rgba(196, 160, 82, 0.2), 0 16px 48px rgba(0, 0, 0, 0.3);
}

.profile__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  position: absolute;
  inset: -10%;
  background: url('../images/hero.jpeg') center 20% / cover no-repeat;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 29, 74, 0.88) 0%, rgba(45, 68, 150, 0.72) 50%, rgba(26, 47, 110, 0.8) 100%),
    linear-gradient(to top, rgba(15, 29, 74, 0.95) 0%, rgba(45, 68, 150, 0.55) 50%, rgba(45, 68, 150, 0.25) 100%);
  backdrop-filter: blur(4px);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 2rem 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__body {
  width: 100%;
}

.hero__lawyers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 624px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero__lawyers {
    max-width: none;
    margin: 0;
    gap: 1.5rem;
  }

  .lawyer-card__img {
    height: 504px;
  }

  .hero__title {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
  }
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(45, 68, 150, 0.55);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  background: rgba(45, 68, 150, 0.35);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: #8eb4ff;
}

/* Kinetic typography — home */
.kt-line {
  display: block;
}

.kt-word,
.kt-phrase__word {
  display: inline-block;
  opacity: 0;
  animation: ktReveal 0.65s var(--ease) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.13s);
}

.kt-word + .kt-word,
.kt-phrase__word + .kt-phrase__word {
  margin-left: 0.22em;
}

.kt-phrase__word:empty {
  display: none;
  margin: 0;
}

.kt-word--accent {
  font-style: italic;
  color: #8eb4ff;
  animation-name: ktRevealAccent;
  animation-duration: 0.85s;
  animation-delay: 0.48s;
}

.kt-phrase__word {
  animation-delay: calc(0.75s + var(--i, 0) * 0.11s);
}

.kt-phrase__word--hit {
  font-weight: 600;
  color: var(--white);
  animation-name: ktHit;
  animation-duration: 0.9s;
  animation-delay: 1.15s;
}

.kt-fade {
  opacity: 0;
  animation: ktFade 0.55s var(--ease) forwards;
}

@keyframes ktReveal {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ktRevealAccent {
  0% {
    opacity: 0;
    transform: translateY(0.55em);
  }
  55% {
    opacity: 0.35;
    transform: translateY(0.12em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ktHit {
  0% {
    opacity: 0;
    transform: translateY(0.3em) scale(0.96);
  }
  45% {
    opacity: 0.5;
    transform: translateY(0.05em) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ktFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kt-word--accent.kt-pulse,
.kt-phrase__word--hit.kt-pulse {
  animation: ktPulse 2.5s ease-in-out infinite;
}

@keyframes ktPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.hero__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--law-blue), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Stats ---- */
.stats {
  background: var(--law-blue-dark);
  border-top: 1px solid rgba(45, 68, 150, 0.4);
  border-bottom: 1px solid rgba(45, 68, 150, 0.4);
}

.stats__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat { text-align: center; }

.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .stats__inner { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Intro ---- */
.intro {
  padding: 7rem 2rem;
  background: var(--off);
}

.intro__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.intro__accent {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.intro__line {
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.intro__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.intro__text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--charcoal);
  font-style: italic;
}

@media (min-width: 768px) {
  .intro__grid { grid-template-columns: 200px 1fr; gap: 4rem; }
}

/* ---- Servizi ---- */
.servizi {
  padding: 7rem 2rem;
  background: var(--white);
  position: relative;
}

.servizi::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(196, 160, 82, 0.04) 100%);
  pointer-events: none;
}

.servizi__header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.servizi__header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--black);
  margin-bottom: 1.5rem;
}

.servizi__header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.servizi__bento {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.bento-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--off);
  border-radius: var(--radius);
  border: 1px solid transparent;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: default;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover {
  background: var(--black);
  border-color: rgba(196, 160, 82, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.bento-card:hover::before { opacity: 1; }

.bento-card:hover .bento-card__n { color: var(--gold); }
.bento-card:hover h3 { color: var(--white); }

.bento-card__n {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(196, 160, 82, 0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}

.bento-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.4s;
}

.bento-card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--black) 100%);
}

.bento-card--wide .bento-card__n { color: rgba(196, 160, 82, 0.4); }
.bento-card--wide h3 { color: var(--white); }

.bento-card--wide:hover {
  background: linear-gradient(135deg, #2a2a30 0%, var(--black) 100%);
}

@media (min-width: 768px) {
  .bento-card--wide { grid-column: span 2; }
}

/* ---- Team ---- */
.team { background: var(--law-blue-deep); }

.team__hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Sfondo moderno — blu avvocatura */
.team__hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, var(--law-blue-deep) 0%, var(--law-blue-dark) 45%, var(--law-blue) 100%);
  will-change: transform;
}

.team__hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/servizi.jpg') center / cover no-repeat;
  opacity: 0.15;
  filter: grayscale(0.4) blur(3px) sepia(0.2);
}

.team__hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(45, 68, 150, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(26, 47, 110, 0.5) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 50%, rgba(15, 29, 74, 0.75) 100%);
  backdrop-filter: blur(1px);
}

/* Griglia architettonica — tribunale contemporaneo */
.team__hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 80%);
  pointer-events: none;
}

/* Linee istituzionali — richiamo facciata giudiziaria */
.team__hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(90deg, transparent 0%, rgba(61, 90, 128, 0.06) 15%, rgba(61, 90, 128, 0.06) 85%, transparent 100%);
}

.team__hero-lines::before,
.team__hero-lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(45, 68, 150, 0.6) 20%, rgba(45, 68, 150, 0.6) 80%, transparent 100%);
}

.team__hero-lines::before { top: 28%; }
.team__hero-lines::after { bottom: 28%; }

.team__hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.team__hero-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.team__hero-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.75;
}

.team__story {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.team__story p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
  text-align: left;
}

.team__profiles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.profile .lawyer-card {
  width: 100%;
  max-width: 336px;
  margin-inline: auto;
  flex-shrink: 0;
}

.profile__content p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.profile__content p + p {
  margin-top: 0.9rem;
}

@media (min-width: 768px) {
  .team__profiles {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .profile {
    display: grid;
    grid-template-columns: 288px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .profile .lawyer-card {
    max-width: none;
    margin-inline: 0;
    width: 100%;
  }
}

/* ---- Recensioni ---- */
.recensioni {
  position: relative;
  padding: 7rem 2rem;
  overflow: hidden;
}

.recensioni__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #f0ebe3 0%, #e8e2d8 40%, #ddd5c8 100%);
}

.recensioni__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(196, 160, 82, 0.15) 0%, transparent 70%);
}

.recensioni__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.recensioni__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.recensioni__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--black);
  margin-bottom: 0.75rem;
}

.recensioni__header p {
  color: var(--muted);
  font-style: italic;
}

.recensioni__slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recensioni__track {
  flex: 1;
  min-height: 300px;
  position: relative;
}

.review-card {
  display: none;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: cardIn 0.5s var(--ease);
}

.review-card.active { display: block; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.review-card__quote {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.review-card p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-card footer strong {
  font-size: 0.9rem;
  color: var(--black);
}

.review-card footer span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.review-card__stars {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.slider-btn:hover {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
  transform: scale(1.05);
}

.slider-btn svg { width: 22px; height: 22px; }

.recensioni__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.recensioni__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.recensioni__dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
}

/* ---- Contatti ---- */
.contatti {
  position: relative;
  padding: 7rem 2rem;
  overflow: hidden;
}

.contatti__bg {
  position: absolute;
  inset: -10%;
  background: url('../images/servizi.jpg') center / cover no-repeat;
  will-change: transform;
}

.contatti::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 29, 74, 0.94) 0%, rgba(36, 59, 122, 0.88) 50%, rgba(45, 68, 150, 0.82) 100%);
  backdrop-filter: blur(3px);
}

.contatti__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contatti__left h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 2.5rem;
}

.contatti__item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contatti__icon {
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 160, 82, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
}

.contatti__item h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contatti__item p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.contatti__item a:hover { color: var(--gold); }

.contatti__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.form-row { margin-bottom: 1rem; }

.form-row input,
.form-row select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}

.form-row input::placeholder { color: rgba(255, 255, 255, 0.35); }

.form-row select {
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.form-row select option { background: var(--dark); color: var(--white); }

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.form-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-check span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.form-ok {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  color: #81c784;
  text-align: center;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .contatti__inner { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
}

/* ---- Footer ---- */
.footer {
  background: var(--law-blue-deep);
  border-top: 1px solid rgba(45, 68, 150, 0.35);
  padding: 3rem 2rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand strong {
  display: block;
  font-family: var(--logo);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer__brand span {
  font-family: var(--logo);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer__links a:hover { color: var(--gold); }

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

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

/* Tablet */
@media (max-width: 899px) {
  .servizi__bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--wide {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --nav-h: 64px;
  }

  .nav__bar {
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .nav__brand-name {
    font-size: clamp(0.95rem, 4.5vw, 1.25rem);
    letter-spacing: -0.02em;
  }

  .nav__brand-tag {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
  }

  .hero {
    min-height: auto;
    min-height: 100svh;
    padding-bottom: 5rem;
  }

  .hero__layout {
    padding: calc(var(--nav-h) + 1.5rem) 1.25rem 1.5rem;
    gap: 2rem;
  }

  .hero__badge {
    font-size: 0.62rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    margin-bottom: 1rem;
  }

  .hero__lead {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  .hero__lawyers {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 100%;
  }

  .lawyer-card__img {
    height: min(336px, 50.4vw);
  }

  .lawyer-card__name {
    font-size: 0.85rem;
  }

  .lawyer-card__role,
  .lawyer-card__cta {
    font-size: 0.58rem;
  }

  .hero__scroll {
    display: none;
  }

  .stats__inner {
    padding: 2rem 1.25rem;
    gap: 1.25rem;
  }

  .stat__label {
    font-size: 0.68rem;
  }

  .intro {
    padding: 4rem 1.25rem;
  }

  .intro__text {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .servizi {
    padding: 4rem 1.25rem;
  }

  .servizi__header {
    margin-bottom: 2.5rem;
    text-align: left;
  }

  .servizi__header p {
    font-size: 0.95rem;
  }

  .servizi__bento {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .bento-card {
    padding: 1.5rem 1.25rem;
  }

  .bento-card__n {
    font-size: 2rem;
  }

  .bento-card h3 {
    font-size: 1.1rem;
  }

  .team__hero {
    min-height: auto;
  }

  .team__hero-content {
    padding: 3.5rem 1.25rem;
  }

  .team__hero-content h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .team__hero-content p {
    font-size: 0.95rem;
  }

  .team__story {
    padding: 2.5rem 1.25rem;
  }

  .team__story p {
    font-size: 0.95rem;
    padding-left: 1.25rem;
  }

  .team__profiles {
    padding: 1.5rem 1.25rem 4rem;
    gap: 2rem;
  }

  .profile {
    padding: 1.5rem;
  }

  .recensioni {
    padding: 4rem 1.25rem;
  }

  .recensioni__header {
    margin-bottom: 2rem;
  }

  .recensioni__slider {
    flex-direction: column;
    gap: 1.25rem;
  }

  .recensioni__track {
    min-height: auto;
    width: 100%;
  }

  .slider-btn {
    display: none;
  }

  .review-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .review-card__quote {
    font-size: 3.5rem;
  }

  .review-card p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .review-card__stars {
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
  }

  .contatti {
    padding: 4rem 1.25rem;
  }

  .contatti__left h2 {
    margin-bottom: 1.75rem;
  }

  .contatti__form {
    padding: 1.5rem;
  }

  .form-row input,
  .form-row select {
    font-size: 16px;
    padding: 0.9rem 1rem;
  }

  .form-check span {
    font-size: 0.75rem;
  }

  .footer {
    padding: 2.5rem 1.25rem;
    padding-bottom: calc(2.5rem + 70px);
  }

  .footer__links {
    gap: 1rem 1.5rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .nav__brand-tag {
    display: none;
  }

  .hero__lawyers {
    grid-template-columns: 1fr;
    max-width: 336px;
  }

  .lawyer-card__img {
    height: 384px;
  }

  .profile .lawyer-card {
    max-width: 336px;
  }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat__num {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero__layout,
  .nav__bar,
  .stats__inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* ---- Article page (ius sanguinis) ---- */
.page-article {
  background: var(--off);
}

.article__hero {
  position: relative;
  padding: calc(var(--nav-h) + 3rem) 2rem 3.5rem;
  overflow: hidden;
}

.article__hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 29, 74, 0.95) 0%, rgba(45, 68, 150, 0.88) 55%, rgba(26, 47, 110, 0.92) 100%);
}

.article__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.article__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.article__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.article__breadcrumb a:hover {
  color: var(--gold-light);
}

.article__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.article__meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.article__intro {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.article__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.article__toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(45, 68, 150, 0.12);
  box-shadow: 0 8px 32px rgba(45, 68, 150, 0.08);
}

.article__toc-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--law-blue);
  margin-bottom: 1rem;
}

.article__toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.article__toc-list a {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.3s;
}

.article__toc-list a:hover {
  color: var(--law-blue);
}

.article__body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(45, 68, 150, 0.1);
  box-shadow: 0 12px 40px rgba(45, 68, 150, 0.06);
}

.article__section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(45, 68, 150, 0.08);
}

.article__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article__section h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--law-blue-deep);
  margin-bottom: 1.25rem;
}

.article__section h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--law-blue);
  margin: 1.5rem 0 0.75rem;
}

.article__section p,
.article__faq-item p {
  color: var(--text);
  line-height: 1.85;
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article__list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.article__list li {
  color: var(--text);
  line-height: 1.75;
  font-size: 0.95rem;
}

.article__note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(45, 68, 150, 0.06);
  border-left: 3px solid var(--law-blue);
  border-radius: 0 8px 8px 0;
}

.article__quote {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--law-blue);
  background: rgba(196, 160, 82, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.article__faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 68, 150, 0.1);
}

.article__faq h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--law-blue-deep);
  margin-bottom: 1.25rem;
}

.article__faq-item {
  border: 1px solid rgba(45, 68, 150, 0.12);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.article__faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--law-blue-deep);
  cursor: pointer;
  list-style: none;
}

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

.article__faq-item[open] summary {
  background: rgba(45, 68, 150, 0.06);
  border-bottom: 1px solid rgba(45, 68, 150, 0.08);
}

.article__faq-item p {
  padding: 1rem 1.25rem;
}

.article__cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 29, 74, 0.04), rgba(45, 68, 150, 0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(45, 68, 150, 0.15);
  text-align: center;
}

.article__cta h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--law-blue-deep);
  margin-bottom: 0.75rem;
}

.article__cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.article__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .article__layout {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 4rem;
    gap: 1.5rem;
  }

  .article__toc {
    position: static;
  }

  .article__body {
    padding: 1.75rem 1.25rem;
  }

  .article__hero {
    padding: calc(var(--nav-h) + 2rem) 1.25rem 2.5rem;
  }
}

@media (max-width: 767px) {
  .hero__actions .btn--immigration {
    width: 100%;
    order: -1;
  }

  .lang-switcher__toggle {
    padding: 0.4rem 0.55rem;
  }

  .lang-switcher__toggle svg {
    display: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-line {
    animation: none;
  }

  .kt-word,
  .kt-phrase__word,
  .kt-word--accent,
  .kt-phrase__word--hit,
  .kt-fade {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .brand-part,
  .nav__brand-tag {
    opacity: 1;
    transform: none;
    animation: none;
    letter-spacing: 0.35em;
  }

  .nav__brand::after {
    animation: none;
    width: 70%;
    opacity: 0.75;
  }

  .btn--immigration,
  .btn--immigration__shine {
    animation: none;
  }
}
