:root {
    --blue: #0F0347;
    --blue-deep: #0A0230;
    --blue-muted: #4A4470;
    --white: #FFFFFF;
    --off-white: #F6F5F2;
    --neutral: #B7AD9C;
    --neutral-light: #E4DFD6;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Archivo', sans-serif;
    color: var(--blue);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
    h1, h2, h3, .serif {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
  .logo-mark {
    display: flex;
    align-items: center;
    gap: 13px;
  }
  .logo-mark svg, .logo-mark img { display: block; height: 34px; width: auto; flex-shrink: 0; }
.hero-header .logo-mark img { height: 130px; }
  .logo-mark .wordmark {
        font-family: 'Archivo', sans-serif;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
  }
  @media (max-width: 680px) {
    .logo-mark .wordmark { display: none; }
  }

  /* ===== HERO (contains the in-flow header) ===== */
  .hero-block {
    position: relative;
    overflow: hidden;
    background: var(--blue);
    color: var(--white);
    padding-bottom: 0;
  }
  .hero-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .hero-bg {
    position: absolute;
    inset: 0; 
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  .hero-header, .hero-text-box { position: relative; z-index: 2; }
  .hero-header {
    position: relative;
    display: flex; align-items: center; justify-content: flex-start;
    background: rgba(15, 3, 71, 0.95);
    height: 100px;
    padding: 0 40px;
    gap: 24px;
    overflow: visible;
  }
  .hero-nav-inline {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .hero-nav-inline {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
  }
  .hero-nav-inline a {
        font-family: 'Archivo', sans-serif;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
  }
  .hero-nav-inline a span {
        font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: var(--neutral);
  }
  .hero-nav-inline a:hover { color: var(--neutral); border-color: var(--neutral); }
  @media (max-width: 960px) {
    .hero-nav-inline { display: none; }
  }
  .hamburger {
    width: 34px; height: 34px;
    padding: 0; margin: 0; box-sizing: border-box;
    background: none; border: none; cursor: pointer;
    position: relative; z-index: 300;
    flex-shrink: 0;
  }
  .hamburger span {
    position: absolute; right: 2px;
    height: 2px; width: 28px;
    background-color: var(--blue);
    transition: width 0.25s ease;
  }
  .hamburger span:nth-child(1) { top: 11px; }
  .hamburger span:nth-child(2) { top: 17px; width: 19px; }
  .hamburger span:nth-child(3) { top: 23px; }
  .hamburger:hover span { width: 28px; }

  .hero-text-box {
    flex: 1;
    width: 420px;
    max-width: 78vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15,3,71,0.95) 0%, rgba(15,3,71,0.88) 45%, rgba(15,3,71,0.45) 85%, rgba(15,3,71,0.1) 100%);
    padding: 48px 48px 64px;
    margin: 0 0 32px 40px;
  }
  .hero-eyebrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-size: 24px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 24px;
    margin-top: -30px;
  }
  .hero-eyebrow-top {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
  }
  .eyebrow-line {
    width: 24px;
    height: 1px;
    background: var(--white);
    opacity: 0.55;
    display: block;
  }
  .hero-eyebrow-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 44px;
    letter-spacing: 0.02em;
    text-transform: capitalize;
  }
  .hero-lead {
    font-size: 17px;
    line-height: 1.65;
    color: #C9C4E0;
  }
  @media (max-width: 860px) {
    .hero-full { min-height: 78vh; }
    .hero-text-box { width: auto; max-width: none; margin: 0 20px 20px; padding: 32px 24px; }
  }

  /* ===== STICKY MINI HEADER (appears after scrolling past hero) ===== */
  .mini-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-light);
    padding: 20px 40px;
    display: flex; align-items: center; justify-content: space-between;
    transform: translateY(-100%);
    transition: transform 0.3s ease, background 0.2s ease;
  }
  .mini-header.visible { transform: translateY(0); }
  .mini-header-inner {
    max-width: 1120px; margin: 0 auto;
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
  }

  /* ===== COMPACT NAV PANEL (top-right dropdown, light theme) ===== */
  .nav-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(10, 2, 48, 0.28);
    z-index: 400;
    display: block;
    padding: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
     .nav-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    width: 100%;
    max-width: none;
    background: var(--blue);
    border-bottom: 1px solid var(--blue-deep);
    padding: 28px 0;
    box-shadow: 0 18px 50px rgba(15, 3, 71, 0.18);
    transform: translateY(-8px);
    transition: transform 0.25s ease;
  }
  .nav-overlay.open .nav-panel { transform: translateY(0); }
      .nav-overlay-top {
    position: static;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
    padding: 0 40px;
  }
  .nav-overlay-top .logo-mark svg { height: 30px; }
  .nav-overlay-close {
    width: 30px; height: 30px;
    padding: 0; margin: 0; box-sizing: border-box;
    background: none; border: none; cursor: pointer;
    position: relative;
    flex-shrink: 0;
  }
  .nav-overlay-close span {
    position: absolute; top: 50%; left: 0;
    width: 100%; height: 2px; background-color: var(--white);
  }
  .nav-overlay-close span:first-child { transform: rotate(45deg); }
  .nav-overlay-close span:last-child { transform: rotate(-45deg); }
  .nav-overlay-list {
    list-style: none;
    max-width: none; margin: 0; width: 100%;
    padding: 0;
  }
    .nav-overlay-list a {
    display: flex; align-items: baseline; gap: 12px;
       font-family: 'Archivo', sans-serif;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    padding: 18px 40px;
    transition: background 0.25s ease, color 0.25s ease;
  }
  .nav-overlay-list a span {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: var(--neutral);
    transition: color 0.25s ease;
  }
  .nav-overlay-list a:hover {
    background: var(--white);
    color: var(--blue);
  }
  .nav-overlay-list a:hover span {
    color: var(--blue-muted);
  }
    .nav-overlay-contact {
    max-width: none; margin: 20px 0 0; width: 100%;
    padding: 18px 32px 0;
    border-top: 1px solid var(--neutral-light);
    display: flex; flex-direction: column; gap: 6px;
    font-size: 13px;
    color: var(--blue-muted);
  }

  /* ===== Sections ===== */
  section { padding: 96px 40px; }
  section[id] { scroll-margin-top: 90px; }
  .section-off { background: var(--off-white); }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1120px;
    margin: 0 auto 56px;
    gap: 40px;
  }
  .section-head h2 { font-size: 37.5px; max-width: 480px; }
  .section-head p { font-size: 16.5px; color: var(--blue-muted); max-width: 360px; }

  .practice-grid {
    max-width: 1120px; margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
 .practice-item {
    height: 155px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border-top: 1px solid var(--neutral-light);
    color: var(--blue);
    padding: 44px 40px;
    transition: height 0.4s ease, opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  .practice-item:last-child { border-bottom: 1px solid var(--neutral-light); }
  .practice-item:hover, .practice-item.is-open {
    background: var(--blue); color: var(--white); border-color: rgba(255,255,255,0.15);
  }
  .practice-item.is-open {
    cursor: default;
    height: auto;
    overflow: visible;
  }
  /* When one box is open: hide the other three completely and let the open one take exactly the space its content needs */
  .practice-grid:has(.practice-item.is-open) .practice-item {
    height: 0;
    padding-top: 0; padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    border-top-color: transparent;
  }
  .practice-grid:has(.practice-item.is-open) .practice-item.is-open {
    height: auto;
    padding-top: 44px; padding-bottom: 44px;
    opacity: 1;
    pointer-events: auto;
    border-top-color: rgba(255,255,255,0.15);
  }
  .practice-close {
    position: absolute; top: 18px; right: 18px;
    width: 34px; height: 34px;
    padding: 0; margin: 0; box-sizing: border-box;
    background: none; border: none; cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3;
  }
  .practice-item.is-open .practice-close { opacity: 1; pointer-events: auto; }
  .practice-close span {
    position: absolute; top: 50%; left: 50%;
    width: 18px; height: 2px; background-color: currentColor;
    transform-origin: center;
  }
  .practice-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
  .practice-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
  .practice-num { color: var(--neutral); transition: color 0.25s ease; }
  .practice-num {
    font-family: 'Libre Bodoni', serif;
    font-size: 15px;
    display: block;
    margin-bottom: 18px;
  }
  .practice-item h3 {
    font-size: 33px; margin-bottom: 14px; font-weight: 500;
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
  }
  .practice-item h3:hover { border-color: currentColor; }
  .practice-item p, .practice-item ul {
    font-size: 15px; color: var(--blue-muted); max-width: 340px;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.25s ease;
  }
  .practice-item.is-open p, .practice-item.is-open ul {
    opacity: 1; color: #C9C4E0;
    max-width: 100%;
    transition: opacity 0.3s ease 0.15s, color 0.25s ease;
  }
  .practice-item p + p,
  .practice-item p + ul,
  .practice-item ul + p { margin-top: 12px; }
  .practice-item ul {
    list-style: disc;
    padding-left: 20px;
  }
  .practice-item li { margin-bottom: 6px; }
  .practice-item li::marker { color: var(--neutral); }
  

  .studio {
    max-width: 1120px; margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
  }
  .studio-img {
    aspect-ratio: 4/5;
    background: linear-gradient(180deg, var(--off-white), var(--neutral-light));
    border: 1px solid var(--neutral-light);
    overflow: hidden;
    min-width: 0;
}
  .studio-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .studio h2 { font-size: 22px; margin-bottom: 24px; }
  .studio-title-person { font-size: 18px; }
  .studio p { font-size: 17px; color: var(--blue-muted); margin-bottom: 20px; max-width: 460px; }
  .studio-link { font-size: 15.5px; border-bottom: 1px solid var(--blue); padding-bottom: 4px; display: inline-block; margin-top: 12px; }
    .inline-link {
    color: inherit;
    border-bottom: 1px solid var(--neutral);
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  .inline-link:hover { border-color: var(--blue); color: var(--blue); }

  .pubblicazioni-grid {
    max-width: 1120px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
  .pubblicazioni-card { border-top: 1px solid var(--blue); padding-top: 20px; min-width: 0; }
  .pubblicazioni-date { font-size: 14px; color: var(--neutral); }
  .pubblicazioni-card h3 { font-size: 21px; margin: 14px 0 10px; font-weight: 500; }
  .pubblicazioni-card p { font-size: 15.5px; color: var(--blue-muted); }
    .pubblicazioni-more {
    width: 100%;
    margin: 56px 0 0;
    padding: 0 40px;
    text-align: right;
  }

  .contact-wrap {
    max-width: 1120px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.contact-wrap > * { min-width: 0; }
  .contact-info h2 { font-size: 37.5px; margin-bottom: 20px; }
  .contact-info p { font-size: 16.5px; color: var(--blue-muted); margin-bottom: 32px; max-width: 380px; }
  .contact-detail { margin-bottom: 18px; font-size: 14.5px; }
  .contact-detail span { display: block; color: var(--neutral); font-size: 14px; margin-bottom: 4px; }
  form { display: flex; flex-direction: column; gap: 20px; }
  label { font-size: 14px; color: var(--blue-muted); display: block; margin-bottom: 8px; }
  input, textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--neutral-light);
    padding: 10px 0;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    background: transparent;
    color: var(--blue);
  }
  input:focus, textarea:focus { outline: none; border-bottom-color: var(--blue); }
  textarea { resize: vertical; min-height: 90px; }
  button {
    margin-top: 12px;
    align-self: flex-start;
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 14px 34px;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  button:hover { background: var(--blue-muted); }

  footer { background: var(--blue-deep); color: var(--white); padding: 56px 40px 32px; }
  .footer-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 40px;
    }
 .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
 .footer-brand .logo-mark img { height: 60px; margin-left: -11px;}
  .footer-linkedin {
    display: inline-flex;
    color: var(--neutral);
    transition: color 0.2s ease;
  }
  .footer-linkedin svg { width: 22px; height: 22px; display: block; }
  .footer-linkedin:hover { color: var(--white); }
  .footer-cols { display: flex; gap: 64px; flex-wrap: wrap; min-width: 0; }
  .footer-col p, .footer-col a { font-size: 15px; color: #C9C4E0; display: block; margin-bottom: 10px; overflow-wrap: break-word; word-break: break-word; }
  .footer-col span { display: block; color: var(--neutral); font-size: 13px; margin-bottom: 10px; }
  .footer-bottom {
    max-width: 1120px; margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--neutral);
  }

  @media (max-width: 860px) {
    .hero-header { padding-left: 24px; padding-right: 24px; }
    .mini-header { padding: 16px 24px; }
    section { padding: 64px 24px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .practice-grid { height: 520px; }
    .practice-item { padding: 32px 24px; }
    .practice-close { top: 16px; right: 16px; }
    .studio { grid-template-columns: 1fr; gap: 40px; }
    .pubblicazioni-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 56px; }
    .footer-inner { flex-direction: column; }
    .nav-overlay-contact { flex-direction: column; gap: 12px; }
  }

/* ===== Internal page header (simplified hero for secondary pages) ===== */
.page-header { padding-bottom: 20px; }
.page-header-content {
  max-width: 1120px; margin: 0 auto;
  padding: 20px 20px 0;
}
.page-header-content .hero-eyebrow { margin-bottom: 0; }
.page-header-content p.page-subtitle {
  font-size: 15px;
  color: #C9C4E0;
  max-width: 520px;
  margin-top: 18px;
}
.policy-content {
    max-width: 800px; margin: 0 auto;
    padding-bottom: 40px;
  }
  .policy-content h2 { font-size: 28px; margin: 40px 0 16px; }
  .policy-content h2:first-child { margin-top: 0; }
  .policy-content p { font-size: 16px; color: var(--blue-muted); margin-bottom: 16px; line-height: 1.7; }
  .cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 500;
    background: var(--blue-deep);
    color: var(--white);
    padding: 20px 40px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .cookie-banner.visible { transform: translateY(0); }
  .cookie-banner-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
  }
  .cookie-banner p {
    font-size: 14px;
    color: #C9C4E0;
    margin: 0;
    max-width: 720px;
  }
  .cookie-banner a { text-decoration: underline; color: var(--white); }
  .cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
  }
  .cookie-accept, .cookie-reject {
    background: var(--white);
    color: var(--blue);
    border: none;
    padding: 12px 28px;
    font-family: 'Archivo', sans-serif;
    font-size: 14.5px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .cookie-accept:hover { background: var(--neutral-light); }
  .cookie-reject {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
  }
  .cookie-reject:hover { border-color: var(--white); }
  @media (max-width: 680px) {
    .cookie-banner { padding: 18px 24px; }
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  }