/* Semplifika Group — monocromo, editoriale */
:root {
  --black: #0a0a0a;
  --ink: #141414;
  --gray-1: #f4f4f2;
  --gray-2: #e6e6e3;
  --gray-3: #b9b9b5;
  --gray-4: #6f6f6b;
  --white: #ffffff;
  --line: rgba(10, 10, 10, 0.12);
  --line-inv: rgba(255, 255, 255, 0.16);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--black); color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.italic { font-style: italic; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-4);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #3a3a38; max-width: 640px; }
.muted { color: var(--gray-4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1;
  padding-bottom: 2px;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; line-height: 1.05; }
.brand-name small { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-4); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font: 500 14.5px/1 var(--sans); color: var(--ink);
  background: none; border: 0; cursor: pointer;
  transition: background .2s;
}
.nav-links a:hover, .nav-links button:hover { background: var(--gray-1); }
.nav-links a[aria-current="page"] { background: var(--gray-1); }
.nav-links .caret { width: 10px; height: 10px; transition: transform .2s; }
.has-menu:hover .caret, .has-menu:focus-within .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: 380px; padding: 10px; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 12px; line-height: 1.3; }
.submenu a span { font-weight: 400; font-size: 13px; color: var(--gray-4); }
.nav-cta { margin-left: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  border: 1px solid var(--black); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2a2a2a; }
.btn-light { background: transparent; color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--white); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.inverse .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.inverse .btn-dark:hover { background: var(--gray-2); }
.inverse .btn-light { color: var(--white); border-color: rgba(255,255,255,.5); }
.inverse .btn-light:hover { background: var(--white); color: var(--black); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--black); transition: transform .3s var(--ease); }
.menu-toggle span { top: 18px; }
.menu-toggle span::before { content: ""; left: 0; top: 7px; }
.menu-open .menu-toggle span { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span::before { transform: translateY(-7px) rotate(-90deg); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.inverse { background: var(--black); color: var(--white); }
.inverse .eyebrow, .inverse .muted { color: var(--gray-3); }
.inverse .lead { color: #cfcfcb; }
.soft { background: var(--gray-1); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .h2 { margin-top: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .display { margin: 22px 0 24px; max-width: 12ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px);
}
.hero-meta div { padding: 22px 24px 0 0; }
.hero-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.02em; }
.hero-meta span { font-size: 14px; color: var(--gray-4); }

.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-left: auto; }
.orbit svg { width: 100%; height: 100%; }
.orbit .spin { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { margin: 20px 0 22px; max-width: 18ch; font-size: clamp(40px, 5.4vw, 80px); }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--gray-4); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--black); }

