/* =========================================================================
   Benessere Aziendale — Barbara Mariani
   Blu del logo, luce chiara, giallo del dente di leone (simbolo della resilienza).
   Font OFL ospitati sul sito: Playfair Display, Nunito Sans, Pinyon Script.
   ========================================================================= */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #1d2b37;        /* antracite dell'open space (vicino al blu del logo) */
  --ink-2: #34475a;
  --ink-soft: #5b646d;
  --paper: #f3f1ee;      /* cemento chiaro */
  --white: #fdfcfa;
  --mist: #e9edf0;
  --line: #dcdcd8;
  --sun: #a2553b;        /* mattone */
  --sun-d: #8a4430;
  --sun-l: #efe0d6;
  --brick-on-dark: #e2a283;
  --wood: #d9b996;
  --leaf: #5b7d4f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --r: 22px;
  --shadow: 0 18px 50px -24px rgba(29, 43, 55, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17.5px/1.75 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sun-d); }
strong, b { font-weight: 700; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1.05em; }
:focus-visible { outline: 2px solid var(--sun-d); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--ink); border: 1px solid var(--ink); color: #fff; font: 600 15.5px/1.25 var(--sans); text-decoration: none; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--ink-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(29, 43, 55, .6); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(29, 43, 55, .28); }
.btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-sun, .btn-brick { background: var(--sun); border-color: var(--sun); color: #fff; }
.btn-sun:hover, .btn-brick:hover { background: var(--sun-d); border-color: var(--sun-d); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Barra superiore ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 239, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -26px rgba(29, 43, 55, .5); }
.top-in { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; margin-right: auto; }
.brand-n { font: 400 31px/1 var(--script); }
.brand-s { font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; padding-left: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; white-space: nowrap; }
.nav a:hover, .nav a.on { border-color: var(--sun); color: var(--ink); }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.lang a { display: grid; place-items: center; width: 36px; height: 30px; border-radius: 999px; font: 700 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; transition: background .2s, color .2s; }
.lang a:hover { color: var(--ink); background: var(--mist); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Apertura ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 24, 28, .9) 0%, rgba(20, 24, 28, .74) 42%, rgba(20, 24, 28, .25) 75%, rgba(20, 24, 28, .1) 100%), linear-gradient(0deg, rgba(20, 24, 28, .55), rgba(20, 24, 28, 0) 45%); }
.hero-in { padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 8vw, 110px); }
.hero-in > * { max-width: 640px; }
.hero-name { font: 600 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: #d7dde2; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.hero-name::before { content: ""; width: 38px; height: 2px; background: var(--brick-on-dark); }
.hero h1 { color: #fff; font-size: clamp(48px, 7.4vw, 100px); line-height: .96; margin: 0 0 .16em; font-weight: 500; }
.hero-role { font: italic 500 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); color: var(--brick-on-dark); margin: 0 0 26px; }
.hero-intro { font-size: 16.5px; line-height: 1.7; color: #e3e7ea; max-width: 36em; margin: 0 0 32px; padding-left: 18px; border-left: 2px solid var(--brick-on-dark); }
.hero-intro strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* righe bianche e nere, come il tappeto dell'open space */
.righe { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, #14181c 0 14px, #f3f1ee 14px 28px); }
.soffione .seme { animation: vola 9s ease-in-out infinite; transform-box: fill-box; }
.soffione .s1 { animation-delay: -2.5s; animation-duration: 11s; }
.soffione .s2 { animation-delay: -5s; animation-duration: 10s; }
.soffione .s3 { animation-delay: -7s; animation-duration: 12s; }
@keyframes vola {
  0%   { translate: 0 0; rotate: 0deg; opacity: 0; }
  12%  { opacity: 1; }
  60%  { translate: 40px -36px; rotate: 18deg; opacity: .9; }
  100% { translate: 86px -70px; rotate: 36deg; opacity: 0; }
}

/* ---------- Sezioni ---------- */
.sez { padding: clamp(56px, 7vw, 100px) 0 0; }
.sez + .sez { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 70px); }
.sez-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5.5vw, 80px); align-items: start; }
.sez-grid.rev { grid-template-columns: 7fr 5fr; }
.sez-grid.rev .sez-img { order: 2; }
.sez-img { margin: 0; position: sticky; top: 104px; }
.sez-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pos, center); border-radius: var(--r); box-shadow: var(--shadow); }
.sez-img.tall img { aspect-ratio: 3 / 4; object-position: center 30%; }
.sez-img::after { content: ""; position: absolute; width: 90px; height: 90px; right: -18px; bottom: -18px; border-radius: 50%; background: var(--sun-l); z-index: -1; }
.sez-grid.rev .sez-img::after { right: auto; left: -18px; }
.num { font: 600 15px/1 var(--sans); letter-spacing: .2em; color: var(--sun-d); margin: 4px 0 14px; display: flex; align-items: center; gap: 12px; }
.num::after { content: ""; flex: 0 0 48px; height: 1.5px; background: currentColor; opacity: .55; }
.sez h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: .6em; }
.testo { max-width: 40em; }
.testo .sub { font-size: clamp(22px, 2.2vw, 27px); margin: 1.5em 0 .6em; color: var(--ink-2); }
.testo ul { padding: 0; margin: 0 0 1.2em; list-style: none; }
.testo ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.testo ul li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--sun-d); }

