/* Incatasciato & Partners — dal design ChatGPT (Design/kit/design-computer.png).
   Proporzioni orizzontali del design in percentuale; testi e spazi a misura reale (--k ≈ 1px). */
:root {
  --ink: #0A0A0A;
  --text: #3C4043;
  --muted: #5F6163;
  --line: #E0E2E4;
  --line-2: #D0D2D3;
  --blue: #AED3E9;
  --blue-line: #B5D0E3;
  --sky-50: #F3F9FC;
  --sky-100: #E1EEF6;
  --sky-hero: #E5F3FC;
  --sky-top: #FAFCFE;
  --caption: #F2FAFF;
  --cta-light: #D3ECFB;
  --dark: #1F2123;
  --link-line: #797B7A;
  --paper: #FEFEFE;
  --white: #FFFFFF;
  --k: clamp(.92px, calc(100vw / 1330), 1.08px);
  --g: clamp(20px, 5.4vw, 80px);
  --pad: max(var(--g), calc((100vw - 1320px) / 2));
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

.eyebrow {
  font-family: var(--sans); font-weight: 400;
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted);
}

/* ── pulsanti ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: calc(var(--k) * 50);
  padding: 0 calc(var(--k) * 24);
  border-radius: 3px;
  border: 1px solid var(--dark);
  font-family: var(--sans); font-weight: 400; font-size: 15px;
  white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--line { background: var(--white); color: var(--ink); }
.btn--sky { background: var(--cta-light); border-color: var(--cta-light); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(31, 33, 35, .55); }
.btn--line:hover { background: var(--dark); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center;
  height: calc(var(--k) * 84);
  padding: 0 var(--pad);
  background: rgba(254, 254, 254, .97);
  border-bottom: 1px solid var(--line-2);
}
.logo { position: relative; display: block; overflow: hidden; width: calc(var(--k) * 196); aspect-ratio: 878 / 325; flex: none; }
/* il JPG originale, intero: si sceglie solo il riquadro del disegno */
.logo img { position: absolute; width: 134.28%; max-width: none; left: -16.17%; top: -106.15%; }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 14.5px; font-weight: 400; color: #47494A;
  margin-right: calc(var(--k) * 34);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.site-header .btn--dark { height: calc(var(--k) * 46); padding: 0 calc(var(--k) * 30); font-family: var(--serif); font-size: 16.5px; }
.nav-toggle { display: none; }

