/* Raffinamento visivo: usa esclusivamente la palette del sito. */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 550; }
.eyebrow { font-size: .875rem; letter-spacing: .11em; }
.site-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(20, 62, 67, .07); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px;
  height: 2px; background: var(--teal); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease-out);
}
.main-nav a:is(:hover, :focus-visible, [aria-current=page])::after { transform: scaleX(1); }
.button {
  border-radius: 100px; padding: 15px 25px;
  transition: background .25s ease, color .25s ease, border-color .25s ease,
    transform .35s var(--ease-out), box-shadow .35s ease;
}
.button:is(:hover, :focus-visible) { box-shadow: 0 7px 20px rgba(8, 122, 117, .12); }
.button .icon, .text-link .icon, .card-link .icon { transition: transform .35s var(--ease-out); }
.button:is(:hover, :focus-visible) .icon,
.text-link:is(:hover, :focus-visible) .icon { transform: translateX(4px); }
.text-link { padding-bottom: 6px; gap: 14px; }
.hero { padding: 58px 0 52px; position: relative; isolation: isolate; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 74px; }
.hero-copy { position: relative; z-index: 2; padding: 12px 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--teal); }
.hero h1 { font-size: clamp(3.4rem, 5.4vw, 5rem); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 29px; }
.hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.065em; }
.hero .lead { font-size: 1.1rem; line-height: 1.8; max-width: 470px; margin-bottom: 31px; }
.hero .actions { gap: 12px; }
.hero-note { margin-top: 27px; font-size: .875rem; }
.hero-visual { padding: 0 0 30px; isolation: isolate; }
.hero-visual::before { inset: 26px -26px 0 32px; background: var(--pale); border-radius: 150px 28px 150px 28px; }
.hero-visual::after {
  content: ""; position: absolute; z-index: -1; inset: -15px 23px 49px -15px;
  border: 1px solid var(--line); border-radius: 150px 28px 150px 28px;
}
.hero-image-frame { border-radius: 140px 24px 140px 24px; overflow: hidden; }
.hero-photo { border-radius: 0; height: 550px; object-position: 48% 50%; }
.photo-caption { left: -38px; bottom: 58px; border: 1px solid var(--line); border-radius: 18px; padding: 20px 25px; box-shadow: 0 18px 48px rgba(20, 62, 67, .1); }
.caption-icon { width: 50px; height: 50px; }
.photo-caption strong { font-size: 1rem; }
.photo-caption span.small { margin-top: 3px; font-size: .875rem; }
.trust-strip { margin-top: 35px; padding: 28px 0; border-bottom: 0; }
.trust-item .icon { width: 28px; height: 28px; }
.trust-item strong { font-size: 1.05rem; letter-spacing: -.02em; }
.trust-item span { font-size: .875rem; }
.section { padding: 106px 0; }
.section-heading { margin-bottom: 46px; }
.section-heading h2, .split h2, .faq-grid h2 { font-size: clamp(2.1rem, 3.55vw, 3.4rem); line-height: 1.1; }
.service-grid { gap: 21px; counter-reset: service; }
.service-card {
  border-radius: 18px; padding: 32px; min-height: 310px; counter-increment: service;
  transition: transform .5s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
}
.service-card::before { content: counter(service, decimal-leading-zero); position: absolute; right: 30px; top: 35px; color: var(--muted); font-size: .875rem; letter-spacing: .04em; }
.service-icon { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 30px; }
.service-card h3 { font-size: 1.45rem; }
.service-card p { font-size: 1rem; }
.card-link { border-top: 1px solid var(--line); padding-top: 19px; font-size: .875rem; }
.card-link .icon { width: 22px; height: 22px; }
.service-card:is(:hover, :focus-within) { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 18px 36px rgba(20, 62, 67, .07); }
.service-card:is(:hover, :focus-within) .card-link .icon { transform: translateX(5px); }
.page-index .service-card:first-child { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-index .service-card:first-child :is(p, .card-link, .service-icon, h3) { color: var(--paper); }
.page-index .service-card:first-child::before { color: var(--line); }
.page-index .service-card:first-child .service-icon { background: var(--teal); }
.page-index .service-card:first-child .card-link { border-color: var(--muted); }
.access-banner { border-radius: 18px; padding: 36px 40px; }
.page-index .access-banner { background: transparent; color: var(--ink); padding: 33px 0 0; border-radius: 0; border-top: 1px solid var(--line); }
.page-index .access-banner p { color: var(--text); }
.page-index .access-banner .button { background: var(--paper); border-color: var(--line); }
.split-image { border-radius: 24px 120px 24px 24px; height: 490px; }
.check-list { gap: 16px; }
.step-grid { gap: 40px; }
.step { position: relative; padding-top: 30px; border-top-color: var(--line); }
.step::before { content: ""; position: absolute; width: 9px; height: 9px; background: var(--teal); border-radius: 50%; left: 0; top: -5px; }
.step-no { font-size: .875rem; margin-bottom: 28px; }
.step h3 { font-size: 1.5rem; max-width: 310px; }
.step p { font-size: 1rem; }
.person-visual { overflow: hidden; border-radius: 18px; margin-bottom: 21px; background: var(--pale); }
.person-visual img, .person-visual .person-initials { margin: 0; border-radius: 0; }
.person-visual img { transition: transform .7s var(--ease-out); }
.person-card:hover .person-visual img { transform: scale(1.035); }
.person-card h3 { font-size: 1.12rem; padding-bottom: 6px; }
.person-card p { font-size: .9rem; line-height: 1.6; }
.team-preview .person-visual { border-radius: 70px 18px 18px 18px; }
.team-preview .person-card:nth-child(even) .person-visual { border-radius: 18px 18px 70px 18px; }
.future-block { background: var(--ink); color: var(--paper); border-radius: 24px; grid-template-columns: 1.08fr 1fr; }
.future-image { min-height: 470px; }
.future-copy { padding: 48px; align-self: center; }
.future-copy h2 { font-size: clamp(2.1rem, 3vw, 2.8rem); line-height: 1.14; }
.future-copy p { color: var(--pale); font-size: 1rem; }
.future-copy .small { font-size: .875rem; }
.future-copy .tag { background: transparent; color: var(--pale); padding: 0 0 9px; border-bottom: 1px solid var(--muted); border-radius: 0; font-size: .875rem; }
.future-copy .text-link { color: var(--paper); margin-top: 6px; }
.future-copy .text-link:hover { color: var(--line); }
.image-label { font-size: .875rem; }
.faq-list details { transition: background .25s ease; }
.faq-list details[open] { background: var(--pale); padding-inline: 20px; border-radius: 12px; border-bottom-color: transparent; }
.faq-list summary { font-size: 1rem; }
.faq-list summary::after { transition: transform .3s var(--ease-out); }
.faq-list details p { font-size: 1rem; }
.contact-band { position: relative; overflow: hidden; isolation: isolate; padding: 70px 0; }
.contact-band::after { content: ""; position: absolute; width: 390px; height: 390px; right: -130px; top: -90px; border: 1px solid var(--muted); border-radius: 50%; z-index: -1; }
.contact-band h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 500; }
.contact-band p { max-width: 570px; }
.page-intro { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 60px; }
.page-intro.soft { background: var(--pale); }
.page-intro::after { content: ""; position: absolute; right: -60px; bottom: -190px; width: 430px; height: 430px; border: 1px solid var(--line); border-radius: 50%; z-index: -1; }
.page-intro h1 { font-size: clamp(2.6rem, 4.6vw, 4.5rem); line-height: 1.1; max-width: 1000px; }
.page-intro p { max-width: 750px; }
.filter { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.filter-count { font-size: .875rem; }
.search-field input { font-size: 1rem; }
.side-card, .access-card, .contact-form { border-radius: 18px; }
.menu-toggle path { transform-origin: 12px 12px; transition: transform .3s var(--ease-out), opacity .2s ease; }
.menu-toggle[aria-expanded=true] .menu-line-top { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.menu-toggle[aria-expanded=true] .menu-line-middle { opacity: 0; }
.menu-toggle[aria-expanded=true] .menu-line-bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }

/* I contenuti sono visibili senza JavaScript. Vengono preparati per l'ingresso
   solo gli elementi ancora fuori schermo; i filtri rimangono indipendenti. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: enter-soft .85s var(--ease-out) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .2s; }
  .hero-copy > :nth-child(5), .hero-visual { animation-delay: .24s; }
  .hero-photo { animation: image-settle 1.2s var(--ease-out) both; }
  .reveal-ready { transition: opacity .75s var(--ease-out), translate .75s var(--ease-out), transform .5s var(--ease-out), box-shadow .4s ease, border-color .3s ease; }
  .reveal-pending { opacity: 0; translate: 0 28px; }
  .reveal-ready:not(.reveal-pending) { transition-delay: var(--reveal-delay, 0ms); }
  .reveal-pending:focus-within { opacity: 1; translate: none; }
  .main-nav.is-open { animation: enter-soft .3s var(--ease-out); }
  .faq-list details[open] p { animation: enter-soft .35s var(--ease-out); }
}
@keyframes enter-soft { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-settle { from { transform: scale(1.045); } to { transform: scale(1); } }

@media (max-width: 1180px) {
  .hero-grid { gap: 44px; }
  .hero h1 { font-size: clamp(3.1rem, 5.4vw, 4rem); }
  .hero-photo { height: 490px; }
  .hero .button { padding-inline: 20px; }
  .photo-caption { left: -17px; padding: 17px; }
  .service-card { padding: 27px; }
  .future-copy { padding: 34px; }
}
@media (max-width: 980px) {
  .hero { padding-top: 44px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(2.9rem, 5.7vw, 3.5rem); }
  .hero-photo { height: 470px; }
  .hero .eyebrow { font-size: .875rem; gap: 8px; }
  .hero .eyebrow::before { width: 18px; }
  .photo-caption { max-width: 100%; gap: 10px; left: -14px; padding: 15px; }
  .photo-caption strong { font-size: .93rem; }
  .caption-icon { width: 40px; height: 40px; flex-shrink: 0; }
  .trust-item { padding-inline: 21px; gap: 12px; }
  .trust-item strong { font-size: .95rem; }
  .section { padding: 80px 0; }
  .split-image { height: 410px; }
  .future-block { grid-template-columns: 1fr 1fr; }
  .future-copy { padding: 29px; }
}
@media (max-width: 720px) {
  .header-cta { padding: 11px 17px; }
  .hero { padding: 32px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { margin-bottom: 23px; }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.1rem); line-height: 1.08; margin-bottom: 23px; }
  .hero .lead { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 25px; max-width: 560px; }
  .hero .actions { flex-direction: row; align-items: stretch; gap: 10px; }
  .hero .button { min-width: 0; font-size: .875rem; padding: 14px 16px; gap: 8px; }
  .hero-note { margin-top: 22px; align-items: flex-start; line-height: 1.6; }
  .hero-note .icon { margin-top: 3px; }
  .hero-visual { margin-inline: 7px; padding-bottom: 24px; }
  .hero-image-frame { border-radius: 85px 18px 85px 18px; }
  .hero-visual::before { inset: 20px -16px 0 22px; border-radius: 85px 18px 85px 18px; }
  .hero-visual::after { inset: -10px 17px 35px -10px; border-radius: 85px 18px 85px 18px; }
  .hero-photo { height: 370px; }
  .photo-caption { left: -7px; bottom: 42px; padding: 14px 17px; max-width: 100%; }
  .photo-caption strong { font-size: .95rem; }
  .trust-strip { margin-top: 19px; padding: 23px 0 4px; }
  .trust-item { padding-inline: 11px; gap: 10px; }
  .trust-item strong { font-size: .875rem; }
  .trust-item span { font-size: .875rem; line-height: 1.45; }
  .trust-item .icon { width: 25px; height: 25px; }
  .section { padding: 65px 0; }
  .section-heading { margin-bottom: 31px; }
  .section-heading h2, .split h2, .faq-grid h2 { font-size: clamp(2rem, 7.7vw, 2.7rem); }
  .service-grid { gap: 14px; }
  .service-card { padding: 23px; min-height: 300px; }
  .service-card::before { right: 23px; top: 29px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 25px; }
  .service-card h3 { font-size: 1.25rem; }
  .service-card p { font-size: 1rem; }
  .service-card .card-link { gap: 7px; font-size: .875rem; }
  .access-banner { padding: 28px; }
  .page-index .access-banner { padding-top: 26px; margin-top: 30px; }
  .split-image { height: 360px; border-radius: 18px 85px 18px 18px; }
  .step-grid { gap: 34px; }
  .step { padding-top: 25px; }
  .step-no { margin-bottom: 17px; }
  .step h3 { max-width: none; }
  .person-visual { margin-bottom: 17px; }
  .person-card h3 { font-size: 1.03rem; }
  .person-card p { font-size: .875rem; }
  .team-preview .person-visual { border-radius: 45px 14px 14px 14px; }
  .team-preview .person-card:nth-child(even) .person-visual { border-radius: 14px 14px 45px 14px; }
  .future-block { grid-template-columns: minmax(0, 1fr); }
  .future-image { min-height: 0; height: 300px; }
  .future-copy { padding: 33px 27px; }
  .future-copy h2 { font-size: 2.25rem; }
  .image-label { font-size: .875rem; left: 12px; right: 12px; width: fit-content; }
  .contact-band { padding: 54px 0; }
  .page-intro { padding-bottom: 40px; }
  .page-intro h1 { font-size: clamp(2.4rem, 8.6vw, 3.3rem); }
  .page-intro p { font-size: 1.0625rem; }
  .filter { font-size: .875rem; }
  .faq-list details[open] { padding-inline: 15px; }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; padding: 27px; }
  .service-card::before { right: 27px; }
  .service-card h3 { font-size: 1.4rem; max-width: none; }
  .service-card p { max-width: none; }
  .service-icon { margin-bottom: 24px; }
}
@media (max-width: 390px) {
  .header-cta { padding: 10px 12px; font-size: .8rem; }
  .hero .actions { flex-direction: column; }
  .hero h1 { font-size: 2.8rem; }
  .hero-photo { height: 325px; }
  .photo-caption { padding: 13px; gap: 9px; }
  .photo-caption strong { font-size: .875rem; }
  .trust-item { padding-inline: 8px; }
  .trust-item span { font-size: .875rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; translate: none; }
  .button:is(:hover, :focus-visible), .service-card:is(:hover, :focus-within),
  .button .icon, .text-link .icon, .card-link .icon,
  .person-card:hover .person-visual img { transform: none !important; }
}
@media print {
  .reveal-pending { opacity: 1 !important; translate: none !important; }
  .hero-copy > *, .hero-visual, .hero-photo { animation: none !important; }
  .hero-visual::before, .hero-visual::after, .page-intro::after { display: none; }
  .hero h1 { font-size: 30pt; }
  .section { padding: 25px 0; }
  .page-index .service-card:first-child, .future-block { background: white; color: var(--ink); }
  .page-index .service-card:first-child :is(p, .card-link, h3), .future-copy p { color: var(--ink); }
}
