/* Studio Di Filippo — versione B (v2) */
:root {
  --bg: #f6f2eb;
  --bg-2: #ece5d9;
  --white: #ffffff;
  --ink: #0e2236;
  --ink-2: #183552;
  --text: #22303e;
  --muted: #66717d;
  --muted-dark: rgba(255, 255, 255, .6);
  --line: rgba(14, 34, 54, .13);
  --line-dark: rgba(255, 255, 255, .15);
  --sand: #c9a36b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1360px;
  --gut: clamp(20px, 3.4vw, 48px);
  --r: 16px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; line-height: 1.04; letter-spacing: -.025em; font-variation-settings: "opsz" 120; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Tipografia */
.display { font-size: clamp(2.9rem, 6.4vw, 6.4rem); line-height: .98; letter-spacing: -.035em; }
.h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.08; }
.statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.45rem); line-height: 1.22; letter-spacing: -.02em; color: var(--ink); margin: 0; font-variation-settings: "opsz" 72; }
.statement .dim, .h2 .dim { color: #9a9a96; }
.on-dark .statement, .on-dark .h2, .on-dark .h3, .on-dark h3 { color: #fff; }
.on-dark .statement .dim, .on-dark .h2 .dim { color: rgba(255,255,255,.45); }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.on-dark .label { color: var(--muted-dark); }
.big-p { font-size: 1.12rem; line-height: 1.65; color: var(--muted); }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 22px; border-radius: 999px; border: 1px solid var(--ink);
  font: 600 .92rem/1 var(--sans); color: var(--ink); text-decoration: none; background: transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
  cursor: pointer; white-space: nowrap;
}
.pill i { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .45s var(--ease), background .35s, color .35s; }
.pill svg { width: 16px; height: 16px; }
.pill:hover { background: var(--ink); color: #fff; }
.pill:hover i { background: #fff; color: var(--ink); transform: rotate(-45deg); }
.pill--solid { background: var(--ink); color: #fff; }
.pill--solid i { background: var(--sand); color: var(--ink); }
.pill--solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.pill--solid:hover i { background: #fff; }
.pill--light { border-color: rgba(255,255,255,.55); color: #fff; }
.pill--light i { background: var(--sand); color: var(--ink); }
.pill--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pill--light:hover i { background: var(--ink); color: #fff; }
.link {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px;
  transition: background-size .4s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Top bar */
.topbar { background: var(--ink); color: rgba(255,255,255,.75); font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar div { display: flex; gap: 28px; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 235, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; align-items: center; }
.nav__list > li { position: relative; }
.nav__list a, .nav__toggle {
  font: 500 .94rem/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: none; border: 0; padding: 12px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav__list > li > a, .nav__toggle { position: relative; }
.nav__list > li > a::after, .nav__toggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__list > li > a:hover::after, .nav__toggle:hover::after, .nav__list a[aria-current="page"]::after, .is-current > .nav__toggle::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle svg { width: 12px; height: 12px; transition: transform .3s; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: -16px; min-width: 260px;
  background: var(--white); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(14,34,54,.35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .3s var(--ease);
}
.sub a { display: block; padding: 12px 14px; border-radius: 9px; font-weight: 500; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--bg); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .nav__toggle svg, .has-sub.is-open .nav__toggle svg { transform: rotate(180deg); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.burger span, .burger span::after { position: absolute; right: 8px; height: 1.5px; background: var(--ink); content: ""; transition: transform .35s var(--ease), width .35s var(--ease); }
.burger span { top: 18px; width: 26px; }
.burger span::after { top: 7px; right: 0; width: 17px; }
.nav-open .burger span { transform: translateY(3.5px) rotate(45deg); }
.nav-open .burger span::after { width: 26px; transform: translateY(-7px) rotate(-90deg); }

/* Hero home: foto a tutta larghezza */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.06); transition: transform 2s var(--ease); }
.is-loaded .hero__img img { transform: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(14,34,54,.9) 0%, rgba(14,34,54,.72) 38%, rgba(14,34,54,.18) 75%, rgba(14,34,54,.05) 100%); }
.hero .wrap { min-height: min(84vh, 800px); display: flex; flex-direction: column; justify-content: center; padding-top: clamp(80px, 9vw, 130px); padding-bottom: clamp(80px, 9vw, 130px); }
.hero__text { max-width: 720px; }
.hero__text .label { color: rgba(255,255,255,.78); margin-bottom: clamp(20px, 2.6vw, 30px); }
.hero__text .display { color: #fff; }
.hero__text p { max-width: 560px; margin: clamp(24px, 3vw, 34px) 0 clamp(30px, 3.4vw, 42px); color: rgba(255,255,255,.86); font-size: 1.14rem; }
.hero__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero .link { color: #fff; }
.areas-bar { border-bottom: 1px solid var(--line); }
.areas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 26px; padding-bottom: 26px; }
.areas ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); background: rgba(255,255,255,.5); }

/* Sezioni */
.section { padding: clamp(84px, 10vw, 150px) 0; }
.section--tight { padding: clamp(50px, 6vw, 90px) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 7vw, 120px); }
.split--top { align-items: start; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(40px, 7vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.head p { margin: 0; color: var(--muted); max-width: 520px; }
.head .label { margin-bottom: 20px; }
.head > :only-child { grid-column: 1 / -1; max-width: 980px; }
.on-dark .head p { color: var(--muted-dark); }

/* Lo studio */
.studio { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.studio__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.studio__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.studio .label { margin-bottom: 26px; }
.studio .statement + .pill { margin-top: 40px; }

/* Servizi (home) */
.svc { display: grid; grid-template-columns: 1fr 1fr .78fr; gap: 30px clamp(30px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__title { position: sticky; top: 120px; }
.svc__title .label { margin-bottom: 16px; }
.svc__body p { color: var(--text); }
.svc__body p + p { color: var(--muted); }
.svc__body .pill { margin-top: 12px; }
.svc__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); display: block; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }

/* Approccio (pagine servizio) */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.approach__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.approach__media img { width: 100%; height: 100%; object-fit: cover; }
.approach .label { margin-bottom: 22px; }
.approach .h2 { margin-bottom: 26px; }
.approach p { color: var(--muted); font-size: 1.08rem; }
.approach .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; }

/* Altri servizi */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rel { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: var(--r); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.rel:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(14,34,54,.45); }
.rel__icon { margin: 28px 24px 0; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; transition: background .4s var(--ease), color .4s var(--ease); }
.rel__icon svg { width: 30px; height: 30px; }
.rel:hover .rel__icon { background: var(--ink); color: var(--sand); }
.rel__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rel h3 { font-size: 1.45rem; line-height: 1.12; }
.rel p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.rel span { font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.rel span svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.rel:hover span svg { transform: translateX(4px); }

/* Card evidenza */
.feature-card { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ink); color: rgba(255,255,255,.75); border-radius: var(--r); overflow: hidden; }
.feature-card__text { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.feature-card__text .h2 { color: #fff; margin-top: 20px; }
.feature-card__text p { max-width: 460px; margin: 20px 0 0; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }

/* Blocco contatti + footer */
.contact-block { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(84px, 10vw, 150px) 0 clamp(70px, 8vw, 110px); }
.contact-block .h2 { color: #fff; margin: 20px 0 28px; font-size: clamp(2.1rem, 3.8vw, 3.5rem); }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted-dark); padding-top: 3px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; gap: 6px; }
.field { display: block; }
.field span { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted-dark); padding-top: 18px; }
.field input, .field textarea {
  width: 100%; font: 400 1.2rem/1.4 var(--sans); color: #fff; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-dark); padding: 10px 0 14px; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; margin: 22px 0 18px; }
.consent input { margin-top: 3px; accent-color: var(--sand); width: 17px; height: 17px; flex: none; }
.consent a { color: #fff; }
.form .pill { justify-self: start; }
.form__msg { margin: 10px 0 0; font-weight: 500; min-height: 1.6em; color: #fff; }
.form__msg.err { color: #ffb4a8; }
.form__msg a { color: #fff; }
.form .pill[disabled] { opacity: .5; pointer-events: none; }

.light-form { background: #fff; border-radius: var(--r); padding: clamp(28px, 4vw, 52px); }
.light-form .field span { color: var(--muted); }
.light-form .field input, .light-form .field textarea { color: var(--ink); border-color: var(--line); }
.light-form .field input::placeholder, .light-form .field textarea::placeholder { color: #a9adb2; }
.light-form .field input:focus, .light-form .field textarea:focus { border-color: var(--ink); }
.light-form .consent { color: var(--muted); }
.light-form .consent input { accent-color: var(--ink); }
.light-form .consent a, .light-form .form__msg, .light-form .form__msg a { color: var(--ink); }
.light-form .form__msg.err { color: #a03a2c; }

.footer { background: var(--ink); color: var(--muted-dark); font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 70px 0 60px; border-top: 1px solid var(--line-dark); }
.footer__brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer__brand p { max-width: 340px; margin: 0; }
.footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted-dark); margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a { color: #fff; text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding: 24px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }

/* Pagine interne */
.page-hero { padding: clamp(16px, 2vw, 24px) 0 0; }
.page-hero__box { position: relative; color: #fff; isolation: isolate; overflow: hidden; min-height: min(74vh, 720px); display: flex; align-items: flex-end; border-radius: var(--r); background: var(--ink); }
.page-hero__box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.is-loaded .page-hero__box > img { transform: none; }
.page-hero__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,34,54,.1) 0%, rgba(14,34,54,.15) 35%, rgba(14,34,54,.85) 100%); }
.page-hero__inner { padding: clamp(28px, 4.4vw, 64px); width: 100%; }
.page-hero .display { color: #fff; margin-top: 18px; max-width: 15ch; }
.page-hero .label { color: rgba(255,255,255,.8); }
.page-hero--plain .page-hero__box { background: transparent; color: var(--ink); min-height: 0; }
.page-hero--plain .page-hero__box::before { display: none; }
.page-hero--plain .display { color: var(--ink); }
.page-hero--plain .label { color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.12; }
.rows p { margin: 0; color: var(--muted); }

.list-lg { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(30px, 5vw, 80px); }
.list-lg li { break-inside: avoid; padding: 22px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.01em; color: var(--ink); line-height: 1.28; }
.on-dark .list-lg li { border-color: var(--line-dark); color: #fff; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); margin-top: clamp(48px, 6vw, 80px); }
.figures div { padding: 30px 30px 0 0; }
.figures div + div { border-left: 1px solid var(--line-dark); padding-left: 30px; }
.figures b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -.035em; line-height: 1; color: #fff; margin-bottom: 14px; }
.figures span { color: var(--muted-dark); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 60px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.015em; color: var(--ink); line-height: 1.28; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: absolute; right: 0; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .4s var(--ease), background .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--ink); transform: rotate(180deg); }
.faq details[open] summary i::before { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); background: #fff; }
.faq__body { padding: 0 0 30px; color: var(--muted); max-width: 820px; }
.faq__body ul { margin: 0; padding-left: 1.1em; }
.faq__body li { margin-bottom: 8px; }
.faq__body a, .prose a { color: var(--ink); text-underline-offset: 3px; }

.prose p { color: var(--muted); }
.prose ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.legal { max-width: 860px; }
.legal h2 { font-size: 1.7rem; margin: 48px 0 14px; }
.legal p { color: var(--muted); }

.sticky-title { position: sticky; top: 130px; align-self: start; }

/* Tab importi */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.tabs__list button {
  font: 600 .95rem/1 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 13px 22px; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.tabs__list button:hover { border-color: var(--ink); }
.tabs__list button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs__panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px clamp(40px, 6vw, 100px); padding-top: clamp(32px, 4vw, 52px); }
.tabs__panel[hidden] { display: none; }
.tabs__fig b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .95; letter-spacing: -.04em; color: var(--ink); }
.tabs__fig span { display: block; margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 300px; }
.tabs__facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tabs__facts li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.tabs__facts small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* Simulatore Resto al Sud 2.0 */
.sim-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px clamp(40px, 6vw, 100px); align-items: start; }
.sim-wrap .label { margin-bottom: 20px; }
.sim-wrap .h2 { margin-bottom: 24px; }
.sim__note { font-size: .88rem; color: var(--muted); margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.sim { background: var(--ink); color: rgba(255,255,255,.75); border-radius: var(--r); padding: clamp(26px, 3.6vw, 48px); }
.sim__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.07); }
.sim__switch input { position: absolute; opacity: 0; pointer-events: none; }
.sim__switch span { display: block; text-align: center; padding: 12px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; color: rgba(255,255,255,.75); transition: background .3s, color .3s; }
.sim__switch input:checked + span { background: #fff; color: var(--ink); }
.sim__switch input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.sim__range { display: block; margin-top: 34px; }
.sim__range > span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.6); }
.sim__range output { white-space: nowrap; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.02em; text-transform: none; color: #fff; font-weight: 400; }
.sim__range input { width: 100%; margin: 18px 0 8px; accent-color: var(--sand); height: 28px; cursor: pointer; }
.sim__scale { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.45); }
.sim__scale em { font-style: normal; }
.sim__check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: .95rem; color: rgba(255,255,255,.85); cursor: pointer; }
.sim__check input { accent-color: var(--sand); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.sim__check[hidden] { display: none; }
.sim__bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); margin-top: 32px; overflow: hidden; }
.sim__bar i { display: block; height: 100%; width: 100%; background: var(--sand); border-radius: 999px; transition: width .5s var(--ease); }
.sim__out { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin: 26px 0 0; }
.sim__out div { border-top: 1px solid var(--line-dark); padding-top: 14px; }
.sim__out dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.55); }
.sim__out dd { margin: 8px 0 0; font-family: var(--serif); font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.sim__out .sim__main dd { font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--sand); line-height: 1; }
.sim__hint { margin: 22px 0 0; font-size: .92rem; color: rgba(255,255,255,.7); min-height: 1.4em; }

/* Spese ammesse e non ammesse */
.spese { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 100px); }
.spese__t { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 18px; }
.spese__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spese__list li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); color: var(--text); }
.spese__list li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 1.5px; background: var(--ink); }
.spese__list--yes li::after { content: ""; position: absolute; left: 10.25px; top: 19px; width: 1.5px; height: 14px; background: var(--ink); }
.spese__list--no li { color: var(--muted); }
.spese__list--no li::before { background: #b9b4ab; }

/* Comparsa */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .topbar { display: none; }
  .header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header .wrap { min-height: 68px; }
  .brand img { height: 36px; }
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: 12px var(--gut) 32px; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a::after { display: none; }
  .nav__list a { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; letter-spacing: -.02em; padding: 14px 0; width: 100%; }
  .nav .pill { align-self: flex-start; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc__title { grid-column: 1 / -1; position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .split, .head, .feature-card, .studio, .approach { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(14,34,54,.62) 0%, rgba(14,34,54,.86) 100%); }
  .hero .wrap { min-height: 0; }
  .approach__media { aspect-ratio: 16 / 10; }
  .studio__media { aspect-ratio: 16 / 11; }
  .svc { grid-template-columns: 1fr; gap: 22px; }
  .svc__media { order: -1; aspect-ratio: 16 / 10; }
  .rows > li { grid-template-columns: 1fr; }
  .list-lg { columns: 1; }
  .figures { grid-template-columns: 1fr; }
  .figures div, .figures div + div { border-left: 0; padding: 24px 0; border-top: 1px solid var(--line-dark); }
  .figures div:first-child { border-top: 0; }
  .feature-card__media { order: -1; }
  .sticky-title { position: static; }
  .tabs__panel { grid-template-columns: 1fr; }
  .tabs__facts li { grid-template-columns: 1fr; }
  .sim-wrap, .spese { grid-template-columns: 1fr; }
  .sim__out { grid-template-columns: 1fr 1fr; }
  .sim__out .sim__main { grid-column: 1 / -1; }
  .feature-card__media img { min-height: 0; aspect-ratio: 16 / 10; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .page-hero__box { min-height: min(64vh, 560px); }
  .hero .wrap { min-height: min(70vh, 620px); }
  .studio__media img { object-position: 60% 45%; }
}
@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .section--tight { padding: 48px 0; }
  .contact-block { padding: 68px 0 44px; }
  .head { margin-bottom: 36px; }
  .hero .wrap { min-height: 0; padding-top: 64px; padding-bottom: 56px; }
  .hero__text p { font-size: 1.04rem; }
  .areas { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; padding-bottom: 24px; }
  .areas ul { gap: 8px; }
  .chip { font-size: 1rem; padding: 7px 16px; }
  .statement { font-size: 1.32rem; line-height: 1.28; }
  .studio .statement + .pill { margin-top: 30px; }
  .studio .label, .approach .label { margin-bottom: 18px; }
  .page-hero__box { min-height: 440px; }
  .page-hero__inner { padding: 24px 22px 26px; }
  .svc { padding: 36px 0; }
  .rows > li { padding: 24px 0; }
  .list-lg li { padding: 16px 0; }
  .figures b { margin-bottom: 8px; }
  .tabs__list { display: grid; grid-template-columns: 1fr; }
  .tabs__list button { text-align: left; padding: 14px 20px; }
  .tabs__fig b { font-size: 3.2rem; }
  .sim { padding: 22px 18px 26px; border-radius: 14px; }
  .sim__switch span { font-size: .84rem; padding: 11px 8px; line-height: 1.2; }
  .sim__range { margin-top: 28px; }
  .sim__out dd { font-size: 1.4rem; }
  .faq summary { padding: 20px 52px 20px 0; font-size: 1.12rem; }
  .related { grid-template-columns: 1fr; gap: 12px; }
  .rel { flex-direction: row; align-items: flex-start; }
  .rel__icon { margin: 22px 0 0 20px; width: 48px; height: 48px; flex: none; }
  .rel__icon svg { width: 24px; height: 24px; }
  .rel__body { padding: 20px 20px 22px 16px; gap: 6px; }
  .rel h3 { font-size: 1.3rem; }
  .feature-card__text { gap: 24px; }
  .field-row { gap: 0 16px; }
  .footer__top { grid-template-columns: 1fr; padding: 56px 0 40px; }
  .hero__actions .pill { width: 100%; justify-content: space-between; }
}
