/* camerottolegal.it — site styles */

:root {
  --cream:      #F4EFE6;
  --cream-deep: #ECE5D6;
  --light:      #FBF8F1;
  --ink:        #1C1916;
  --ink-soft:   #2A2620;
  --muted:      #6B6358;
  --muted-soft: #8B8275;
  --accent:     #B8845B;
  --accent-deep:#9A6A45;
  --rule:       #DCD4C3;
  --shadow:     0 1px 0 rgba(28,25,22,0.04);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 88px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
a:hover { border-bottom-color: var(--accent); }

/* ───── Topbar ───── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.brand { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: 0.01em; border: 0; color: var(--ink); }
.brand em { font-style: italic; color: var(--muted); font-weight: 400; }
.brand small {
  display: block; font-family: var(--sans);
  font-size: 10px; font-weight: 400; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 4px;
}
.primary-nav ul {
  list-style: none; display: flex; gap: 36px; align-items: center;
  padding: 0; margin: 0;
}
.primary-nav a { font-size: 14px; letter-spacing: 0.02em; }
.primary-nav .lang { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; display: flex; gap: 6px; align-items: center; }
.primary-nav .lang strong { color: var(--ink); font-weight: 500; }
.primary-nav .lang span { color: var(--rule); }
.primary-nav .lang a { color: var(--muted); }
.primary-nav .lang a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.menu-toggle {
  display: none;
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 1.5px; background: var(--ink); margin: 6px auto;
  width: 22px; transition: transform .2s, opacity .2s;
}

@media (max-width: 880px) {
  .topbar { padding: 0 24px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; top: var(--nav-h); right: 0; left: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .25s, opacity .2s;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 16px 0; }
  .primary-nav li { border-bottom: 1px solid var(--rule); }
  .primary-nav li:last-child { border: 0; }
  .primary-nav a { display: block; padding: 14px 24px; }
  .primary-nav .lang { padding: 14px 24px; }
}

/* ───── Hero ───── */
.hero {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}
.hero-text {
  flex: 0 0 55%;
  padding: 80px 64px 80px 80px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 720px;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px; font-weight: 500;
}
.eyebrow::before { content: "— "; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.04;
  letter-spacing: -0.015em; margin: 0 0 18px;
}
h1 em { font-style: italic; color: var(--muted); font-weight: 400; }
.role {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 24px);
  font-style: italic; color: var(--muted);
  margin: 0 0 44px;
}
.lead {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
  max-width: 560px; margin: 0 0 22px;
}
.lead.italic { font-style: italic; color: var(--muted); margin-bottom: 40px; }
.meta {
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; gap: 32px; flex-wrap: wrap; max-width: 560px;
}
.meta strong { color: var(--ink); font-weight: 500; }

.hero-photo {
  flex: 1; position: relative;
  background-image: url('/assets/hero.jpg');
  background-size: cover; background-position: 50% 35%;
  filter: grayscale(100%) contrast(1.04);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(244,239,230,0.25) 0%, rgba(244,239,230,0) 30%);
}
.corner {
  position: absolute; bottom: 32px; left: 40px; right: 40px;
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--muted); letter-spacing: 0.02em;
}
.corner::before { content: '"'; color: var(--accent); font-size: 22px; vertical-align: -4px; margin-right: 4px; }
.corner::after { content: '"'; color: var(--accent); font-size: 22px; vertical-align: -4px; margin-left: 2px; }

@media (max-width: 880px) {
  .hero { flex-direction: column-reverse; min-height: 0; }
  .hero-text { padding: 48px 24px 64px; }
  .hero-photo { height: 50vh; min-height: 360px; }
  .corner { bottom: 20px; left: 24px; right: 24px; }
}

