/* Avvocato Martina Piva — sito statico */
:root {
  --ink: #252326;
  --ink-soft: #5f5a5d;
  --wine: #742d3e;
  --wine-dark: #54202e;
  --wine-pale: #efe4e7;
  --gold: #b99a68;
  --cream: #f7f4ef;
  --paper: #fffdf9;
  --line: #ddd4ca;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(45, 34, 38, .12);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--wine); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--wine-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(116,45,62,.42); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: var(--wine); color: white; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 12px; color: var(--wine); font-size: .77rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .55em; font-family: Georgia, "Times New Roman", serif; line-height: 1.13; font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
.lead { color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.72; }
.muted { color: var(--ink-soft); }

.topbar { background: var(--wine-dark); color: rgba(255,255,255,.88); font-size: .84rem; }
.topbar-inner { min-height: 38px; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.topbar a { color: white; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,253,249,.94); border-bottom: 1px solid rgba(221,212,202,.7); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-logo { display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.brand-logo img { display:block; width: 42px !important; max-width: none; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.brand-text span { margin-top: 5px; color: var(--ink-soft); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav a { color: var(--ink); padding: 10px 12px; border-radius: 999px; font-size: .91rem; font-weight: 680; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--wine); background: var(--wine-pale); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 21px; border-radius: 999px; border: 1px solid transparent; font-weight: 760; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: white; box-shadow: 0 10px 22px rgba(116,45,62,.2); }
.btn-primary:hover { background: var(--wine-dark); color: white; }
.btn-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-secondary:hover { background: var(--cream); color: var(--wine); }

.hero { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 105px) 0; background: linear-gradient(120deg, var(--cream), #fff 64%); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(185,154,104,.28); border-radius: 50%; left: -220px; top: -240px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .88fr); align-items: center; gap: clamp(40px, 7vw, 95px); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 em { color: var(--wine); font-style: normal; }
.hero-photo { position: relative; min-height: 560px; }
.hero-photo::before { content:""; position:absolute; inset: 25px -25px -25px 25px; border: 1px solid var(--gold); border-radius: var(--radius); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-note { position: absolute; left: -35px; bottom: 34px; max-width: 280px; padding: 18px 20px; border-radius: 14px; background: rgba(255,253,249,.95); box-shadow: 0 12px 35px rgba(31,24,27,.15); border-left: 4px solid var(--wine); }
.hero-note strong { display: block; font-family: Georgia, serif; font-size: 1.05rem; }
.hero-note span { color: var(--ink-soft); font-size: .84rem; }

.page-hero { padding: clamp(55px, 8vw, 100px) 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { margin-bottom: 25px; color: var(--ink-soft); font-size: .88rem; }
.breadcrumb a { color: inherit; }

.section { padding: clamp(65px, 9vw, 115px) 0; }
.section-soft { background: var(--cream); }
.section-wine { background: var(--wine-dark); color: white; }
.section-wine .eyebrow { color: #e3c992; }
.section-wine .lead, .section-wine .muted { color: rgba(255,255,255,.75); }
.section-head { max-width: 760px; margin-bottom: 45px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(42px, 7vw, 90px); align-items: center; }
.media-card { position: relative; }
.media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-card.tall img { aspect-ratio: 4/5; object-position: center; }
.media-card.profile-photo img { object-position: 34% center; }
.media-card::after { content:""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(185,154,104,.72); border-radius: var(--radius); z-index: -1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 35px rgba(38,31,33,.055); }
.card-icon { width: 45px; height: 45px; margin-bottom: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--wine-pale); color: var(--wine); }
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 760; text-decoration: none; }
.card-link::after { content:"→"; transition: transform .2s ease; }
.card-link:hover::after { transform: translateX(4px); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.value { padding: 32px 26px; background: var(--wine-dark); }
.value strong { display: block; margin-bottom: 8px; color: #fff; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.value span { color: rgba(255,255,255,.68); font-size: .92rem; }

.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.practice-panel { padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.practice-panel h2 { font-size: clamp(1.9rem, 3vw, 2.55rem); }
.practice-panel ul, .check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.practice-panel li, .check-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid #eee8e1; }
.practice-panel li:last-child, .check-list li:last-child { border-bottom: 0; }
.practice-panel li::before, .check-list li::before { content:""; position:absolute; left: 2px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 5px var(--wine-pale); }

.quote { padding: 34px 38px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 14px 14px 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 1.8rem); line-height: 1.45; }
.quote cite { display:block; margin-top: 16px; color: var(--ink-soft); font-family: Inter, sans-serif; font-size: .82rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.fees { margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fee-row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 22px 26px; background: white; border-bottom: 1px solid var(--line); }
.fee-row:last-child { border-bottom: 0; }
.fee-row strong { font-size: 1rem; }
.fee-row span { color: var(--wine); font-weight: 800; text-align: right; }
.notice { margin-top: 24px; padding: 18px 20px; border-radius: 12px; color: var(--ink-soft); background: var(--cream); font-size: .93rem; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 7vw, 85px); align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contact-item svg { width: 22px; height: 22px; color: var(--wine); margin: 5px auto 0; }
.contact-item small { display:block; color: var(--ink-soft); text-transform: uppercase; letter-spacing:.1em; font-size:.68rem; font-weight:800; }
.contact-item a, .contact-item strong { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map-card { margin-top: 24px; padding: 25px; border-radius: 16px; background: var(--wine-dark); color: white; }
.map-card p { color: rgba(255,255,255,.76); }
.map-card .btn { border-color: rgba(255,255,255,.32); color: white; }
.map-card .btn:hover { background: white; color: var(--wine-dark); }

.legal { font-size: .98rem; }
.legal h2 { margin-top: 2em; font-size: 1.55rem; }
.legal h3 { margin-top: 1.7em; font-size: 1.2rem; font-family: Inter, sans-serif; font-weight: 800; letter-spacing: 0; }
.legal ol, .legal ul { padding-left: 1.35em; }
.legal li { margin: .65em 0; }
.legal-date { margin-top: 40px; color: var(--ink-soft); font-style: italic; }

.cta { padding: clamp(45px, 7vw, 75px); border-radius: 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; color: white; background: linear-gradient(135deg, var(--wine-dark), var(--wine)); box-shadow: var(--shadow); }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }
.cta .btn { background: white; color: var(--wine-dark); }

.site-footer { padding: 65px 0 24px; background: #211d1f; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 55px; padding-bottom: 45px; }
.footer-brand { color: white; font-family: Georgia, serif; font-size: 1.55rem; }
.site-footer h3 { color:white; font-family: Inter, sans-serif; font-size:.75rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.5); font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .topbar { display:none; }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: grid; place-items:center; }
  .nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav.open { display: grid; }
  .nav a { padding: 13px 15px; border-radius: 10px; }
  .hero-grid, .page-hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .hero-photo { min-height: 520px; margin: 5px 18px 20px 0; }
  .hero-note { left: 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .brand-logo img { width: 36px !important; }
  .brand-text strong { font-size: .95rem; }
  .brand-text span { font-size: .62rem; }
  .hero-photo { min-height: 410px; }
  .hero-photo::before, .media-card::after { inset: 12px -12px -12px 12px; }
  .hero-note { position: relative; left: auto; bottom: auto; margin: -60px 18px 0; }
  .cards, .practice-grid, .values, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .fee-row { grid-template-columns: 1fr; gap: 6px; }
  .fee-row span { text-align:left; }
  .cta { grid-template-columns: 1fr; padding: 34px 26px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
