/* ==========================================================================
   Coaching For You — Giacinto Lombardi
   Palette dal marchio: blu vitruviano + sabbia/oro, su fondo avorio caldo.
   ========================================================================== */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/playfair-var.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../fonts/playfair-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }

:root {
  /* palette brand */
  --brand: #14528c;
  --brand-dark: #0e3c68;
  --sky: #2797cb;
  --navy: #0f2a44;
  --navy-2: #143657;
  --gold: #c9ab81;
  --gold-soft: #e8dac4;
  --gold-deep: #8a6a3e;       /* oro leggibile su fondo chiaro (AA) */
  /* testo e fondi */
  --ink: #0f2a44;
  --text: #3a4654;
  --muted: #66717d;
  --bg: #faf7f2;
  --bg-alt: #f2ebdf;
  --white: #ffffff;
  --line: #e6dccc;
  /* tipografia */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(15, 42, 68, .06);
  --shadow-md: 0 14px 40px rgba(15, 42, 68, .10);
  --shadow-lg: 0 30px 80px rgba(15, 42, 68, .18);
  --radius: 14px;
  --radius-lg: 26px;
  --arch: 999px 999px 26px 26px;
  --container: 1200px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-dark); }
strong { font-weight: 500; color: var(--ink); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark h2 em { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 70px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(20, 82, 140, .25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8bf99; color: var(--navy); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--gold); }
.topbar-claim { font-family: var(--font-display); font-style: italic; color: var(--gold); letter-spacing: .02em; }
.topbar-links { display: flex; gap: 22px; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 247, 242, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav-brand img { width: 52px; height: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: var(--brand); }
.nav-brand-claim { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 14px; font-size: .93rem; font-weight: 400; color: var(--ink); border-radius: 999px; position: relative; }
.nav-menu a:not(.btn):hover { color: var(--brand); }
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--brand); font-weight: 500; }
.nav-menu a[aria-current="page"]:not(.btn)::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.nav-cta { margin-left: 10px; }
.nav-menu a.btn-primary, .nav-menu a.btn-primary:hover { color: #fff; }
.nav-cta .btn { padding: 11px 22px; }

/* ---------- Menu mobile (da templates/menu.css) ---------- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
/* col body bloccato lo sticky non tiene più: l'header (e la X) restano in vista */
body.is-locked .site-header { position: fixed; top: 0; left: 0; right: 0; }
.nav-overlay { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; position: relative; z-index: 95; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89;
    background: rgba(15, 42, 68, .5); border: 0; padding: 0; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; z-index: 92;
    width: min(86vw, 360px); background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 100px 26px 40px;
    box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu a[aria-current="page"]:not(.btn) { background: var(--bg-alt); }
  .nav-menu a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero home ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 120px); }
.hero::before {
  content: ''; position: absolute; width: 760px; height: 760px; right: -220px; top: -160px;
  border-radius: 50%; border: 1px solid var(--line); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -100px; top: -40px;
  border-radius: 50%; border: 1px solid var(--gold-soft); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-badge { display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.35; color: var(--ink); }
.hero-badge svg { width: 38px; height: 38px; flex: none; padding: 9px; border-radius: 50%; background: var(--white); color: var(--brand); box-shadow: var(--shadow-sm); }
.hero-visual { position: relative; }
.hero-arch { position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); max-width: 460px; margin-left: auto; }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark {
  position: absolute; left: -10px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-md); display: grid; place-items: center; padding: 22px;
}
.hero-quote {
  position: absolute; right: -14px; top: 46px; max-width: 220px;
  background: var(--navy); color: #fff; padding: 18px 22px; border-radius: 18px 18px 4px 18px;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.4; box-shadow: var(--shadow-md);
}
.hero-quote span { display: block; font-family: var(--font-body); font-style: normal; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }

/* ---------- Page hero (interne) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .8); padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 30%, rgba(15, 42, 68, .55) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero h1 em { color: var(--gold); }
.page-hero .lead { color: rgba(255, 255, 255, .8); }
.page-hero .eyebrow { color: var(--gold); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; font-size: .82rem; }
.breadcrumb li { color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--gold); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Pilastri (3 card) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 42px 34px 36px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-num { position: absolute; right: 30px; top: 26px; font-family: var(--font-display); font-style: italic; font-size: 2.6rem; color: var(--gold-soft); line-height: 1; }
.pillar-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--brand); margin-bottom: 26px; }
.pillar-icon svg { width: 28px; height: 28px; }
.pillar p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Split (immagine + testo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media .frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-media .frame.arch { border-radius: var(--arch); }
.split-media .frame.arch img { aspect-ratio: 4 / 5; }
.split-media .accent-img { position: absolute; width: 44%; right: -24px; bottom: -40px; border-radius: 50%; overflow: hidden; border: 8px solid var(--bg); box-shadow: var(--shadow-md); }
.section-alt .split-media .accent-img { border-color: var(--bg-alt); }
.split-media .accent-img img { aspect-ratio: 1 / 1; object-fit: cover; }
.split-media::before { content: ''; position: absolute; left: -22px; top: -22px; width: 140px; height: 140px; border: 1px solid var(--gold); border-radius: 50%; z-index: -1; }
.check-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.signature { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.signature img { width: 54px; }
.signature strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.signature span { font-size: .85rem; color: var(--muted); }

/* ---------- Percorso (zone) ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.journey::before { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent); }
.journey-step { position: relative; text-align: center; padding: 0 20px; }
.journey-dot {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-2); border: 1px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--gold);
}
.journey-step:last-child .journey-dot { background: var(--gold); color: var(--navy); }
.journey-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.journey-step p { font-size: .95rem; color: rgba(255, 255, 255, .7); margin: 0; }
.journey-foot { margin-top: 60px; text-align: center; }

/* ---------- Servizi card ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.service-card-body .tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: 10px; }
.service-card-body p { color: var(--muted); font-size: .97rem; flex: 1; }

/* blocchi servizio dettagliati */
.service-row { padding: clamp(50px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row .split-media .frame img { aspect-ratio: 5 / 4; }
.service-index { font-family: var(--font-display); font-style: italic; color: var(--gold-deep); font-size: 1.1rem; margin-bottom: 8px; display: block; }

/* ---------- Temi (cosa affrontiamo) ---------- */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.theme { padding: 28px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(201, 171, 129, .25); transition: background .3s var(--ease), border-color .3s var(--ease); }
.theme:hover { background: rgba(255, 255, 255, .09); border-color: var(--gold); }
.theme h3 { font-size: 1.2rem; margin-bottom: 8px; }
.theme p { font-size: .93rem; color: rgba(255, 255, 255, .7); margin: 0; }
.theme svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 16px; }

/* ---------- Citazione ---------- */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.35; color: var(--ink); }
.quote-band blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: 14px; }
.quote-band cite { display: block; margin-top: 26px; font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Blog card ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); color: inherit; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: inherit; }
.post-card-img { aspect-ratio: 16 / 11; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: 12px; }
.post-card h3 { font-size: 1.35rem; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* ---------- Galleria ---------- */
.gallery { columns: 4 220px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; background: none; display: block; width: 100%; }
.gallery-item img { width: 100%; transition: transform .7s var(--ease), filter .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(3n+2) img { aspect-ratio: 4 / 5; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 42, 68, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 760px); max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold); color: var(--navy); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--brand); border-radius: 32px; padding: clamp(50px, 7vw, 80px) clamp(30px, 6vw, 80px); color: rgba(255, 255, 255, .85); display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.cta-banner::before { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201, 171, 129, .45); }
.cta-banner::after { content: ''; position: absolute; right: 40px; bottom: -200px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner h2 em { color: var(--gold); }
.cta-banner p { margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-wrap { padding: 0 0 clamp(80px, 10vw, 120px); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 16px; margin-top: 30px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
a.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-card svg { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--bg-alt); color: var(--brand); }
.contact-card strong { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.contact-card span { font-size: 1.02rem; color: var(--ink); word-break: break-word; }
.form-box { background: var(--white); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 50px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-box h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(20, 82, 140, .12); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; margin: 6px 0 24px; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-status { margin: 16px 0 0; font-size: .92rem; color: var(--brand); min-height: 1.4em; }
.map-link { display: inline-flex; margin-top: 18px; }

/* ---------- Articolo ---------- */
.article { padding: clamp(60px, 8vw, 100px) 0; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: -120px auto 50px; max-width: 900px; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .7em; }
.prose li::marker { color: var(--gold-deep); }
.prose blockquote { margin: 2em 0; padding: 24px 30px; border-left: 3px solid var(--gold); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.article-author { display: flex; align-items: center; gap: 18px; margin-top: 50px; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.article-author img { width: 70px; flex: none; }
.article-author strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; display: block; }
.article-author p { margin: 4px 0 0; font-size: .93rem; color: var(--muted); }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Policy ---------- */
.policy h2 { font-size: 1.6rem; margin-top: 1.8em; }
.policy h3 { font-size: 1.2rem; margin-top: 1.4em; }
.policy table { width: 100%; border-collapse: collapse; margin: 1em 0 2em; font-size: .95rem; }
.policy th, .policy td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { background: var(--bg-alt); color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: clamp(70px, 9vw, 100px) 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { width: 190px; margin-bottom: 22px; }
.footer-col p { max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 22px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .78); }
.footer-col a:hover { color: var(--gold); }
.footer-phone { display: inline-block; font-family: var(--font-display); font-size: 1.5rem; color: #fff !important; margin-bottom: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding: 26px 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .55); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .sep { margin: 0 8px; opacity: .4; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services, .posts { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .journey::before { display: none; }
  .hero-quote { right: 0; }
}
@media (max-width: 900px) {
  .topbar-claim { display: none; }
  .topbar .container { justify-content: center; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .hero-arch { margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; }
  .split-media { max-width: 560px; }
  .split-media .accent-img { right: 0; }
}
@media (max-width: 768px) {
  .nav-brand-claim { display: none; }
  .article-cover { margin-top: -80px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services, .posts, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .hero-badges { gap: 18px; }
  .hero-mark { width: 110px; height: 110px; padding: 16px; left: 0; bottom: 20px; }
  .hero-quote { position: relative; right: auto; top: auto; margin: -30px 20px 0 auto; max-width: 240px; }
  .footer-bottom { flex-direction: column; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 22px; transform: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .topbar-links { gap: 14px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
