/* Inner pages: editorial compositions, existing imagery and brand assets.
   Colours inherit the measured dark / light / high-contrast site tokens.
   Illustrations never carry live text; captions stay on the page background. */

.iv-hero{padding-bottom:clamp(3.5rem,7vw,6rem)}
.iv-hero::after{display:none}
.iv-hero__grid{display:grid;gap:2.5rem;align-items:center}
.iv-hero__grid>*{min-width:0}
.iv-hero h1{font-size:clamp(2rem,4.6vw,4.25rem);max-width:20ch;letter-spacing:0}
.iv-hero .lead{max-width:35rem}
.iv-hero__action{margin:1.75rem 0 0}
.iv-hero figure{margin:0}
.iv-art{margin:0;min-width:0}
.iv-art>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border:1px solid var(--line)}
.iv-art__light{display:none}
:root[data-theme="light"] .iv-art__dark{display:none}
:root[data-theme="light"] .iv-art__light{display:block}
.iv-art figcaption{padding:1rem 0 0;border-bottom:1px solid var(--line);padding-bottom:1rem;color:var(--muted);font-size:var(--fs-small)}
.iv-hero--ai .iv-art,.iv-hero--antex .iv-art{position:relative}
.iv-hero--ai .iv-art::before,.iv-hero--antex .iv-art::before{content:"";display:block;position:absolute;left:1rem;right:-1rem;top:-1rem;bottom:4rem;border:1px solid var(--line);z-index:-1}

/* A real product, framed as a piece of the visitor experience. */
.iv-welcome{border-block:1px solid var(--line);min-width:0}
.iv-welcome__stage{position:relative;isolation:isolate;overflow:hidden;background:var(--bg-alt);padding:1rem 0 0}
.iv-welcome__stage>img{position:relative;width:100%;height:clamp(15rem,35vw,27rem);object-fit:contain;object-position:center bottom}
.iv-welcome__ring{position:absolute;inset:12% 14% 10%;border:1px solid var(--line-strong);border-radius:50%;transform:rotate(-18deg)}
.iv-welcome__ring::after{content:"";position:absolute;inset:13%;border:1px solid var(--line);border-radius:50%}
.iv-welcome figcaption,.iv-web figcaption,.iv-identity figcaption{display:grid;gap:.35rem;padding:1.2rem 0}
.iv-welcome figcaption span,.iv-web figcaption span,.iv-identity figcaption>span{font-size:var(--fs-small);color:var(--muted)}
.iv-welcome figcaption b,.iv-web figcaption b,.iv-identity figcaption b{font-family:var(--ff-display);font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.3}

/* Steps become a route with generous spacing, rather than four boxed cards. */
.iv-journey{border:0;background:none;gap:2rem;position:relative}
.iv-journey li,.section--alt .iv-journey li{position:relative;background:none;padding:1.5rem 0 0;border-top:1px solid var(--line);gap:.75rem;min-width:0}
.iv-journey li::before{font-size:3rem;color:var(--accent);margin-bottom:.5rem}
.iv-journey li::after{content:"";position:absolute;top:-4px;left:0;width:7px;height:7px;background:var(--accent-ui);border-radius:50%}
.iv-journey p{line-height:1.75}
/* Telefono: elenco compatto, il numero a sinistra accanto a titolo e testo (la regola base è in .steps) */
@media (max-width:699px){
  .iv-journey{gap:0}
  .iv-journey li,.section--alt .iv-journey li{padding:1.15rem 0;gap:.3rem 1rem;border-top:0;border-bottom:1px solid var(--line)}
  .iv-journey li:first-child{border-top:1px solid var(--line)}
  .iv-journey li::before{margin:0;font-size:1.6rem}
  .iv-journey li::after{display:none}
  .iv-journey p{line-height:1.6}
}
.iv-evidence{display:grid;gap:1.5rem;min-width:0}
.iv-evidence .checks li:last-child{padding-bottom:0}

