:root {
  --accent: #8b0b04;
  --accent-dark: #6d0803;
  --ink: #1c1c1e;
  --muted: #5c5c60;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --bg-dark: #17181c;
  --line: #e6e2dc;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 24px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
.light { color: #fff; }

.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow-light { color: #c99a96; }

.lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 18px; }
p + p { margin-top: 14px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand img { height: 52px; width: auto; }

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

.site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url("../assets/pexels-sora-shimazaki-5668473-scaled.jpg") center / cover no-repeat fixed #222;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.72) 0%, rgba(15, 15, 18, 0.55) 60%, rgba(23, 24, 28, 0.85) 100%);
}

.hero-content { position: relative; padding-top: 90px; }

.hero-eyebrow {
  color: #c99a96;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin-bottom: 26px;
}

.hero blockquote {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 720px;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin-bottom: 38px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-full { width: 100%; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--bg-dark); }

.section .narrow p:not(.eyebrow):not(.lead),
.section .center p { color: var(--muted); }
.section .lead strong, .section .narrow strong { color: var(--accent); }

.grid { display: grid; gap: 28px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards competenze ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.card h3 { padding: 20px 22px 0; font-size: 1.15rem; }

.card ul { list-style: none; padding: 12px 22px 24px; }

.card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 7px;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Avvocati ---------- */

.lawyer {
  background: #212227;
  border: 1px solid #2e3037;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.lawyer:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.lawyer img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(35%);
  transition: filter 0.3s;
}
.lawyer:hover img { filter: grayscale(0%); }

.lawyer h3 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 20px 22px 0;
}

.lawyer p {
  color: #a7a8ad;
  font-size: 0.88rem;
  padding: 10px 22px 26px;
}

/* ---------- Sedi ---------- */

.office {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.office-info { padding: 30px 30px 22px; }
.office-info h3 { color: var(--accent); }
.office-info address { font-style: normal; color: var(--muted); margin-top: 8px; }

.office iframe {
  border: 0;
  width: 100%;
  height: 300px;
  display: block;
}

/* ---------- Contatti ---------- */

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
  margin-top: 44px;
}

.form-row { margin-bottom: 22px; }

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: #a7a8ad;
  padding: 44px 0;
  font-size: 0.85rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #d8d8da; }

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .hero { background-attachment: scroll; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; text-align: center; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .contact-form { padding: 26px; }
  .brand img { height: 42px; }
  .header-inner { height: 64px; }
  .site-nav { top: 64px; }
}
