:root {
  --bg: #0b0f14;
  --panel: #101827;
  --panel-soft: #0e1420;
  --text: #e8edf6;
  --muted: #a8b3c9;
  --accent: #f2b544;
  --accent-2: #7a1f2f;
  --border: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --shadow: 0 16px 50px rgba(4, 6, 12, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(11, 15, 20, 0.9);
  --figcaption-bg: rgba(0, 0, 0, 0.35);
  --overlay-soft: rgba(255, 255, 255, 0.02);
  --overlay-med: rgba(255, 255, 255, 0.04);
  --overlay-strong: rgba(255, 255, 255, 0.08);
  --faq-separator: rgba(255, 255, 255, 0.04);
  --link-underline: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-soft: #faf8f5;
  --text: #1a1a2e;
  --muted: #5a5f72;
  --accent: #d4952a;
  --accent-2: #7a1f2f;
  --border: rgba(0, 0, 0, 0.08);
  --card-border: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-bg-hover: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(245, 243, 239, 0.92);
  --figcaption-bg: rgba(0, 0, 0, 0.6);
  --overlay-soft: rgba(0, 0, 0, 0.015);
  --overlay-med: rgba(0, 0, 0, 0.025);
  --overlay-strong: rgba(0, 0, 0, 0.05);
  --faq-separator: rgba(0, 0, 0, 0.06);
  --link-underline: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] body {
  background: var(--bg);
}

[data-theme="light"] .hero-bg {
  background: radial-gradient(900px circle at 20% 30%, rgba(242, 181, 68, 0.08), transparent 50%),
    radial-gradient(800px circle at 80% 10%, rgba(122, 31, 47, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(245, 243, 239, 0.6), rgba(245, 243, 239, 0.9));
}

[data-theme="light"] .section.alt {
  background: linear-gradient(180deg, var(--overlay-soft), var(--overlay-med));
}

[data-theme="light"] .info-card,
[data-theme="light"] .hero-card,
[data-theme="light"] .book-card,
[data-theme="light"] .milestone {
  background: var(--panel);
}

[data-theme="light"] .portrait figcaption {
  color: #fff;
}

[data-theme="light"] .cta.primary {
  color: #fff;
}

[data-theme="light"] .pill {
  background: var(--overlay-med);
}

[data-theme="light"] .pill-dark {
  background: var(--overlay-strong);
}

[data-theme="light"] .faq-item {
  background: var(--panel);
}

[data-theme="light"] .faq-item[open] {
  background: linear-gradient(135deg, rgba(212, 149, 42, 0.06), rgba(122, 31, 47, 0.03));
}

[data-theme="light"] .faq-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .newsletter-card {
  background: linear-gradient(135deg, rgba(212, 149, 42, 0.08), rgba(122, 31, 47, 0.06));
  border-color: rgba(212, 149, 42, 0.2);
}

[data-theme="light"] .newsletter-form input[type="email"] {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

[data-theme="light"] .blog-card {
  background: var(--panel);
}

[data-theme="light"] .step {
  background: var(--panel);
}

[data-theme="light"] .step-number {
  color: #fff;
}

[data-theme="light"] .contact-item {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--card-border);
}

[data-theme="light"] .site-footer {
  background: #1a1a2e;
  color: #e8edf6;
}

[data-theme="light"] .site-footer .footer-subtitle,
[data-theme="light"] .site-footer a {
  color: #a8b3c9;
}

[data-theme="light"] .site-footer .footer-links a {
  background: rgba(255, 255, 255, 0.08);
  color: #e8edf6;
}

[data-theme="light"] .proof-links a {
  text-decoration-color: var(--link-underline);
}

[data-theme="light"] .book-card a {
  text-decoration-color: var(--link-underline);
}

[data-theme="light"] .cta.ghost {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .ghost-pill {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .ghost-pill:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .bot-chat {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-line.user {
  background: rgba(212, 149, 42, 0.12);
}

[data-theme="light"] .chat-line.bot {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

[data-theme="light"] .bot-form input,
[data-theme="light"] .bot-form select,
[data-theme="light"] .bot-form textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .bot-card {
  background: var(--panel);
}

[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, rgba(212, 149, 42, 0.15), rgba(122, 31, 47, 0.2));
  border-color: rgba(212, 149, 42, 0.3);
}

[data-theme="light"] .cta-card .cta.primary {
  background: var(--text);
  color: #fff;
}

[data-theme="light"] .cta-card .cta.ghost {
  border-color: rgba(26, 26, 46, 0.2);
  color: var(--text);
}

[data-theme="light"] .contact-item a {
  color: var(--text);
}

[data-theme="light"] .scroll-btn {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .scroll-btn:hover:not(:disabled) {
  color: #fff;
}

[data-theme="light"] .blog-pagination button {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-pagination button.active {
  color: #fff;
}

[data-theme="light"] .article-body blockquote {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .article-disclaimer {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .toggle-btn.active {
  color: #fff;
}

[data-theme="light"] .milestone {
  background: radial-gradient(700px circle at 20% 20%, rgba(212, 149, 42, 0.1), transparent 60%),
    var(--panel);
}

[data-theme="light"] .portrait {
  background: var(--panel);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px circle at 15% 10%, rgba(122, 31, 47, 0.25), transparent 50%),
    radial-gradient(900px circle at 85% 20%, rgba(242, 181, 68, 0.18), transparent 45%),
    var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.lang {
  display: inline;
}

[data-language="it"] .lang-en {
  display: none;
}

[data-language="en"] .lang-it {
  display: none;
}

/* Hide all inline .lang spans when an extra language is active */
[data-language="ro"] .lang,
[data-language="ar"] .lang,
[data-language="sq"] .lang,
[data-language="zh"] .lang,
[data-language="ur"] .lang,
[data-language="uk"] .lang,
[data-language="pl"] .lang,
[data-language="de"] .lang,
[data-language="es"] .lang,
[data-language="fr"] .lang {
  display: none !important;
}

/* i18n-text: injected dynamically for extra languages */
.i18n-text {
  display: inline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d35400 0%, #e67e22 50%, #f39c12 100%);
  display: grid;
  place-items: center;
  color: #0b0f14;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 34px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 21px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  padding: 10px 14px;
  color: var(--text-secondary, var(--muted));
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  background: var(--overlay-light, rgba(255,255,255,0.03));
  border: 1px solid var(--border-light, rgba(255,255,255,0.06));
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav a:hover {
  color: var(--text);
  background: var(--glass-bg-hover);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav a.nav-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(242, 181, 68, 0.25);
}

.nav a.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(242, 181, 68, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--overlay-med);
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 90px 20px 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px circle at 20% 30%, rgba(242, 181, 68, 0.15), transparent 50%),
    radial-gradient(800px circle at 80% 10%, rgba(122, 31, 47, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.6), rgba(10, 14, 20, 0.9));
  filter: blur(0px);
}

.hero-grid {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.hero-column {
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(32px, 4vw, 44px);
  margin: 16px 0 12px;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 640px;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1px;
}

.pill-dark {
  background: rgba(255, 255, 255, 0.08);
}

.pill-amber {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.18));
  border: 1px solid rgba(242, 181, 68, 0.5);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.cta {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  box-shadow: var(--shadow);
}

.cta.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.cta:hover {
  transform: translateY(-2px);
}

.proof-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.proof-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  align-self: start;
  display: flex;
  flex-direction: column;
}

.hero-card .card-title {
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.hero-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.hero-card li::before {
  content: "•";
  color: var(--accent);
  position: relative;
  top: -1px;
}

.card-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.portrait {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

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

.portrait figcaption {
  padding: 10px 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
}

.portrait-primary {
  max-height: 640px;
  transform: translateY(-16px);
}

.portrait-secondary {
  max-width: 560px;
  justify-self: end;
}

.section {
  padding: 80px 20px;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.client-spot {
  padding-bottom: 60px;
}

.client-spot .section-shell {
  max-width: 1080px;
}

.client-spot .split {
  gap: 14px;
}

.client-copy .section-lead {
  margin-bottom: 10px;
}

.client-copy .pill-row {
  margin-top: 8px;
}

.client-spot .portrait-secondary {
  max-width: 460px;
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-header.narrow {
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 10px;
}

.section h2 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 10px;
}

.section-lead {
  color: var(--muted);
  margin: 0 auto;
}

.section-lead a {
  text-decoration: underline;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.info-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.focus-list li {
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.focus-list li::before {
  content: "—";
  color: var(--accent);
}

.book-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.book-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.book-cover {
  width: 100%;
  max-width: 140px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.book-card a {
  color: var(--text);
}

.book-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.book-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.milestone {
  background: radial-gradient(700px circle at 20% 20%, rgba(242, 181, 68, 0.15), transparent 60%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.milestone-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.milestone-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.milestone-note {
  color: var(--muted);
  margin-top: 8px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.process {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.step-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
}

.eyebrow-soft {
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.blog-card h3 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.excerpt {
  margin: 0;
  color: var(--muted);
}

.cta-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(242, 181, 68, 0.55);
}

.bot-zone .split {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.bot-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: transform 0.15s ease, border 0.2s ease;
}

.ghost-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-chat {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-line {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.chat-line.user {
  background: rgba(242, 181, 68, 0.18);
  color: var(--text);
}

.chat-line.bot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.bot-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  color: var(--muted);
}

.bot-form input,
.bot-form select,
.bot-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.bot-form input:focus,
.bot-form select:focus,
.bot-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.25);
  transform: translateY(-1px);
}

.bot-form input::placeholder,
.bot-form textarea::placeholder {
  color: var(--muted);
}

.field-wide {
  grid-column: 1 / -1;
}

.field-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bot-note {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-section {
  padding: 90px 20px;
}

.cta-card {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.35));
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  color: var(--text);
}

.cta-copy h2 {
  margin: 6px 0 8px;
}

.cta-copy p {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-card .cta.primary {
  background: #0b0f14;
  color: var(--text);
  box-shadow: none;
}

.cta-card .cta.ghost {
  border: 1px solid rgba(11, 15, 20, 0.3);
  color: #0b0f14;
}

.contact-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item .label {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--text);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px 40px;
  background: #0a0e14;
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: center;
}

.footer-shell > div:first-child {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.footer-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-links a.nav-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(242, 181, 68, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-links a.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(242, 181, 68, 0.4);
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
}

.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
}

.footer-addresses a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .portrait-secondary {
    justify-self: start;
    max-width: 100%;
  }

  .hero-below {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 70px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    padding: 8px 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
    padding: 7px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .nav {
    gap: 4px;
    font-size: 12px;
  }

  .nav a {
    padding: 6px 8px;
  }

  .nav a.nav-btn {
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 16px;
  }

  .toggle-btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .hero-card {
    order: -1;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .bot-form {
    grid-template-columns: 1fr;
  }

  .field-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portrait-primary {
    transform: none;
  }
}

/* ============================================
   BLOG & ARTICLE STYLES
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(242, 181, 68, 0.4);
}

.breadcrumbs span {
  margin: 0 6px;
}

/* Blog filters */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.blog-filter {
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-filter.active {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.18));
  border-color: rgba(242, 181, 68, 0.5);
}

/* Blog card enhancements */
.blog-card-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: var(--accent);
}

/* Blog loading state */
.blog-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* Blog carousel (horizontal scroll) */
.blog-carousel-wrap {
  position: relative;
}
.blog-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 12px;
}
.blog-carousel::-webkit-scrollbar { display: none; }
.blog-carousel .blog-card {
  flex: 0 0 calc(33.333% - 12px);
  min-width: 260px;
  scroll-snap-align: start;
}

/* Blog section header with scroll buttons */
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
#new-articles-section .blog-section-header { margin-top: 28px; }
.blog-section-title {
  margin: 0;
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.blog-section-title .lang { color: var(--text); }

/* Scroll navigation buttons */
.blog-scroll-nav {
  display: flex;
  gap: 6px;
}
.scroll-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.scroll-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0f14;
}
.scroll-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

/* Blog pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.blog-pagination button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.blog-pagination button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
}

/* Article page */
.article-page {
  padding: 40px 20px 80px;
}

.article-shell {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0 16px;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.article-body {
  line-height: 1.8;
  font-size: 16px;
}

.article-body h2 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(22px, 3vw, 28px);
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body h3 {
  font-size: 20px;
  margin: 24px 0 10px;
  color: var(--text);
}

.article-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--muted);
}

.article-body li {
  margin-bottom: 6px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-style: italic;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(242, 181, 68, 0.4);
}

.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-disclaimer {
  margin-top: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* Active nav indicator — highlighted (Richiedi pratica) */
.nav-active {
  color: var(--accent) !important;
  background: rgba(242, 181, 68, 0.1) !important;
}

.nav-btn.nav-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 3px 12px rgba(242, 181, 68, 0.35);
}

/* Active nav indicator — bold only (Blog) */
.nav-current {
  font-weight: 700 !important;
}

/* Footer legal */
.footer-legal {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  margin: 0 0 4px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.footer-legal-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* Section sublead (used in HTML but missing from CSS) */
.section-sublead {
  color: var(--muted);
  font-size: 15px;
  margin: 8px auto 0;
  max-width: 640px;
}

/* Blog listing — reduce top gap */
.blog-listing {
  padding-top: 32px;
}

/* Blog listing header */
.blog-listing h1 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .article-footer {
    flex-direction: column;
  }

  .blog-filters {
    justify-content: flex-start;
  }

  .blog-carousel .blog-card {
    flex: 0 0 80vw;
    min-width: 240px;
  }

  .blog-section-title {
    font-size: 20px;
  }

  .blog-section-header {
    margin: 32px 0 10px;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .blog-carousel .blog-card {
    flex: 0 0 calc(50% - 9px);
  }
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
section.reviews-section .reviews-summary {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px;
  margin-bottom: 36px;
}

section.reviews-section .reviews-stars {
  display: flex !important;
  flex-direction: row !important;
  gap: 4px;
}

section.reviews-section .reviews-stars svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 3px rgba(242, 181, 68, 0.3));
}

section.reviews-section .reviews-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

section.reviews-section .reviews-rating {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

section.reviews-section .reviews-count {
  color: var(--muted);
  font-size: 15px;
}

section.reviews-section .reviews-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

section.reviews-section .reviews-grid::-webkit-scrollbar {
  height: 6px;
}

section.reviews-section .reviews-grid::-webkit-scrollbar-track {
  background: transparent;
}

section.reviews-section .reviews-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

section.reviews-section .review-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px;
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, background 0.25s;
}

section.reviews-section .review-card:hover {
  border-color: var(--accent);
  background: var(--glass-bg-hover);
}

section.reviews-section .review-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

section.reviews-section .review-author-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
}

section.reviews-section .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

section.reviews-section .review-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0b0f14;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

section.reviews-section .review-author {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: block;
}

section.reviews-section .review-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  margin-top: 2px;
}

section.reviews-section .review-stars {
  display: flex !important;
  flex-direction: row !important;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

section.reviews-section .review-stars svg {
  width: 14px;
  height: 14px;
}

section.reviews-section .review-text {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  font-style: italic;
}

section.reviews-section .reviews-cta {
  text-align: center;
  margin-top: 32px;
}

section.reviews-section .btn-accent {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #0b0f14;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(242, 181, 68, 0.25);
}

section.reviews-section .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(242, 181, 68, 0.35);
}

[data-theme="light"] section.reviews-section .review-card {
  background: var(--panel);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] section.reviews-section .btn-accent {
  box-shadow: 0 4px 16px rgba(212, 149, 42, 0.2);
}

@media (max-width: 600px) {
  section.reviews-section .review-card {
    min-width: 280px;
  }
  section.reviews-section .reviews-rating {
    font-size: 32px;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item[open] {
  border-color: rgba(242, 181, 68, 0.35);
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.06), rgba(122, 31, 47, 0.04));
  box-shadow: 0 4px 24px rgba(242, 181, 68, 0.06);
}

.faq-question {
  padding: 22px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  background: rgba(242, 181, 68, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
  background: rgba(242, 181, 68, 0.18);
  transform: rotate(180deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:hover::after {
  background: rgba(242, 181, 68, 0.18);
}

.faq-answer {
  padding: 0 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: -2px;
  padding-top: 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  max-width: 640px;
  margin: 48px auto 0;
}

.newsletter-card {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.1), rgba(122, 31, 47, 0.12));
  border: 1px solid rgba(242, 181, 68, 0.25);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}

.newsletter-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.newsletter-card > p {
  color: var(--muted);
  margin: 0 0 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.25);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--muted);
}

.newsletter-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.newsletter-success {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   THEME TOGGLE (dark/light)
   ============================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--overlay-med);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

/* Dark mode: show sun icon (to switch to light) */
.theme-toggle .icon-sun {
  display: flex;
}
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: flex;
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

/* ============================================
   RICHIEDI PRATICA PAGE
   ============================================ */

.pratica-hero {
  position: relative;
  padding: 36px 20px 56px;
  overflow: hidden;
}

.pratica-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 10% 40%, rgba(242, 181, 68, 0.12), transparent 50%),
    radial-gradient(600px circle at 90% 20%, rgba(122, 31, 47, 0.15), transparent 50%);
  pointer-events: none;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.step-header h2 {
  margin: 0;
}

.step-number-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

[data-theme="light"] .step-number-badge {
  color: #fff;
}

/* Practice type cards grid */
.pratica-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 860px) {
  .pratica-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pratica-card-featured {
    grid-column: span 1;
  }
}

.pratica-card-select {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.pratica-card-select:hover {
  border-color: rgba(242, 181, 68, 0.35);
  background: rgba(242, 181, 68, 0.04);
  transform: translateY(-2px);
}

.pratica-card-select.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.1), rgba(122, 31, 47, 0.06));
  box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.25), var(--shadow);
}

[data-theme="light"] .pratica-card-select {
  background: var(--panel);
}

[data-theme="light"] .pratica-card-select.selected {
  background: linear-gradient(135deg, rgba(212, 149, 42, 0.08), rgba(122, 31, 47, 0.04));
}

.pratica-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.15), rgba(122, 31, 47, 0.1));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.pratica-card-icon svg {
  width: 22px;
  height: 22px;
}

.pratica-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pratica-card-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1px;
}