/* ---------- Company cards ---------- */
.companies { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.inverse .companies, .inverse .companies .company { border-color: var(--line-inv); }
.company {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 36px 36px; min-height: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.company .num { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--gray-4); }
.company .sector { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: auto; color: var(--gray-4); }
.company h3 { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 18px; }
.company p { color: #4a4a47; font-size: 16px; }
.company ul { list-style: none; padding: 0; margin: 8px 0 32px; font-size: 14.5px; }
.company li { padding: 9px 0; border-top: 1px solid var(--line); }
.company .go { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.company .go i { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease); }
.company .go svg { width: 14px; height: 14px; }
.company:hover { background: var(--black); color: var(--white); }
.company:hover p { color: #c9c9c5; }
.company:hover li { border-color: var(--line-inv); }
.company:hover .go i { transform: rotate(-45deg); }
.inverse .company p { color: #bdbdb9; }
.inverse .company li { border-color: var(--line-inv); }
.inverse .company:hover { background: var(--white); color: var(--black); }
.inverse .company:hover p { color: #4a4a47; }
.inverse .company:hover li { border-color: var(--line); }

/* ---------- Grids & features ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { padding-top: 26px; border-top: 1px solid var(--black); }
.inverse .feature { border-top-color: var(--white); }
.feature .idx { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gray-4); display: block; margin-bottom: 26px; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: #555552; font-size: 15.5px; margin: 0; }
.inverse .feature p { color: #bdbdb9; }

.list-rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.inverse .list-rows, .inverse .row-item { border-color: var(--line-inv); }
.row-item .n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gray-4); }
.row-item h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.row-item p { margin: 0; color: #555552; }
.inverse .row-item p { color: #bdbdb9; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: var(--white); }
.inverse .tag { background: transparent; border-color: var(--line-inv); }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-inv); }
.stat-band div { padding: 36px 24px 0 0; }
.stat-band strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.stat-band span { color: var(--gray-3); font-size: 14.5px; }

/* ---------- Pricing / highlight ---------- */
.offer-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer {
  border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 18px; background: var(--white);
}
.offer.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.offer .badge { align-self: flex-start; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border: 1px solid currentColor; border-radius: 999px; }
.offer h3 { font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.offer .price { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.offer .price small { font-family: var(--sans); font-size: 15px; color: var(--gray-4); letter-spacing: 0; }
.offer.dark .price small { color: var(--gray-3); }
.offer ul { list-style: none; padding: 0; margin: 0 0 12px; }
.offer li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.offer.dark li { border-color: var(--line-inv); }
.offer li::before { content: "—"; color: var(--gray-4); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer.dark .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { padding: 32px 28px 0 0; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-size: 56px; line-height: 1; margin-bottom: 24px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15.5px; color: #555552; }
.inverse .steps { border-color: var(--line-inv); }
.inverse .step p { color: #bdbdb9; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 32px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; margin: 0; max-width: 760px; color: #555552; }

/* ---------- Quote / Manifesto ---------- */
.manifesto { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -0.015em; max-width: 22ch; }
.manifesto em { color: var(--gray-4); }
.inverse .manifesto em { color: var(--gray-3); }

/* ---------- External link banner ---------- */
.ext-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 36px 40px; border: 1px solid var(--line); border-radius: 24px;
}
.ext-banner .url { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 112px); }
.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { margin: 0; color: #555552; font-size: 15.5px; }
.contact-card a { border-bottom: 1px solid var(--gray-3); transition: border-color .2s; }
.contact-card a:hover { border-color: var(--black); }

.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  padding: 16px 18px; border: 1px solid var(--gray-2); border-radius: 14px; background: var(--white);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px rgba(10,10,10,.06); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--gray-4); }
.check input { margin-top: 4px; accent-color: var(--black); }
.form-note { font-size: 14px; color: var(--gray-4); min-height: 1.4em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h1 { max-width: 14ch; margin: 24px auto 28px; }
.cta-band .lead { margin: 0 auto 40px; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: clamp(72px, 9vw, 120px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-top h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-3); margin-bottom: 20px; font-weight: 500; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.footer-top a { color: #e2e2df; transition: color .2s; }
.footer-top a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-claim { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; margin: 24px 0 0; max-width: 14ch; }
.site-footer .brand-mark { background: var(--white); color: var(--black); }
.site-footer .brand-name small { color: var(--gray-3); }
.footer-word { font-family: var(--serif); font-size: clamp(64px, 17vw, 260px); line-height: .8; letter-spacing: -0.04em; color: #1d1d1d; white-space: nowrap; overflow: hidden; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-inv); font-size: 13px; color: var(--gray-3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit .spin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .companies { grid-template-columns: 1fr; }
  .company { min-height: 0; }
  .company .sector { margin-top: 24px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 76px 0 0; background: var(--white); padding: 16px var(--gutter) 40px; overflow-y: auto;
  }
  .menu-open .nav-links > li { border-bottom: 1px solid var(--line); }
  .menu-open .nav-links a, .menu-open .nav-links button { width: 100%; padding: 20px 0; font-size: 22px; border-radius: 0; background: none; }
  .menu-open .nav-links .caret { display: none; }
  .menu-open .submenu { position: static; opacity: 1; visibility: visible; transform: none; width: auto; border: 0; box-shadow: none; padding: 0 0 12px; }
  .menu-open .submenu a { padding: 10px 0; font-size: 16px; }
  .menu-open .nav-links .mobile-cta { display: block; border: 0; padding-top: 24px; }
  .menu-open .nav-links .mobile-cta a { justify-content: center; background: var(--black); color: var(--white); border-radius: 999px; font-size: 16px; }
  .hero-grid, .grid-2, .section-head, .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .orbit { max-width: 320px; margin: 0 auto; }
  .grid-3, .offer-cards { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 48px 1fr; }
  .row-item p { grid-column: 2; }
  .stat-band { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-meta div { padding: 18px 12px 0 0; }
  .hero-meta span { font-size: 12px; line-height: 1.35; display: block; margin-top: 6px; }
  .grid-4, .steps, .steps.three { grid-template-columns: 1fr; }
  .company { padding: 32px 24px; }
  .offer { padding: 28px; }
  .form .two { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .ext-banner { padding: 28px; }
}
.mobile-cta { display: none; }
.offer.dark .muted { color: var(--gray-3); }

/* ---------- Fotografia & loghi ---------- */
.photo { position: relative; overflow: hidden; background: var(--black); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.media { border-radius: 24px; aspect-ratio: 4 / 5; }
.media.wide { aspect-ratio: 16 / 10; }
.media.tall { aspect-ratio: 3 / 4; }
.media:hover img { transform: scale(1.03); }
.media figcaption {
  position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--black); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}

/* Hero con sfondo fotografico */
.bg-hero { position: relative; color: var(--white); background: var(--black); overflow: hidden; isolation: isolate; }
.bg-hero > .bg { position: absolute; inset: 0; z-index: -2; }
.bg-hero > .bg img { width: 100%; height: 100%; object-fit: cover; animation: herofade .6s ease-out both; }
.bg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 45%, rgba(10,10,10,.35) 100%); }
@keyframes herofade { from { opacity: 0; } }
.bg-hero .eyebrow, .bg-hero .breadcrumb { color: #c9c9c5; }
.bg-hero .breadcrumb a:hover { color: var(--white); }
.bg-hero .lead { color: #dcdcd8; }
.bg-hero .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.bg-hero .btn-dark:hover { background: var(--gray-2); }
.bg-hero .btn-light { color: var(--white); border-color: rgba(255,255,255,.55); }
.bg-hero .btn-light:hover { background: var(--white); color: var(--black); }
.bg-hero .hero-meta { border-top-color: var(--line-inv); }
.bg-hero .hero-meta span { color: #c9c9c5; }
.bg-hero.page-hero { border-bottom: 0; padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.hero.bg-hero { padding: clamp(56px, 6vw, 88px) 0 clamp(36px, 4vw, 56px); }
.hero.bg-hero .display { font-size: clamp(46px, 6.6vw, 100px); }
.hero.bg-hero .display { max-width: 13ch; }

/* Chip logo */
.logo-chip { display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: 16px; padding: 14px 22px; }
.logo-chip img { height: 40px; width: auto; }
.logo-chip.lg img { height: 56px; }
.bg-hero .logo-chip { margin-bottom: 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }

/* Striscia loghi */
.logo-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.logo-strip a { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; border-right: 1px solid var(--line); transition: background .3s; }
.logo-strip a:last-child { border-right: 0; }
.logo-strip img { height: 46px; width: auto; filter: grayscale(1) contrast(1.4); opacity: .9; transition: filter .4s, opacity .4s; }
.logo-strip a:hover { background: var(--gray-1); }
.logo-strip a:hover img { filter: none; opacity: 1; }

/* Card società con foto e logo */
.company .thumb { margin: -40px -36px 32px; aspect-ratio: 16 / 10; }
.company .thumb img { transition: transform 1.2s var(--ease); }
.company:hover .thumb img { transform: scale(1.05); }
.company .thumb .logo-chip { position: absolute; left: 20px; bottom: 20px; padding: 10px 16px; border-radius: 12px; }
.company .thumb .logo-chip img { height: 32px; filter: none; transform: none; }
.company .num { position: absolute; top: 20px; right: 22px; z-index: 1; color: var(--white); }

/* Sezione con immagine di sfondo */
.bg-band { position: relative; isolation: isolate; color: var(--white); overflow: hidden; }
.bg-band > .bg { position: absolute; inset: 0; z-index: -2; }
.bg-band > .bg img { width: 100%; height: 100%; object-fit: cover; }
.bg-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,10,.8); }
.bg-band .eyebrow { color: #c9c9c5; }
.bg-band .lead { color: #dcdcd8; }
.bg-band .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.bg-band .btn-light { color: var(--white); border-color: rgba(255,255,255,.55); }
.bg-band .btn-light:hover { background: var(--white); color: var(--black); }

/* Card con foto (flotta, aree) */
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.photo-cards.three { grid-template-columns: repeat(3, 1fr); }
.pcard { display: flex; flex-direction: column; gap: 18px; }
.pcard .photo { border-radius: 20px; aspect-ratio: 4 / 5; }
.pcard:hover .photo img { transform: scale(1.04); }
.pcard h3 { margin-bottom: 6px; }
.pcard p { color: #555552; font-size: 15px; margin: 0; }

.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media.reverse > :first-child { order: 2; }

.ext-banner.with-logo { gap: 24px; }
.ext-banner .logo-chip { border: 1px solid var(--line); }

@media (max-width: 1080px) {
  .photo-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .split-media { grid-template-columns: 1fr; }
  .split-media.reverse > :first-child { order: 0; }
  .photo-cards.three { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: 1fr; }
  .logo-strip a { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .bg-hero::after { background: linear-gradient(180deg, rgba(10,10,10,.75), rgba(10,10,10,.88)); }
}
@media (max-width: 600px) {
  .photo-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .company .thumb { margin: -32px -24px 28px; }
  .logo-chip.lg img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .bg-hero > .bg img { animation: none; } }

/* ---------- Logo Semplifika (wordmark) ---------- */
:root { --brand-blue: #4aa8ec; }
.wordmark {
  font-family: "Lexend", var(--sans); font-weight: 700; font-size: 25px; line-height: 1;
  letter-spacing: -0.035em; color: var(--black); font-variant-ligatures: none; white-space: nowrap;
}
.wordmark .wi { position: relative; }
.wordmark .wi::before {
  content: ""; position: absolute; left: 50%; top: 0.2em;
  width: 0.165em; height: 0.165em; background: var(--brand-blue); transform: translateX(-50%);
}
.brand { align-items: baseline; gap: 8px; }
.brand-sub { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-4); }
.site-footer .wordmark { color: var(--white); font-size: 30px; }
.site-footer .brand-sub { color: var(--gray-3); }
.footer-word .wordmark { font-size: inherit; color: #1d1d1d; letter-spacing: -0.05em; }
.footer-word { font-family: "Lexend", var(--sans); font-weight: 700; padding-top: .12em; }

/* ---------- Loghi senza sfondo ---------- */
.logo-chip { background: none; padding: 0; border-radius: 0; box-shadow: none !important; }
.ext-banner .logo-chip { border: 0; }
/* su foto e sfondi scuri: logo in bianco */
.company .thumb .logo-chip, .bg-hero .logo-chip { padding: 0; }
.company .thumb .logo-chip img, .bg-hero .logo-chip img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.35));
}
.company .thumb::after {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,.7));
}
.company .thumb .logo-chip { z-index: 1; left: 24px; bottom: 22px; }

/* ---------- Ottimizzazione mobile ---------- */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-head { margin-bottom: 32px; gap: 14px; }
  .section-head .h2 { margin-top: 12px; }
  .h2 { font-size: 34px; }
  .lead { font-size: 16.5px; }
  .nav { height: 64px; }
  .menu-open .nav-links { inset: 64px 0 0; }
  .wordmark { font-size: 22px; }

  /* hero */
  .hero.bg-hero { padding: 44px 0 28px; }
  .hero.bg-hero .display { font-size: 44px; margin: 0 0 18px; }
  .bg-hero.page-hero { padding: 40px 0 44px; }
  .page-hero .h1 { font-size: 36px; margin: 14px 0 16px; }
  .breadcrumb { margin-bottom: 18px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-meta { margin-top: 32px; }
  .hero-meta strong { font-size: 30px; }
  .bg-hero .logo-chip { margin-bottom: 14px; }
  .bg-hero .logo-chip img { max-height: 34px; width: auto; }

  /* striscia loghi su una riga */
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .logo-strip a { border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 8px; }
  .logo-strip a:last-child { border-right: 0; }
  .logo-strip img { height: auto !important; max-height: 30px; max-width: 100%; }

  /* società: carosello orizzontale */
  .companies {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    border: 0; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none;
  }
  .companies::-webkit-scrollbar { display: none; }
  .company { flex: 0 0 84%; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding: 28px 22px 24px; }
  .inverse .company { border-color: var(--line-inv); }
  .company .thumb { margin: -28px -22px 22px; }
  .company h3 { font-size: 32px; margin: 4px 0 12px; }
  .company p { font-size: 15px; }
  .company ul { margin: 4px 0 20px; }
  .company .sector { margin-top: 0; }

  /* righe numerate: numero e titolo in alto, testo sotto */
  .row-item { grid-template-columns: 32px 1fr; gap: 6px 12px; padding: 22px 0; }
  .row-item p { grid-column: 1 / -1; font-size: 15px; }
  .row-item h3 { font-size: 24px; }
  .bg-band .list-rows .row-item { grid-template-columns: 32px 1fr !important; }

  /* caratteristiche e servizi su due colonne */
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .feature { padding-top: 16px; }
  .feature .idx { margin-bottom: 10px; font-size: 16px; }
  .feature h3 { font-size: 16.5px; margin-bottom: 6px; }
  .feature p { font-size: 14px; line-height: 1.5; }

  /* step: numero a sinistra */
  .steps, .steps.three { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .inverse .step { border-color: var(--line-inv); }
  .step::before { font-size: 34px; margin: 0; grid-row: span 2; }
  .step h3 { margin-bottom: 4px; }
  .step p { margin: 0; font-size: 14.5px; }

  /* immagini meno alte */
  .media, .media.tall { aspect-ratio: 16 / 10; }
  .media[style*="sticky"] { position: static !important; }
  .photo-cards { gap: 14px; }
  .pcard { gap: 10px; }
  .pcard .photo { aspect-ratio: 1; border-radius: 14px; }
  .pcard p { font-size: 13.5px; }

  .offer { padding: 24px; border-radius: 20px; gap: 14px; }
  .offer h3 { font-size: 30px; }
  .offer .price { font-size: 52px; }
  .tag { padding: 8px 14px; font-size: 13.5px; }
  .faq summary { font-size: 16.5px; padding: 20px 0; }
  .manifesto { font-size: 30px; }
  .cta-band .h1 { font-size: 38px; }
  .ext-banner { padding: 22px; border-radius: 18px; }
  .ext-banner .url { font-size: 24px; }
  .ext-banner .btn { width: 100%; justify-content: center; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band strong { font-size: 44px; }

  /* footer compatto */
  .site-footer { padding: 56px 0 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 36px; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-claim { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
/* il backdrop-filter creerebbe un contenitore per il pannello fixed del menu */
.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
.menu-open .nav-links { z-index: 60; }