/* ───── Sections ───── */
.section { padding: 96px 80px; }
.section-light { background: var(--light); }
.section-cream { background: var(--cream-deep); }
.section-head {
  max-width: var(--max-w); margin: 0 auto 56px;
  text-align: left;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08; letter-spacing: -0.01em;
  margin: 8px 0 0;
}
h2 em { font-style: italic; color: var(--muted); font-weight: 400; }
.section-body { max-width: var(--max-w); margin: 0 auto; }
.two-col {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px;
  align-items: start;
}
.prose p { margin: 0 0 18px; max-width: 60ch; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.prose .aside { font-size: 15px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 16px; margin-top: 32px; }
blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.45; color: var(--ink);
  margin: 32px 0; padding: 0 0 0 28px;
  border-left: 2px solid var(--accent);
  max-width: 60ch;
}
.bullets h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted); margin: 0 0 20px;
}
.bullets ul { list-style: none; padding: 0; margin: 0; }
.bullets li {
  position: relative;
  padding: 12px 0 12px 24px;
  font-size: 15px; color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}
.bullets li:last-child { border-bottom: 1px solid var(--rule); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 8px; height: 1px; background: var(--accent);
}

.portrait {
  margin: 0; overflow: hidden;
}
.portrait img {
  width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
}

.section-extras {
  max-width: var(--max-w); margin: 64px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.card {
  background: var(--light); padding: 32px;
  border: 1px solid var(--rule);
}
.card h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 22px; margin: 0 0 16px; color: var(--ink);
}
.card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.card strong { color: var(--ink); }

@media (max-width: 880px) {
  .section { padding: 64px 24px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .section-extras { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  blockquote { font-size: 18px; }
}

/* ───── Contact form ───── */
.contact-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: start;
}
.contact-form { display: grid; gap: 20px; max-width: 560px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.field .opt { text-transform: none; letter-spacing: normal; color: var(--muted-soft); font-weight: 400; font-size: 11px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px;
  background: var(--light); border: 1px solid var(--rule);
  padding: 12px 14px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field-honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; pointer-events: none; }
.field-checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.field-checkbox input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; padding: 0; }
.field-checkbox label {
  text-transform: none; letter-spacing: normal; color: var(--ink-soft);
  font-size: 13px; line-height: 1.55; font-weight: 400; margin: 0;
}
.field-checkbox label a { color: var(--accent-deep); border-bottom: 1px solid var(--rule); }
.btn-primary {
  font: inherit; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  border: 0; padding: 16px 28px;
  cursor: pointer; transition: background .15s;
  justify-self: start;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--accent-deep); }
.form-status.err { color: #a23b1f; }

.contact-aside h3 {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted); margin: 0 0 16px;
}
.contact-aside address {
  font-style: normal; font-size: 16px; line-height: 1.7;
  color: var(--ink); margin: 0 0 24px;
}
.contact-aside dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; font-size: 14px; }
.contact-aside dt { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; padding-top: 4px; }
.contact-aside dd { margin: 0; color: var(--ink-soft); word-break: break-word; }
.contact-aside a { color: var(--accent-deep); border-bottom: 1px solid var(--rule); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ───── Footer ───── */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 64px 80px 48px;
}
.affiliations {
  display: flex; align-items: center; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid #2c2925;
  margin-bottom: 32px; flex-wrap: wrap;
}
.aff-label {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted-soft); margin-right: 8px;
}
.aff-logo {
  height: 40px; width: auto;
  filter: brightness(0) invert(1) opacity(0.75);
  transition: opacity .15s;
}
.aff-logo:hover { filter: brightness(0) invert(1) opacity(1); }
.aff-text {
  font-family: var(--serif); font-style: italic;
  color: var(--cream); opacity: 0.75; font-size: 18px;
}
.legal p { margin: 0 0 6px; font-size: 13px; color: #c4bba9; line-height: 1.65; }
.legal strong { color: var(--cream); font-weight: 500; }
.footer-links {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid #2c2925;
  font-size: 12px; color: var(--muted-soft);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.footer-links a { color: var(--muted-soft); border: 0; }
.footer-links a:hover { color: var(--cream); }

@media (max-width: 880px) {
  .site-footer { padding: 48px 24px 32px; }
  .affiliations { gap: 20px; }
}

/* Privacy page */
.legal-page { max-width: 760px; margin: 0 auto; padding: 96px 24px 64px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; margin: 40px 0 16px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.legal-page a { color: var(--accent-deep); border-bottom: 1px solid var(--rule); }