.pratica-card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pratica-card-ref {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(122, 31, 47, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

[data-theme="light"] .pratica-card-ref {
  background: rgba(122, 31, 47, 0.07);
}

.pratica-card-featured {
  padding: 22px 20px;
  border-color: rgba(122, 31, 47, 0.22);
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.05), rgba(122, 31, 47, 0.04));
}

.pratica-card-featured .pratica-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.15));
}

.pratica-card-featured:hover {
  border-color: rgba(122, 31, 47, 0.4);
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.1), rgba(122, 31, 47, 0.06));
}

[data-theme="light"] .pratica-card-featured {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.05), rgba(122, 31, 47, 0.03));
  border-color: rgba(122, 31, 47, 0.18);
}

/* Grid divider between card category sections */
.pratica-grid-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.pratica-grid-divider-first {
  margin-top: 0;
}

.pratica-grid-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Detail panel shown when an operazione straordinaria is selected */
.pratica-detail-panel {
  margin: 16px 0 20px;
  padding: 20px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.06), rgba(122, 31, 47, 0.06));
  border: 1px solid rgba(122, 31, 47, 0.12);
}

.pratica-detail-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

.pratica-detail-vantaggi {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.pratica-detail-vantaggi strong {
  color: #10b981;
}

[data-theme="light"] .pratica-detail-panel {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.04), rgba(122, 31, 47, 0.04));
}

