/* ==========================================================
   Lucia Angeloni — tema derivato dal logo (blu notte, avorio, salvia)
   ========================================================== */
:root {
  --navy: #1B2252;
  --navy-2: #121846;
  --navy-3: #2A3474;
  --ivory: #EFEBE2;
  --ivory-2: #F7F5EF;
  --sand: #E4DECF;
  --sage: #CFCBB0;
  --gold: #B8A46B;
  --gold-2: #A08C52;
  --white: #FFFFFF;
  --ink: #15193A;
  --ink-2: #5A5F7A;
  --line: #DDD8CB;
  --wa: #1FA855;
  --wa-dark: #178A45;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 2px rgba(27, 34, 82, .05), 0 14px 36px -14px rgba(27, 34, 82, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--ivory-2); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--gold-2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hero__grid > *, .intro__grid > *, .office__grid > *, .contact__grid > *, .footer__grid > *, .row > *, .why__grid > * { min-width: 0; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.eyebrow--light { color: var(--sage); }
.h2 { font-size: clamp(36px, 4.6vw, 60px); }
.h3 { font-size: clamp(26px, 2.8vw, 36px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; }
.lead--sm { font-size: 17px; max-width: 42ch; margin: 0; }
.lead--light { color: rgba(255, 255, 255, .78); }
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head .h2 { margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--gold { background: var(--gold); color: var(--navy-2); box-shadow: 0 10px 26px -12px rgba(184, 164, 107, .9); }
.btn--gold:hover { background: #C6B37A; }
.btn--navy { background: var(--navy); color: var(--white); box-shadow: 0 10px 26px -12px rgba(27, 34, 82, .7); }
.btn--navy:hover { background: var(--navy-3); }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--navy); }
.btn--ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: var(--white); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px -10px rgba(31, 168, 85, .8); }
.btn--wa:hover { background: var(--wa-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform .5s var(--ease), background .3s; }
.nav.is-hidden { transform: translateY(-110%); }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(247, 245, 239, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(27, 34, 82, .08); }
.nav__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: .02em; color: var(--navy); }
.brand__text small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__cta { display: flex; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s; }
.nav__mobile { display: none; }
@media (max-width: 480px) { .brand { gap: 10px; } .brand__text small { font-size: 9px; letter-spacing: .06em; white-space: nowrap; } }
@media (max-width: 1040px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .nav__mobile { position: absolute; top: 76px; left: 0; right: 0; background: var(--ivory-2); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .4s var(--ease), opacity .3s; }
  .nav__mobile a { padding: 12px 0; font-size: 18px; font-family: var(--f-display); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav__mobile a.btn { margin-top: 16px; justify-content: center; font-family: var(--f-body); font-size: 15px; border: 0; }
  .nav.is-open .nav__mobile { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 60px; background: radial-gradient(120% 80% at 80% 20%, #2B3578 0%, var(--navy) 45%, var(--navy-2) 100%); color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mono { position: absolute; right: -4%; top: 8%; width: min(62vw, 760px); opacity: .05; }
.hero__arc { position: absolute; border-radius: 50%; border: 1px solid rgba(207, 203, 176, .22); }
.hero__arc--1 { width: 1100px; height: 1100px; right: -380px; top: -420px; }
.hero__arc--2 { width: 760px; height: 760px; right: -200px; top: -230px; border-color: rgba(207, 203, 176, .14); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(42px, 5.6vw, 78px); font-weight: 500; line-height: 1.02; margin: 6px 0 22px; max-width: 13ch; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19.5px); color: rgba(255, 255, 255, .8); max-width: 50ch; margin-bottom: 26px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .76); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof .ic { color: var(--gold); }
.hero__visual { position: relative; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; }
.hero__frame { position: absolute; left: 50%; bottom: 0; width: min(82%, 420px); aspect-ratio: 3 / 4.1; transform: translateX(-50%); border-radius: 240px 240px 28px 28px; background: linear-gradient(170deg, rgba(207, 203, 176, .28), rgba(184, 164, 107, .12) 60%, rgba(255, 255, 255, .03)); border: 1px solid rgba(207, 203, 176, .35); }
.hero__portrait { position: relative; width: min(92%, 470px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero__caption { position: absolute; left: var(--gutter); bottom: 24px; margin: 0; font-family: var(--f-display); font-style: italic; font-size: 18px; color: rgba(207, 203, 176, .7); }
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; margin-top: 10px; }
  .hero__portrait { width: min(80%, 360px); }
  .hero__caption { display: none; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ivory); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: tick 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 56px; padding-right: 56px; }
.ticker li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 2vw, 26px); color: var(--navy); white-space: nowrap; }
.ticker li .ic { color: var(--gold); width: 22px; height: 22px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { padding: clamp(80px, 10vw, 140px) 0; }
.intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.intro__media { position: relative; }
.intro__img { width: 100%; height: auto; border-radius: var(--r-l); aspect-ratio: 4 / 4.8; object-fit: cover; object-position: 50% 50%; background: var(--white); box-shadow: var(--shadow); }
.intro__badge { position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: 12px; background: var(--white); padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.intro__badge b { display: block; font-family: var(--f-display); font-size: 19px; color: var(--navy); }
.intro__copy .h2 { margin-bottom: 20px; }
.certs { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.certs__list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.certs__item { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; }
.certs__item img { height: 92px; width: auto; }
.certs__item--wide { padding: 12px 20px; }
.certs__item--wide img { height: 54px; }
.certs__item span { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); max-width: 10ch; }
@media (max-width: 560px) { .certs__item--wide { flex: 1 1 100%; justify-content: center; } .certs__item:not(.certs__item--wide) { flex: 1 1 0; justify-content: center; } .certs__item img { height: 84px; } .certs__item--wide img { height: 48px; } }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } .intro__badge { left: 12px; } }

/* ---------- Fascia immobili di pregio ---------- */
.services__note { margin-top: clamp(40px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--navy); color: var(--white); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px); }
.services__note p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .85); font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; }
.services__note .btn--navy { background: var(--gold); color: var(--navy-2); }