/* ── apertura ── */
.hero { display: grid; grid-template-columns: 48.4% 1fr; min-height: calc(var(--k) * 560); }
.hero__text {
  padding: calc(var(--k) * 64) calc(var(--k) * 40) calc(var(--k) * 56) var(--pad);
  background: linear-gradient(172deg, var(--sky-top) 0%, var(--paper) 30%, var(--sky-hero) 100%);
}
.hero h1 {
  margin-top: calc(var(--k) * 16);
  font-family: var(--serif); font-weight: 400;
  font-size: calc(var(--k) * 54); line-height: 1.06; letter-spacing: -.022em; color: var(--ink);
}
.hero h1 em { font-style: italic; }
.hero__sub { margin-top: calc(var(--k) * 20); max-width: 30em; font-size: 18px; line-height: 1.5; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: calc(var(--k) * 30); }
.hero__rule { width: 34px; height: 2px; margin-top: calc(var(--k) * 34); background: var(--blue-line); }
.hero__note { margin-top: 14px; font-size: 14.5px; color: var(--text); }
.hero__note a { border-bottom: 1px solid var(--blue-line); }
.hero__media { position: relative; overflow: hidden; background: var(--sky-50); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__caption {
  position: absolute; right: 0; bottom: calc(var(--k) * 14);
  display: flex; align-items: center;
  height: calc(var(--k) * 60); padding: 0 calc(var(--k) * 34) 0 calc(var(--k) * 26);
  background: rgba(242, 250, 255, .94);
  font-family: var(--serif); font-size: calc(var(--k) * 22); color: var(--ink); letter-spacing: -.01em;
}
/* apertura delle pagine interne: lo stesso pannello, a tutta larghezza */
.hero--page { grid-template-columns: 1fr; min-height: 0; }
.hero--page .hero__text { padding-top: calc(var(--k) * 70); padding-bottom: calc(var(--k) * 62); padding-right: var(--pad); }
.hero--page h1 { max-width: 15em; }
.hero--page .hero__sub { max-width: 36em; }

/* ── fascia ── */
.strip {
  display: flex; justify-content: center; align-items: center; gap: calc(var(--k) * 46);
  margin: 12px var(--pad) 0;
  height: calc(var(--k) * 42);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.strip span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.strip i { font-style: normal; color: var(--muted); font-size: 11px; }

/* ── sezioni con testata ── */
.block { padding: calc(var(--k) * 64) var(--pad) calc(var(--k) * 64); }
.block + .block { padding-top: 0; }
.block--line { border-top: 1px solid var(--line-2); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.block + .block--line { padding-top: calc(var(--k) * 64); }
.block__head {
  display: grid; grid-template-columns: minmax(0, 1.03fr) 1px minmax(0, 1fr); column-gap: clamp(24px, 4.4vw, 64px);
  align-items: center;
}
.block__head .eyebrow { grid-column: 1 / -1; margin-bottom: 12px; }
.block__head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: calc(var(--k) * 48); line-height: 1.03; letter-spacing: -.02em; color: var(--ink);
}
.block__head h2 em { font-style: italic; }
.block__rule { align-self: stretch; background: var(--line-2); }
.block__aside { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 30em; }
.block__aside + .block__aside { margin-top: 12px; }
.block__aside-wrap { max-width: 30em; }
.block__aside-wrap p + p { margin-top: 12px; }
.block__aside-wrap p { font-size: 17px; line-height: 1.6; color: var(--text); }
.block__head--solo { grid-template-columns: 1fr; }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(var(--k) * 44); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col { padding: 0 calc(var(--k) * 30) 4px 0; }
.col + .col { border-left: 1px solid var(--line-2); padding-left: calc(var(--k) * 44); }
/* griglia di più righe: il filo verticale riparte a ogni riga */
.cols--rows { row-gap: calc(var(--k) * 46); }
.cols--rows .col:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.col .col__num { margin-top: 0; display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: calc(var(--k) * 46); line-height: 1; color: var(--blue); }
.col .col__num::after { content: ""; width: 30px; height: 1.5px; background: var(--ink); transform-origin: left; }
.col h3 {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 400;
  font-size: calc(var(--k) * 27); line-height: 1.14; letter-spacing: -.015em; color: var(--ink);
}
.col p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--text); }
.col ul { margin-top: 14px; }
.col li { font-size: 16px; line-height: 1.6; color: var(--text); }
.col .col__step { margin-top: 16px; font-family: var(--serif); font-size: calc(var(--k) * 22); line-height: 1.28; color: var(--ink); font-weight: 400; }
.cols--servizi .col p + ul, .cols--servizi .col ul + p { margin-top: 14px; }
.cols--servizi .col p + p { margin-top: 8px; }
.col__link {
  display: inline-block; margin-top: 22px;
  padding-bottom: 5px;
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  border-bottom: 1px solid var(--link-line);
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.col__link + .col__link { margin-left: 22px; }
.col__link:hover { background-size: 100% 1px; }

/* ── fascia azzurra con foto (chi siamo) ── */
.studio {
  display: grid; grid-template-columns: 43.4% 1fr; column-gap: clamp(28px, 4.8vw, 70px); align-items: center;
  padding: calc(var(--k) * 40) var(--pad);
  background: var(--sky-100);
}
.studio__media { overflow: hidden; aspect-ratio: 444 / 239; }
.studio__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.studio h2 {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 400;
  font-size: calc(var(--k) * 42); line-height: 1.1; letter-spacing: -.02em; color: var(--ink);
}
.studio__text > p:not(.eyebrow):not(.studio__meta) { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: #3F4951; max-width: 34em; }
.studio .studio__meta { margin-top: 22px; font-size: 14.5px; color: var(--text); }
.studio__text .col__link { margin-top: 20px; }

/* ── contatti (fascia scura) ── */
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 60px);
  padding: calc(var(--k) * 56) var(--pad) calc(var(--k) * 52);
  background: var(--dark); color: var(--white);
}
.cta .eyebrow { color: var(--blue); }
.cta h2 {
  margin-top: 10px;
  font-family: var(--serif); font-weight: 400;
  font-size: calc(var(--k) * 46); line-height: 1.08; letter-spacing: -.02em; color: var(--white);
}
.cta h2 em { font-style: italic; }
.cta__lead { margin-top: 16px; max-width: 28em; font-size: 16.5px; line-height: 1.6; color: #E6E8EA; }
.cta__side { padding-top: 8px; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 13px; }
.cta__buttons .btn { height: calc(var(--k) * 48); min-width: calc(var(--k) * 190); }
.cta__note { margin-top: 20px; font-size: 15px; color: #E6E8EA; }
.cta__note + .cta__note { margin-top: 6px; }
.cta__note a { color: var(--white); }

/* ── domande frequenti ── */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); margin-top: calc(var(--k) * 30); align-items: start; }
.faq--one { grid-template-columns: 1fr; max-width: 820px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 44px 18px 0;
  font-family: var(--serif); font-size: calc(var(--k) * 22); line-height: 1.28; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 1.5px; background: var(--blue); }