.pratica-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* Selected type badge */
.pratica-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.18));
  border: 1px solid rgba(242, 181, 68, 0.5);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Form wrapper */
.pratica-form-wrap {
  max-width: 760px;
}

.pratica-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pratica-form input,
.pratica-form select,
.pratica-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  width: 100%;
}

.pratica-form input:focus,
.pratica-form select:focus,
.pratica-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.25);
  transform: translateY(-1px);
}

.pratica-form input::placeholder,
.pratica-form textarea::placeholder {
  color: var(--muted);
}

[data-theme="light"] .pratica-form input,
[data-theme="light"] .pratica-form select,
[data-theme="light"] .pratica-form textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Document checklist */
.doc-checklist {
  display: grid;
  gap: 10px;
  max-width: 700px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}

.doc-item.required {
  border-left: 3px solid var(--accent);
}

[data-theme="light"] .doc-item {
  background: var(--panel);
}

.doc-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

.doc-item-icon svg {
  width: 24px;
  height: 24px;
}

.doc-item-text {
  flex: 1;
  font-size: 14px;
}

.doc-item-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.doc-item-badge.obb {
  color: var(--accent);
  background: rgba(242, 181, 68, 0.12);
}

.doc-item-badge.opt {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .doc-item-badge.opt {
  background: rgba(0, 0, 0, 0.04);
}

/* Submit row */
.pratica-submit-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pratica-submit-btn {
  font-size: 16px;
  padding: 14px 32px;
}

/* Loading spinner */
.pratica-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pratica-spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes pratica-spin {
  to { transform: rotate(360deg); }
}

/* Success card */
.pratica-success-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pratica-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: #10b981;
}