/* I tre pilastri (comunicazione, empatia, tempo) */
.testo ul.pilastri { display: grid; gap: 14px; counter-reset: p; margin-top: 1.6em; }
.testo ul.pilastri li { counter-increment: p; padding: 20px 22px 20px 74px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; line-height: 1.65; }
.testo ul.pilastri li::before { content: counter(p); top: 20px; left: 20px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: var(--brick-on-dark); font: 500 18px/38px var(--serif); text-align: center; }

/* Vantaggi in «gettoni» */
.testo ul.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.testo ul.chips li { margin: 0; padding: 9px 16px 9px 34px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.testo ul.chips li::before { left: 14px; top: 50%; translate: 0 -50%; width: 8px; height: 8px; border: 0; background: var(--sun); }

/* Citazioni */
.cit { margin: clamp(56px, 7vw, 96px) auto 0; width: min(860px, 100% - 40px); text-align: center; }
.cit blockquote { margin: 0; font: italic 500 clamp(23px, 2.7vw, 34px)/1.4 var(--serif); color: var(--ink); }
.cit blockquote::before { content: "“"; display: block; font: 600 86px/.6 var(--serif); color: var(--sun); margin-bottom: 18px; }
.cit figcaption { margin-top: 18px; font: 700 12.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.cit figcaption::before { content: "— "; color: var(--sun-d); }

/* ---------- Resilienza Strategica ---------- */
.res { margin-top: clamp(70px, 9vw, 130px); background: var(--mist); }
.res-head { position: relative; color: #fff; padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 120px); background: var(--ink) var(--bg) center 40% / cover no-repeat; isolation: isolate; overflow: hidden; }
.res-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(29, 43, 55, .92) 0%, rgba(29, 43, 55, .68) 55%, rgba(29, 43, 55, .25) 100%); z-index: -1; }
.res-head h2 { color: #fff; font-size: clamp(40px, 6vw, 76px); margin: 0 0 .2em; max-width: 12em; }
.res-head p { font: italic 500 clamp(19px, 2vw, 25px)/1.35 var(--serif); color: var(--sun-l); margin: 0; }
.res-soffione { width: 92px; color: var(--brick-on-dark); margin-bottom: 18px; }
.res-body { padding: clamp(50px, 6vw, 86px) 0 clamp(60px, 7vw, 100px); display: grid; gap: clamp(26px, 3vw, 40px); }
.blocco { background: var(--white); border-radius: var(--r); padding: clamp(28px, 4.5vw, 60px); box-shadow: 0 20px 50px -40px rgba(29, 43, 55, .45); }
.blocco > h2, .blocco > h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: .7em; }
.blocco p { max-width: 50em; }
.blocco.intro { position: relative; overflow: hidden; }
.highlight { font: italic 500 clamp(21px, 2.3vw, 28px)/1.45 var(--serif); color: var(--ink); padding: 6px 0 6px 24px; border-left: 3px solid var(--sun); margin: 0 0 1.3em; max-width: 34em; }
.blocco .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.6em 0; }
.card { background: var(--paper); border-radius: 18px; padding: 26px 28px; border-top: 3px solid var(--sun); }
.card h4 { font-size: 21px; margin-bottom: .7em; color: var(--ink-2); }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { position: relative; padding-left: 24px; margin-bottom: 7px; line-height: 1.5; }
.card li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.card p:last-child { margin-bottom: 0; }
.blocco.duo { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.blocco.duo > * { grid-column: 1 / -1; }
.blocco.duo > .card { grid-column: auto; margin: .4em 0 1.4em; }

/* I sette passi */
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 1.8em 0 1.4em; counter-reset: st; }
.step { position: relative; background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 18px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s, background .3s; }
.step:hover { transform: translateY(-4px); background: var(--ink-2); }
.step span { font: 700 11.5px/1 var(--sans); letter-spacing: .2em; color: var(--brick-on-dark); }
.step p { margin: 16px 0 0; font: 500 17px/1.3 var(--serif); color: #fff; }
.quote { font: italic 500 clamp(19px, 2vw, 23px)/1.5 var(--serif); color: var(--ink-2); text-align: right; margin: 1.6em 0 0 auto; max-width: 36em; }
.res-foto { margin: 0 0 1.5em; }
.res-foto img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; }
p.accento { font: 600 21px/1.4 var(--serif); color: var(--leaf); margin-top: 1.6em; }