.faq summary::before {
  content: ""; position: absolute; right: 8.25px; top: calc(50% - 8.25px);
  width: 1.5px; height: 18px; background: var(--blue); transition: transform .4s var(--ease), opacity .3s;
}
.faq details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.faq details p { padding: 0 44px 20px 0; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.faq details[open] p { animation: rise .5s var(--ease) both; }

/* ── nota (riga azzurra + testo piccolo, dall'apertura) ── */
.note { margin-top: calc(var(--k) * 34); max-width: 46em; }
.note::before { content: ""; display: block; width: 34px; height: 2px; margin-bottom: 14px; background: var(--blue-line); }
.note p { font-size: 14.5px; line-height: 1.6; color: var(--text); }

/* ── footer ── */
.site-footer { padding: calc(var(--k) * 34) var(--pad) calc(var(--k) * 30); background: var(--paper); }
.site-footer__in {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 13px; color: #535557;
}
.site-footer__in p + p { margin-top: 4px; }
.site-footer__right { text-align: right; }
.site-footer a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-footer a:hover { border-color: currentColor; }

/* ── banner cookie ── */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto; padding: 12px 18px;
  background: var(--dark); color: var(--white); border-radius: 4px;
  font-size: 13.5px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5);
}
.cookie[hidden] { display: none; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie button { border: 0; border-radius: 3px; padding: 7px 16px; cursor: pointer; background: var(--cta-light); color: var(--ink); font: 400 13.5px var(--sans); }

/* ── pagine di servizio (privacy, 404) ── */
.page { max-width: 780px; margin: 0 auto; padding: 64px 24px 80px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.page h2 { margin-top: 36px; font-family: var(--serif); font-weight: 400; font-size: 27px; color: var(--ink); }
.page p, .page li { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--text); }
.page ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.page .btn { margin-top: 28px; }
.page a:not(.btn) { border-bottom: 1px solid var(--blue-line); }
.page--404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

/* ── movimento: entrate morbide (non cambiano l'impaginazione) ── */
@keyframes logo-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.js .logo img { animation: logo-in 1.6s var(--ease) .15s both; }
.js .hero [data-in] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
.js .hero__media img { animation: settle 2.6s var(--ease) both; }
.js .hero__caption { animation: slide-in 1.1s var(--ease) .9s both; }
.js .hero__rule { transform-origin: left; animation: draw .9s var(--ease) 1.1s both; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .col .col__num::after { transform: scaleX(0); transition: transform .8s var(--ease) .35s; }
.js .col.is-in .col__num::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .logo img, .js .hero [data-in], .js .hero__media img, .js .hero__caption, .js .hero__rule { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .col .col__num::after { transform: none; transition: none; }
}

/* ── menu compatto: sotto i 1180 px il menu si apre col pulsante ── */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    margin-left: auto; margin-right: 12px; height: 42px; padding: 0 16px;
    border: 1px solid var(--dark); border-radius: 3px; background: var(--white);
    font: 400 15px var(--sans); color: var(--ink); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch;
    padding: 8px var(--pad) 18px; background: var(--paper); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
}

/* ── tablet ── */
@media (max-width: 1080px) {
  .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cols--4 .col:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ── telefono: ricavato dal design da computer, coi suoi pezzi ── */
@media (max-width: 860px) {
  :root { --k: 1px; --g: 16px; }
  .site-header { height: 68px; }
  .logo { width: 150px; }
  .nav-toggle { margin-right: 8px; padding: 0 12px; }
  .site-header .btn--dark { height: 42px; padding: 0 14px; font-size: 15px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 34px 16px 32px; }
  .hero--page .hero__text { padding: 38px 16px 34px; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .22em; }
  .hero h1 { font-size: 36px; line-height: 1.07; }
  .hero__sub { font-size: 16.5px; }
  .hero__cta { flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; height: 50px; }
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__caption { height: 46px; padding: 0 18px; bottom: 12px; font-size: 18px; }

  .strip { margin: 0 16px; height: 40px; gap: 7px; }
  .strip span { font-size: 9.5px; letter-spacing: .1em; white-space: nowrap; }
  .strip i { font-size: 9.5px; }

  .block { padding: 40px 16px 34px; }
  .block--line { margin: 0 16px; padding: 38px 0 32px; }
  .block + .block--line { padding-top: 38px; }
  .block__head { grid-template-columns: 1fr; row-gap: 14px; }
  .block__head h2 { font-size: 34px; line-height: 1.05; }
  .block__rule { display: none; }
  .block__aside, .block__aside-wrap p { font-size: 16.5px; }
  .cols, .cols--4 { grid-template-columns: 1fr; margin-top: 10px; row-gap: 0; }
  .col, .col + .col, .cols--rows .col:nth-child(3n + 1), .cols--4 .col:nth-child(3) { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .col:first-child, .cols--rows .col:first-child { border-top: 0; }
  .col .col__num { font-size: 38px; }
  .col h3 { font-size: 24px; }
  .col .col__step { font-size: 20px; }

  .studio { grid-template-columns: 1fr; padding: 0 0 36px; row-gap: 26px; }
  .studio__media { aspect-ratio: 16 / 10; }
  .studio__text { padding: 0 16px; }
  .studio h2 { font-size: 32px; }
  .studio__text > p:not(.eyebrow):not(.studio__meta) { font-size: 16.5px; }

  .cta { grid-template-columns: 1fr; padding: 42px 16px 38px; row-gap: 26px; }
  .cta h2 { font-size: 34px; }
  .cta__side { padding-top: 0; }
  .cta__buttons { flex-direction: column; gap: 10px; }
  .cta__buttons .btn { width: 100%; height: 50px; }

  .faq { grid-template-columns: 1fr; margin-top: 12px; }
  .faq summary { padding: 16px 36px 16px 0; font-size: 20px; }
  .faq details p { padding: 0 0 18px; font-size: 16.5px; }

  .site-footer { padding: 24px 16px 96px; }
  .site-footer__in { flex-direction: column; gap: 10px; font-size: 12.5px; }
  .site-footer__right { text-align: left; }
  .page { padding: 40px 16px 64px; }
  .page h1 { font-size: 36px; }
}
@media (max-width: 380px) {
  .site-header .btn--dark { display: none; }
}

/* ── elenco col trattino azzurro (dai numeri delle colonne) ── */
.dash { margin-top: 4px; }
.dash li { position: relative; padding: 7px 0 7px 30px; font-size: 17px; line-height: 1.5; color: var(--text); border-bottom: 1px solid var(--line); }
.dash li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 16px; height: 1.5px; background: var(--blue); }
.block__aside-wrap .dash + p { margin-top: 14px; }
@media (max-width: 860px) { .dash li { font-size: 16.5px; } }