.pratica-success-icon svg {
  width: 32px;
  height: 32px;
}

.pratica-upload-cta {
  font-size: 18px;
  padding: 16px 40px;
  display: inline-flex;
  gap: 10px;
  margin: 20px 0;
}

.pratica-success-details {
  margin-top: 16px;
}

.success-detail-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pratica-next-steps {
  margin-top: 32px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
}

[data-theme="light"] .pratica-next-steps {
  background: var(--panel);
}

.pratica-next-steps h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.pratica-next-steps ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.pratica-next-steps li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Error card */
.pratica-error-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 18px;
  padding: 32px;
}

/* ============================================
   OPERAZIONI STRAORDINARIE FEATURED SECTION
   ============================================ */

.ops-featured {
  padding: 48px 20px 56px;
}

.ops-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.ops-card {
  border-radius: 18px;
  border: 1.5px solid rgba(242, 181, 68, 0.25);
  background: linear-gradient(160deg, rgba(242, 181, 68, 0.06), rgba(122, 31, 47, 0.04));
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.ops-card:hover {
  border-color: rgba(242, 181, 68, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(242, 181, 68, 0.1), var(--shadow);
}

[data-theme="light"] .ops-card {
  background: linear-gradient(160deg, rgba(212, 149, 42, 0.06), rgba(122, 31, 47, 0.03));
  border-color: rgba(212, 149, 42, 0.3);
}

[data-theme="light"] .ops-card:hover {
  border-color: rgba(212, 149, 42, 0.55);
  box-shadow: 0 12px 40px rgba(212, 149, 42, 0.08), var(--shadow);
}

.ops-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ops-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  min-width: 200px;
}

.ops-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.15));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.ops-icon svg {
  width: 24px;
  height: 24px;
}