/* ---------- Perché me ---------- */
.why { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: var(--navy); color: var(--white); overflow: hidden; }
.why::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; border: 1px solid rgba(207, 203, 176, .16); left: -300px; bottom: -500px; }
.why .h2 { color: var(--white); }
.why__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why__item { padding: 28px 26px; border-radius: var(--r-m); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, transform .45s var(--ease); }
.why__item:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.why__n { display: block; font-family: var(--f-display); font-size: 30px; color: var(--gold); margin-bottom: 14px; }
.why__item h3 { font-size: 25px; margin-bottom: 10px; }
.why__item p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .76); }
.why__quote { position: relative; margin: 32px 0 0; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); border-radius: var(--r-l); background: linear-gradient(135deg, rgba(184, 164, 107, .22), rgba(207, 203, 176, .08)); border: 1px solid rgba(207, 203, 176, .3); }
.why__quotemark { position: absolute; right: 28px; top: 20px; width: 60px; opacity: .25; }
.why__quote blockquote { margin: 0 0 14px; font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; max-width: 30ch; }
.why__quote figcaption { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Percorso ---------- */
.steps { padding: clamp(80px, 10vw, 140px) 0; }
.steps__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.steps__list::before { content: ""; position: absolute; left: 4%; right: 4%; top: 26px; height: 1px; background: var(--line); }
.steps__list li { position: relative; padding-top: 70px; }
.steps__n { position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; font-weight: 600; box-shadow: 0 0 0 8px var(--ivory-2); }
.steps__list h4 { font-size: 23px; margin-bottom: 8px; }
.steps__list p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 1100px) { .steps__list { grid-template-columns: repeat(3, 1fr); } .steps__list::before { display: none; } }
@media (max-width: 600px) { .steps__list { grid-template-columns: 1fr; gap: 28px; } .steps__list li { padding: 0 0 0 70px; } .steps__n { left: 0; top: -4px; } }

/* ---------- Ufficio / zone ---------- */
.office { padding: 0 0 clamp(80px, 10vw, 140px); }
.office__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.office__ph { margin: 0; height: 320px; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.office__ph img { width: 100%; height: 115%; object-fit: cover; }
.office__ph--wide { grid-column: span 2; }
.office__addr { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display); font-size: clamp(20px, 2vw, 25px); font-weight: 600; color: var(--navy); }
.office__addr .ic { color: var(--gold-2); }
.office__map { grid-column: 1 / -1; position: relative; height: 380px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sand); }
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office__map .btn { position: absolute; left: 14px; bottom: 14px; background: var(--white); box-shadow: var(--shadow); }
@media (max-width: 900px) { .office__grid { grid-template-columns: 1fr 1fr; } .office__ph { height: 240px; } .office__map { height: 320px; } }
@media (max-width: 560px) { .office__grid { grid-template-columns: 1fr; } .office__ph--wide { grid-column: auto; } }

/* ---------- Form comuni ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--ivory-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 164, 107, .22); background: #fff; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form__msg { margin: 0; font-size: 14px; color: var(--ink-2); }
.form__msg.is-ok { color: var(--wa-dark); font-weight: 700; }
.form__msg.is-err { color: #B3262E; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--navy); }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }


/* ---------- Contatti ---------- */
.contact { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(90% 70% at 10% 10%, #2B3578 0%, var(--navy) 50%, var(--navy-2) 100%); color: var(--white); overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .h2 { color: var(--white); margin-bottom: 18px; }
.contact__list { display: grid; gap: 14px; margin: 22px 0 26px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--gold); }
.contact__list b { display: block; font-size: 18px; }
.contact__list b a { text-decoration: none; }
.contact__list span { font-size: 13.5px; color: rgba(255, 255, 255, .66); }
.contact__form { background: var(--white); color: var(--ink); border-radius: var(--r-l); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); display: grid; gap: 14px; }
.contact__form .h3 { margin: 0; }
.contact__hint { margin: -6px 0 4px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: rgba(255, 255, 255, .78); padding: 56px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 180px repeat(3, 1fr); gap: 32px; align-items: start; }
.footer__brand img { width: 150px; }
.footer h4 { font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer p, .footer li { line-height: 1.6; }
.footer li + li { margin-top: 6px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .8); transform: translateY(120px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.fab .ic { width: 22px; height: 22px; }
.fab.is-visible { transform: none; opacity: 1; }
@media (max-width: 560px) { .fab span { display: none; } .fab { padding: 14px; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .btn, .why__item { transition: none; }
}
