/* ABC Translation Italia – abc-office.it
   Palette: ministerial ink, cool paper, wax-seal carmine. Type: Palatino (Italian roots, ships with Windows/macOS) + system sans.
   No web fonts, no frameworks: fast by design. */

:root {
  --ink: #1C2340;
  --ink-2: #353D5E;
  --muted: #555E72;
  --paper: #FBFBF8;
  --white: #FFFFFF;
  --desk: #E3E8ED;
  --tint: #EEF1F4;
  --rule: #C8CED6;
  --seal: #A01D2E;
  --seal-hi: #F6E7E3;
  --focus: #1F5FD1;
  --ok: #276149;
  --err: #A01D2E;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --narrow: 44rem;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--seal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem); max-width: 22ch; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--narrow); }
.wrap.narrow { margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2 + 1.25rem)); padding-left: 0; }
@media (max-width: 74rem) { .wrap.narrow { margin-left: auto; padding-left: 1.25rem; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-block; font: 600 1rem/1.2 var(--sans); padding: 0.85rem 1.35rem; border-radius: var(--r);
  background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); cursor: pointer;
}
.btn:hover { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.93rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.logo-sub { font-weight: 400; color: var(--muted); margin-left: 0.35rem; font-style: italic; }
.logo-mark { flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: 0.97rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--seal); color: var(--ink); }
.lang-switch { font-size: 0.93rem; }
.nav-toggle { display: none; margin-left: auto; font: 600 0.95rem var(--sans); background: none; border: 1px solid var(--rule); border-radius: var(--r); padding: 0.45rem 0.8rem; color: var(--ink); }

@media (max-width: 62rem) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1.25rem; gap: 0.75rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--tint); }
  .site-nav .btn { text-align: center; }
}

/* Breadcrumbs */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 0; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: var(--desk); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero .lead { font-size: 1.15rem; max-width: 36rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1rem; }
.trust { font-size: 0.95rem; color: var(--muted); max-width: 34rem; }
@media (max-width: 58rem) { .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 2.25rem; } }

/* The apostille – the one bold element */
.apostille {
  position: relative; margin: 0; background: var(--white); border: 1px solid var(--rule);
  padding: 1.6rem 1.6rem 1.3rem 2.1rem; font-family: var(--serif); color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -22px rgba(28, 35, 64, 0.45);
  transform: rotate(-1.4deg); max-width: 30rem; justify-self: end;
}
.ap-cord { position: absolute; left: 0.55rem; top: -0.6rem; bottom: -0.6rem; width: 9px;
  background: linear-gradient(90deg, #008C45 0 33%, #F4F5F0 33% 66%, #CD212A 66%); border-radius: 2px; }
.ap-title { text-align: center; font-size: 1.7rem; letter-spacing: 0.32em; margin: 0; font-weight: 700; }
.ap-sub { text-align: center; font-size: 0.8rem; font-style: italic; margin: 0.1rem 0 1rem; color: var(--muted); }
.ap-fields { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.ap-fields li { display: grid; grid-template-columns: 1.6rem auto 1fr; gap: 0.4rem; align-items: baseline; padding: 0.2rem 0; }
.ap-fields .ap-l { color: var(--muted); }
.ap-fields .ap-v { font-style: italic; color: var(--ink); border-bottom: 1px dotted var(--rule); min-width: 0; }
.ap-fields .ap-cert { display: block; text-align: center; font-weight: 700; letter-spacing: 0.08em; margin: 0.45rem 0 0.2rem; }
.ap-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.ap-stamp, .ap-signbox { display: flex; flex-direction: column; gap: 0.2rem; }
.ap-seal { width: 104px; height: 104px; transform: rotate(-12deg); animation: press 0.5s cubic-bezier(.2, .9, .3, 1.2) 0.35s both; }
.ap-sign { width: 150px; height: 48px; margin-top: 1.4rem; }
@keyframes press { from { opacity: 0; transform: rotate(-12deg) scale(1.35); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ap-seal { animation: none; } }
@media (max-width: 58rem) { .apostille { justify-self: start; transform: rotate(-0.8deg); } }
@media (max-width: 26rem) { .apostille { padding: 1.2rem 1rem 1rem 1.6rem; } .ap-fields { font-size: 0.85rem; } .ap-fields li { grid-template-columns: 1.4rem 1fr; } .ap-fields .ap-v { grid-column: 2; } }

/* Page head */
.page-head { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head .lead { font-size: 1.15rem; color: var(--ink-2); }

/* Bands */
.band { padding: 3.25rem 0; }
.band + .band { border-top: 1px solid var(--tint); }
.band-tint { background: var(--tint); }
.section-intro { max-width: 44rem; color: var(--ink-2); }
.sub-h { margin-top: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }

/* Service rows */
.svc-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 2.25rem; }
.svc-rows li { border-top: 2px solid var(--ink); padding: 1rem 0 1.4rem; }
.svc-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 0.35rem; }
.svc-name:hover { text-decoration: underline; }
.svc-rows p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* Ticks list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72rem; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(-45deg); }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--seal); margin-bottom: 0.5rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 52rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.why p { color: var(--ink-2); }
@media (max-width: 52rem) { .why { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Chips */
.chip-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-list a { display: inline-block; padding: 0.42rem 0.8rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; font-size: 0.95rem; }
.chip-list a:hover { border-color: var(--ink); color: var(--ink); }
.chip-quiet a { background: transparent; }

.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2rem 2.5rem; }
.region-block h2 { font-size: 1.3rem; }
.region-block h2 a { text-decoration: none; }

/* Table */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; padding: 1rem 2rem 1rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; color: var(--seal); font-family: var(--sans); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-2); margin-top: -0.25rem; padding-bottom: 0.5rem; }
.faq h2 + .faq-item { border-top: 1px solid var(--rule); }
.faq .faq-item + h2 { margin-top: 2.5rem; }

/* Quote form */
.quote { scroll-margin-top: 4.5rem; background: var(--ink); color: #E9ECF4; padding: 3.5rem 0; }
.quote-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.quote h2 { color: #fff; }
.quote a { color: #fff; }
.quote-direct { font-size: 0.97rem; }
.quote-form { background: var(--white); color: var(--ink); padding: 1.75rem; border-radius: var(--r); border-top: 4px solid var(--seal); }
.quote-form a { color: var(--ink); }
@media (max-width: 58rem) { .quote-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.form-note { font-size: 0.88rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 36rem) { .row2 { grid-template-columns: 1fr; } .quote-form { padding: 1.25rem; } }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #9AA3B2; border-radius: var(--r); padding: 0.65rem 0.7rem;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select { min-height: 2.95rem; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(31, 95, 209, 0.35); outline-offset: 0; }
.field input[type="file"] { font-size: 0.95rem; max-width: 100%; }
.hint { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ink); }
.check label { font-weight: 400; font-size: 0.93rem; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Contact */
.contact-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.contact-dl dt { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.contact-dl dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.15rem; }

/* Footer */
.site-footer { background: #151A31; color: #C9CEDB; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #E9ECF4; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.footer-logo span { font-weight: 400; font-style: italic; color: #C9CEDB; }
.site-footer .link-list { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.site-footer .link-list li { margin: 0.25rem 0; }
.site-footer .link-list a { text-decoration: none; }
.site-footer .link-list a:hover { text-decoration: underline; color: #fff; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2C3352; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-legal p { margin: 0; }
.footer-legal a { margin-right: 1rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .quote, .nav-toggle { display: none; }
  body { background: #fff; }
}