.ops-article-ref {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(242, 181, 68, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ops-vantaggi {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.ops-vantaggi strong {
  color: #10b981;
}

[data-theme="light"] .ops-vantaggi {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.18);
}

.ops-cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* Compact one-liner description on ops cards */
.ops-card-oneliner {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Approfondimento Accordion Section */
.ops-approfondimento {
  padding: 48px 20px 40px;
  background: var(--bg);
}

.ops-approfondimento .section-lead {
  max-width: 680px;
  margin: 8px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.ops-accordion {
  max-width: 820px;
  margin: 32px auto 0;
  display: grid;
  gap: 0;
}

.ops-accordion details {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ops-accordion details:first-child {
  border-top: 1px solid var(--border);
}

.ops-accordion summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: color 0.2s;
}

.ops-accordion summary::-webkit-details-marker {
  display: none;
}

.ops-accordion summary::after {
  content: '';
  margin-left: auto;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ops-accordion details[open] > summary::after {
  transform: rotate(180deg);
}

.ops-accordion summary:hover {
  color: var(--primary);
}

.ops-accordion .ops-detail-content {
  padding: 0 4px 24px;
}

.ops-accordion .ops-detail-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}

.ops-accordion .ops-detail-content .ops-vantaggi {
  margin-top: 8px;
}

/* SEO FAQ Section */
.faq-ops {
  padding: 48px 20px 56px;
}

.faq-ops-list {
  max-width: 780px;
  margin: 32px auto 0;
  display: grid;
  gap: 0;
}

.faq-ops-item {
  border-bottom: 1px solid var(--faq-separator);
  padding: 20px 0;
}

.faq-ops-item:last-child {
  border-bottom: none;
}

.faq-ops-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-ops-item h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.faq-ops-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 640px) {
  .pratica-grid {
    grid-template-columns: 1fr;
  }

  .pratica-form-grid {
    grid-template-columns: 1fr;
  }

  .pratica-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .step-header h2 {
    font-size: clamp(20px, 3vw, 28px);
  }

  .ops-cards {
    grid-template-columns: 1fr;
  }

  .ops-card-header h3 {
    font-size: 16px;
    min-width: 0;
  }

  .ops-card {
    padding: 22px 18px;
  }

  .ops-approfondimento {
    padding: 32px 16px 28px;
  }

  .ops-accordion summary {
    font-size: 15px;
    padding: 16px 2px;
    gap: 10px;
  }

  .ops-accordion .ops-detail-content {
    padding: 0 2px 20px;
  }
}

/* ═══════════════════════════════════════════════
   MULTI-LANGUAGE: Globe Dropdown
   ═══════════════════════════════════════════════ */
.lang-extra {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-extra-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--overlay-med);
  color: var(--muted);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.lang-extra-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text);
}

.lang-extra-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
}