/* An abstract, deliberately unbranded interface: design craft, not a fake case study. */
.iv-web{min-width:0;border-bottom:1px solid var(--line)}
.iv-web__scene{position:relative;isolation:isolate;aspect-ratio:1.3;background:var(--bg-alt);overflow:hidden;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:3rem 3rem}
.iv-web__desktop{position:absolute;left:6%;top:13%;width:80%;height:67%;border:1px solid var(--line-strong);background:var(--bg);transform:rotate(-4deg)}
.iv-web__bar{display:flex;gap:4px;align-items:center;padding:4% 5%;border-bottom:1px solid var(--line)}
.iv-web__bar>i{width:4px;height:4px;flex-shrink:0;border:1px solid var(--muted);border-radius:50%}
.iv-web__bar>span{margin-left:auto;font-family:var(--ff-display);font-size:clamp(.55rem,1.2vw,.75rem);line-height:1;color:var(--muted)}
.iv-web__layout{display:grid;grid-template-columns:1fr 1fr;gap:8%;height:53%;padding:8%}
.iv-web__intro{padding-top:8%}
.iv-web__intro>span{display:block;width:100%;height:8%;min-height:3px;background:var(--text);margin-bottom:10%}
.iv-web__intro>span:nth-child(2){width:65%}
.iv-web__intro>b{display:block;margin-top:16%;width:38%;height:17%;background:var(--accent-fill)}
.iv-web__shape{border:1px solid var(--accent-ui);position:relative;transform:skewX(-12deg)}
.iv-web__shape::before{content:"";position:absolute;inset:13%;border:1px solid var(--line-strong)}
.iv-web__shape::after{content:"";position:absolute;right:-12%;top:20%;width:45%;height:70%;border:1px solid var(--accent-ui);background:var(--bg)}
.iv-web__tiles{display:flex;gap:6%;padding:0 8%}
.iv-web__tiles>i{width:30%;aspect-ratio:1.5;border:1px solid var(--line-strong);background:var(--bg-alt)}
.iv-web__mobile{position:absolute;right:5%;bottom:7%;width:27%;height:62%;border:1px solid var(--line-strong);background:var(--card);transform:rotate(6deg)}
.iv-web__mobile .iv-web__bar{padding:15% 8%}
.iv-web__mobile-art{margin:13%;height:27%;border:1px solid var(--accent-ui);transform:skewY(-7deg)}
.iv-web__lines{margin:20% 14% 0}
.iv-web__lines>i{display:block;height:3px;background:var(--muted);margin-bottom:15%}
.iv-web__lines>i:nth-child(2){width:65%}
.iv-web__lines>b{display:block;width:45%;height:8px;background:var(--accent-fill);margin-top:20%}
.iv-web__corner{position:absolute;width:1.25rem;height:1.25rem;border-color:var(--accent-ui);border-style:solid;z-index:-1}
.iv-web__corner--a{top:6%;left:4%;border-width:1px 0 0 1px}
.iv-web__corner--b{right:4%;bottom:6%;border-width:0 1px 1px 0}
.iv-services{counter-reset:iv-service;background:none;border:0;gap:0 3rem;margin-top:2rem}
.iv-services .type{position:relative;counter-increment:iv-service;background:none;padding:2rem 0;border-top:1px solid var(--line);grid-template-columns:auto minmax(0,1fr);gap:.75rem 1.25rem}
.iv-services .type::before{content:"0" counter(iv-service);grid-column:1/-1;font-family:var(--ff-display);font-size:.875rem;color:var(--muted);margin-bottom:.75rem}
.iv-services .type svg{width:30px;height:30px;grid-row:2/span 2}
.iv-services .type h3{font-size:clamp(1.3rem,2.3vw,1.75rem)}
.iv-services .type p{line-height:1.75;max-width:30rem}
.iv-design{position:relative;min-width:0;border:1px solid var(--line);padding:clamp(1.5rem,5vw,3rem);display:grid;gap:1.5rem;background:var(--bg-alt)}
.iv-design__sample{font-family:var(--ff-display);font-size:clamp(4rem,14vw,9rem);line-height:1.1;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.iv-design__sample>span{color:var(--accent);font-size:.6em;font-weight:400}
.iv-design__sample>span svg{width:1em;height:1em}
.iv-design__swatches{display:flex;gap:.5rem}
.iv-design__swatches i{width:2rem;height:2rem;border:1px solid var(--line-strong);background:var(--text)}
.iv-design__swatches i:nth-child(2){background:var(--bg)}
.iv-design__swatches i:nth-child(3){background:var(--accent-fill)}
.iv-design ul{list-style:none;border-top:1px solid var(--line);padding-top:1.5rem}
.iv-design li{color:var(--muted);font-size:var(--fs-small);padding:.3rem 0}

/* The company introduction uses the actual monogram, never invented office photos. */
.iv-identity{min-width:0;border-bottom:1px solid var(--line)}
.iv-identity__mark{position:relative;isolation:isolate;display:grid;place-items:center;padding:2.5rem 1.5rem;min-height:clamp(15rem,34vw,27rem);overflow:hidden;background:var(--bg-alt)}
.iv-identity__mark>img{width:42%;max-width:15rem;position:relative}
.iv-identity__mark>span{position:absolute;inset:9% 10%;border:1px solid var(--line-strong);transform:skewX(-16deg)}
.iv-identity__mark>span::before,.iv-identity__mark>span::after{content:"";position:absolute;inset:12%;border:1px solid var(--line)}
.iv-identity__mark>span::after{inset:-18% 24%;border-block:0}
.iv-identity figcaption b{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1.5rem}
.iv-identity figcaption b>span{color:var(--accent)}
.iv-identity figcaption b>span svg{width:1.1em;height:1.1em}
.iv-stats{border-top:0;background:none;gap:1rem 2rem}
.iv-stats .stat{padding:2rem 0}
.iv-stats .stat b{color:var(--text)}
.iv-ecosystem{min-width:0}
.iv-ecosystem>a{display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:1.5rem 0;border-top:1px solid var(--line);text-decoration:none}
.iv-ecosystem>a>svg{width:22px;height:22px}
.iv-ecosystem__n{font-size:.8125rem;color:var(--muted);align-self:start;padding-top:.4rem}
.iv-ecosystem b{font-family:var(--ff-display);font-size:clamp(1.2rem,2.6vw,1.75rem);line-height:1.2}
.iv-ecosystem small{display:block;color:var(--muted);font-size:var(--fs-small);line-height:1.7;margin-top:.5rem}
.iv-ecosystem>a:hover b{color:var(--accent)}
.iv-ecosystem>p{padding-top:1.5rem;margin:0;border-top:1px solid var(--line);font-size:var(--fs-small);color:var(--muted)}
.iv-ecosystem>p b{font:inherit;color:var(--text)}

.iv-source-panel{border:1px solid var(--line);padding:clamp(1.25rem,4vw,2rem);min-width:0;background:var(--bg)}
.iv-source-panel__flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:2rem}
.iv-source-panel__flow>span{font-size:.8125rem;color:var(--muted);text-align:center;padding:1rem .25rem;border:1px solid var(--line)}
.iv-source-panel__flow>b{grid-column:1/-1;justify-self:center;padding-top:1.5rem;border-top:1px solid var(--line);font-family:var(--ff-display);font-size:1.75rem;color:var(--antex);margin-top:.75rem}
.iv-source-panel .checks li:last-child{padding-bottom:0}

