:root {
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --navy: #1b2a41;
  --navy-2: #2c3e5c;
  --gold: #b08d57;
  --ink: #26303d;
  --muted: #5f6873;
  --line: #e4ddd0;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; }
a { color: var(--navy-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 72px; max-width: 1280px; }
.brand { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand .mark { width: 40px; height: 40px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 600 18px var(--serif); letter-spacing: 1px; }
.brand .name { font: 600 19px/1.1 var(--serif); letter-spacing: .5px; white-space: nowrap; }
.brand .name small { display: block; font: 500 11px var(--sans); letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
nav.main { display: flex; gap: 18px; align-items: center; }
nav.main a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 14.5px; letter-spacing: .3px; }
nav.main a:hover, nav.main a[aria-current] { color: var(--gold); }
.btn { display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none; padding: 12px 22px; font-size: 15px; letter-spacing: .3px; border: 0; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1px solid var(--navy); }
.btn.gold { background: var(--gold); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 15px; color: var(--navy); }

/* hero */
.hero { padding: 72px 0 64px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 5px 10px; background: var(--paper); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 60px); margin: 18px 0 18px; }
h1 em, h2 em { font-style: italic; color: var(--navy-2); }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
h3 { font-size: 23px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; border-left: 3px solid var(--gold); padding-left: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy); color: #e9edf3; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .muted { color: #b9c3d1; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); padding: 26px; }
section.alt .card { background: var(--cream); }
.card a.more { font-size: 14.5px; text-decoration: none; color: var(--gold); font-weight: 600; }
.num { font: 600 34px var(--serif); color: var(--gold); line-height: 1; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); padding: 18px 20px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 600 16px var(--serif); }
.steps li strong { color: var(--navy); }
ul.clean { padding-left: 20px; }
ul.clean li { margin: 6px 0; }
.note { background: #f1ebe0; border-left: 3px solid var(--gold); padding: 14px 18px; font-size: 15.5px; }
.urgent { background: var(--navy); color: #fff; padding: 22px 24px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.urgent strong { font: 600 22px var(--serif); color: #fff; }
.urgent a.tel { color: var(--gold); font: 600 26px var(--serif); text-decoration: none; }
.page-head { padding: 56px 0 24px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 38px; font-size: 30px; }
.faq details { background: var(--paper); border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
table.cmp { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 15.5px; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.cmp th { background: var(--navy); color: #fff; font-weight: 500; }

/* footer */
footer { background: #131e2f; color: #aeb8c6; padding: 48px 0 28px; font-size: 14.5px; }
footer a { color: #d7dde6; text-decoration: none; }
footer h4 { color: #fff; font: 600 18px var(--serif); margin: 0 0 10px; }
footer .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer .legal { border-top: 1px solid #26344b; margin-top: 30px; padding-top: 18px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 1360px) {
  nav.main { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 900px) {
  .g2, .g3, footer .fgrid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
  table.cmp { font-size: 14px; }
}

/* logo */
.brand img { height: 44px; width: auto; background: #151b26; padding: 6px 8px; display: block; }

/* avvocati */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.person { background: var(--paper); border: 1px solid var(--line); }
.person .ph { aspect-ratio: 4 / 4.4; overflow: hidden; background: #ddd; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: filter .5s ease; }
@media (hover: hover) { .person .ph img { filter: grayscale(1); } .person:hover .ph img { filter: none; } }
.person .bd { padding: 24px 26px 28px; }
.person .role { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.tags li { font-size: 13px; border: 1px solid var(--line); padding: 4px 10px; background: var(--cream); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }

/* WhatsApp */
.btn.wa { background: #1f8f4e; }
.btn.wa:hover { background: #197a42; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 20; }
.wa-float:hover { background: #1fb959; }

/* volti in home */
.mini-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mini { display: flex; gap: 18px; align-items: center; background: var(--cream); border: 1px solid var(--line); padding: 14px; text-decoration: none; color: var(--ink); }
.mini img { width: 96px; height: 96px; object-fit: cover; object-position: top; flex-shrink: 0; }
.mini strong { font: 600 20px var(--serif); color: var(--navy); }
.mini .muted { font-size: 14.5px; }
@media (max-width: 900px) { .mini-people { grid-template-columns: 1fr; } }

/* intestazione su telefono */
@media (max-width: 480px) {
  .top .wrap { gap: 10px; padding: 0 14px; }
  .brand { gap: 8px; flex-shrink: 1; min-width: 0; }
  .brand img { height: 36px; padding: 5px 6px; }
  .brand .name { font-size: 16px; white-space: normal; }
  .brand .name small { font-size: 9px; letter-spacing: 1.2px; }
  .menu-toggle { flex-shrink: 0; padding: 7px 10px; }
}

/* contrasto: oro scuro per il testo su fondo chiaro */
:root { --gold-text: #7d6235; }
.eyebrow, .card a.more, .person .role, nav.main a:hover, nav.main a[aria-current] { color: var(--gold-text); }
a[style*="var(--gold)"] { color: var(--gold-text) !important; }
.btn.gold { background: #8a6d3d; }
.btn.wa { background: #177a3f; }
.btn.wa:hover { background: #12652f; }
footer { padding-bottom: 90px; }

/* pulsante chiamata sempre visibile su schermi stretti */
.call-mobile { display: none; background: var(--navy); color: #fff; text-decoration: none; padding: 8px 14px; font-size: 15px; margin-left: auto; }
@media (max-width: 1360px) { .call-mobile { display: inline-block; } .menu-toggle { margin-left: 8px; } }

/* testo giustificato (non i titoli), con sillabazione italiana; allineato a sinistra sugli schermi stretti */
.prose p, .prose li, .lead, .card p, .steps li, .faq p, .note, .person .bd p, section.dark p {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
@media (max-width: 600px) {
  .prose p, .prose li, .lead, .card p, .steps li, .faq p, .note, .person .bd p, section.dark p { text-align: left; }
}

/* foto pagina Medio Oriente */
figure.photo { margin: 0; }
figure.photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
figure.photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