.lang-extra-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-extra-label {
  font-size: 11px;
  min-width: 0;
}

.lang-extra-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  padding: 6px;
  flex-direction: column;
}

.lang-extra-dropdown.open {
  display: flex;
}

.lang-extra-option {
  background: transparent;
  border: none;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-extra-option:hover {
  background: var(--glass-bg-hover);
}

.lang-extra-option.active {
  background: var(--overlay-strong);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   MULTI-LANGUAGE: Conditional Font Families
   ═══════════════════════════════════════════════ */
[data-language="zh"] body {
  font-family: "Noto Sans SC", "Space Grotesk", system-ui, sans-serif;
}

[data-language="ar"] body,
[data-language="ur"] body {
  font-family: "Noto Sans Arabic", "Space Grotesk", system-ui, sans-serif;
}

[data-language="zh"] h1,
[data-language="zh"] h2,
[data-language="zh"] .brand-title {
  font-family: "Noto Sans SC", serif;
}

[data-language="ar"] h1,
[data-language="ar"] h2,
[data-language="ar"] .brand-title,
[data-language="ur"] h1,
[data-language="ur"] h2,
[data-language="ur"] .brand-title {
  font-family: "Noto Sans Arabic", serif;
}

/* ═══════════════════════════════════════════════
   MULTI-LANGUAGE: RTL Support (Arabic, Urdu)
   ═══════════════════════════════════════════════ */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand-text {
  text-align: right;
}

[dir="rtl"] .hero-grid {
  direction: rtl;
}

[dir="rtl"] .hero-copy {
  text-align: right;
}

[dir="rtl"] .cta-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .badge-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .cards-grid {
  direction: rtl;
}

[dir="rtl"] .info-card {
  text-align: right;
}

[dir="rtl"] .info-title {
  text-align: right;
}

[dir="rtl"] .step {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .split {
  direction: rtl;
}

[dir="rtl"] .section-header {
  text-align: right;
}

[dir="rtl"] .section-lead {
  text-align: right;
}

[dir="rtl"] .focus-list {
  padding-right: 0;
  padding-left: 20px;
}

[dir="rtl"] .focus-list li {
  padding-left: 0;
  padding-right: 28px;
}

[dir="rtl"] .focus-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-shell {
  text-align: right;
}

[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-question::after {
  left: 16px;
  right: auto;
}

[dir="rtl"] .faq-answer {
  text-align: right;
}

[dir="rtl"] .field-group {
  text-align: right;
}

[dir="rtl"] .field-group input,
[dir="rtl"] .field-group select,
[dir="rtl"] .field-group textarea {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .bot-copy {
  text-align: right;
}

[dir="rtl"] .quick-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .pill-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .milestone {
  text-align: right;
}

[dir="rtl"] .client-copy {
  text-align: right;
}

[dir="rtl"] .cta-copy {
  text-align: right;
}

[dir="rtl"] .contact-links {
  text-align: right;
}

[dir="rtl"] .blog-grid {
  direction: rtl;
}

[dir="rtl"] .blog-card {
  text-align: right;
}

[dir="rtl"] .three-col {
  direction: rtl;
}

[dir="rtl"] .process {
  direction: rtl;
}

[dir="rtl"] .lang-extra-option {
  text-align: right;
}

[dir="rtl"] .lang-extra-dropdown {
  right: auto;
  left: 0;
}

/* ═══════════════════════════════════════════════
   MULTI-LANGUAGE: Responsive Adjustments
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .lang-extra-btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .lang-extra-btn svg {
    width: 14px;
    height: 14px;
  }

  .lang-extra-dropdown {
    min-width: 150px;
  }

  .lang-extra-option {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ============================================ */
/* INFO CARD WITH PHOTO (credentials)           */
/* ============================================ */

.info-card-with-photo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-card-photo {
  margin: -20px -20px 20px;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(242, 181, 68, 0.08), transparent 70%),
    var(--card-bg, #f8f9fa);
  border-bottom: 1px solid var(--border);
}

.info-card-photo-tall {
  aspect-ratio: 4 / 3;
}

.info-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  display: block;
}

.info-card-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================ */
/* STUDIO TABS (Modena / Campogalliano)         */
/* ============================================ */

.studio-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.studio-tab {
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  color: var(--text-secondary, var(--muted));
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.studio-tab:hover {
  color: var(--text, var(--text-primary));
}

.studio-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================ */
/* STUDIO CAROUSEL (horizontal scroll)          */
/* ============================================ */

.studio-carousel {
  display: flex;
  gap: 14px;
  margin: 28px 0 28px;
  padding: 6px 2px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.studio-carousel[hidden] {
  display: none;
}

.studio-carousel::-webkit-scrollbar {
  height: 6px;
}

.studio-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.studio-carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.studio-slide {
  flex: 0 0 auto;
  width: clamp(280px, 42vw, 440px);
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg, #f8f9fa);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.studio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.studio-location {
  padding: 16px 20px;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 12px;
}

.studio-location-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text, var(--text-primary));
  margin-bottom: 4px;
}

.studio-location-addr {
  font-size: 13px;
  color: var(--muted, var(--text-secondary));
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.studio-location-addr:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .studio-slide {
    width: 78vw;
  }
  .studio-locations {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* PUBBLICAZIONI ROW                            */
/* ============================================ */

.publications-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.5fr;
  gap: 40px;
  align-items: center;
}

.publications-image {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.publications-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.publications-image img {
  width: 100%;
  height: auto;
  display: block;
}

.publications-text h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  margin: 10px 0 14px;
  color: var(--text, var(--text-primary));
}

.publications-text p {
  color: var(--muted, var(--text-secondary));
  line-height: 1.6;
  font-size: 15px;
}

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

/* ============================================ */
/* LIGHTBOX (shared)                            */
/* ============================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
  display: flex;
  animation: lbFade 0.2s ease;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes lbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