/* A readable magazine layout, with navigation to the three article topics. */
.iv-article{display:grid;gap:3rem}
.iv-article__aside{min-width:0}
.iv-article__aside .eyebrow{color:var(--muted);font-size:.75rem}
.iv-article__aside .eyebrow::before{display:none}
.iv-article__aside ol{list-style:none;border-top:1px solid var(--line)}
.iv-article__aside li{border-bottom:1px solid var(--line)}
.iv-article__aside a{display:block;padding:.85rem 0;font-size:var(--fs-small);text-decoration:none}
.iv-article__aside a:hover{text-decoration:underline;color:var(--accent)}
.iv-article__note{margin:2.5rem 0 0;font-family:var(--ff-display);font-size:clamp(1.4rem,2.8vw,2.2rem);line-height:1.25;max-width:16ch;text-wrap:balance}
.iv-article .prose{min-width:0;max-width:46rem}
.iv-article .prose>p:first-child{font-size:clamp(1.15rem,2vw,1.45rem);line-height:1.7;padding-bottom:2rem;border-bottom:1px solid var(--line)}
.iv-article .prose h2{padding-top:1rem}

@media(min-width:700px){
  .iv-journey{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iv-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iv-services:not(.iv-services--three) .type:first-child{grid-row:span 2;align-content:start;padding-right:2rem}
  .iv-services:not(.iv-services--three) .type:first-child svg{width:4rem;height:4rem;grid-column:1/-1;grid-row:auto;margin:1.5rem 0}
  .iv-services:not(.iv-services--three) .type:first-child h3,.iv-services:not(.iv-services--three) .type:first-child p{grid-column:1/-1}
  .iv-services:not(.iv-services--three) .type:first-child h3{font-size:clamp(2rem,4vw,3.5rem)}
}
@media(min-width:980px){
  .iv-hero__grid{grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:3.5rem}
  .iv-hero--article .iv-hero__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .iv-hero--article h1{font-size:clamp(2.5rem,4.4vw,4.1rem)}
  .iv-journey{grid-template-columns:repeat(4,minmax(0,1fr));gap:2.5rem}
  .iv-journey li:nth-child(even){margin-top:2.5rem}
  .iv-services--three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .iv-article{grid-template-columns:minmax(0,.7fr) minmax(0,1.7fr);gap:6rem}
  .iv-article__aside{align-self:start}
}
@media(max-width:360px){
  .iv-hero h1{font-size:1.9rem}
  .iv-ecosystem>a{grid-template-columns:1rem minmax(0,1fr) 1rem;gap:.6rem}
  .iv-ecosystem b{font-size:1.05rem}
  .iv-source-panel{padding:1rem}
}
@media(max-width:979px){
  .iv-hero--ai .iv-art::before,.iv-hero--antex .iv-art::before{right:0}
}
@media(prefers-reduced-motion:no-preference){
  html:not([data-motion="reduce"]) .iv-web__desktop,
  html:not([data-motion="reduce"]) .iv-web__mobile{transition:transform .8s ease}
  html:not([data-motion="reduce"]) .iv-web:hover .iv-web__desktop{transform:rotate(-2deg) translateY(-.2rem)}
  html:not([data-motion="reduce"]) .iv-web:hover .iv-web__mobile{transform:rotate(3deg) translateY(.2rem)}
}
:root[data-theme="contrast"] .iv-web__scene{background-image:none}
:root[data-theme="contrast"] .iv-art>img{border-color:var(--line)}
:root[data-theme="contrast"] .iv-welcome__ring,
:root[data-theme="contrast"] .iv-identity__mark>span{display:none}
