/* ==========================================================================
   Elite Security Agency — foglio di stile
   Palette e tipografia ereditate dal sito originale (nero, oro, marrone; Abhaya Libre)
   ========================================================================== */

/* Abhaya Libre — self-hosted (SIL Open Font License 1.1) */
@font-face { font-family: "Abhaya Libre"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/abhaya-libre-400.woff2") format("woff2"); }
@font-face { font-family: "Abhaya Libre"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/abhaya-libre-500.woff2") format("woff2"); }
@font-face { font-family: "Abhaya Libre"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/abhaya-libre-600.woff2") format("woff2"); }
@font-face { font-family: "Abhaya Libre"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/abhaya-libre-700.woff2") format("woff2"); }
@font-face { font-family: "Abhaya Libre"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/abhaya-libre-800.woff2") format("woff2"); }

:root {
  --ink: #0A0A0A;
  --black: #000;
  --white: #FFF;
  --paper: #FAF7F2;
  --gold: #C99A57;
  --gold-deep: #B38950;
  --gold-text: #8C6A3A;       /* oro leggibile su fondi chiari */
  --brown: #44311F;
  --brown-deep: #36271A;
  --muted-dark: rgba(255, 255, 255, .72);
  --muted-light: #4A4540;
  --line-dark: rgba(201, 154, 87, .28);
  --line-light: rgba(68, 49, 31, .14);

  --font: "Abhaya Libre", Georgia, "Times New Roman", serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 150px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 88px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;          /* 19px: Abhaya Libre ha x-height ridotta */
  line-height: 1.65;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.005em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--black { background: var(--black); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--white { background: var(--white); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--brown { background: var(--brown); color: var(--white); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section--white .eyebrow, .section--paper .eyebrow { color: var(--gold-text); }
.h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
.h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.h3 { font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.15; }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.6; }
.text-gold { color: var(--gold); }
.muted { color: var(--muted-dark); }
.section--white .muted, .section--paper .muted { color: var(--muted-light); }
.rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.section-head .lead { margin-top: 22px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: #D6AA6B; }
.btn--outline { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(0, 0, 0, .15); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--brown); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .04em; color: var(--gold);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-color: currentColor; gap: 14px; }
.section--white .link-arrow, .section--paper .link-arrow { color: var(--gold-text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(0, 0, 0, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
  --header-h: 74px;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 46px; height: auto; transition: width .4s var(--ease); }
.site-header.is-scrolled .brand img { width: 40px; }
.brand__name { font-size: 1.125rem; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.brand__name small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__link, .nav__toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em;
  background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit;
}
.nav__link::after, .nav__toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__toggle:hover::after, .nav__link[aria-current="page"]::after, .nav__toggle.is-current::after { transform: scaleX(1); }
.nav__toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: -24px; min-width: 300px;
  background: rgba(10, 10, 10, .97); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover .nav__dropdown, .nav__item.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .nav__toggle svg, .nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__dropdown a { display: flex; flex-direction: column; padding: 12px 24px; transition: background .2s; }
.nav__dropdown a:hover { background: rgba(201, 154, 87, .08); }
.nav__dropdown strong { font-size: 1.0625rem; }
.nav__dropdown span { font-size: .875rem; color: var(--muted-dark); line-height: 1.4; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; transition: border-color .3s, color .3s;
}
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 17px; height: 17px; }
.header-actions .btn { margin-left: 8px; }

.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-menu__top .brand img { width: 42px; }
.mobile-menu nav a { display: block; padding: 14px 0; font-size: 1.75rem; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu nav a.sub { font-size: 1.1875rem; font-weight: 500; padding-left: 18px; color: var(--muted-dark); }
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 18px; }
.mobile-menu__foot a.plain { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--black);
}
.hero--page { min-height: 78vh; min-height: 78svh; align-items: flex-end; padding-bottom: clamp(64px, 9vw, 120px); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%),
    linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 40%);
}
.hero__content { position: relative; z-index: 1; padding-top: var(--header-h); max-width: 820px; }
.hero__content .lead { margin: 28px 0 40px; color: rgba(255, 255, 255, .86); max-width: 640px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero__scroll span.line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollLine { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Intro trittico (Home) ---------- */
.triptych { display: grid; grid-template-columns: 1fr minmax(320px, 1.05fr) 1fr; background: var(--black); color: var(--white); }
.triptych__img { position: relative; min-height: 640px; overflow: hidden; }
.triptych__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.triptych__text { padding: clamp(56px, 7vw, 110px) clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.triptych__text .h2 { margin-bottom: 8px; }
.triptych__text p { color: var(--muted-dark); }
.triptych__text p strong { color: var(--white); font-weight: 600; }

/* ---------- Card servizi (Home) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-light); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, .10); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 32px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.card__tier { font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.card__body .h3 { margin-bottom: 14px; }
.card__body p { color: var(--muted-light); font-size: 1.0625rem; margin-bottom: 24px; }
.card__body .link-arrow { margin-top: auto; align-self: flex-start; }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Split (immagine + testo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 680px; }
.split__media { position: relative; overflow: hidden; min-height: 460px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.split__body { display: flex; align-items: center; padding: clamp(64px, 8vw, 120px) clamp(28px, 6vw, 96px); }
.split__inner { max-width: 560px; }
.split--reverse .split__media { order: 2; }
.split__inner .muted { font-size: 1.125rem; }

/* Sezioni servizio (pagina Servizi) */
.service { padding: clamp(40px, 5vw, 72px) 0; }
.service .split { min-height: 720px; }
.service--black { background: var(--black); color: var(--white); }
.service--black .h2 { color: var(--gold-deep); }
.service--white { background: var(--white); color: var(--ink); }
.service--brown { background: var(--brown); color: var(--white); }
.service__num { font-size: .8125rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.service__num::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.service--white .service__num { color: var(--gold-text); }
.service--white .rule { background: var(--ink); }
.service--brown .rule { background: var(--white); }
.service p.desc { font-size: 1.125rem; }
.service--black p.desc, .service--brown p.desc { color: rgba(255, 255, 255, .8); }
.service--white p.desc { color: var(--muted-light); }

.checklist { display: grid; gap: 12px; margin: 30px 0 30px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 1.0625rem; line-height: 1.45; }
.checklist svg { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.service--white .checklist svg { color: var(--gold-text); }
.list-title { font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-top: 30px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 36px; }
.tags li { font-size: .9375rem; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 40px; line-height: 1.3; }
.service--white .tags li { border-color: var(--line-light); background: var(--paper); }

/* ---------- Attività (pagina Servizi) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.feature { padding: 40px 32px 44px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .4s var(--ease); }
.feature:hover { background: rgba(201, 154, 87, .05); }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--gold); margin-bottom: 28px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature .h3 { font-size: 1.5rem; margin-bottom: 12px; }
.feature p { color: var(--muted-dark); font-size: 1.0625rem; }
.section--white .features, .section--paper .features, .section--white .feature, .section--paper .feature { border-color: var(--line-light); }
.section--paper .feature__icon, .section--white .feature__icon { border-color: rgba(140, 106, 58, .35); color: var(--gold-text); }
.section--paper .feature p, .section--white .feature p { color: var(--muted-light); }
.section--paper .feature:hover { background: var(--white); }

/* ---------- Metodo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); counter-reset: step; }
.step { position: relative; padding-top: 36px; border-top: 1px solid var(--line-dark); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 3.25rem; font-weight: 800; line-height: 1; color: var(--gold); margin-bottom: 22px;
}
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--gold); }
.step .h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { color: var(--muted-dark); font-size: 1.0625rem; }

/* ---------- Settori ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 64px); }
.sectors li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--line-light); font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 600;
}
.sectors li span { font-size: .8125rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-text); }

/* ---------- Valori (lista con icone) ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 32px; margin-top: 36px; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.value__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: var(--gold); }
.value__icon svg { width: 20px; height: 20px; }
.value h3 { font-size: 1.25rem; margin-bottom: 4px; }
.value p { font-size: 1rem; color: rgba(255, 255, 255, .74); line-height: 1.5; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: var(--white); text-align: center; padding: clamp(96px, 12vw, 170px) 0; background: var(--black); }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 100%); }
.cta .container { position: relative; z-index: 1; max-width: 900px; }
.cta .lead { margin: 22px auto 40px; max-width: 640px; color: rgba(255, 255, 255, .85); }
.cta .btn-row { justify-content: center; }
.cta .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line-light); }
.contact-list a, .contact-list div.item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-light); transition: color .3s; }
.contact-list a:hover { color: var(--gold-text); }
.contact-list .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(140, 106, 58, .35); color: var(--gold-text); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); }
.contact-list strong { font-size: 1.1875rem; font-weight: 600; word-break: break-word; }
.contact .social { margin-top: 32px; }
.contact .social a { border-color: var(--line-light); color: var(--ink); }
.contact .social a:hover { border-color: var(--gold-text); color: var(--gold-text); }

.form-card { background: var(--white); border: 1px solid var(--line-light); padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px rgba(0, 0, 0, .06); }
.form-card .h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted-light); font-size: 1.0625rem; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  font-size: 1.0625rem; transition: border-color .25s, background .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6A3A' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-text); background: var(--white); }
.field.has-error input, .field.has-error textarea { border-color: #A3412F; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .9375rem; line-height: 1.5; color: var(--muted-light); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brown); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check.has-error { color: #A3412F; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; }
.form-foot small { color: var(--muted-light); font-size: .875rem; }
.form-status { display: none; margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--gold-text); background: var(--paper); font-size: 1rem; }
.form-status.is-visible { display: block; }

.map-band { display: grid; grid-template-columns: 1fr 1.4fr; background: var(--black); color: var(--white); }
.map-band__info { padding: clamp(56px, 7vw, 100px) clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.map-band__info address { font-style: normal; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.3; margin: 8px 0 28px; }
.map-band__map { position: relative; min-height: 440px; background: var(--ink); overflow: hidden; }
.map-band__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) sepia(.15); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; }
.map-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.map-fallback__pin { position: relative; display: grid; justify-items: center; gap: 14px; }
.map-fallback__pin .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--black); box-shadow: 0 0 0 12px rgba(201, 154, 87, .18), 0 0 0 26px rgba(201, 154, 87, .08); }
.map-fallback__pin .ic svg { width: 28px; height: 28px; }
.map-fallback__pin strong { font-size: 1.25rem; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-top: clamp(72px, 9vw, 110px); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: clamp(32px, 4vw, 64px); padding-bottom: 64px; }
.footer-brand img { width: 72px; margin-bottom: 22px; }
.footer-brand h2 { font-size: 1.625rem; margin-bottom: 14px; }
.footer-brand p { color: var(--muted-dark); font-size: 1.0625rem; max-width: 380px; }
.footer-col h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255, 255, 255, .82); transition: color .25s; font-size: 1.0625rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.footer-contact svg { width: 17px; height: 17px; margin-top: 5px; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 28px 0 36px; display: grid; gap: 14px; }
.footer-bottom__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-legal { font-size: .875rem; color: rgba(255, 255, 255, .6); line-height: 1.6; }
.footer-legal a { color: rgba(255, 255, 255, .85); }
.footer-legal a:hover { color: var(--gold); }
.footer-note { font-size: .8125rem; color: rgba(255, 255, 255, .42); line-height: 1.5; }
.site-footer .social a { width: 38px; height: 38px; border-color: rgba(255, 255, 255, .25); }

/* ---------- Animazioni di comparsa ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 26px; }
  .header-actions .social { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .nav, .header-actions { display: none; }
  .menu-btn { display: grid; }
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych__text { grid-column: 1 / -1; grid-row: 1; }
  .triptych__img { min-height: 460px; }
  .cards { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .split, .service .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { aspect-ratio: 4 / 3; min-height: 0; }
  .split--reverse .split__media { order: 0; }
  .split__body { padding: 56px var(--gutter) 64px; }
  .service { padding: 0; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .map-band { grid-template-columns: 1fr; }
  .map-band__map { min-height: 340px; }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .hero__content .lead { margin: 22px 0 32px; }
  .btn-row .btn { width: 100%; }
  .triptych__img { min-height: 340px; }
  .features, .steps, .sectors, .values { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__scroll { display: none; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Pagine di servizio (privacy, 404, grazie) ---------- */
.hero--short { min-height: 52vh; min-height: 52svh; }
.legal { max-width: 860px; }
.legal__meta { font-size: .9375rem; color: var(--muted-light); padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.legal h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin: 44px 0 14px; }
.legal p, .legal li { color: #2E2A26; font-size: 1.125rem; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.legal .btn { text-decoration: none; color: var(--white); }