/* Invito finale del blocco */
.res-cta { position: relative; color: #fff; text-align: center; padding: clamp(80px, 11vw, 140px) 0; background: var(--ink) var(--bg) center / cover no-repeat; isolation: isolate; }
.res-cta::before { content: ""; position: absolute; inset: 0; background: rgba(29, 43, 55, .62); z-index: -1; }
.cta-in h2 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); margin-bottom: .4em; }
.cta-in p { max-width: 38em; margin: 0 auto 30px; font-size: 18px; color: #eef3f5; }

/* ---------- Contatto ---------- */
.contatto { padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 8vw, 110px); }
.contatto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.contatto-foto { margin: 0; }
.contatto-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.contatto h2 { font-size: clamp(34px, 4vw, 52px); }
.contatto-btn { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.share p { font: 700 12.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.share ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.share a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.share a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Pagine legali / 404 ---------- */
.legale { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); }
.legale-in { max-width: 860px; }
.legale h1 { font-size: clamp(36px, 5vw, 58px); margin: 10px 0 .7em; }
.legale-testo section { margin-bottom: 8px; }
.legale-testo h2 { font-size: 22px; margin: 1.4em 0 .4em; }
.legale-testo p:first-child { font-size: 18px; }
.legale-firma { margin: 30px 0; color: var(--ink-soft); font-size: 14px; }
.center { text-align: center; }
.nf-soffione { width: 120px; margin: 0 auto; color: var(--ink); }

/* ---------- Piè di pagina ---------- */
.foot { background: var(--ink); color: #c9d4d8; text-align: center; padding: 70px 0 0; }
.foot-in { display: flex; flex-direction: column; align-items: center; padding-bottom: 42px; }
.foot-soffione { width: 64px; color: var(--brick-on-dark); margin-bottom: 14px; }
.foot .brand-n { font: 400 42px/1 var(--script); color: #fff; margin: 0 0 6px; }
.foot .brand-s { font: 600 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #9fb2b9; margin: 0 0 26px; }
.foot-soc { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.foot-soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.foot-soc a:hover { background: var(--sun); border-color: var(--sun); color: #fff; }
.foot-legal { margin: 0 auto; padding: 22px 0 34px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 1.7; color: #9fb2b9; }
.foot-legal a { color: #fff; }
.foot-legal strong { color: #dfe7ea; }


/* ---------- Comparsa ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .step { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease, background .3s; }
.js .in .step { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .sez-grid, .sez-grid.rev, .contatto-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(20, 24, 28, .55) 0%, rgba(20, 24, 28, .82) 55%, rgba(20, 24, 28, .92) 100%); }
  .hero-bg { object-position: 62% center; }
  .sez-img { position: relative; top: 0; }
  .sez-grid.rev .sez-img { order: 0; }
  .sez-img img, .sez-img.tall img { aspect-ratio: 16 / 11; }
  .blocco .grid, .blocco.duo { grid-template-columns: 1fr; }
  .sez-img::after { right: -8px; bottom: -8px; width: 70px; height: 70px; }
  .sez-grid.rev .sez-img::after { left: -8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { min-height: 0; }
  .quote { text-align: left; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { min-height: 64px; gap: 12px; }
  .brand-n { font-size: 26px; }
  .brand-s { font-size: 9px; letter-spacing: .18em; }
  .lang a { width: 32px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .testo ul.pilastri li { padding: 18px 18px 18px 64px; }
  .testo ul.pilastri li::before { left: 16px; top: 18px; }
  .steps { grid-template-columns: 1fr; }
  .contatto-btn .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soffione .seme { animation: none; }
  .js .rv, .js .step { opacity: 1; transform: none; transition: none; }
}
