@font-face {
  font-family: 'Source Code Pro';
  src: url('../assets/fonts/source-code-pro-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 01. Identità e fondamenta. Modificare qui colori, spazi e caratteri. */
:root {
  --bg: #0b111b;
  --surface: #101925;
  --surface-light: #151f2c;
  --orange: #f4a02b;
  --text: #f3f6fa;
  --muted: #b8c3d1;
  --line: #2a3646;
  --mono: 'Source Code Pro', 'Cascadia Code', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --header-height: 88px;
}
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--sans); }
::selection { color: var(--bg); background: var(--orange); }
a { color: inherit; text-decoration: none; text-underline-offset: .28em; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 2px; }
button { color: inherit; }
h1, h2, h3 { line-height: 1.14; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.5rem; }
em { color: var(--orange); font-style: normal; }
p { text-wrap: pretty; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 76px; }
.eyebrow { font: 400 .72rem/1.6 var(--mono); color: var(--orange); letter-spacing: .065em; text-transform: uppercase; margin-bottom: 22px; }
.mono { font-family: var(--mono); }
.orange { color: var(--orange); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--orange); color: var(--bg); z-index: 100; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: var(--bg); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 14px 22px; font-size: .92rem; font-weight: 650; border: 1px solid transparent; border-radius: 4px; transition: background .2s, transform .2s; text-align: center; }
.button-primary { background: var(--orange); color: var(--bg); }
.button-primary:hover { background: #ffb74f; color: var(--bg); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 12px; font-size: .9rem; }
.text-link > span[aria-hidden] { color: var(--orange); }

/* 02. Navigazione: visibile senza JavaScript, collassabile con JS. */
.site-header { position: relative; top: 0; z-index: 20; background: rgba(11,17,27,.97); border-bottom: 1px solid var(--line); }
.nav-ready .site-header { position: sticky; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; }
.brand { width: 116px; display: block; padding-block: 6px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; width: 100%; padding-bottom: 16px; }
.main-nav a { font-size: .86rem; padding-block: 12px; }
.main-nav .nav-contact { color: var(--orange); border-radius: 3px; padding-inline: 12px; transition: background .2s, color .2s; }
.main-nav .nav-contact:hover, .main-nav .nav-contact:focus-visible { color: var(--bg); background: var(--orange); border-color: var(--orange); }
.nav-contact span { margin-left: 10px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 88px; min-height: 44px; padding: 10px 0 10px 12px; border: 0; background: transparent; font: .8rem var(--mono); }
.menu-lines { position: relative; display: block; width: 22px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-toggle[aria-expanded='true'] .menu-lines { height: 0; border-bottom: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-lines::after { position: absolute; content: ''; top: -1px; width: 22px; border-top: 1px solid currentColor; transform: rotate(90deg); }
.nav-ready .main-nav { display: none; }
.nav-ready .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 0 20px; }
.nav-ready .main-nav.is-open a { min-height: 48px; border-top: 1px solid var(--line); }

/* 03. Hero: il video resta confinato qui, il contenuto è indipendente. */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; z-index: -2; inset: 0; background: #060b13 url('../assets/img/stelle-poster.jpg') center/cover no-repeat; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11,17,27,.78), rgba(11,17,27,.78)), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero-grid { display: grid; gap: 20px; padding-top: 54px; padding-bottom: 32px; }
.hero-copy { min-width: 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
h1 { max-width: 780px; font-size: clamp(2.3rem, 6.2vw, 4.35rem); line-height: 1.065; letter-spacing: -.045em; }
h1 em { display: inline; }
.hero-description { margin-top: 25px; max-width: 540px; color: var(--muted); font-size: 1.025rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 30px; }
.hero-qualification { color: var(--muted); font: .72rem/1.8 var(--mono); margin-top: 28px; }
.hero-qualification span { display: block; }
.hero-art { display: flex; flex-wrap: wrap; gap: 10px; position: relative; min-width: 0; margin-top: 8px; }
.hero-art > :not(.art-label) { display: none; }
.art-grid { position: absolute; inset: 6%; background-image: linear-gradient(#26324155 1px, transparent 1px), linear-gradient(90deg, #26324155 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse, #000 10%, transparent 72%); }
.circuit { position: absolute; width: 100%; height: 100%; stroke: #405063; stroke-width: 1; opacity: .7; }
.circuit .circuit-accent { stroke: var(--orange); stroke-width: 2; }
.circuit .circuit-node { fill: var(--orange); stroke: var(--orange); }
.brand-core { position: absolute; inset: 24% 15%; display: grid; place-items: center; }
.brand-core::before { content: ''; position: absolute; z-index: -1; inset: -25%; background: radial-gradient(ellipse, #f4a02b19, transparent 66%); }
.brand-core img { width: 100%; height: auto; }
.art-label { position: static; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--text); font: .67rem var(--mono); border: 1px solid #364456; border-radius: 3px; background: #101925; white-space: nowrap; }
.art-label span { color: var(--orange); margin-right: 8px; }
.art-label .art-arrow { margin: 0 0 0 8px; }
.art-label:hover, .art-label:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.art-label:hover span, .art-label:focus-visible span { color: var(--bg); }
.art-label { transition: background .2s, border-color .2s, color .2s; }
.label-software { top: 12%; left: 8%; }
.label-automation { top: 66%; right: 0; }
.label-lighting { left: 6%; bottom: 15%; }
.art-caption { position: absolute; bottom: 0; width: 100%; text-align: center; color: var(--muted); font: .65rem var(--mono); }
.hero-bottom { padding-block: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; color: var(--muted); font: .65rem/1.6 var(--mono); border-top: 1px solid #2a364677; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #394657; background: #0b111b99; padding: 10px; border-radius: 50%; color: var(--muted); font: .65rem var(--mono); }
.motion-toggle:hover { color: var(--orange); border-color: var(--orange); }
.motion-symbol { font-size: .9rem; min-width: 13px; }

/* 04. Servizi. */
.section-heading { display: grid; gap: 25px; margin-bottom: 36px; }
.section-heading > p { max-width: 390px; align-self: end; color: var(--muted); }
.service-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; transition: border-color .25s, background .25s; }

.service-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 34px; }
.service-top .mono { font-size: .7rem; }
.service-icon { width: 36px; height: 36px; fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.service-card h3 { font-size: 1.6rem; letter-spacing: -.025em; }
.service-card > p { color: var(--muted); font-size: .94rem; margin-top: 21px; }
.service-card .service-subtitle { font: .69rem/1.6 var(--mono); color: var(--orange); margin-top: 10px; }
.service-lighting > .service-subtitle + p { margin-top: 12px; }
.service-list { list-style: none; padding: 0; margin: 24px 0 0; font-size: .8rem; }
.service-list li { position: relative; padding-left: 16px; margin-top: 9px; }
.service-list li::before { content: ''; position: absolute; width: 4px; height: 4px; background: var(--orange); left: 0; top: .7em; }

/* 05. Metodo. */
.method { background: #0e1722; border-block: 1px solid var(--line); }
.method-grid { display: grid; gap: 48px; }
.method-intro > p:not(.eyebrow) { max-width: 460px; color: var(--muted); margin-top: 22px; }
.method-signature { display: flex; align-items: center; gap: 18px; margin-top: 30px; font: .72rem/1.8 var(--mono); color: var(--text); }
.method-signature > span { color: var(--orange); font-size: 1.8rem; }
.method-steps { list-style: none; padding: 0; margin: 0; }
.method-steps li { display: flex; gap: 22px; padding-block: 25px; border-top: 1px solid var(--line); }
.method-steps li:last-child { border-bottom: 1px solid var(--line); }
.step-number { flex-shrink: 0; color: var(--orange); font: .8rem/1.9 var(--mono); }
.method-steps h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 12px; }
.method-steps p { color: var(--muted); font-size: .94rem; }

/* 06. Esperienze: il gestionale è un caso sintetico, non un prodotto in vendita. */
.experience-grid { display: grid; gap: 18px; }
.project-stack { display: grid; gap: 18px; }
.project { padding: 27px 24px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 0; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; font: .65rem/1.6 var(--mono); color: var(--muted); }
.tag { color: var(--orange); }
.project h3 { font-size: 1.4rem; letter-spacing: -.025em; }
.project > p { color: var(--muted); font-size: .92rem; margin-top: 20px; }
.project-featured { position: relative; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(ellipse at 100% 60%, #f4a02b0a, transparent 65%), var(--surface); }
.project-featured h3 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
.project-featured > p { max-width: 460px; }
.project-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 25px; font: .62rem/1.7 var(--mono); color: var(--muted); }
.project-featured .project-footer { margin-top: auto; }
.project-footer .icon { color: var(--orange); }

/* 07. Percorso e tecnologie. */
.background { border-top: 1px solid var(--line); }
.background-grid { display: grid; gap: 45px; }
.background-intro { max-width: 440px; margin-block: 24px 16px; color: var(--muted); }
.background .text-link { color: var(--orange); }
.education { border-left: 1px solid var(--line); margin-left: 4px; }
.education-item { position: relative; padding: 0 0 32px 25px; }
.education-item:last-child { padding-bottom: 0; }
.education-item::before { content: ''; width: 9px; height: 9px; position: absolute; top: 8px; left: -5px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 5px var(--bg); }
.education-item h3 { font-size: 1.13rem; letter-spacing: -.015em; }
.education-item p { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.education-item .education-detail { font-size: .8rem; margin-top: 8px; }
.certificate-link { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--orange); font-size: .8rem; margin-top: 8px; padding-block: 10px; }
.certificate-link .mono { color: var(--muted); font-size: .6rem; }
.certificate-link .icon { width: 18px; height: 18px; }
/* 08. Contatti e biglietto. */
.contact { position: relative; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 85% 60%, #f4a02b09, transparent 55%), #0e1722; }
.contact-grid { display: grid; align-items: center; gap: 48px; }
.contact-copy h2 { font-size: clamp(2.3rem, 4.5vw, 3.8rem); }
.contact-copy > p:not(.eyebrow) { max-width: 400px; color: var(--muted); margin-block: 25px 30px; }
.business-card-wrap { min-width: 0; }
.business-card { position: relative; overflow: hidden; border: 1px solid #495263; border-radius: 10px; padding: 25px 22px 20px; background: linear-gradient(135deg, #1b2736, #111924 65%); box-shadow: 0 24px 55px #0005; }
.business-card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--orange), #f4a02b22); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.card-heading img { width: 132px; height: auto; }
.card-label { font: .6rem/1.8 var(--mono); color: var(--muted); text-align: right; }
.card-name { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.2; font-weight: 650; letter-spacing: -.03em; }
.card-role { max-width: 380px; font: .7rem/1.9 var(--mono); color: var(--orange); margin-top: 12px; }
.card-freelance { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.card-contacts { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-contacts a { display: flex; align-items: center; gap: 12px; padding-block: 12px; min-height: 48px; font-size: .85rem; }
.card-contacts .icon { color: var(--orange); width: 19px; height: 19px; }
.card-contacts a > span:not(.contact-arrow) { min-width: 0; overflow-wrap: anywhere; }
.contact-arrow { color: var(--orange); margin-left: auto; }
.card-caption { font-size: .6rem; text-align: center; margin-top: 19px; color: var(--muted); }

/* 09. Footer. */
.site-footer { border-top: 1px solid var(--line); padding-block: 35px 18px; }
.footer-main { display: grid; gap: 24px; }
.footer-main p { font-size: .72rem; color: var(--muted); }
.footer-main .footer-brand { font-weight: 650; font-size: 1rem; color: var(--text); margin-bottom: 7px; }
.footer-brand span { color: var(--orange); font-weight: 400; }
.footer-details p + p { margin-top: 5px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font: .6rem/1.7 var(--mono); color: var(--muted); }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; margin-top: -11px; }

/* 10. Progressive enhancement. Le sezioni sono sempre visibili senza JS. */
.reveal.is-pending { opacity: 0; transition: none; }
.reveal.is-visible { opacity: 1; transition: opacity .7s ease; }

/* 11. Tablet e desktop. Nessuna dimensione minima che forzi lo scroll laterale. */
@media (min-width: 600px) {
  .container { width: min(1200px, calc(100% - 64px)); }
  .section { padding-block: 92px; }
  .hero-grid { padding-top: 70px; padding-bottom: 46px; }
  .hero-qualification span { display: inline; }
  
  .business-card { padding: 32px 36px 25px; }
  .card-heading img { width: 158px; }
  .project { padding: 32px; }
}
@media (min-width: 900px) {
  .site-header { position: sticky; }
  .menu-toggle { display: none; }
  .main-nav, .nav-ready .main-nav, .nav-ready .main-nav.is-open { display: flex; flex-direction: row; align-items: center; width: auto; padding: 0; gap: 28px; }
  .nav-ready .main-nav.is-open a { border-top: 0; min-height: 0; }
  .main-nav .nav-contact { padding: 9px 16px; border: 1px solid #805b2c; border-radius: 3px; margin-left: 8px; }
  .hero-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; padding-block: 78px 60px; }
  .hero-art { display: block; align-self: center; aspect-ratio: 1; margin-top: 0; }
  .hero-art > :not(.art-label) { display: block; }
  .hero-art > .brand-core { display: grid; }
  .art-label { position: absolute; }
  .hero-media::after { background: linear-gradient(90deg, rgba(11,17,27,.82), rgba(11,17,27,.76) 52%, rgba(11,17,27,.28)), linear-gradient(0deg, var(--bg), transparent 40%); }
  h1 { font-size: clamp(3rem, 4.65vw, 4.2rem); }
  .section-heading { grid-template-columns: 1.3fr 1fr; gap: 70px; margin-bottom: 46px; }
  .section-heading > p { justify-self: end; }
  .service-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  
  .service-card h3 { font-size: 1.55rem; }
  .method-grid { grid-template-columns: 1fr 1fr; gap: 85px; }
  .method-steps { padding-top: 8px; }
  .method-steps li { padding-block: 30px; }
  .experience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-featured { padding: 38px; }
  .background-grid { grid-template-columns: 1fr 1fr; gap: 85px; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 85px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-details { justify-self: end; }
}
@media (min-width: 1200px) {
  .section { padding-block: 110px; }
  .hero-grid { gap: 55px; }
  .hero-art { margin-right: -15px; }
  
  .service-card h3 { font-size: 1.7rem; }
  .hero-description { font-size: 1.1rem; }
}
@media (max-width: 374px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 2.1rem; }
  .actions .button { width: 100%; font-size: .8rem; padding-inline: 14px; gap: 10px; }
  .card-label { display: none; }
  .business-card { padding-inline: 18px; }
  .card-contacts a { font-size: .76rem; gap: 9px; }
  .hero-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
@media print {
  body { background: white; color: #111; font-size: 11pt; }
  .site-header, .hero-media, .hero-art, .hero-bottom, .skip-link, .motion-toggle, .actions, .contact-copy .button { display: none !important; }
  .section, .hero-grid { padding-block: 25px; }
  .container { width: 100%; }
  .service-grid, .experience-grid, .background-grid, .contact-grid, .method-grid { display: block; }
  .service-card, .project, .business-card, .method, .contact { background: white; color: #111; box-shadow: none; break-inside: avoid; margin-bottom: 20px; }
  p, .eyebrow, em, .card-role, .card-freelance, .project-meta, .footer-main p { color: #333 !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  h1 { font-size: 30pt; } h2 { font-size: 23pt; }
}

/* Revisione: casi retail e informativa essenziale. */
.retail-projects { display: grid; gap: 26px; margin-block: 32px; }
.retail-projects > div { border-top: 1px solid var(--line); padding-top: 24px; }
.retail-projects h4 { font-size: 1rem; line-height: 1.4; font-weight: 600; margin: 0 0 10px; }
.retail-projects p { color: var(--muted); font-size: .9rem; }
.project-reference { text-decoration: underline; text-underline-offset: 4px; }
.project-reference:hover { color: var(--text); }
.contact-copy > p.contact-privacy { font-size: .72rem; margin-top: 18px; margin-bottom: 0; }
.contact-privacy a { text-decoration: underline; }
.privacy-header { border-bottom: 1px solid var(--line); }
.privacy-header .header-inner { flex-wrap: nowrap; }
.privacy-page { max-width: 800px; padding-block: 60px 90px; }
.privacy-page h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.privacy-page .privacy-lead { font-size: 1.05rem; color: var(--muted); margin-top: 24px; }
.privacy-page h2 { font-size: 1.35rem; margin: 38px 0 14px; letter-spacing: -.02em; }
.privacy-page p, .privacy-page ul { color: var(--muted); margin-bottom: 16px; }
.privacy-page li { margin-bottom: 12px; }
.privacy-page ul { padding-left: 22px; }
.privacy-page a { color: var(--orange); text-decoration: underline; overflow-wrap: anywhere; }
.privacy-page strong { color: var(--text); }
.privacy-page .eyebrow { color: var(--orange); }

/* Testi e invito comune ai tre servizi. */
.services-action { display: flex; justify-content: center; margin-top: 30px; }
.service-card .service-context { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; font-size: .84rem; }
.method-intro h2 { font-size: clamp(2rem, 2.8vw, 2.65rem); }
.contact-copy h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }

/* Revisione 6: identità raggruppata, servizi espandibili, esperienze equilibrate. */
.hero-identity { margin-top: 26px; }
.hero-identity .eyebrow { margin-bottom: 5px; color: var(--text); }
.hero-identity .hero-qualification { margin-top: 0; }
.section .eyebrow { display: flex; align-items: center; gap: 10px; }
.service-grid { align-items: start; }
.service-card { padding: 0; overflow: hidden; }
.service-overview { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; }
.service-overview > p { margin-top: 21px; font-size: .94rem; color: var(--muted); }
.service-card h3 .service-subtitle { display: block; font: .85rem/1.6 var(--mono); color: var(--orange); margin-top: 7px; }
.service-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin-top: auto; padding-top: 25px; border: 0; background: none; color: var(--orange); text-align: left; font: .75rem/1.5 var(--mono); cursor: pointer; }
.service-toggle::after { content: ''; position: absolute; inset: 0; }
.service-toggle:focus-visible { outline: none; }
.service-overview:has(.service-toggle:focus-visible) { outline: 2px solid var(--orange); outline-offset: -5px; }
.detail-symbol { font-size: 1.4rem; }
.service-details > div { overflow: hidden; min-height: 0; }
.service-details p { border-top: 1px solid var(--line); margin: 0 24px 24px; padding-top: 20px; font-size: .86rem; color: var(--muted); }
.service-details.is-collapsible { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .32s ease, visibility .32s; }
.service-details.is-open { grid-template-rows: 1fr; visibility: visible; }
.service-card.is-interactive { transition: opacity .7s ease, border-color .2s, background .2s, transform .2s; }
.service-card:focus-within { border-color: var(--orange); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card.is-interactive:has(.service-overview:hover) { transform: translateY(-3px); border-color: #876031; background: #131e2b; }
}
.step-icon { flex-shrink: 0; color: var(--orange); width: 26px; height: 26px; margin-top: 2px; }
.experience-grid .project { display: flex; flex-direction: column; }
.experience-grid .project-footer { margin-top: auto; }
.experience-grid .project > p { margin-bottom: 25px; }
.experience-note { color: var(--muted); font-size: .78rem; margin: 22px 0 28px; max-width: 850px; }
.cern-project { display: grid; gap: 16px; }
.cern-project .project-meta { margin-bottom: 16px; }
.cern-project > p { margin-top: 0; }
.button-detail { display: block; font-size: .75rem; line-height: 1.5; font-weight: 400; margin-top: 3px; }
.contact-copy .button { max-width: 100%; }
.service-grid > .is-visible:nth-child(2), .experience-grid > .is-visible:nth-child(2) { transition-delay: .07s; }
.service-grid > .is-visible:nth-child(3), .experience-grid > .is-visible:nth-child(3) { transition-delay: .14s; }
@media (min-width: 900px) {
  .service-overview { padding: 30px 25px 25px; }
  .service-details p { margin-inline: 25px; }
  .service-overview h3 { min-height: 2.8em; }
  .experience-grid .project { padding: 28px 24px; }
  .cern-project { grid-template-columns: 1fr 1.45fr; gap: 45px; align-items: center; }
}
@media print {
  .service-toggle { display: none; }
  .service-details.is-collapsible { display: block; visibility: visible; }
  .service-overview { min-height: 0 !important; }
}

/* Revisione 7: collegamenti sul circuito e comparsa progressiva dei contatti. */
.cern-project { margin-top: 24px; }
.contact-action .contact-privacy { font-size: .72rem; color: var(--muted); margin-top: 18px; }
@media (min-width: 900px) {
  .label-software { top: 18%; left: 10%; transform: none; }
}
