@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ════════════════════════════════════════════════════════════════
   Studio legale Loser — stylesheet
   Palette: warm-on-dark · Typography: Inter · Layout: 980px max
   ════════════════════════════════════════════════════════════════ */
:root {
  --bg: #0c1018;
  --bg-elevated: #12181f;
  --bg-card: #161d26;
  --bg-hover: #1a2230;
  --accent: #1b2838;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --text-secondary: rgba(255,255,255,0.62);
  --text-muted: rgba(255,255,255,0.36);
  --text-faint: rgba(255,255,255,0.16);
  --warm: #c9a96e;
  --warm-hover: #d8bb84;
  --warm-dim: rgba(201,169,110,0.15);
  --col-max: 980px;
  --col-text: 720px;
  --nav-h: 128px;
  --nav-h-compact: 70px;
  --logo-h: 113px;
  --logo-h-compact: 82px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-snap-type: y proximity; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--warm); color: var(--bg); }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--warm); color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem; font-weight: 600;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: height 0.3s ease;
  background: rgba(12,16,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav.nav--compact { height: var(--nav-h-compact); }
.nav-inner {
  max-width: var(--col-max);
  margin: 0 auto; height: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2rem;
}
.nav-logo { display: block; text-decoration: none; transition: transform 0.35s ease; }
.nav--compact .nav-logo { transform: translateY(calc(var(--nav-h-compact) / 2 - 0.082 * var(--logo-h-compact))); }
.nav-logo img {
  height: var(--logo-h); width: auto; display: block;
  transition: height 0.35s ease;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.nav--compact .nav-logo img { height: var(--logo-h-compact); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: 0.72rem; font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s; padding: 0.25rem 0;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.lang-switch {
  display: flex; gap: 0.1rem;
  margin-left: 0.5rem; padding-left: 1.25rem;
  border-left: 1px solid var(--border);
}
.lang-switch a {
  font-size: 0.6rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.4rem;
  border-radius: 2px; transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--text-secondary); }
.lang-switch a.active { color: var(--warm); background: var(--warm-dim); }
.nav-toggle { display: none; color: var(--text); padding: 0.25rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 2rem 6rem;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  right: -3vw; bottom: -8vh;
  width: clamp(320px, 45vw, 620px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.20;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--col-max);
  margin: 0 auto; width: 100%;
  padding-top: calc(var(--nav-h) + 5rem);
  position: relative; z-index: 1;
}
.hero-eyebrow {
  font-size: 0.62rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--warm);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 580px;
  color: var(--text);
}
.hero-meta {
  margin-top: 2.5rem;
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.hero-meta-item { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-meta-label { color: var(--text-muted); margin-bottom: 0.2rem; }
.hero-meta-value { color: var(--text-secondary); }

.divider {
  max-width: var(--col-max);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* Sections */
.section { padding: 5.5rem 2rem; }
.section-inner { max-width: var(--col-max); margin: 0 auto; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--warm);
  opacity: 0.8;
}
.section-num {
  font-size: 0.55rem; font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* Ambiti */
.ambiti-intro {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.8; max-width: 540px; margin-bottom: 3rem;
  font-weight: 300;
}
.ambiti-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.ambito {
  padding: 1.8rem 1.6rem;
  background: var(--bg);
  transition: background 0.3s;
}
.ambito:hover { background: var(--bg-card); }
.ambito h3 {
  font-size: 0.78rem; font-weight: 500;
  line-height: 1.4; margin-bottom: 0.5rem;
  color: var(--text);
}
.ambito p {
  font-size: 0.72rem; color: var(--text-secondary); line-height: 1.7;
  font-weight: 300;
}

/* Profilo */
.profilo-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.profilo-text p {
  font-size: 0.86rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 1.2rem;
  font-weight: 300;
}
.profilo-text p:last-child { margin-bottom: 0; }
.profilo-data { border-top: 1px solid var(--border); }
.profilo-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 1rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem; align-items: baseline;
}
.profilo-row dt {
  font-size: 0.58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
}
.profilo-row dd { color: var(--text-secondary); font-weight: 300; }

/* Contatto */
.contatto {
  background: var(--bg-elevated);
  padding: 5.5rem 2rem;
  border-top: 1px solid var(--border);
}
.contatto-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contatto-note {
  font-size: 0.86rem; color: var(--text-secondary);
  line-height: 1.8; max-width: 380px;
  font-weight: 300;
}
.contatto-details li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.contatto-details li:first-child { border-top: 1px solid var(--border); }
.contatto-dt {
  font-size: 0.56rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
  margin-bottom: 0.2rem; font-weight: 500;
}
.contatto-dd { font-size: 0.82rem; color: var(--text-secondary); font-weight: 300; }
.contatto-dd a { color: var(--text-secondary); transition: color 0.2s; }
.contatto-dd a:hover, .contatto-dd a:focus-visible { color: var(--warm); }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
}
.footer-inner {
  max-width: var(--col-max);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-size: 0.6rem; color: rgba(255,255,255,0.5);
  gap: 1.5rem;
}
.footer-inner > span { justify-self: start; }
.footer-center { justify-self: center; display: inline-flex; align-items: center; gap: 1.5rem; font-size: 1rem; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-self: end; }
.footer-legal a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: rgba(255,255,255,0.85); }

/* Hardstein band */
.footer-legal .hardstein-area { color: var(--warm); }
.footer-legal .hardstein-area:hover, .footer-legal .hardstein-area:focus-visible { color: var(--warm-hover); }

/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES (privacy, impressum, disclaimer)
   ════════════════════════════════════════════════════════════════ */
.legal-page {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
.legal-inner {
  max-width: var(--col-text);
  margin: 0 auto;
}
.legal-eyebrow {
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--warm);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}
.legal-page h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}
.legal-page .legal-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  letter-spacing: 0.04em;
}
.legal-page h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--warm);
  opacity: 0.8;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
}
.legal-page h3 {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.legal-page p, .legal-page li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
}
.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.legal-page ul li, .legal-page ol li {
  list-style: disc;
  margin-bottom: 0.5rem;
}
.legal-page ol li { list-style: decimal; }
.legal-page strong {
  color: var(--text);
  font-weight: 500;
}
.legal-page a {
  color: var(--warm);
  border-bottom: 1px solid var(--warm-dim);
  transition: border-color 0.2s, color 0.2s;
}
.legal-page a:hover { color: var(--warm-hover); border-bottom-color: var(--warm); }
.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
}
.legal-page th, .legal-page td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: left;
  font-weight: 300;
}
.legal-page th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Fade-in animation */
.fade-in {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 800px) {
  :root { --nav-h: 104px; --nav-h-compact: 60px; --logo-h: 90px; --logo-h-compact: 68px; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%;
    left: 0; right: 0;
    background: rgba(12,16,24,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem; gap: 0;
    border-bottom: 1px solid var(--border); z-index: 99;
  }
  .nav-links.open a {
    font-size: 0.82rem; padding: 0.85rem 0;
    border-bottom: 1px solid var(--border); display: block;
    text-transform: none;
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .hero { min-height: 85vh; padding: 0 1.25rem 4rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-watermark { width: 220px; right: -3vw; bottom: -3vh; }
  .hero-meta { flex-direction: column; gap: 1rem; }
  .section { padding: 3.5rem 1.25rem; }
  .ambiti-grid { grid-template-columns: 1fr; }
  .profilo-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contatto { padding: 3.5rem 1.25rem; }
  .contatto-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 0.9rem; text-align: center; }
  .footer-inner > span, .footer-center, .footer-legal { justify-self: center; }
  .legal-page { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem; }
}

@media print {
  .nav, .skip-link, .footer-center { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero-watermark { display: none; }
  body { background: #fff !important; color: #000 !important; }
  .section, .legal-page { padding: 2rem 0; }
  .contatto, .footer { background: #fff !important; }
  a { color: #000 !important; text-decoration: underline; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .legal-page h1, .legal-page h2, .legal-page h3, .legal-page p { color: #000 !important; }
}


/* ════════════════════════════════════════════════════════════════
   HOMEPAGE — center-focus scroll (desktop only)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 801px) {
  .home .hero { scroll-snap-align: start; }
  .home .section { scroll-snap-align: center; }
  .home .footer { scroll-snap-align: end; }
  .home .section {
    min-height: 88vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
  }
  .home .section-inner { width: 100%; }
  .home .hero, .home .section {
    transition: opacity 0.65s cubic-bezier(0.22,0.61,0.36,1),
                transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
    will-change: opacity, transform;
  }
  .home .is-away { opacity: 0.32; transform: scale(0.986); }
  .home::before, .home::after {
    content: ''; position: fixed; left: 0; right: 0;
    height: 22vh; pointer-events: none; z-index: 90;
  }
  .home::before { top: 0;    background: linear-gradient(to bottom, var(--bg) 16%, rgba(12,16,24,0)); }
  .home::after  { bottom: 0; background: linear-gradient(to top,    var(--bg) 12%, rgba(12,16,24,0)); }
  .home .footer { position: relative; z-index: 95; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .home .hero, .home .section, .home .contatto { opacity: 1 !important; transform: none !important; }
  .home::before, .home::after { display: none; }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 0.86rem; font-weight: 500; color: var(--text); margin-bottom: 0.45rem; }
.faq-item p { font-size: 0.8rem; color: var(--text-secondary); font-weight: 300; line-height: 1.75; }

@font-face {
  font-family: 'URW Gothic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/urw-gothic.woff2') format('woff2');
}

/* Link inline (profilo, footer, marchio) */
.profilo-text a, .profilo-data a { color: var(--warm); text-decoration: none; border-bottom: 1px solid var(--warm-dim); transition: color 0.2s, border-color 0.2s; }
.profilo-text a:hover, .profilo-data a:hover, .profilo-text a:focus-visible, .profilo-data a:focus-visible { color: var(--warm-hover); border-color: var(--warm); }
.uid-link { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.28); transition: color 0.2s; }
.uid-link:hover, .uid-link:focus-visible { color: var(--warm); }
.hardstein-mark { display: inline-flex; text-decoration: none; color: inherit; transition: opacity 0.2s; }
.hardstein-mark:hover, .hardstein-mark:focus-visible { opacity: 0.82; }
