/* ==========================================================
   Dott. Rosario Brunco — Centro Studi Comportamentali
   Grafica personalizzata (il template "Psychologic Mental Health"
   è stato usato solo come riferimento iniziale, non come modello definitivo)
   ========================================================== */
:root {
  --green: #7d9e68;        /* verde bande */
  --green-2: #5f7f4e;
  --green-dark: #33402c;   /* card scure */
  --green-deep: #4c5d43;   /* box FAQ */
  --green-text: #4a6e3c;   /* titoli verdi */
  --mint: #f1f0e6;         /* sfondo sezioni chiare */
  --mint-2: #e8e6d8;
  --cream: #f4ebdf;        /* macchie decorative */
  --purple: #7a5138;
  --purple-dark: #5f3f2b;
  --ink: #23241f;
  --text: #52544a;
  --muted: #83816f;
  --line: #e2ded0;
  --footer: #21201b;
  --white: #fff;
  --shadow: 0 16px 40px -22px rgba(30, 30, 20, .35);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --cond: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.7 var(--body); color: var(--text); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--green-text); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1em; }
.ico { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid rgba(107, 77, 107, .45); outline-offset: 2px; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container.narrow { max-width: 900px; }

/* ---------- Decorazioni ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; line-height: 0; }
.deco svg { width: 100%; height: 100%; display: block; }
.deco-blob svg { fill: var(--cream); }
.deco-sparkles svg { fill: var(--green); }
.deco-plus svg { stroke: var(--green-dark); stroke-width: 1.6; fill: none; }
.deco-rings svg, .deco-orbit svg, .deco-arcs svg { stroke: #b8c7a8; stroke-width: 1; }
.deco-orbit .fill { fill: var(--green); stroke: none; }
.deco-lines svg { stroke: #fff; stroke-width: 2; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border: 1px solid transparent; border-radius: 0; font: 500 .9rem/1.2 var(--ui); cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); }
.btn-green { background: var(--green-2); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(31, 36, 32, .35); }
.btn-line:hover { border-color: var(--ink); background: rgba(255, 255, 255, .4); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); text-transform: uppercase; font-family: var(--body); font-weight: 500; }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }
/* compatibilità */
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-lg { padding: 14px 28px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 18px 20px 0; background: transparent; transition: padding .25s, background .25s; }
.bar { display: flex; align-items: center; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 14px 24px; background: rgba(255, 255, 255, .97); border-radius: 18px; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .35); transition: padding .25s, border-radius .25s, box-shadow .25s, background .25s; }
.site-header.scrolled { padding: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .3); border-bottom: 1px solid var(--line); }
.site-header.scrolled .bar { padding: 11px 24px; border-radius: 0; box-shadow: none; background: transparent; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px 2px; cursor: pointer; flex: none; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 500 .95rem var(--ui); color: var(--purple); letter-spacing: .01em; }
.brand-text small { font: 600 .66rem var(--ui); color: var(--green-text); letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 6px 9px; font: 400 .86rem var(--ui); color: #555; text-decoration: none; white-space: nowrap; transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.hdr-cta { flex: none; }

/* Menu laterale */
.offcanvas { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.offcanvas.open { visibility: visible; }
.oc-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.oc-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #000; color: #ddd; padding: 26px 22px; overflow: auto; transform: translateX(-100%); transition: transform .3s; display: flex; flex-direction: column; gap: 22px; }
.offcanvas.open .oc-backdrop { opacity: 1; }
.offcanvas.open .oc-panel { transform: none; }
.oc-top { display: flex; justify-content: space-between; align-items: center; }
.oc-actions { display: flex; align-items: center; gap: 14px; }
.oc-login { color: #fff; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.oc-login:hover { border-color: #fff; }
.oc-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.oc-panel nav { display: flex; flex-direction: column; }
.oc-panel nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: #e8e8e8; text-decoration: none; font: 400 1.02rem var(--ui); }
.oc-panel nav a:hover, .oc-panel nav a.active { color: #e8613c; }
.oc-panel nav a .ico { opacity: .6; }
.oc-contacts { list-style: none; margin: 0; padding: 0; font: 400 .8rem var(--ui); }
.oc-contacts li { display: flex; gap: 8px; align-items: center; padding: 4px 0; flex-wrap: wrap; }
.oc-contacts a { color: #fff; text-decoration: none; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 760px; padding: 190px 0 150px; background: linear-gradient(115deg, #f4ecdc 0%, #eef2e8 55%, #dfe8d5 100%); overflow: hidden; }
.hero.has-photo::before { content: ''; position: absolute; inset: 0; background: var(--hero) 100% center / cover no-repeat; z-index: 0; animation: heroPhotoZoom 24s ease-in-out infinite alternate; }
@keyframes heroPhotoZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-art { position: absolute; inset: 0; }
.blob-hero { right: -60px; top: 60px; width: 560px; height: 640px; opacity: .5; }
.hero-logo { position: absolute; right: 8%; top: 180px; width: 420px; height: 420px; filter: drop-shadow(0 30px 40px rgba(40, 50, 30, .25)); }
.rings-hero { right: 2%; bottom: 60px; width: 260px; height: 260px; opacity: .4; }
.hero-inner { display: flex; }
.hero.has-photo .hero-inner { justify-content: flex-end; max-width: 1320px; }
.hero-panel { position: relative; max-width: 590px; padding: 48px 44px 44px; background: rgba(250, 246, 226, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-left: 3px solid var(--green-text); }
.hero.has-photo .hero-panel { background: rgba(236, 222, 150, .32); }
.hero-small { font: 400 1.25rem var(--ui); color: #8a8a80; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font: 400 clamp(2rem, 3.6vw, 2.75rem)/1.25 var(--serif); color: var(--green-text); text-transform: uppercase; margin-bottom: 18px; }
.hero-text { font-size: 1rem; color: #4a4f45; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lines-hero { right: 0; top: 50%; width: 60px; height: 44px; transform: translate(0, -50%); }

/* Comparsa in ingresso della hero */
@keyframes heroPanelIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroItemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-panel { animation: heroPanelIn .85s cubic-bezier(.22, 1, .36, 1) both; }
.hero-panel .hero-small { animation: heroItemIn .7s cubic-bezier(.22, 1, .36, 1) .15s both; }
.hero-panel h1 { animation: heroItemIn .7s cubic-bezier(.22, 1, .36, 1) .28s both; }
.hero-panel .hero-text { animation: heroItemIn .7s cubic-bezier(.22, 1, .36, 1) .42s both; }
.hero-panel .hero-cta { animation: heroItemIn .7s cubic-bezier(.22, 1, .36, 1) .55s both; }

/* Striscia richiamata */
.callback { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: color-mix(in srgb, var(--green) 88%, transparent); padding: 26px 0; }
.callback-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.callback-title { flex: 1 1 280px; margin: 0; font: 400 1.1rem var(--ui); color: #fff; letter-spacing: .02em; }
.callback .cb-field { margin: 0; flex: 0 1 200px; }
.callback select, .callback input[type=tel] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .8); border-radius: 0; color: #fff; padding: 8px 4px; font: 400 .85rem var(--ui); }
.callback select option { color: var(--ink); }
.callback input::placeholder { color: rgba(255, 255, 255, .85); }
.callback input:focus, .callback select:focus { outline: none; border-bottom-color: #fff; box-shadow: none; }
.cb-check { flex-basis: 100%; margin: -4px 0 0 !important; color: rgba(255, 255, 255, .9) !important; justify-content: flex-end; }
.cb-check a { color: #fff; }
.callback .form-msg { flex-basis: 100%; margin: 0; }
.callback .form-done { color: #fff; padding: 6px 0; display: flex; align-items: center; gap: 14px; justify-content: center; text-align: left; }
.callback .form-done h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.callback .form-done p { margin: 0; }
.callback .form-done .ico-box { width: 40px; height: 40px; margin: 0; }

/* ---------- Sezioni ---------- */
.section { position: relative; padding: 90px 0; overflow: hidden; }
.bg-mint { background: var(--mint); }
.bg-green { background: var(--green); color: #fff; }
.sec-title { position: relative; margin-bottom: 44px; }
.sec-title h2 { font: 700 clamp(2rem, 3.4vw, 2.6rem)/1.1 var(--cond); color: var(--green-dark); margin: 0; }
.sec-title .sec-eyebrow { font: 400 .85rem var(--ui); color: var(--muted); margin-bottom: 6px; }
.sec-title .sparkles-title { position: relative; display: block; width: 46px; height: 46px; margin-top: 10px; }
.sec-title.center { text-align: center; }
.sec-title.center .sparkles-title { margin: 10px auto 0; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; }
.sec-row .sec-title { margin: 0; }
.sec-side { max-width: 420px; margin: 0; color: var(--muted); }
.big-title { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--cond); color: #fff; text-transform: uppercase; text-align: center; margin-bottom: 50px; }

/* Aree (griglia icone) */
.blob-soft { left: -120px; top: 40px; width: 420px; height: 560px; opacity: .55; }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icon-card { display: block; background: #fff; padding: 56px 28px 44px; text-align: center; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ic-ico { display: inline-block; color: var(--ink); margin-bottom: 36px; }
.ic-ico .ico { stroke-width: 1.3; }
.icon-card h3 { font: 400 1.3rem var(--ui); color: var(--green-text); margin-bottom: 10px; }
.icon-card p { font: 400 .88rem/1.65 var(--ui); margin: 0; color: #444; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; }
.faq-intro { position: relative; padding-top: 30px; }
.sparkles-faq { left: 0; top: -20px; width: 52px; height: 52px; }
.faq-intro h2 { font: 400 clamp(1.7rem, 2.6vw, 2.1rem)/1.35 var(--serif); color: var(--ink); margin-bottom: 14px; }
.faq-intro p { color: var(--muted); }
.faq-box { position: relative; background: var(--green-deep); padding: 40px; overflow: hidden; }
.blob-faq { right: -40px; bottom: -40px; width: 240px; height: 290px; opacity: .2; transform: rotate(-20deg); }
.blob-faq svg { fill: #c9c0c4; }
.faq-item { position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; }
.faq-item:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; font: 500 .95rem var(--ui); color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { transform: rotate(90deg); transition: transform .2s; opacity: .8; }
.faq-item[open] .faq-arrow { transform: rotate(-90deg); }
.faq-item:not([open]) summary { color: rgba(255, 255, 255, .72); }
.faq-a { padding: 0 16px 16px; font: 400 .85rem/1.75 var(--ui); color: rgba(255, 255, 255, .88); }
.faq-a p { margin: 0 0 .6em; }

/* Chi sono (banda verde) */
.who-sec { padding-top: 80px; }
.blob-who { left: -140px; top: -60px; width: 480px; height: 600px; opacity: .5; }
.who-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.who-text { background: var(--green-dark); padding: 60px 30px 50px; display: flex; flex-direction: column; align-items: flex-start; }
.who-icons { display: flex; gap: 22px; margin-bottom: 34px; }
.who-icons a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--green); color: var(--green); }
.who-icons a:hover { background: var(--green); color: #fff; }
.who-text h3 { font: 500 2rem/1.2 var(--body); color: #fff; margin-bottom: 4px; }
.who-role { color: #b7c8a7; font: 500 .8rem var(--ui); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.who-text p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.who-photo { position: relative; background: #f3efe6; border-top-right-radius: 70px; overflow: hidden; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-photo.no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; gap: 16px; background: radial-gradient(circle at 70% 30%, #fff 0%, #f3efe6 60%); }
.who-photo .who-logo { width: 220px; height: 220px; object-fit: contain; }
.who-photo blockquote { margin: 0; max-width: 360px; font: 400 1rem/1.5 var(--serif); color: var(--green-dark); text-align: center; }
.plus-who { right: -110px; top: 170px; width: 110px; height: 120px; }

/* Approcci (card tipo articolo) */
.orbit-approach { right: -40px; bottom: 30px; width: 300px; height: 260px; }
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #f4f6ef; text-decoration: none; color: var(--text); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .5); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-media { position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; color: rgba(255, 255, 255, .25); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media span { position: absolute; left: 18px; bottom: 14px; font: 700 2.4rem var(--cond); color: #fff; letter-spacing: .04em; }
.post-media .ico { stroke-width: 1.2; }
.tone-0 { background: linear-gradient(135deg, #86a96c, #4f6b3e); }
.tone-1 { background: linear-gradient(135deg, #b99ab3, #6b4d6b); }
.tone-2 { background: linear-gradient(135deg, #6f8fa8, #3f556b); }
.tone-3 { background: linear-gradient(135deg, #e0a36b, #b0663a); }
.post-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font: 400 .75rem var(--body); color: #555; margin-bottom: 8px; }
.post-body h3 { font: 400 1.12rem/1.35 var(--serif); color: var(--green-2); margin-bottom: 10px; }
.post-body p { font-size: .86rem; line-height: 1.6; color: #333; }
.post-cat { margin-top: auto; font: 600 .76rem var(--body); color: var(--green-2); }

/* Motto */
.blob-motto { left: -60px; top: 0; width: 320px; height: 410px; opacity: .5; }
.motto-eyebrow { text-align: center; font: 400 .85rem var(--ui); color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.motto { margin: 0 auto 60px; max-width: 760px; text-align: center; font: 400 clamp(1.5rem, 2.8vw, 2.1rem)/1.35 var(--serif); color: #fff; }
.dark-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dark-card { background: var(--green-dark); padding: 30px 24px; }
.dark-card h3 { font: 500 1rem var(--ui); color: #fff; margin-bottom: 8px; }
.dark-card p { font: 400 .85rem/1.7 var(--ui); color: rgba(255, 255, 255, .72); margin: 0; }

/* Servizi (pannello) */
.serv-sec { background: var(--green); }
.rings-serv { left: -60px; bottom: -40px; width: 320px; height: 320px; }
.rings-serv svg { stroke: rgba(255, 255, 255, .35); }
.serv-wrap::before { content: ''; position: absolute; left: -90px; right: -90px; top: 0; bottom: 0; background: rgba(255, 255, 255, .1); z-index: -1; }
.serv-panel { background: #eff1e8; padding: 70px 40px 60px; }
.serv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.serv-card { display: flex; gap: 20px; align-items: center; background: #fff; padding: 22px 20px; text-decoration: none; color: var(--text); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); transition: transform .2s; }
.serv-card:hover { transform: translateY(-3px); }
.serv-media { display: grid; place-items: center; width: 110px; height: 80px; color: #fff; flex: none; }
.serv-txt strong { display: block; font: 600 1.35rem/1.15 var(--cond); color: var(--green-dark); margin-bottom: 6px; }
.serv-txt small { font-size: .84rem; line-height: 1.55; color: #6a6f66; }

/* Contatti Home */
.contact-sec { background: linear-gradient(180deg, #fbfdf8, #f1f5ec); }
.contact-home { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.map-frame, .map-card { display: flex; flex-direction: column; background: #fff; border: 0; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .4); overflow: hidden; }
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 220px; background: #e9efe1; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-info { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: background .2s; }
.map-info:hover { background: #f6f4ec; }
.map-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.map-text strong { font-size: .92rem; }
.map-text span { font-size: .84rem; color: var(--muted); }
.map-pin { color: #c0392b; flex: none; }
.maps-col { display: grid; gap: 20px; }
.maps-col .map-frame { flex: 1; }
.map-label { display: block; font: 600 .72rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); }
.footer-addr { margin-bottom: 10px !important; }
.map-info em { margin-left: auto; flex: none; font: 500 .8rem var(--ui); color: var(--green-2); font-style: normal; text-align: right; }
@media (max-width: 560px) { .map-info em { display: none; } }
.plain-form input, .plain-form textarea, .plain-form select { border-radius: 0; background: #fff; }

/* ---------- Pagine interne ---------- */
.page-banner { position: relative; padding: 190px 0 80px; background: var(--green); color: #fff; overflow: hidden; }
.page-banner[style] { background: linear-gradient(rgba(70, 90, 55, .72), rgba(70, 90, 55, .72)), var(--banner) center / cover; }
.page-banner .blob-cream { left: -150px; top: -40px; width: 420px; height: 460px; opacity: .55; }
.page-banner .plus-banner { right: 6%; bottom: 30px; width: 110px; height: 120px; }
.page-banner .container { text-align: center; }
.banner-eyebrow { font: 400 .85rem var(--ui); color: rgba(255, 255, 255, .75); margin-bottom: 6px; }
.page-banner h1 { font: 700 clamp(2.2rem, 4.4vw, 3.2rem)/1.05 var(--cond); color: #fff; text-transform: uppercase; margin-bottom: 14px; }
.banner-sub { max-width: 640px; margin: 0 auto 18px; color: rgba(255, 255, 255, .9); }
.crumbs { font: 400 .8rem var(--ui); color: rgba(255, 255, 255, .8); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs span { margin: 0 6px; opacity: .6; }
.page-body { background: var(--mint); }

.card { background: #fff; border: 0; padding: 32px; box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.tag-sigla { display: inline-grid; place-items: center; min-width: 52px; height: 44px; padding: 0 10px; background: var(--green); color: #fff; font: 700 1.2rem var(--cond); letter-spacing: .04em; }
.grid-2 > :nth-child(4n+2) .tag-sigla { background: var(--purple); }
.grid-2 > :nth-child(4n+3) .tag-sigla { background: #3f556b; }
.grid-2 > :nth-child(4n+4) .tag-sigla { background: #b0663a; }
.card-spec { scroll-margin-top: 110px; }
.card-spec header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card-spec h2 { font: 600 1.6rem/1.15 var(--cond); color: var(--green-dark); margin: 0; }
.card-spec > p { font-size: .94rem; }
.spec-list { background: var(--mint); padding: 18px 20px; margin-top: 10px; border-left: 3px solid var(--green); }
.spec-list h4 { font: 600 .74rem var(--ui); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--green-dark); }
.spec-list ul { margin: 0; padding-left: 18px; font-size: .9rem; }

.ico-box { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--mint); color: var(--green-dark); flex: none; }
.ico-box.blue { background: #ece6ec; color: var(--purple); }
.card-icon { text-align: center; padding: 44px 28px 36px; }
.card-icon .ico-box { width: 72px; height: 72px; background: none; color: var(--ink); }
.card-icon .ico-box .ico { width: 46px; height: 46px; stroke-width: 1.3; }
.card-icon h2 { font: 400 1.3rem var(--ui); color: var(--green-text); margin: 18px 0 10px; }
.card-icon p { font: 400 .9rem/1.65 var(--ui); color: #444; }
.card-service { display: flex; flex-direction: column; }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 500 .8rem var(--ui); color: var(--green-2); }
.read-more { display: inline-block; margin-top: 6px; font: 600 .82rem var(--ui); color: var(--purple); text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* Chi sono */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 50px; align-items: start; }
.card-article { padding: 44px; font-size: .98rem; }
.lead-text p { font: 400 1.25rem/1.55 var(--serif); color: var(--green-dark); }
.philosophy { position: relative; background: var(--green-deep); color: #fff; padding: 28px 30px; margin: 28px 0; }
.philosophy h3 { font: 600 1.4rem var(--cond); color: #fff; }
.philosophy p { margin: 0; font-style: italic; color: rgba(255, 255, 255, .9); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.value { display: flex; gap: 12px; }
.value h4 { font: 600 1.1rem var(--cond); color: var(--green-dark); margin-bottom: 4px; }
.value p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.5; }
.about-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.about-photo { background: #f3efe6; border-top-right-radius: 70px; overflow: hidden; }
.about-photo img { display: block; width: 100%; }
.about-photo.no-photo { padding: 30px; display: grid; place-items: center; }
.about-photo.no-photo img { width: 240px; }
.centro-card { padding: 28px; font-size: .9rem; }
.centro-card .sec-title { margin-bottom: 16px; }
.centro-card .sec-title h2 { font-size: 1.7rem; }
.legal strong { color: var(--ink); }

/* Curriculum */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 160px; top: 8px; bottom: 8px; width: 2px; background: #c6d4b8; }
.timeline > li { display: grid; grid-template-columns: 140px 40px 1fr; align-items: start; margin-bottom: 30px; }
.tl-label { font: 600 1.05rem var(--cond); color: var(--green-dark); text-align: right; padding-top: 10px; text-transform: uppercase; letter-spacing: .04em; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--green); margin: 12px 0 0 13px; box-shadow: 0 0 0 5px var(--mint); position: relative; }
.tl-card { padding: 28px; }
.tl-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tl-card h2 { font: 400 1.2rem/1.35 var(--serif); color: var(--green-2); margin: 0 0 4px; }
.tl-sub { font: 500 .82rem var(--ui); color: var(--ink); margin: 0; }
.tl-card p { font-size: .9rem; }
.badge-soft { background: var(--purple); color: #fff; font: 500 .7rem var(--ui); padding: 5px 12px; white-space: nowrap; }
.dot-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.dot-list li { position: relative; padding: 5px 0 5px 20px; }
.dot-list li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); }

/* Servizi: box primo colloquio */
.colloquio { position: relative; margin-top: 50px; background: var(--green-dark); color: rgba(255, 255, 255, .85); padding: 50px 44px; overflow: hidden; }
.colloquio h2 { color: #fff; font: 400 1.9rem/1.3 var(--serif); margin: 14px 0 10px; }
.colloquio > p { max-width: 640px; }
.pill-dark { display: inline-block; background: var(--green); color: #fff; font: 600 .7rem var(--ui); letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 30px; }
.step { background: rgba(255, 255, 255, .07); padding: 20px; }
.step h3 { color: #fff; font: 500 1rem var(--ui); margin-bottom: 6px; }
.step p { font-size: .84rem; margin: 0; line-height: 1.55; }

/* Contatti pagina */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 24px; }
.h3 { font: 600 1.6rem var(--cond); color: var(--green-dark); margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list h4 { font: 600 .95rem var(--ui); margin: 0 0 2px; }
.contact-list p { margin: 0; font-size: .9rem; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--green-text); }
.contact-list small { font-size: .78rem; color: var(--muted); }
.contact-list .link-wa { color: var(--green-2); font-weight: 600; font-size: .84rem; }
.map-title { display: none; }

/* Articoli */
.post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.article { max-width: 780px; margin: 0 auto; }
.article-cover { margin: -40px 0 30px; box-shadow: var(--shadow); }
.article-cover img { display: block; width: 100%; }
.article-meta { font: 400 .82rem var(--ui); color: var(--muted); margin-bottom: 20px; }
.article-body { font-size: 1.02rem; line-height: 1.8; }
.article-body strong { color: var(--ink); }
.article-body ul { padding-left: 20px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 .88rem var(--ui); }
.article-nav a { text-decoration: none; color: var(--green-2); }

/* ---------- Moduli ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font: 600 .72rem var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input:not([type]), select, textarea { width: 100%; padding: 12px 14px; font: 400 .92rem var(--ui); color: var(--ink); background: #fff; border: 1px solid #d9dfd0; border-radius: 0; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(134, 169, 108, .2); }
textarea { resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.callback .field.has-error input { border-bottom-color: #ffd2cc; }
.field-err { display: block; color: #b03a2e; font-size: .75rem; margin-top: 4px; }
.callback .field-err { color: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font: 400 .76rem/1.5 var(--ui); color: var(--muted); margin: 6px 0 16px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--green-2); width: 16px; height: 16px; flex: none; }
.check.has-error span { color: #b03a2e; }
.callback .check.has-error span { color: #ffe1dc; }
.form-msg:empty { display: none; }
.form-msg, .alert { padding: 12px 14px; font-size: .88rem; margin-bottom: 14px; }
.form-msg.ok, .alert-ok { background: #e3eed8; color: #2f4a25; }
.form-msg.err, .alert-err { background: #fbeae8; color: #8e2a20; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .ico-box { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; background: #e3eed8; }
.form-done h3 { font: 400 1.4rem var(--serif); }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 25, 18, .55); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-top: 4px solid var(--green); padding: 32px 28px 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); animation: pop .22s ease-out; }
.modal-box h2 { text-align: center; font: 400 1.6rem var(--serif); color: var(--green-text); margin-bottom: 4px; }
.modal-box .eyebrow { text-align: center; font: 500 .75rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.modal-sub { text-align: center; font: 400 .82rem var(--ui); color: var(--muted); margin-bottom: 20px; }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.modal-close:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer); color: #d8d8d8; overflow: hidden; }
.arcs-footer { left: -120px; top: -30px; width: 460px; height: 390px; }
.arcs-footer svg { opacity: .6; }
.arcs-footer svg { stroke: rgba(255, 255, 255, .45); }
.footer-main { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.footer-brand { position: relative; }
.footer-logo { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: #fff; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); }
.footer-logo img { width: 160px; height: 160px; }
.sparkles-footer { left: 180px; top: -20px; width: 70px; height: 70px; }
.sparkles-footer svg { fill: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { font: 600 .78rem var(--ui); letter-spacing: .14em; color: #bdbdbd; margin-bottom: 14px; }
.footer-cols p { font: 400 .98rem/1.7 var(--ui); color: #fff; margin: 0; }
.footer-cols a { color: #fff; text-decoration: none; }
.footer-cols a:hover { color: var(--green); }
.footer-cols .footer-small { font-size: .78rem; color: #aaa; margin-top: 6px; }
.footer-legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-legal p { font-size: .76rem; color: #9a9a9a; line-height: 1.6; }
.footer-bar { background: var(--green); color: #fff; font: 400 .78rem var(--ui); }
.footer-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bar a { color: #fff; text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* Bolla chat + torna su */
.chat-bubble { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; }
.cb-name { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 3px 10px 3px 4px; font: 500 .72rem var(--ui); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.cb-name img { border-radius: 50%; }
.cb-msg { background: #fff; border-radius: 18px; padding: 10px 16px; font: 400 .8rem var(--ui); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .4); border: 2px solid #eee; }
.chat-bubble:hover .cb-msg { border-color: var(--green); }
.to-top { position: fixed; right: 22px; bottom: 110px; z-index: 50; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-dark); color: #fff; transform: rotate(-90deg); opacity: 0; pointer-events: none; transition: opacity .25s; }
.to-top.show { opacity: .9; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .main-nav a { padding: 6px 6px; font-size: .8rem; }
  .bar { gap: 12px; }
  .hdr-cta { display: none; }
}
@media (max-width: 1180px) {
  .brand-text small { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .hdr-cta { display: inline-flex; margin-left: auto; }
  .brand-text small { display: block; }
}
@media (max-width: 1000px) {
  .hero-logo { opacity: .25; right: -60px; }
  .icon-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .faq-grid, .contact-home, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-side { position: static; }
  .who-card { grid-template-columns: 1fr; }
  .who-photo { min-height: 320px; border-top-right-radius: 0; }
  .footer-main { grid-template-columns: 1fr; }
  .sec-row { flex-direction: column; align-items: flex-start; }
  .plus-who { display: none; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .site-header { padding: 12px 12px 0; }
  .bar { padding: 10px 14px; border-radius: 16px; }
  .brand-text strong { font-size: .85rem; }
  .brand-text small { font-size: .58rem; }
  .brand-logo { width: 38px; height: 38px; }
  .hdr-cta { display: none; }
  .hero { padding: 130px 0 0; min-height: 0; }
  .hero-panel { padding: 30px 22px; }
  .hero-small { font-size: 1rem; }
  .callback { position: relative; margin-top: 40px; }
  .callback .cb-field { flex: 1 1 100%; }
  .callback .btn { width: 100%; }
  .cb-check { justify-content: flex-start; }
  .section { padding: 64px 0; }
  .icon-grid, .grid-2, .grid-3, .grid-4, .post-grid, .dark-cards, .serv-grid, .values, .steps, .row-2, .footer-cols { grid-template-columns: 1fr; }
  .serv-panel { padding: 44px 18px 30px; }
  .serv-wrap::before { display: none; }
  .serv-card { flex-direction: column; align-items: flex-start; }
  .serv-media { width: 100%; }
  .faq-box { padding: 20px 14px; }
  .card, .card-article { padding: 22px; }
  .colloquio { padding: 32px 20px; }
  .who-text { padding: 36px 22px; }
  .page-banner { padding: 140px 0 56px; }
  .timeline::before { left: 7px; }
  .timeline > li { grid-template-columns: 28px 1fr; }
  .tl-label { grid-column: 2; text-align: left; padding: 0 0 6px; }
  .tl-dot { grid-row: 1; grid-column: 1; margin: 4px 0 0 0; }
  .tl-card { grid-column: 2; }
  .tl-card header { flex-direction: column; }
  .badge-soft { white-space: normal; }
  .footer-logo { width: 150px; height: 150px; }
  .footer-logo img { width: 124px; height: 124px; }
  .chat-bubble .cb-msg { display: none; }
  .blob-soft, .blob-who, .blob-motto { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Firma documenti */
.doc-title { font: 400 1.35rem/1.3 var(--serif); color: var(--green-2); margin: 30px 0 12px; }
.doc-box { max-height: 420px; overflow: auto; padding: 20px 22px; background: var(--mint); border-left: 3px solid var(--green); font-size: .9rem; }
.doc-box ul { padding-left: 20px; }
.sign-form { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.small { font-size: .8rem; }

/* Pagine di dettaglio (aree, strumenti, articoli) */
.detail-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 36px; align-items: start; }
.detail-body { font-size: 1rem; line-height: 1.8; }
.detail-body h2 { font: 400 1.4rem var(--serif); color: var(--green-2); }
.detail-body ul { padding-left: 20px; }
.detail-body li { margin-bottom: 6px; }
.detail-cover { margin: -10px -10px 24px; }
.detail-cover img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.side-menu { background: #fff; padding: 10px 0; box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .4); }
.detail-grid > aside { position: sticky; top: 110px; }
.side-menu h4 { font: 600 .75rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 20px 6px; margin: 0; }
.side-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 20px; font: 400 .9rem var(--ui); color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.side-menu a:hover { background: var(--mint); color: var(--ink); }
.side-menu a.active { border-left-color: var(--green); color: var(--green-text); font-weight: 500; background: var(--mint); }
.side-cta { margin-top: 20px; background: var(--green-dark); color: rgba(255,255,255,.85); padding: 26px 22px; }
.side-cta h4 { color: #fff; font: 400 1.2rem var(--serif); margin-bottom: 8px; }
.side-cta p { font-size: .85rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--text); box-shadow: 0 10px 30px -24px rgba(0,0,0,.45); transition: transform .25s; }
.tool-card:hover { transform: translateY(-4px); }
.tool-card .post-media { aspect-ratio: 16/9; }
.tool-card h3 { font: 600 1.35rem/1.2 var(--cond); color: var(--green-dark); margin-bottom: 8px; }
.tool-card .tc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tool-card p { font-size: .88rem; }
.section-sep { margin-top: 70px; }
.serv-bullets { list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; }
.serv-bullets li { padding: 3px 0 3px 16px; position: relative; }
.serv-bullets li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); }
.card-icon .serv-bullets { text-align: left; display: inline-block; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid > aside { position: static; } .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .tool-grid { grid-template-columns: 1fr; } }

.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.cat-filter a, .pager-pub a { padding: 7px 16px; background: #fff; font: 500 .82rem var(--ui); color: var(--text); text-decoration: none; }
.cat-filter a.active, .pager-pub a.active { background: var(--green); color: #fff; }
.pager-pub { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }

.logo-initials { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--serif); line-height: 1; letter-spacing: .02em; }
.hero-logo.logo-initials, .who-logo.logo-initials { box-shadow: 0 30px 40px -20px rgba(40,50,30,.4); }
