feat: rework grafico 1.1.0, palchi scuri e movimento legato allo scorrimento
Il committente ha chiesto un sito più moderno, con pagine ed effetti di scorrimento di alto livello. La palette e i font restano gli stessi; cambia il linguaggio visivo (DECISIONS.md, D-058): - palchi navy arrotondati per hero, testate, credenziali, banda CTA e footer; servizi in griglia bento con la prima card in evidenza; nuova sezione «Come lavoriamo»; fascia di numeri ricavati dai dati; menu mobile a tutto schermo; indice laterale fermo nelle pagine legali, che segue la lettura (toc.ts); - movimento solo CSS (scroll-driven animations e View Transitions), dentro @supports e prefers-reduced-motion: senza supporto o con «riduci movimento» tutto resta fermo e visibile. La comparsa usa solo spostamento e scala, mai l'opacità, che lasciava semitrasparente il testo sul bordo della finestra; - budget di 120 KB rispettato con lo scoping a classi, il marchio richiamato con <use> e gli stili di checklist e documenti in file separati; - compatibilità con Safari/iOS 15 e Firefox: overflow: clip in un blocco @supports separato (il minificatore eliminava la riserva hidden), nessun :has() per gli stacchi tra i palchi; - stampa dei palchi in nero su bianco, dichiarazione di accessibilità e decisioni aggiornate (D-042 superata in parte, deroga a §2.6 per toc.ts). Testi nuovi da far confermare allo Studio: TODO-STUDIO.md, C14. Verifiche: eslint, prettier, astro check, build, html-validate, link, conformità (1467 controlli), Playwright e2e e a11y (90 superati), Lighthouse (prestazioni 98-100, accessibilità, best practice e SEO 100), pacchetto v1.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f9f5a43a14
commit
52b0693185
47 files changed
+2231
-485
No files matched your search
@@ -12,12 +12,14 @@ interface Props {
|
||||
icona: string;
|
||||
/** id del professionista, usato dai controlli automatici sui titoli. */
|
||||
personaId?: string;
|
||||
/** `dark` = su un palco navy (vetro smerigliato). */
|
||||
tone?: 'light' | 'dark';
|
||||
}
|
||||
|
||||
const { testo, professionista, icona, personaId } = Astro.props;
|
||||
const { testo, professionista, icona, personaId, tone = 'light' } = Astro.props;
|
||||
---
|
||||
|
||||
<li class="badge" data-person={personaId}>
|
||||
<li class:list={['badge', `badge--${tone}`]} data-person={personaId}>
|
||||
<span class="badge__icon">
|
||||
<Icon name={icona} size={20} />
|
||||
</span>
|
||||
@@ -30,21 +32,29 @@ const { testo, professionista, icona, personaId } = Astro.props;
|
||||
<style>
|
||||
.badge {
|
||||
display: grid;
|
||||
grid-template-columns: 40px minmax(0, 1fr);
|
||||
gap: var(--space-3);
|
||||
grid-template-columns: 44px minmax(0, 1fr);
|
||||
gap: var(--space-4);
|
||||
align-items: start;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
padding: var(--space-5);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
transition:
|
||||
border-color 260ms var(--ease-out),
|
||||
background-color 260ms var(--ease-out),
|
||||
transform 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.badge:hover {
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.badge__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 14px;
|
||||
background: var(--navy-800);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
@@ -56,10 +66,10 @@ const { testo, professionista, icona, personaId } = Astro.props;
|
||||
|
||||
.badge__text {
|
||||
display: block;
|
||||
margin: 0 0 0.4rem;
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--ink-700);
|
||||
line-height: 1.45;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.badge__who {
|
||||
@@ -70,4 +80,27 @@ const { testo, professionista, icona, personaId } = Astro.props;
|
||||
text-transform: uppercase;
|
||||
color: var(--navy-700);
|
||||
}
|
||||
|
||||
.badge--dark {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.badge--dark:hover {
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
border-color: rgba(227, 200, 120, 0.45);
|
||||
}
|
||||
|
||||
.badge--dark .badge__icon {
|
||||
background: rgba(227, 200, 120, 0.12);
|
||||
box-shadow: inset 0 0 0 1px rgba(227, 200, 120, 0.3);
|
||||
}
|
||||
|
||||
.badge--dark .badge__text {
|
||||
color: var(--on-dark);
|
||||
}
|
||||
|
||||
.badge--dark .badge__who {
|
||||
color: var(--gold-300);
|
||||
}
|
||||
</style>
|
||||
@@ -28,15 +28,16 @@ const all = [{ name: 'Home', href: '/' }, ...items];
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
/* il percorso sta nella testata navy delle pagine interne (PageHead) */
|
||||
.breadcrumb ol {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem 0.5rem;
|
||||
margin: 0 0 var(--space-4);
|
||||
margin: 0 0 var(--space-5);
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark-muted);
|
||||
}
|
||||
|
||||
/* separatore in coda alla voce precedente: andando a capo resta sulla prima riga;
|
||||
@@ -46,20 +47,20 @@ const all = [{ name: 'Home', href: '/' }, ...items];
|
||||
content: '/' / '';
|
||||
/* lo spazio del testo dopo il link (≈0,25em) + questo margine = gap dopo la barra */
|
||||
margin-left: 0.25rem;
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark-muted);
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark-muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.breadcrumb a:hover {
|
||||
color: var(--navy-900);
|
||||
color: var(--white);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.breadcrumb [aria-current='page'] {
|
||||
color: var(--ink-700);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
</style>
|
||||
@@ -214,16 +214,28 @@ const c = modulo.campi;
|
||||
<style>
|
||||
.mail-card,
|
||||
.contact-form {
|
||||
padding: var(--space-6);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: clamp(1.5rem, 3vw, 2.5rem);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
/* filo oro in alto */
|
||||
.mail-card::before,
|
||||
.contact-form::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
height: 4px;
|
||||
background: var(--gold-gradient);
|
||||
}
|
||||
|
||||
.mail-card h2,
|
||||
.contact-form h2 {
|
||||
font-size: 1.5rem;
|
||||
font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
@@ -307,9 +319,9 @@ const c = modulo.campi;
|
||||
.field input,
|
||||
.field textarea {
|
||||
width: 100%;
|
||||
min-height: var(--tap);
|
||||
padding: 0.75rem 0.95rem;
|
||||
border-radius: var(--radius-sm);
|
||||
min-height: 3rem;
|
||||
padding: 0.8rem 1rem;
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid #b9c3cf;
|
||||
background: var(--white);
|
||||
color: var(--ink-900);
|
||||
|
||||
@@ -16,7 +16,7 @@ const Heading = headingLevel === 2 ? 'h2' : 'h3';
|
||||
const elencoSedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipale.id)];
|
||||
---
|
||||
|
||||
<div class="info-stack">
|
||||
<div class="info-stack reveal-group">
|
||||
{sedi && (
|
||||
<section class="info" aria-labelledby="info-sedi">
|
||||
<Heading id="info-sedi">
|
||||
@@ -99,7 +99,7 @@ const elencoSedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePr
|
||||
padding: var(--space-5);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
---
|
||||
/** Banda navy di invito all'azione (brief §6.3): titolo, testo, preventivo e telefono. */
|
||||
/**
|
||||
* Banda di invito all'azione (brief §6.3) come «palco» navy arrotondato: titolo, testo,
|
||||
* preventivo e telefono. Anelli oro decorativi che ruotano piano durante lo scorrimento.
|
||||
*/
|
||||
import { studio } from '../data/studio';
|
||||
import { ctaBand } from '../data/testi';
|
||||
import { telHref, telText } from '../lib/format';
|
||||
@@ -8,18 +11,23 @@ import Icon from './Icon.astro';
|
||||
const telefono = studio.telefoni[0];
|
||||
---
|
||||
|
||||
<section class="cta-band" aria-labelledby="cta-band-titolo">
|
||||
<div class="container cta-band__inner">
|
||||
<div>
|
||||
<section class="cta-band stage" aria-labelledby="cta-band-titolo">
|
||||
<div class="stage__decor" aria-hidden="true">
|
||||
<span class="cta-band__ring cta-band__ring--1"></span>
|
||||
<span class="cta-band__ring cta-band__ring--2"></span>
|
||||
</div>
|
||||
<div class="container cta-band__inner reveal">
|
||||
<div class="cta-band__text">
|
||||
<p class="eyebrow">{ctaBand.eyebrow}</p>
|
||||
<h2 id="cta-band-titolo">{ctaBand.titolo}</h2>
|
||||
<p>{ctaBand.testo}</p>
|
||||
</div>
|
||||
<div class="cta-band__actions">
|
||||
<a class="btn btn--gold" href={ctaBand.pulsante.href}>
|
||||
<a class="btn btn--gold btn--lg" href={ctaBand.pulsante.href}>
|
||||
{ctaBand.pulsante.label}
|
||||
<Icon name="arrow-right" size={18} />
|
||||
</a>
|
||||
<a class="btn btn--ghost-light" href={telHref(telefono)}>
|
||||
<a class="btn btn--ghost-light btn--lg" href={telHref(telefono)}>
|
||||
<Icon name="phone" size={18} />
|
||||
<span class="visually-hidden">Telefono</span>
|
||||
{telText(telefono)}
|
||||
@@ -29,72 +37,81 @@ const telefono = studio.telefoni[0];
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.cta-band {
|
||||
--focus-ring: var(--gold-500);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: var(--navy-800);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.cta-band::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 420px;
|
||||
height: 420px;
|
||||
border-radius: 50%;
|
||||
border: 60px solid rgba(184, 144, 46, 0.18);
|
||||
right: -140px;
|
||||
top: -180px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cta-band__inner {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-6);
|
||||
padding-block: var(--space-8);
|
||||
}
|
||||
|
||||
.cta-band__inner > :first-child {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: end;
|
||||
gap: var(--space-6) var(--space-8);
|
||||
padding-block: clamp(3.5rem, 7vw, 6rem);
|
||||
}
|
||||
|
||||
.cta-band h2 {
|
||||
color: var(--white);
|
||||
margin-bottom: 0.4rem;
|
||||
font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.3rem);
|
||||
margin-bottom: var(--space-3);
|
||||
font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
|
||||
max-width: 18ch;
|
||||
}
|
||||
|
||||
.cta-band p {
|
||||
.cta-band__text > p:last-child {
|
||||
margin: 0;
|
||||
max-width: 40rem;
|
||||
color: var(--on-dark);
|
||||
font-size: var(--fs-lg);
|
||||
}
|
||||
|
||||
.cta-band__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-3);
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/* su desktop l'anello è ancorato al bordo del contenuto (non della finestra), sopra e a
|
||||
destra dei pulsanti, a qualsiasi larghezza (mockup 01) */
|
||||
@media (min-width: 60.001em) {
|
||||
.cta-band::before {
|
||||
right: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2 - 330px);
|
||||
top: -300px;
|
||||
.cta-band__ring {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(227, 200, 120, 0.35);
|
||||
}
|
||||
|
||||
.cta-band__ring--1 {
|
||||
width: 34rem;
|
||||
height: 34rem;
|
||||
right: -10rem;
|
||||
top: -16rem;
|
||||
border-width: 48px;
|
||||
border-color: rgba(184, 144, 46, 0.12);
|
||||
}
|
||||
|
||||
.cta-band__ring--2 {
|
||||
width: 22rem;
|
||||
height: 22rem;
|
||||
right: 2rem;
|
||||
top: -9rem;
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
@keyframes cta-spin {
|
||||
to {
|
||||
rotate: 40deg;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@supports (animation-timeline: view()) {
|
||||
.cta-band__ring {
|
||||
animation: cta-spin linear both;
|
||||
animation-timeline: view();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.cta-band__inner {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
align-items: start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 40em) {
|
||||
.cta-band__actions .btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -8,6 +8,7 @@ import { denominazione, sedePrincipale, studio } from '../data/studio';
|
||||
import { buildYear } from '../lib/build';
|
||||
import { addressLine, hoursLine, mailtoHref, telHref, telText } from '../lib/format';
|
||||
import { servizioHref, type Servizio } from '../lib/servizi';
|
||||
import Icon from './Icon.astro';
|
||||
import Logo from './Logo.astro';
|
||||
|
||||
interface Props {
|
||||
@@ -83,6 +84,10 @@ const datiSocietari = [
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer__wordmark" aria-hidden="true">
|
||||
{studio.nome}
|
||||
</div>
|
||||
|
||||
<div class="footer__legal">
|
||||
<div class="footer__legal-text">
|
||||
<p>{`© ${buildYear} ${denominazione} — P.IVA ${studio.partitaIva} — Tutti i diritti riservati`}</p>
|
||||
@@ -102,16 +107,24 @@ const datiSocietari = [
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
<a class="footer__top" href="#inizio">
|
||||
Torna su
|
||||
<Icon name="arrow-up" size={16} />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
.site-footer {
|
||||
--focus-ring: var(--gold-500);
|
||||
background: var(--navy-900);
|
||||
--focus-ring: var(--gold-300);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0 var(--stage-inset) var(--stage-inset);
|
||||
border-radius: var(--radius-xl);
|
||||
background: var(--navy-950);
|
||||
color: var(--on-dark);
|
||||
padding-block: var(--space-8) var(--space-5);
|
||||
padding-block: var(--space-8) var(--space-4);
|
||||
font-size: var(--fs-sm);
|
||||
}
|
||||
|
||||
@@ -147,11 +160,10 @@ const datiSocietari = [
|
||||
grid-template-columns: 1.4fr 1fr 1fr 1fr;
|
||||
gap: var(--space-6);
|
||||
padding-bottom: var(--space-6);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.footer__title {
|
||||
color: var(--white);
|
||||
color: var(--gold-300);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
@@ -166,6 +178,22 @@ const datiSocietari = [
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
/* marchio tipografico gigante, solo decorativo (testo pieno di un gradiente) */
|
||||
.footer__wordmark {
|
||||
margin: 0 0 calc(-0.18em) -0.04em;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(2.4rem, 13.4vw, 12.5rem);
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.045em;
|
||||
white-space: nowrap;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 85%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.footer__legal {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -173,6 +201,7 @@ const datiSocietari = [
|
||||
align-items: center;
|
||||
gap: var(--space-3) var(--space-5);
|
||||
padding-top: var(--space-4);
|
||||
border-top: 1px solid var(--line-dark);
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
@@ -202,6 +231,30 @@ const datiSocietari = [
|
||||
min-height: var(--tap);
|
||||
}
|
||||
|
||||
.site-footer .footer__top {
|
||||
gap: 0.4rem;
|
||||
padding-inline: 1rem;
|
||||
border: 1px solid rgba(255, 255, 255, 0.24);
|
||||
border-radius: var(--radius-pill);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.footer__top :global(svg) {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--gold-300);
|
||||
transition: transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.site-footer .footer__top:hover {
|
||||
text-decoration: none;
|
||||
border-color: var(--white);
|
||||
}
|
||||
|
||||
.footer__top:hover :global(svg) {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.footer__grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
/**
|
||||
* Intestazione: barra superiore con sedi e recapiti (solo ≥ 960 px), logo, navigazione
|
||||
* principale con sottomenu dei servizi e menu mobile. L'intestazione resta fissa in alto
|
||||
* durante lo scorrimento; la barra superiore scorre via.
|
||||
* durante lo scorrimento (la barra superiore scorre via) e, dove il browser lo supporta,
|
||||
* diventa più opaca e prende un'ombra man mano che la pagina scorre (solo CSS, senza cambi
|
||||
* di altezza).
|
||||
*/
|
||||
import { sedePrincipale, studio } from '../data/studio';
|
||||
import { mailtoHref, telHref, telText } from '../lib/format';
|
||||
@@ -65,8 +67,8 @@ const short = (s: (typeof sedi)[number]) =>
|
||||
}
|
||||
|
||||
.topbar {
|
||||
--focus-ring: var(--gold-500);
|
||||
background: var(--navy-900);
|
||||
--focus-ring: var(--gold-300);
|
||||
background: var(--navy-950);
|
||||
color: var(--on-dark);
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
@@ -107,12 +109,16 @@ const short = (s: (typeof sedi)[number]) =>
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* la barra non partecipa alla dissolvenza della pagina nelle transizioni (il nome va sulla
|
||||
barra e non su
|
||||
.site-header: un antenato con view-transition-name isolerebbe il backdrop-filter) */
|
||||
.site-header__bar {
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
view-transition-name: site-header;
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
/* solo la forma standard: il prefisso -webkit- per Safari lo aggiunge il minificatore
|
||||
(vite.build.cssTarget); scritto a mano dopo la standard, la faceva scartare */
|
||||
backdrop-filter: saturate(1.4) blur(10px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
backdrop-filter: saturate(1.6) blur(14px);
|
||||
border-bottom: 1px solid rgba(221, 227, 234, 0.8);
|
||||
}
|
||||
|
||||
.site-header__inner {
|
||||
@@ -122,6 +128,26 @@ const short = (s: (typeof sedi)[number]) =>
|
||||
min-height: var(--header-h);
|
||||
}
|
||||
|
||||
/* più opaca e con un'ombra quando la pagina scorre (nessun cambio di altezza: niente
|
||||
spostamenti del contenuto) */
|
||||
@keyframes header-solid {
|
||||
to {
|
||||
background-color: rgba(255, 255, 255, 0.96);
|
||||
border-bottom-color: transparent;
|
||||
box-shadow: 0 14px 34px -22px rgba(7, 20, 35, 0.45);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@supports (animation-timeline: scroll()) {
|
||||
.site-header__bar {
|
||||
animation: header-solid linear both;
|
||||
animation-timeline: scroll(root block);
|
||||
animation-range: 0 10rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* fascia stretta del desktop (960–1020 px): meno spazio tra logo e menu (vedi Nav.astro) */
|
||||
@media (max-width: 63.75em) {
|
||||
.site-header__inner {
|
||||
|
||||
+254
-54
@@ -1,8 +1,11 @@
|
||||
---
|
||||
/**
|
||||
* Hero della home: occhiello, titolo con seconda parte in corsivo, testo introduttivo, due
|
||||
* inviti all'azione, riga di fiducia e, a destra, illustrazione in CSS (forma navy e anello
|
||||
* oro, decorativi) con tre «fact card». Su mobile le card si impilano e l'illustrazione sparisce.
|
||||
* Hero della home come «palco» navy: occhiello, titolo con seconda parte in corsivo oro, testo
|
||||
* introduttivo, due inviti all'azione, riga di fiducia e, a destra, composizione decorativa
|
||||
* (sfera navy e anelli oro) con tre «fact card» in vetro smerigliato. In fondo una fascia di
|
||||
* numeri ricavati dai dati del sito. Movimento solo CSS: le card entrano una dopo l'altra al
|
||||
* caricamento e, scorrendo, anelli e card si spostano a velocità diverse (parallasse).
|
||||
* Su mobile le card si impilano e la composizione sparisce.
|
||||
*/
|
||||
import Icon from './Icon.astro';
|
||||
|
||||
@@ -15,26 +18,37 @@ interface Props {
|
||||
ctaSecondaria: { label: string; href: string };
|
||||
fiducia: string[];
|
||||
fatti: { titolo: string; testo: string; icona: string }[];
|
||||
numeri: { valore: number; etichetta: string }[];
|
||||
}
|
||||
|
||||
const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiducia, fatti } =
|
||||
Astro.props;
|
||||
const {
|
||||
eyebrow,
|
||||
titolo,
|
||||
titoloCorsivo,
|
||||
testo,
|
||||
ctaPrimaria,
|
||||
ctaSecondaria,
|
||||
fiducia,
|
||||
fatti,
|
||||
numeri,
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<section class="hero" aria-labelledby="hero-titolo">
|
||||
<section class="hero stage" aria-labelledby="hero-titolo">
|
||||
<div class="stage__decor" aria-hidden="true"></div>
|
||||
<div class="container hero__inner">
|
||||
<div class="hero__text">
|
||||
<p class="eyebrow">{eyebrow}</p>
|
||||
<p class="hero__eyebrow">{eyebrow}</p>
|
||||
<h1 id="hero-titolo">
|
||||
{titolo} <em>{titoloCorsivo}</em>
|
||||
</h1>
|
||||
<p class="hero__lead">{testo}</p>
|
||||
<div class="hero__actions">
|
||||
<a class="btn btn--primary" href={ctaPrimaria.href}>
|
||||
<a class="btn btn--gold btn--lg" href={ctaPrimaria.href}>
|
||||
{ctaPrimaria.label}
|
||||
<Icon name="arrow-right" size={18} />
|
||||
</a>
|
||||
<a class="btn btn--outline" href={ctaSecondaria.href}>
|
||||
<a class="btn btn--ghost-light btn--lg" href={ctaSecondaria.href}>
|
||||
{ctaSecondaria.label}
|
||||
</a>
|
||||
</div>
|
||||
@@ -48,8 +62,11 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
</ul>
|
||||
</div>
|
||||
<div class="hero__visual">
|
||||
<div class="hero__blob" aria-hidden="true"></div>
|
||||
<div class="hero__ring" aria-hidden="true"></div>
|
||||
<div class="hero__orb" aria-hidden="true">
|
||||
<span class="hero__ring hero__ring--1"></span>
|
||||
<span class="hero__ring hero__ring--2"></span>
|
||||
<span class="hero__ring hero__ring--3"></span>
|
||||
</div>
|
||||
<ul class="hero__facts">
|
||||
{fatti.map((f, i) => (
|
||||
<li class:list={['fact', `fact--${i + 1}`]}>
|
||||
@@ -65,36 +82,73 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<dl class="hero__stats">
|
||||
{numeri.map((n) => (
|
||||
<div class="stat">
|
||||
<dt>{n.etichetta}</dt>
|
||||
<dd>{n.valore}</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(180deg, var(--navy-050) 0%, var(--white) 100%);
|
||||
margin-top: var(--stage-inset);
|
||||
}
|
||||
|
||||
.hero__inner {
|
||||
display: grid;
|
||||
grid-template-columns: 1.15fr 0.85fr;
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
|
||||
gap: var(--space-8);
|
||||
align-items: center;
|
||||
padding-block: clamp(3rem, 8vw, 6.5rem);
|
||||
padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
|
||||
}
|
||||
|
||||
.hero__eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
margin: 0 0 var(--space-5);
|
||||
padding: 0.4rem 0.9rem 0.4rem 0.7rem;
|
||||
border: 1px solid rgba(227, 200, 120, 0.35);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(227, 200, 120, 0.08);
|
||||
color: var(--gold-300);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* pallino «attivo» davanti all'occhiello */
|
||||
.hero__eyebrow::before {
|
||||
content: '';
|
||||
flex: none;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--gold-300);
|
||||
box-shadow: 0 0 0 4px rgba(227, 200, 120, 0.2);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin-bottom: var(--space-5);
|
||||
max-width: 16ch;
|
||||
max-width: 17ch;
|
||||
font-size: clamp(2.25rem, 1.15rem + 3.5vw, 4rem);
|
||||
}
|
||||
|
||||
.hero h1 em {
|
||||
font-style: italic;
|
||||
color: var(--navy-700);
|
||||
font-weight: 400;
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.hero__lead {
|
||||
font-size: var(--fs-lg);
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark);
|
||||
max-width: 36rem;
|
||||
margin-bottom: var(--space-6);
|
||||
}
|
||||
@@ -112,7 +166,7 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
gap: var(--space-3) var(--space-5);
|
||||
list-style: none;
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--ink-700);
|
||||
color: var(--on-dark);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -126,33 +180,63 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
flex: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--gold-700);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
/* --- composizione decorativa --- */
|
||||
.hero__visual {
|
||||
position: relative;
|
||||
min-height: 26.25rem;
|
||||
min-height: 30rem;
|
||||
}
|
||||
|
||||
.hero__blob {
|
||||
.hero__orb {
|
||||
position: absolute;
|
||||
inset: 8% -6% 4% 6%;
|
||||
background: radial-gradient(120% 110% at 80% 10%, var(--navy-700) 0%, var(--navy-900) 70%);
|
||||
border-radius: 48% 52% 44% 56% / 52% 40% 60% 48%;
|
||||
inset: 50% auto auto 50%;
|
||||
width: min(30rem, 100%);
|
||||
aspect-ratio: 1;
|
||||
translate: -50% -50%;
|
||||
border-radius: 50%;
|
||||
background:
|
||||
radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 40%),
|
||||
radial-gradient(
|
||||
circle at 50% 50%,
|
||||
var(--navy-700) 0%,
|
||||
var(--navy-900) 62%,
|
||||
var(--navy-950) 100%
|
||||
);
|
||||
box-shadow:
|
||||
inset 0 0 0 1px rgba(255, 255, 255, 0.08),
|
||||
0 40px 120px -40px rgba(31, 75, 116, 0.9);
|
||||
}
|
||||
|
||||
.hero__ring {
|
||||
position: absolute;
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
border-radius: 50%;
|
||||
border: 10px solid var(--gold-500);
|
||||
right: 4%;
|
||||
top: 2%;
|
||||
opacity: 0.9;
|
||||
border: 1px solid rgba(227, 200, 120, 0.4);
|
||||
}
|
||||
|
||||
.hero__ring--1 {
|
||||
inset: -9%;
|
||||
border-style: dashed;
|
||||
border-color: rgba(227, 200, 120, 0.3);
|
||||
}
|
||||
|
||||
.hero__ring--2 {
|
||||
inset: -22%;
|
||||
border-color: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* arco oro spesso, in alto a destra */
|
||||
.hero__ring--3 {
|
||||
inset: 4%;
|
||||
border: 6px solid transparent;
|
||||
border-top-color: var(--gold-500);
|
||||
border-right-color: var(--gold-500);
|
||||
}
|
||||
|
||||
.hero__facts {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@@ -161,12 +245,13 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
align-items: flex-start;
|
||||
width: 18.75rem;
|
||||
width: 18.5rem;
|
||||
padding: var(--space-4) var(--space-5);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
background: rgba(11, 31, 51, 0.62);
|
||||
backdrop-filter: blur(14px) saturate(1.3);
|
||||
box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
.fact__icon {
|
||||
@@ -175,9 +260,9 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
flex: none;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
background: var(--gold-100);
|
||||
color: var(--gold-700);
|
||||
border-radius: 12px;
|
||||
background: rgba(227, 200, 120, 0.14);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.fact__icon :global(svg) {
|
||||
@@ -188,7 +273,7 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
.fact strong {
|
||||
display: block;
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--navy-900);
|
||||
color: var(--white);
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
@@ -196,23 +281,115 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
display: block;
|
||||
margin-top: 0.15rem;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.fact--1 {
|
||||
left: 0;
|
||||
top: 14%;
|
||||
left: -4%;
|
||||
top: 6%;
|
||||
}
|
||||
|
||||
.fact--2 {
|
||||
right: 2%;
|
||||
top: 42%;
|
||||
right: -6%;
|
||||
top: 40%;
|
||||
}
|
||||
|
||||
.fact--3 {
|
||||
left: 10%;
|
||||
bottom: 6%;
|
||||
left: 4%;
|
||||
bottom: 4%;
|
||||
}
|
||||
|
||||
/* --- numeri --- */
|
||||
.hero__stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
margin: 0 0 clamp(2rem, 4vw, 3rem);
|
||||
border-top: 1px solid var(--line-dark);
|
||||
}
|
||||
|
||||
.stat {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
justify-content: flex-end;
|
||||
gap: 0.35rem;
|
||||
padding: var(--space-5) var(--space-5) 0 0;
|
||||
}
|
||||
|
||||
.stat + .stat {
|
||||
padding-left: var(--space-5);
|
||||
border-left: 1px solid var(--line-dark);
|
||||
}
|
||||
|
||||
.stat dd {
|
||||
margin: 0;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
|
||||
font-weight: 400;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.stat dt {
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--on-dark);
|
||||
}
|
||||
|
||||
/* --- movimento --- */
|
||||
@keyframes hero-ring-turn {
|
||||
to {
|
||||
rotate: 75deg;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes hero-float {
|
||||
to {
|
||||
translate: 0 -5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes hero-orb-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
scale: 0.86;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.fact {
|
||||
animation: rise 900ms var(--ease-out) both;
|
||||
}
|
||||
|
||||
.fact--2 {
|
||||
animation-delay: 140ms;
|
||||
}
|
||||
|
||||
.fact--3 {
|
||||
animation-delay: 280ms;
|
||||
}
|
||||
|
||||
.hero__orb {
|
||||
animation: hero-orb-in 1200ms var(--ease-out) both;
|
||||
}
|
||||
|
||||
@supports (animation-timeline: scroll()) {
|
||||
.hero__ring {
|
||||
animation: hero-ring-turn linear both;
|
||||
animation-timeline: scroll(root block);
|
||||
animation-range: 0 100vh;
|
||||
}
|
||||
|
||||
.hero__ring--2 {
|
||||
animation-direction: reverse;
|
||||
}
|
||||
|
||||
.hero__facts {
|
||||
animation: hero-float linear both;
|
||||
animation-timeline: scroll(root block);
|
||||
animation-range: 0 100vh;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
@@ -225,20 +402,43 @@ const { eyebrow, titolo, titoloCorsivo, testo, ctaPrimaria, ctaSecondaria, fiduc
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.hero__facts {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
.hero__orb {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero__blob,
|
||||
.hero__ring {
|
||||
display: none;
|
||||
.hero__facts {
|
||||
position: static;
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.fact {
|
||||
position: static;
|
||||
width: 100%;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.hero__stats {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.stat + .stat:nth-child(3) {
|
||||
padding-left: 0;
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 26.25em) {
|
||||
.stat {
|
||||
padding-right: var(--space-3);
|
||||
}
|
||||
|
||||
.stat + .stat {
|
||||
padding-left: var(--space-3);
|
||||
}
|
||||
|
||||
.stat + .stat:nth-child(3) {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,7 +1,9 @@
|
||||
---
|
||||
/**
|
||||
* Pagina «documento» (privacy, cookie, note legali, accessibilità): colonna singola leggibile
|
||||
* (max 68 caratteri), indice interno e data dell'ultimo aggiornamento (dal frontmatter).
|
||||
* Pagina «documento» (privacy, cookie, note legali, accessibilità): colonna leggibile (max 68
|
||||
* caratteri), indice interno e data dell'ultimo aggiornamento (dal frontmatter). Da 1024 px
|
||||
* l'indice sta in una colonna a sinistra, fermo durante lo scorrimento, e segnala la sezione
|
||||
* in lettura (src/scripts/toc.ts); più stretto resta in testa al documento.
|
||||
*/
|
||||
import type { MarkdownHeading } from 'astro';
|
||||
import { getEntry } from 'astro:content';
|
||||
@@ -10,6 +12,7 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
||||
import { formatDateIt, nbspAbbreviations } from '../lib/format';
|
||||
import { externalLinksNoopener, mapHtmlText } from '../lib/html';
|
||||
import { renderLegal } from '../lib/legal';
|
||||
import '../styles/documento.css';
|
||||
import PageHead from './PageHead.astro';
|
||||
|
||||
interface Props {
|
||||
@@ -51,9 +54,9 @@ const updated = entry.data.aggiornato;
|
||||
</PageHead>
|
||||
|
||||
<section class="section">
|
||||
<div class="container doc-layout">
|
||||
<div class:list={['container doc-layout', { 'doc-layout--toc': headings.length > 1 }]}>
|
||||
{headings.length > 1 && (
|
||||
<nav class="doc-toc" aria-labelledby="indice-titolo">
|
||||
<nav class="doc-toc" aria-labelledby="indice-titolo" data-toc>
|
||||
<p class="doc-toc__title" id="indice-titolo">
|
||||
Indice
|
||||
</p>
|
||||
@@ -69,16 +72,19 @@ const updated = entry.data.aggiornato;
|
||||
<article class="doc" set:html={html} />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{headings.length > 1 && <script>
|
||||
import '../scripts/toc';
|
||||
</script>}
|
||||
</BaseLayout>
|
||||
|
||||
<style>
|
||||
.doc-updated {
|
||||
margin: var(--space-4) 0 0;
|
||||
margin: var(--space-5) 0 0;
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark-muted);
|
||||
}
|
||||
|
||||
/* layout «documento» a colonna singola con l'indice in testa (brief §7.8) */
|
||||
.doc-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
@@ -93,12 +99,13 @@ const updated = entry.data.aggiornato;
|
||||
.doc-toc {
|
||||
padding: var(--space-4);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.doc-toc__title {
|
||||
margin: 0 0 var(--space-2);
|
||||
padding-inline: 0.5rem;
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.12em;
|
||||
@@ -112,8 +119,8 @@ const updated = entry.data.aggiornato;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* indice su due colonne quando c'è spazio, per non allungare la testa del documento */
|
||||
@media (min-width: 40.001em) {
|
||||
/* indice su due colonne quando sta in testa e c'è spazio */
|
||||
@media (min-width: 40.001em) and (max-width: 64em) {
|
||||
.doc-toc ol {
|
||||
columns: 2;
|
||||
column-gap: var(--space-4);
|
||||
@@ -128,12 +135,17 @@ const updated = entry.data.aggiornato;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: var(--tap);
|
||||
padding: 0.35rem 0.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 0.35rem 0.5rem 0.35rem 0.75rem;
|
||||
border-left: 2px solid transparent;
|
||||
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
|
||||
color: var(--ink-700);
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.35;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
background-color var(--dur) var(--ease),
|
||||
border-color var(--dur) var(--ease),
|
||||
color var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.doc-toc a:hover {
|
||||
@@ -141,6 +153,28 @@ const updated = entry.data.aggiornato;
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
.doc-toc a[aria-current] {
|
||||
border-left-color: var(--gold-500);
|
||||
background: var(--navy-050);
|
||||
color: var(--navy-900);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@media (min-width: 64.001em) {
|
||||
.doc-layout--toc {
|
||||
grid-template-columns: 17rem minmax(0, var(--measure));
|
||||
gap: var(--space-8);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.doc-toc {
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + 1.5rem);
|
||||
max-height: calc(100vh - var(--header-h) - 3rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.doc :global(.doc-card) {
|
||||
margin: var(--space-4) 0 var(--space-5);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
/**
|
||||
* Marchio + logotipo dello Studio. Variante `dark` per i fondi navy (footer, menu mobile no).
|
||||
* Il marchio è un SVG con la «G» già convertita in tracciato (vedi scripts/generate-icons.mjs).
|
||||
* Marchio + logotipo dello Studio. Variante `dark` per i fondi navy (footer, menu mobile).
|
||||
* Il marchio riproduce src/assets/logo-mark.svg e logo-mark-dark.svg (scripts/generate-icons.mjs):
|
||||
* quadrato arrotondato, «G» in tracciato richiamata con <use> (definita una volta per pagina da
|
||||
* LogoDefs) e, sulla versione chiara, il quadratino oro.
|
||||
*/
|
||||
import MarkDark from '../assets/logo-mark-dark.svg';
|
||||
import Mark from '../assets/logo-mark.svg';
|
||||
import { studio } from '../data/studio';
|
||||
import { LOGO_GLYPH_ID } from '../lib/logo';
|
||||
|
||||
interface Props {
|
||||
variant?: 'light' | 'dark';
|
||||
@@ -17,7 +18,7 @@ interface Props {
|
||||
const { variant = 'light', href = '/', class: className } = Astro.props;
|
||||
const tag = studio.sottotitolo.replace(/^Studio\s+/i, '');
|
||||
const isHome = Astro.url.pathname === '/';
|
||||
const MarkSvg = variant === 'dark' ? MarkDark : Mark;
|
||||
const dark = variant === 'dark';
|
||||
---
|
||||
|
||||
{href ? (
|
||||
@@ -26,7 +27,11 @@ const MarkSvg = variant === 'dark' ? MarkDark : Mark;
|
||||
href={href}
|
||||
aria-current={isHome && href === '/' ? 'page' : undefined}
|
||||
>
|
||||
<MarkSvg class="brand__mark" width={44} height={44} aria-hidden="true" />
|
||||
<svg class="brand__mark" viewBox="0 0 44 44" width="44" height="44" aria-hidden="true">
|
||||
<rect width="44" height="44" rx="10" fill={dark ? '#b8902e' : '#0f2a44'} />
|
||||
<use href={`#${LOGO_GLYPH_ID}`} fill={dark ? '#0b1f33' : '#ffffff'} />
|
||||
{!dark && <rect x="30" y="30" width="8" height="8" rx="2" fill="#b8902e" />}
|
||||
</svg>
|
||||
<span class="brand__text">
|
||||
<span class="brand__name">{studio.nome}</span>
|
||||
<span class="brand__tag">{tag}</span>
|
||||
@@ -34,7 +39,11 @@ const MarkSvg = variant === 'dark' ? MarkDark : Mark;
|
||||
</a>
|
||||
) : (
|
||||
<span class:list={['brand', `brand--${variant}`, className]}>
|
||||
<MarkSvg class="brand__mark" width={44} height={44} aria-hidden="true" />
|
||||
<svg class="brand__mark" viewBox="0 0 44 44" width="44" height="44" aria-hidden="true">
|
||||
<rect width="44" height="44" rx="10" fill={dark ? '#b8902e' : '#0f2a44'} />
|
||||
<use href={`#${LOGO_GLYPH_ID}`} fill={dark ? '#0b1f33' : '#ffffff'} />
|
||||
{!dark && <rect x="30" y="30" width="8" height="8" rx="2" fill="#b8902e" />}
|
||||
</svg>
|
||||
<span class="brand__text">
|
||||
<span class="brand__name">{studio.nome}</span>
|
||||
<span class="brand__tag">{tag}</span>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
/** Definizione unica del tracciato del marchio, richiamata dai loghi della pagina (Logo.astro). */
|
||||
import { LOGO_GLYPH_ID, LOGO_GLYPH_PATH } from '../lib/logo';
|
||||
---
|
||||
|
||||
<svg class="logo-defs" width="0" height="0" aria-hidden="true" focusable="false">
|
||||
<defs>
|
||||
<path id={LOGO_GLYPH_ID} d={LOGO_GLYPH_PATH}></path>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
<style>
|
||||
.logo-defs {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
@@ -79,7 +79,10 @@ const { embedUrl, title, query, place, compact = false } = Astro.props;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-6);
|
||||
text-align: center;
|
||||
background: repeating-linear-gradient(45deg, var(--navy-050) 0 12px, var(--white) 12px 24px);
|
||||
/* trama a puntini, richiamo discreto di una mappa */
|
||||
background-color: var(--navy-050);
|
||||
background-image: radial-gradient(var(--navy-100) 1.5px, transparent 1.5px);
|
||||
background-size: 18px 18px;
|
||||
}
|
||||
|
||||
.map-consent__placeholder p {
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
---
|
||||
/**
|
||||
* «Come lavoriamo»: i passaggi di un incarico. Su desktop l'intestazione resta ferma a sinistra
|
||||
* mentre i passi scorrono a destra; una barra oro accanto al titolo si riempie man mano che si
|
||||
* leggono i passi e il numero di ciascun passo si «accende» quando arriva a metà schermo
|
||||
* (scroll-driven animations, solo dove supportate; altrimenti tutto resta fermo e leggibile).
|
||||
*/
|
||||
import { metodo } from '../data/pagine';
|
||||
import Icon from './Icon.astro';
|
||||
|
||||
interface Props {
|
||||
/** Fondo della sezione. */
|
||||
tone?: 'paper' | 'white';
|
||||
}
|
||||
|
||||
const { tone = 'paper' } = Astro.props;
|
||||
---
|
||||
|
||||
<section
|
||||
class:list={['section metodo', { 'section--paper': tone === 'paper' }]}
|
||||
aria-labelledby="metodo-titolo"
|
||||
>
|
||||
<div class="container metodo__inner">
|
||||
<div class="metodo__head">
|
||||
<p class="eyebrow">{metodo.eyebrow}</p>
|
||||
<h2 id="metodo-titolo">{metodo.titolo}</h2>
|
||||
<p class="metodo__text">{metodo.testo}</p>
|
||||
<div class="metodo__rail" aria-hidden="true">
|
||||
<span></span>
|
||||
</div>
|
||||
<a class="btn btn--primary" href={metodo.cta.href}>
|
||||
{metodo.cta.label}
|
||||
<Icon name="arrow-right" size={18} />
|
||||
</a>
|
||||
</div>
|
||||
<ol class="metodo__steps">
|
||||
{metodo.passi.map((p, i) => (
|
||||
<li class="step reveal">
|
||||
<span class="step__num" aria-hidden="true">
|
||||
{String(i + 1).padStart(2, '0')}
|
||||
</span>
|
||||
<div>
|
||||
<h3>{p.titolo}</h3>
|
||||
<p>{p.testo}</p>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.metodo__inner {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
|
||||
gap: var(--space-8);
|
||||
align-items: start;
|
||||
timeline-scope: --metodo;
|
||||
}
|
||||
|
||||
.metodo__head {
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + 2.5rem);
|
||||
}
|
||||
|
||||
.metodo__text {
|
||||
font-size: var(--fs-lg);
|
||||
color: var(--ink-600);
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
/* barra di avanzamento: piena se il browser non supporta le animazioni da scorrimento */
|
||||
.metodo__rail {
|
||||
width: min(100%, 16rem);
|
||||
height: 4px;
|
||||
margin: var(--space-6) 0;
|
||||
border-radius: 4px;
|
||||
background: rgba(138, 106, 30, 0.18);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.metodo__rail span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--gold-gradient);
|
||||
transform-origin: 0 50%;
|
||||
}
|
||||
|
||||
.metodo__steps {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
list-style: none;
|
||||
view-timeline-name: --metodo;
|
||||
}
|
||||
|
||||
.step {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: var(--space-5);
|
||||
padding: var(--space-6);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--white);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.step__num {
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 3.5rem;
|
||||
height: 3.5rem;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--line);
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 500;
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
/* anello oro che si chiude attorno al numero */
|
||||
.step__num::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -1px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--gold-500);
|
||||
}
|
||||
|
||||
.step h3 {
|
||||
margin: 0.35rem 0 var(--space-2);
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.step p {
|
||||
margin: 0;
|
||||
color: var(--ink-600);
|
||||
}
|
||||
|
||||
@keyframes metodo-fill {
|
||||
from {
|
||||
scale: 0 1;
|
||||
}
|
||||
|
||||
to {
|
||||
scale: 1 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes step-ring {
|
||||
from {
|
||||
opacity: 0;
|
||||
scale: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@supports (animation-timeline: view()) {
|
||||
.metodo__rail span {
|
||||
animation: metodo-fill linear both;
|
||||
animation-timeline: --metodo;
|
||||
animation-range: entry 40% exit 60%;
|
||||
}
|
||||
|
||||
.step__num::after {
|
||||
animation: step-ring var(--ease-out) both;
|
||||
animation-timeline: view();
|
||||
animation-range: cover 30% cover 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.metodo__inner {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.metodo__head {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.metodo__rail {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 26.25em) {
|
||||
.step {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -36,7 +36,7 @@ const telefono = studio.telefoni[0];
|
||||
|
||||
<dialog id="menu-mobile" class="mobile-menu" aria-label="Menu" data-menu>
|
||||
<div class="mobile-menu__head">
|
||||
<Logo />
|
||||
<Logo variant="dark" />
|
||||
<button type="button" class="mobile-menu__close" data-menu-close>
|
||||
<Icon name="x" size={22} />
|
||||
<span class="visually-hidden">Chiudi il menu</span>
|
||||
@@ -84,10 +84,10 @@ const telefono = studio.telefoni[0];
|
||||
)}
|
||||
</ul>
|
||||
<div class="mobile-menu__contacts">
|
||||
<a class="btn btn--primary btn--block" href={ctaHeader.href}>
|
||||
<a class="btn btn--gold btn--block" href={ctaHeader.href}>
|
||||
{ctaHeader.label}
|
||||
</a>
|
||||
<a class="btn btn--outline btn--block" href={telHref(telefono)}>
|
||||
<a class="btn btn--ghost-light btn--block" href={telHref(telefono)}>
|
||||
<Icon name="phone" size={18} />
|
||||
{telText(telefono)}
|
||||
</a>
|
||||
@@ -105,7 +105,7 @@ const telefono = studio.telefoni[0];
|
||||
margin-left: auto;
|
||||
width: var(--tap);
|
||||
height: var(--tap);
|
||||
border-radius: var(--radius-sm);
|
||||
border-radius: var(--radius-pill);
|
||||
border: 1px solid var(--line);
|
||||
background: var(--white);
|
||||
color: var(--navy-900);
|
||||
@@ -125,6 +125,7 @@ const telefono = studio.telefoni[0];
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
--focus-ring: var(--gold-300);
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
@@ -132,13 +133,13 @@ const telefono = studio.telefoni[0];
|
||||
margin: 0;
|
||||
padding: 0 var(--gutter) var(--space-6);
|
||||
border: 0;
|
||||
background: var(--white);
|
||||
color: var(--ink-900);
|
||||
background: var(--navy-950);
|
||||
color: var(--on-dark);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.mobile-menu::backdrop {
|
||||
background: rgba(11, 31, 51, 0.4);
|
||||
background: rgba(7, 20, 35, 0.6);
|
||||
}
|
||||
|
||||
.mobile-menu__head {
|
||||
@@ -147,7 +148,7 @@ const telefono = studio.telefoni[0];
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
min-height: 4.25rem;
|
||||
border-bottom: 1px solid var(--line);
|
||||
border-bottom: 1px solid var(--line-dark);
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
@@ -159,10 +160,10 @@ const telefono = studio.telefoni[0];
|
||||
flex: none;
|
||||
width: var(--tap);
|
||||
height: var(--tap);
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--line);
|
||||
background: var(--white);
|
||||
color: var(--navy-900);
|
||||
border-radius: var(--radius-pill);
|
||||
border: 1px solid rgba(255, 255, 255, 0.24);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.mobile-menu__sub-toggle :global(svg) {
|
||||
@@ -178,7 +179,35 @@ const telefono = studio.telefoni[0];
|
||||
}
|
||||
|
||||
.mobile-menu__item {
|
||||
border-bottom: 1px solid var(--line);
|
||||
border-bottom: 1px solid var(--line-dark);
|
||||
}
|
||||
|
||||
/* voci che salgono in sequenza all'apertura del menu */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.mobile-menu[open] .mobile-menu__item,
|
||||
.mobile-menu[open] .mobile-menu__contacts {
|
||||
animation: rise 480ms var(--ease-out) both;
|
||||
}
|
||||
|
||||
.mobile-menu[open] .mobile-menu__item:nth-child(2) {
|
||||
animation-delay: 40ms;
|
||||
}
|
||||
|
||||
.mobile-menu[open] .mobile-menu__item:nth-child(3) {
|
||||
animation-delay: 80ms;
|
||||
}
|
||||
|
||||
.mobile-menu[open] .mobile-menu__item:nth-child(4) {
|
||||
animation-delay: 120ms;
|
||||
}
|
||||
|
||||
.mobile-menu[open] .mobile-menu__item:nth-child(n + 5) {
|
||||
animation-delay: 160ms;
|
||||
}
|
||||
|
||||
.mobile-menu[open] .mobile-menu__contacts {
|
||||
animation-delay: 220ms;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-menu__row {
|
||||
@@ -192,18 +221,19 @@ const telefono = studio.telefoni[0];
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 3.25rem;
|
||||
min-height: 3.75rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.3rem;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 500;
|
||||
color: var(--navy-900);
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mobile-menu a[aria-current] {
|
||||
color: var(--navy-700);
|
||||
color: var(--gold-300);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--gold-500);
|
||||
text-decoration-color: var(--gold-300);
|
||||
text-decoration-thickness: 2px;
|
||||
text-underline-offset: 6px;
|
||||
}
|
||||
@@ -212,6 +242,8 @@ const telefono = studio.telefoni[0];
|
||||
display: none;
|
||||
list-style: none;
|
||||
padding: 0 0 var(--space-3) var(--space-4);
|
||||
border-left: 2px solid var(--gold-500);
|
||||
margin: 0 0 var(--space-3) 0.25rem;
|
||||
}
|
||||
|
||||
.mobile-menu__row:has(.mobile-menu__sub-toggle[aria-expanded='true']) + .mobile-menu__sub {
|
||||
@@ -223,7 +255,7 @@ const telefono = studio.telefoni[0];
|
||||
align-items: center;
|
||||
min-height: var(--tap);
|
||||
padding-block: 0.35rem;
|
||||
color: var(--ink-700);
|
||||
color: var(--on-dark);
|
||||
text-decoration: none;
|
||||
font-size: var(--fs-md);
|
||||
line-height: 1.35;
|
||||
@@ -232,7 +264,7 @@ const telefono = studio.telefoni[0];
|
||||
.mobile-menu__contacts {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
margin-top: var(--space-5);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
|
||||
.mobile-menu__mail {
|
||||
@@ -241,13 +273,17 @@ const telefono = studio.telefoni[0];
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
min-height: var(--tap);
|
||||
color: var(--navy-800);
|
||||
color: var(--on-dark);
|
||||
font-weight: 600;
|
||||
font-size: var(--fs-sm);
|
||||
text-decoration: none;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.mobile-menu__mail :global(svg) {
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
:global(html:has(.mobile-menu[open])) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
+64
-10
@@ -107,15 +107,36 @@ const current = (href: string) =>
|
||||
font-size: var(--fs-sm);
|
||||
}
|
||||
|
||||
.nav__item > a {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* lineetta oro sotto la voce: si allarga al passaggio del mouse, resta sulla voce corrente */
|
||||
.nav__item > a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0.75rem;
|
||||
right: 0.75rem;
|
||||
bottom: 0.45rem;
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
background: var(--gold-500);
|
||||
scale: 0 1;
|
||||
transition: scale 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.nav__item--has-sub > a::after {
|
||||
right: 0.3rem;
|
||||
}
|
||||
|
||||
.nav__item > a:hover,
|
||||
.nav__item > a[aria-current] {
|
||||
color: var(--navy-900);
|
||||
background: var(--navy-050);
|
||||
}
|
||||
|
||||
.nav__item > a[aria-current] {
|
||||
box-shadow: inset 0 -2px 0 var(--gold-500);
|
||||
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
||||
.nav__item > a:hover::after,
|
||||
.nav__item > a[aria-current]::after {
|
||||
scale: 1 1;
|
||||
}
|
||||
|
||||
/* etichette su una riga: vicino ai punti di interruzione (960 e 1100 px) andavano a capo */
|
||||
@@ -166,15 +187,28 @@ const current = (href: string) =>
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
left: -0.5rem;
|
||||
z-index: 60;
|
||||
min-width: 21rem;
|
||||
min-width: 22rem;
|
||||
padding: var(--space-2);
|
||||
list-style: none;
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
@keyframes drop-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
translate: 0 -6px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.nav__sub {
|
||||
animation: drop-in 220ms var(--ease-out);
|
||||
}
|
||||
}
|
||||
|
||||
/* il sottomenu tocca la voce (top: 100%) ed è dentro il suo <li>: passando dalla voce al
|
||||
@@ -192,14 +226,29 @@ const current = (href: string) =>
|
||||
.nav__sub a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
min-height: var(--tap);
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 0.55rem 0.85rem;
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--ink-700);
|
||||
text-decoration: none;
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 500;
|
||||
line-height: 1.35;
|
||||
transition:
|
||||
background-color var(--dur) var(--ease),
|
||||
color var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
/* pallino oro davanti alla voce: si accende al passaggio del mouse e sulla pagina corrente */
|
||||
.nav__sub a::before {
|
||||
content: '';
|
||||
flex: none;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--line);
|
||||
transition: background-color var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.nav__sub a:hover,
|
||||
@@ -208,6 +257,11 @@ const current = (href: string) =>
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
.nav__sub a:hover::before,
|
||||
.nav__sub a[aria-current]::before {
|
||||
background: var(--gold-500);
|
||||
}
|
||||
|
||||
.nav__cta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
---
|
||||
/** Testata delle pagine interne: percorso, titolo principale (unico <h1>) e sottotitolo. */
|
||||
/**
|
||||
* Testata delle pagine interne come «palco» navy: percorso, titolo principale (unico <h1>),
|
||||
* sottotitolo ed eventuale contenuto aggiuntivo. La trama decorativa scorre più lenta del
|
||||
* contenuto (parallasse, solo CSS e solo dove supportato).
|
||||
*/
|
||||
import type { Crumb } from '../lib/seo';
|
||||
import Breadcrumb from './Breadcrumb.astro';
|
||||
|
||||
@@ -12,8 +16,9 @@ interface Props {
|
||||
const { title, subtitle, breadcrumbs } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="page-head">
|
||||
<div class="container">
|
||||
<div class="page-head stage">
|
||||
<div class="stage__decor page-head__decor" aria-hidden="true"></div>
|
||||
<div class="container page-head__inner">
|
||||
<Breadcrumb items={breadcrumbs} />
|
||||
<h1>{title}</h1>
|
||||
{subtitle && <p class="page-head__lead">{subtitle}</p>}
|
||||
@@ -23,20 +28,51 @@ const { title, subtitle, breadcrumbs } = Astro.props;
|
||||
|
||||
<style>
|
||||
.page-head {
|
||||
background: var(--navy-050);
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-block: var(--space-7) var(--space-6);
|
||||
margin-top: var(--stage-inset);
|
||||
}
|
||||
|
||||
.page-head__inner {
|
||||
padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
|
||||
}
|
||||
|
||||
.page-head h1 {
|
||||
max-width: 22ch;
|
||||
margin-bottom: var(--space-3);
|
||||
max-width: 20ch;
|
||||
margin-bottom: var(--space-4);
|
||||
}
|
||||
|
||||
.page-head__lead {
|
||||
font-size: var(--fs-lg);
|
||||
color: var(--ink-600);
|
||||
color: var(--on-dark);
|
||||
max-width: 44rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* anello oro sfumato in basso a destra */
|
||||
.page-head__decor {
|
||||
background: radial-gradient(
|
||||
closest-side,
|
||||
transparent 72%,
|
||||
rgba(227, 200, 120, 0.22) 73%,
|
||||
transparent 74%
|
||||
);
|
||||
background-size: 46rem 46rem;
|
||||
background-position: right -14rem bottom -26rem;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
@keyframes page-head-drift {
|
||||
to {
|
||||
translate: 0 6rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@supports (animation-timeline: scroll()) {
|
||||
.page-head__decor {
|
||||
animation: page-head-drift linear both;
|
||||
animation-timeline: scroll(root block);
|
||||
animation-range: 0 32rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -9,10 +9,12 @@ interface Props {
|
||||
const { partner } = Astro.props;
|
||||
---
|
||||
|
||||
<ul class="partners">
|
||||
<ul class="partners reveal-group">
|
||||
{partner.map((p) => (
|
||||
<li class="partner">
|
||||
<Icon name={p.icona} size={22} />
|
||||
<span class="partner__icon">
|
||||
<Icon name={p.icona} size={22} />
|
||||
</span>
|
||||
<span>
|
||||
<strong>{p.nome}</strong>
|
||||
<span>{p.descrizione}</span>
|
||||
@@ -30,31 +32,50 @@ const { partner } = Astro.props;
|
||||
}
|
||||
|
||||
.partner {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
align-items: center;
|
||||
padding: var(--space-4);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border: 1px dashed #c3ccd6;
|
||||
border-radius: var(--radius-md);
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
align-content: start;
|
||||
padding: var(--space-5);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
transition:
|
||||
transform 260ms var(--ease-out),
|
||||
box-shadow 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.partner:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.partner__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: var(--gold-100);
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
.partner :global(svg) {
|
||||
flex: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
.partner strong {
|
||||
display: block;
|
||||
font-size: var(--fs-sm);
|
||||
margin-bottom: 0.2rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
.partner strong + span {
|
||||
display: block;
|
||||
font-size: var(--fs-xs);
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--ink-600);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
@@ -57,36 +57,50 @@ const qualifiche =
|
||||
|
||||
<style>
|
||||
.person {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 64px minmax(0, 1fr);
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-5);
|
||||
grid-template-columns: 72px minmax(0, 1fr);
|
||||
gap: var(--space-5);
|
||||
padding: var(--space-6);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* filo oro in alto */
|
||||
.person::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
height: 3px;
|
||||
background: var(--gold-gradient);
|
||||
}
|
||||
|
||||
.person__avatar {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background: var(--navy-800);
|
||||
background: radial-gradient(circle at 30% 25%, var(--navy-600), var(--navy-950) 75%);
|
||||
box-shadow:
|
||||
0 0 0 3px var(--white),
|
||||
0 0 0 5px var(--gold-300);
|
||||
color: var(--white);
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.35rem;
|
||||
font-weight: 600;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.person__name {
|
||||
margin: 0 0 0.15rem;
|
||||
font-size: 1.2rem;
|
||||
margin: 0 0 0.2rem;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.person__role {
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 600;
|
||||
color: var(--gold-700);
|
||||
@@ -94,7 +108,7 @@ const qualifiche =
|
||||
|
||||
.person__list {
|
||||
display: grid;
|
||||
gap: 0.3rem;
|
||||
gap: 0.35rem;
|
||||
list-style: none;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--ink-600);
|
||||
@@ -107,30 +121,30 @@ const qualifiche =
|
||||
|
||||
.person__list li {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
gap: 0.55rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.person__list li::before {
|
||||
content: '';
|
||||
flex: none;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin-top: 0.55em;
|
||||
border-radius: 50%;
|
||||
background: var(--gold-500);
|
||||
}
|
||||
|
||||
.person__law {
|
||||
margin: 0.75rem 0 0;
|
||||
padding-top: 0.6rem;
|
||||
margin: 0.85rem 0 0;
|
||||
padding-top: 0.7rem;
|
||||
border-top: 1px dashed var(--line);
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--ink-700);
|
||||
}
|
||||
|
||||
.person__meta {
|
||||
margin: 0.6rem 0 0;
|
||||
margin: 0.7rem 0 0;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--ink-600);
|
||||
}
|
||||
@@ -142,6 +156,7 @@ const qualifiche =
|
||||
@media (max-width: 26.25em) {
|
||||
.person {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,8 @@
|
||||
---
|
||||
/** Intestazione di sezione: occhiello, titolo e sottotitolo facoltativo. */
|
||||
/**
|
||||
* Intestazione di sezione: occhiello, titolo e sottotitolo facoltativo. Con `layout="split"`
|
||||
* (≥ 960 px) titolo a sinistra e sottotitolo a destra, allineati in basso.
|
||||
*/
|
||||
interface Props {
|
||||
eyebrow?: string;
|
||||
title: string;
|
||||
@@ -7,28 +10,59 @@ interface Props {
|
||||
/** id del titolo, per collegarlo alla sezione con aria-labelledby. */
|
||||
id?: string;
|
||||
level?: 2 | 3;
|
||||
layout?: 'stack' | 'split';
|
||||
class?: string;
|
||||
}
|
||||
|
||||
const { eyebrow, title, subtitle, id, level = 2, class: className } = Astro.props;
|
||||
const { eyebrow, title, subtitle, id, level = 2, layout = 'stack', class: className } = Astro.props;
|
||||
const Heading = level === 2 ? 'h2' : 'h3';
|
||||
---
|
||||
|
||||
<div class:list={['section-head', className]}>
|
||||
{eyebrow && <p class="eyebrow">{eyebrow}</p>}
|
||||
<Heading id={id}>{title}</Heading>
|
||||
<div class:list={['section-head', `section-head--${layout}`, 'reveal', className]}>
|
||||
<div>
|
||||
{eyebrow && <p class="eyebrow">{eyebrow}</p>}
|
||||
<Heading id={id}>{title}</Heading>
|
||||
</div>
|
||||
{subtitle && <p class="section-head__sub">{subtitle}</p>}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.section-head {
|
||||
max-width: 42rem;
|
||||
max-width: 46rem;
|
||||
margin-bottom: var(--space-7);
|
||||
}
|
||||
|
||||
.section-head h2,
|
||||
.section-head h3 {
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.section-head__sub {
|
||||
color: var(--ink-600);
|
||||
font-size: var(--fs-lg);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
:global(.stage) .section-head__sub {
|
||||
color: var(--on-dark);
|
||||
}
|
||||
|
||||
@media (min-width: 60.001em) {
|
||||
.section-head--split {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
|
||||
align-items: end;
|
||||
gap: var(--space-8);
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.section-head--split h2,
|
||||
.section-head--split h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.section-head--split .section-head__sub {
|
||||
padding-bottom: 0.35rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -31,7 +31,9 @@ const telefono = sede.telefono ?? studio.telefoni[0];
|
||||
|
||||
<article class:list={['sede', `sede--${variant}`]} id={`sede-${sede.id}`}>
|
||||
<div class="sede__head">
|
||||
<Icon name="map-pin" size={20} />
|
||||
<span class="sede__pin">
|
||||
<Icon name="map-pin" size={20} />
|
||||
</span>
|
||||
<Heading>{sede.nome}</Heading>
|
||||
</div>
|
||||
<address>
|
||||
@@ -116,11 +118,20 @@ const telefono = sede.telefono ?? studio.telefoni[0];
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.sede__head :global(svg) {
|
||||
.sede__pin {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: var(--navy-800);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.sede__pin :global(svg) {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
.sede__head :global(h2),
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
---
|
||||
/**
|
||||
* Card di un servizio: icona, titolo, sommario e link «Approfondisci». L'intera card è
|
||||
* cliccabile (il link si estende su tutta la superficie) e si solleva leggermente al passaggio.
|
||||
* Card di un servizio: numero, icona, titolo, sommario e link «Approfondisci». L'intera card è
|
||||
* cliccabile (il link si estende su tutta la superficie); al passaggio del mouse si solleva e
|
||||
* il bordo si accende d'oro. `featured` = card in evidenza della griglia «bento» (fondo navy).
|
||||
* Nella griglia larga la card che occupa una riga intera si dispone in orizzontale
|
||||
* (container query).
|
||||
*/
|
||||
import { servizioHref, type Servizio } from '../lib/servizi';
|
||||
import Icon from './Icon.astro';
|
||||
@@ -13,60 +16,126 @@ interface Props {
|
||||
/** Destinazione del redirect delle vecchie ancore (data-legacy-href). */
|
||||
legacy?: boolean;
|
||||
headingLevel?: 2 | 3;
|
||||
/** Posizione nell'elenco (da 0): mostrata come numero d'ordine decorativo. */
|
||||
index?: number;
|
||||
featured?: boolean;
|
||||
}
|
||||
|
||||
const { servizio, id, legacy = false, headingLevel = 3 } = Astro.props;
|
||||
const { servizio, id, legacy = false, headingLevel = 3, index, featured = false } = Astro.props;
|
||||
const href = servizioHref(servizio);
|
||||
const Heading = headingLevel === 2 ? 'h2' : 'h3';
|
||||
const numero = index === undefined ? null : String(index + 1).padStart(2, '0');
|
||||
---
|
||||
|
||||
<article class="card" id={id} data-legacy-href={legacy ? href : undefined}>
|
||||
<span class="card__icon">
|
||||
<Icon name={servizio.data.icona} size={24} />
|
||||
</span>
|
||||
<Heading class="card__title">{servizio.data.titolo}</Heading>
|
||||
<p>{servizio.data.sommario}</p>
|
||||
<a class="card__link" href={href}>
|
||||
Approfondisci<span class="visually-hidden"> ({servizio.data.titolo})</span>
|
||||
<Icon name="arrow-right" size={16} />
|
||||
</a>
|
||||
<article
|
||||
class:list={['card', { 'card--featured': featured }]}
|
||||
id={id}
|
||||
data-legacy-href={legacy ? href : undefined}
|
||||
>
|
||||
<div class="card__body">
|
||||
<div class="card__top">
|
||||
<span class="card__icon">
|
||||
<Icon name={servizio.data.icona} size={24} />
|
||||
</span>
|
||||
{numero && (
|
||||
<span class="card__num" aria-hidden="true">
|
||||
{numero}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div class="card__text">
|
||||
<Heading class="card__title">{servizio.data.titolo}</Heading>
|
||||
<p>{servizio.data.sommario}</p>
|
||||
</div>
|
||||
<a class="card__link" href={href}>
|
||||
Approfondisci<span class="visually-hidden"> ({servizio.data.titolo})</span>
|
||||
<span class="card__arrow">
|
||||
<Icon name="arrow-up-right" size={18} />
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<style>
|
||||
.card {
|
||||
position: relative;
|
||||
container-type: inline-size;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-5);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition:
|
||||
transform var(--dur) var(--ease),
|
||||
box-shadow var(--dur) var(--ease),
|
||||
border-color var(--dur) var(--ease);
|
||||
transform 260ms var(--ease-out),
|
||||
box-shadow 260ms var(--ease-out),
|
||||
border-color 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
/* bordo d'oro sfumato che compare al passaggio del mouse */
|
||||
.card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -1px;
|
||||
border-radius: inherit;
|
||||
padding: 1px;
|
||||
background: linear-gradient(140deg, var(--gold-300), transparent 45%, var(--gold-500));
|
||||
-webkit-mask:
|
||||
linear-gradient(#000 0 0) content-box,
|
||||
linear-gradient(#000 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask:
|
||||
linear-gradient(#000 0 0) content-box exclude,
|
||||
linear-gradient(#000 0 0);
|
||||
opacity: 0;
|
||||
transition: opacity 260ms var(--ease-out);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-3px);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--navy-100);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.card:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.card:focus-within {
|
||||
border-color: var(--navy-700);
|
||||
}
|
||||
|
||||
.card__body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-5) var(--space-5) var(--space-4);
|
||||
}
|
||||
|
||||
.card__top {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.card__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 12px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 16px;
|
||||
background: var(--navy-050);
|
||||
color: var(--navy-700);
|
||||
transition:
|
||||
background-color 260ms var(--ease-out),
|
||||
color 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.card:hover .card__icon {
|
||||
background: var(--navy-800);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.card__icon :global(svg) {
|
||||
@@ -74,13 +143,29 @@ const Heading = headingLevel === 2 ? 'h2' : 'h3';
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.card__num {
|
||||
font-family: var(--font-display);
|
||||
font-size: 2.25rem;
|
||||
font-weight: 400;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.04em;
|
||||
background: var(--gold-gradient);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.card__text {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.card__title {
|
||||
margin: 0.25rem 0 0;
|
||||
font-size: 1.2rem;
|
||||
margin: 0 0 var(--space-2);
|
||||
font-size: 1.3rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.card p {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
color: var(--ink-600);
|
||||
font-size: var(--fs-sm);
|
||||
@@ -89,16 +174,41 @@ const Heading = headingLevel === 2 ? 'h2' : 'h3';
|
||||
.card__link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
align-self: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 0.6rem;
|
||||
min-height: var(--tap);
|
||||
margin-top: var(--space-1);
|
||||
padding-top: var(--space-3);
|
||||
border-top: 1px solid var(--line);
|
||||
font-weight: 600;
|
||||
font-size: var(--fs-sm);
|
||||
text-decoration: none;
|
||||
color: var(--navy-800);
|
||||
}
|
||||
|
||||
.card__arrow {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
border-radius: 50%;
|
||||
background: var(--navy-050);
|
||||
transition:
|
||||
background-color 260ms var(--ease-out),
|
||||
color 260ms var(--ease-out),
|
||||
transform 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.card:hover .card__arrow {
|
||||
background: var(--gold-300);
|
||||
color: var(--navy-950);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.card__arrow :global(svg) {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
/* l'area cliccabile copre l'intera card */
|
||||
.card__link::after {
|
||||
content: '';
|
||||
@@ -111,18 +221,94 @@ const Heading = headingLevel === 2 ? 'h2' : 'h3';
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* anello fuori dalla card, sul fondo chiaro della sezione: sempre gold-700 */
|
||||
.card__link:focus-visible::after {
|
||||
outline: 3px solid var(--focus-ring);
|
||||
outline: 3px solid var(--gold-700);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.card__link :global(svg) {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
transition: transform var(--dur) var(--ease);
|
||||
/* --- card in evidenza (navy) --- */
|
||||
.card--featured {
|
||||
border-color: var(--navy-950);
|
||||
background-color: var(--navy-950);
|
||||
/* niente overflow: hidden, taglierebbe l'anello di focus che sta fuori dalla card */
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.card:hover .card__link :global(svg) {
|
||||
transform: translateX(3px);
|
||||
.card--featured::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(60% 50% at 100% 0%, rgba(184, 144, 46, 0.3), transparent 70%),
|
||||
radial-gradient(70% 60% at 0% 100%, rgba(31, 75, 116, 0.6), transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.card--featured .card__body {
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.card--featured .card__icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.card--featured .card__num {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
|
||||
.card--featured .card__text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.card--featured .card__title {
|
||||
color: var(--white);
|
||||
font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
|
||||
}
|
||||
|
||||
.card--featured p {
|
||||
color: var(--on-dark);
|
||||
font-size: var(--fs-md);
|
||||
max-width: 34ch;
|
||||
}
|
||||
|
||||
.card--featured .card__link {
|
||||
color: var(--white);
|
||||
border-top-color: var(--line-dark);
|
||||
}
|
||||
|
||||
.card--featured .card__arrow {
|
||||
background: var(--gold-300);
|
||||
color: var(--navy-950);
|
||||
}
|
||||
|
||||
/* card che occupa tutta la riga della griglia: disposizione orizzontale */
|
||||
@container (min-width: 46rem) {
|
||||
.card__body {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: var(--space-6);
|
||||
padding: var(--space-5) var(--space-6);
|
||||
}
|
||||
|
||||
.card__top {
|
||||
flex-direction: row-reverse;
|
||||
align-items: center;
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.card__link {
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -2,7 +2,7 @@
|
||||
titolo: Accessibilità
|
||||
sottotitolo: 'L’impegno dello Studio perché il sito sia consultabile da tutti, anche da chi usa tecnologie assistive.'
|
||||
descrizioneSeo: 'Accessibilità del sito dello Studio Grasso: obiettivo WCAG 2.1 livello AA, verifiche svolte, limiti noti e come segnalare problemi di accessibilità.'
|
||||
aggiornato: 2026-10-16
|
||||
aggiornato: 2026-11-13
|
||||
---
|
||||
|
||||
## Il nostro impegno
|
||||
@@ -27,12 +27,12 @@ Nella realizzazione del sito sono stati adottati questi accorgimenti:
|
||||
|
||||
I campi del modulo di contatto hanno etichette associate e gli errori sono annunciati dalle tecnologie assistive.
|
||||
|
||||
Tecnologie usate: HTML5, CSS e JavaScript (solo per il menu di navigazione, cioè menu mobile e sottomenu dei servizi, il caricamento delle mappe su richiesta, i messaggi e il controllo anti-spam del modulo e l’apertura dei vecchi collegamenti alla pagina del servizio corrispondente).
|
||||
Tecnologie usate: HTML5, CSS e JavaScript (solo per il menu di navigazione, cioè menu mobile e sottomenu dei servizi, il caricamento delle mappe su richiesta, i messaggi e il controllo anti-spam del modulo, l’evidenziazione nell’indice delle pagine legali della sezione in lettura e l’apertura dei vecchi collegamenti alla pagina del servizio corrispondente).
|
||||
|
||||
<!-- /se:modulo -->
|
||||
<!-- se:!modulo -->
|
||||
|
||||
Tecnologie usate: HTML5, CSS e JavaScript (solo per il menu di navigazione, cioè menu mobile e sottomenu dei servizi, il caricamento delle mappe su richiesta e l’apertura dei vecchi collegamenti alla pagina del servizio corrispondente).
|
||||
Tecnologie usate: HTML5, CSS e JavaScript (solo per il menu di navigazione, cioè menu mobile e sottomenu dei servizi, il caricamento delle mappe su richiesta, l’evidenziazione nell’indice delle pagine legali della sezione in lettura e l’apertura dei vecchi collegamenti alla pagina del servizio corrispondente).
|
||||
|
||||
<!-- /se:!modulo -->
|
||||
|
||||
|
||||
@@ -48,6 +48,16 @@ export const home = {
|
||||
icona: 'file-text',
|
||||
},
|
||||
],
|
||||
/**
|
||||
* Fascia di numeri sotto l'hero: le etichette stanno qui, i valori sono contati dai dati
|
||||
* (servizi della collection, abilitazioni e sedi di studio.ts), così restano sempre veri.
|
||||
*/
|
||||
numeri: {
|
||||
servizi: 'Aree di competenza',
|
||||
abilitazioni: 'Abilitazioni e iscrizioni',
|
||||
sedi: 'Sedi in provincia di Asti',
|
||||
professionisti: 'Professionisti dello Studio',
|
||||
},
|
||||
},
|
||||
servizi: {
|
||||
eyebrow: 'Servizi',
|
||||
@@ -81,6 +91,40 @@ export const home = {
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* «Come lavoriamo»: i passaggi di un incarico (home e pagina Servizi). Testo nuovo del rework
|
||||
* grafico, da far confermare allo Studio (TODO-STUDIO.md).
|
||||
*/
|
||||
export const metodo = {
|
||||
eyebrow: 'Come lavoriamo',
|
||||
titolo: 'Dal primo contatto all’assistenza continuativa',
|
||||
testo:
|
||||
'Un percorso chiaro, con un unico interlocutore dall’inizio alla fine: sai sempre a che punto è la tua pratica e chi la segue.',
|
||||
cta: { label: 'Richiedi un preventivo', href: '/contatti/' },
|
||||
passi: [
|
||||
{
|
||||
titolo: 'Primo contatto',
|
||||
testo:
|
||||
'Ci chiami, ci scrivi o compili il modulo: raccogliamo la tua richiesta e, se serve, fissiamo un appuntamento a Montegrosso d’Asti o ad Asti.',
|
||||
},
|
||||
{
|
||||
titolo: 'Analisi della situazione',
|
||||
testo:
|
||||
'Esaminiamo la posizione fiscale, contabile o societaria e individuiamo gli adempimenti e le soluzioni più adatte alle tue esigenze.',
|
||||
},
|
||||
{
|
||||
titolo: 'Preventivo gratuito',
|
||||
testo:
|
||||
'Ti proponiamo un preventivo chiaro, gratuito e senza impegno, prima di iniziare l’attività.',
|
||||
},
|
||||
{
|
||||
titolo: 'Al tuo fianco nel tempo',
|
||||
testo:
|
||||
'Seguiamo gli adempimenti nel corso dell’anno e restiamo il tuo riferimento per ogni nuova esigenza, fino all’eventuale contenzioso tributario.',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const studioPagina = {
|
||||
meta: {
|
||||
titolo: 'Lo studio',
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
export const ctaBand = {
|
||||
eyebrow: 'Preventivo gratuito',
|
||||
titolo: 'Sei interessato ad uno dei nostri servizi?',
|
||||
testo:
|
||||
'Richiedi un preventivo gratuito e senza impegno: ti rispondiamo nel più breve tempo possibile.',
|
||||
|
||||
@@ -7,6 +7,7 @@ import frauncesUrl from '@fontsource-variable/fraunces/files/fraunces-latin-wght
|
||||
import interUrl from '@fontsource-variable/inter/files/inter-latin-wght-normal.woff2?url';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import Header from '../components/Header.astro';
|
||||
import LogoDefs from '../components/LogoDefs.astro';
|
||||
import { studio } from '../data/studio';
|
||||
import { breadcrumbLd, jsonLdScript, organizationLd, pageTitle, type Crumb } from '../lib/seo';
|
||||
import { getServizi } from '../lib/servizi';
|
||||
@@ -126,18 +127,20 @@ const servizi = await getServizi();
|
||||
height: auto !important;
|
||||
max-height: none !important;
|
||||
margin: 0 0 var(--space-4) !important;
|
||||
padding: 0 !important;
|
||||
padding: var(--space-2) var(--space-4) var(--space-4) !important;
|
||||
border: 0 !important;
|
||||
background: transparent !important;
|
||||
border-radius: var(--radius-lg) !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<body id="inizio">
|
||||
<a class="skip-link" href="#contenuto">
|
||||
Vai al contenuto principale
|
||||
</a>
|
||||
<div class="scroll-progress" aria-hidden="true"></div>
|
||||
<LogoDefs />
|
||||
<Header servizi={servizi} />
|
||||
<main id="contenuto" tabindex="-1">
|
||||
<slot />
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Tracciato della «G» del marchio, letto da src/assets/logo-mark.svg (generato da
|
||||
* scripts/generate-icons.mjs). Ogni pagina lo definisce una sola volta (LogoDefs in
|
||||
* BaseLayout) e i loghi lo richiamano con <use>: tre loghi per pagina (intestazione, menu
|
||||
* mobile, footer) senza ripetere ~2 KB di tracciato (budget HTML+CSS di 120 KB).
|
||||
*/
|
||||
import markSvg from '../assets/logo-mark.svg?raw';
|
||||
|
||||
const match = /class="logo-mark__glyph" d="([^"]+)"/.exec(markSvg);
|
||||
if (!match) throw new Error('src/assets/logo-mark.svg: tracciato «logo-mark__glyph» non trovato');
|
||||
|
||||
export const LOGO_GLYPH_PATH = match[1];
|
||||
export const LOGO_GLYPH_ID = 'logo-glyph';
|
||||
+54
-17
@@ -6,32 +6,62 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
||||
---
|
||||
|
||||
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} noindex>
|
||||
<section class="section notfound">
|
||||
<div class="container">
|
||||
<p class="eyebrow">Errore 404</p>
|
||||
<h1>{t.titolo}</h1>
|
||||
<p class="lead">{t.testo}</p>
|
||||
<ul class="notfound__links">
|
||||
{t.link.map((l) => (
|
||||
<li>
|
||||
<a class="btn btn--outline" href={l.href}>
|
||||
<Icon name={l.icona} size={18} />
|
||||
{l.label}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<section class="stage notfound">
|
||||
<div class="stage__decor" aria-hidden="true"></div>
|
||||
<div class="container notfound__inner">
|
||||
<p class="notfound__code" aria-hidden="true">
|
||||
404
|
||||
</p>
|
||||
<div>
|
||||
<p class="eyebrow">Errore 404</p>
|
||||
<h1>{t.titolo}</h1>
|
||||
<p class="notfound__lead">{t.testo}</p>
|
||||
<ul class="notfound__links">
|
||||
{t.link.map((l) => (
|
||||
<li>
|
||||
<a class="btn btn--ghost-light" href={l.href}>
|
||||
<Icon name={l.icona} size={18} />
|
||||
{l.label}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</BaseLayout>
|
||||
|
||||
<style>
|
||||
.notfound {
|
||||
background: linear-gradient(180deg, var(--navy-050) 0%, var(--white) 100%);
|
||||
margin-top: var(--stage-inset);
|
||||
}
|
||||
|
||||
.notfound .lead {
|
||||
.notfound__inner {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: var(--space-8);
|
||||
padding-block: clamp(4rem, 10vw, 8rem);
|
||||
}
|
||||
|
||||
/* numero gigante, pieno di un gradiente oro (decorativo) */
|
||||
.notfound__code {
|
||||
margin: 0;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(6rem, 4rem + 10vw, 14rem);
|
||||
font-weight: 400;
|
||||
line-height: 0.85;
|
||||
letter-spacing: -0.06em;
|
||||
background: var(--gold-gradient);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.notfound__lead {
|
||||
max-width: 40rem;
|
||||
font-size: var(--fs-lg);
|
||||
color: var(--on-dark);
|
||||
}
|
||||
|
||||
.notfound__links {
|
||||
@@ -41,4 +71,11 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
||||
margin-top: var(--space-5);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.notfound__inner {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-4);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -19,11 +19,63 @@ const breadcrumbs = [
|
||||
>
|
||||
<PageHead title={t.titolo} subtitle={t.testo} breadcrumbs={breadcrumbs} />
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<a class="btn btn--primary" href={t.link.href}>
|
||||
<div class="container grazie">
|
||||
<svg class="grazie__check" viewBox="0 0 52 52" width="52" height="52" aria-hidden="true">
|
||||
<circle cx="26" cy="26" r="24"></circle>
|
||||
<path d="M15 27l7 7 15-16"></path>
|
||||
</svg>
|
||||
<a class="btn btn--primary btn--lg" href={t.link.href}>
|
||||
{t.link.label}
|
||||
<Icon name="arrow-right" size={18} />
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</BaseLayout>
|
||||
|
||||
<style>
|
||||
.grazie {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
/* spunta che si disegna all'apertura della pagina */
|
||||
.grazie__check {
|
||||
flex: none;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
fill: none;
|
||||
stroke-width: 3;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.grazie__check circle {
|
||||
stroke: var(--success);
|
||||
stroke-dasharray: 151;
|
||||
}
|
||||
|
||||
.grazie__check path {
|
||||
stroke: var(--success);
|
||||
stroke-dasharray: 36;
|
||||
}
|
||||
|
||||
@keyframes draw {
|
||||
from {
|
||||
stroke-dashoffset: var(--len);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.grazie__check circle {
|
||||
--len: 151;
|
||||
animation: draw 700ms var(--ease-out) both;
|
||||
}
|
||||
|
||||
.grazie__check path {
|
||||
--len: 36;
|
||||
animation: draw 450ms 500ms var(--ease-out) both;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -29,12 +29,14 @@ const breadcrumbs = [{ name: t.titolo, href: '/contatti/' }];
|
||||
<section class="section section--paper" aria-labelledby="contatti-mappa">
|
||||
<div class="container">
|
||||
<SectionHead id="contatti-mappa" eyebrow={t.mappa.eyebrow} title={t.mappa.titolo} />
|
||||
<MapConsent
|
||||
embedUrl={sedePrincipale.mappa.embedUrl}
|
||||
title={mapTitle(sedePrincipale)}
|
||||
query={mapQuery(sedePrincipale.indirizzo)}
|
||||
place={sedePrincipale.nome}
|
||||
/>
|
||||
<div class="contact-map">
|
||||
<MapConsent
|
||||
embedUrl={sedePrincipale.mappa.embedUrl}
|
||||
title={mapTitle(sedePrincipale)}
|
||||
query={mapQuery(sedePrincipale.indirizzo)}
|
||||
place={sedePrincipale.nome}
|
||||
/>
|
||||
</div>
|
||||
<p class="contact-more">
|
||||
<a href="/dove-siamo/">
|
||||
Tutte le sedi e le indicazioni stradali
|
||||
|
||||
@@ -17,7 +17,7 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
<PageHead title={t.titolo} subtitle={t.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||
|
||||
<section class="section" aria-label="Le sedi">
|
||||
<div class="container grid grid--2 sedi">
|
||||
<div class="container grid grid--2 sedi reveal-group">
|
||||
{sedi.map((s) => (
|
||||
<SedeCard sede={s} variant="full" headingLevel={2} />
|
||||
))}
|
||||
|
||||
+31
-13
@@ -1,9 +1,10 @@
|
||||
---
|
||||
/** Home (brief §7.1). */
|
||||
/** Home (brief §7.1; rework grafico D-058). */
|
||||
import BadgeAbilitazione from '../components/BadgeAbilitazione.astro';
|
||||
import CtaBand from '../components/CtaBand.astro';
|
||||
import Hero from '../components/Hero.astro';
|
||||
import Icon from '../components/Icon.astro';
|
||||
import Metodo from '../components/Metodo.astro';
|
||||
import PartnerGrid from '../components/PartnerGrid.astro';
|
||||
import PersonCard from '../components/PersonCard.astro';
|
||||
import SectionHead from '../components/SectionHead.astro';
|
||||
@@ -24,6 +25,12 @@ import { getServizi } from '../lib/servizi';
|
||||
|
||||
const servizi = await getServizi();
|
||||
const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipale.id)];
|
||||
const numeri = [
|
||||
{ valore: servizi.length, etichetta: home.hero.numeri.servizi },
|
||||
{ valore: abilitazioni.length, etichetta: home.hero.numeri.abilitazioni },
|
||||
{ valore: studio.sedi.length, etichetta: home.hero.numeri.sedi },
|
||||
{ valore: professionisti.length, etichetta: home.hero.numeri.professionisti },
|
||||
];
|
||||
---
|
||||
|
||||
<BaseLayout
|
||||
@@ -31,7 +38,7 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
fullTitle={home.meta.titoloCompleto}
|
||||
description={home.meta.descrizione}
|
||||
>
|
||||
<Hero {...home.hero} />
|
||||
<Hero {...home.hero} numeri={numeri} />
|
||||
|
||||
<section class="section" aria-labelledby="home-servizi">
|
||||
<div class="container">
|
||||
@@ -40,18 +47,21 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
eyebrow={home.servizi.eyebrow}
|
||||
title={home.servizi.titolo}
|
||||
subtitle={home.servizi.sottotitolo}
|
||||
layout="split"
|
||||
/>
|
||||
<div class="grid grid--3">
|
||||
{servizi.map((s) => (
|
||||
<ServiceCard servizio={s} />
|
||||
<div class="bento reveal-group">
|
||||
{servizi.map((s, i) => (
|
||||
<ServiceCard servizio={s} index={i} featured={i === 0} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section section--paper" aria-labelledby="home-studio">
|
||||
<Metodo />
|
||||
|
||||
<section class="section" aria-labelledby="home-studio">
|
||||
<div class="container split">
|
||||
<div class="prose">
|
||||
<div class="prose reveal">
|
||||
<p class="eyebrow">{home.studio.eyebrow}</p>
|
||||
<h2 id="home-studio">{home.studio.titolo}</h2>
|
||||
{home.studio.paragrafi.map((p) => (
|
||||
@@ -67,7 +77,7 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
<Icon name="arrow-right" size={18} />
|
||||
</a>
|
||||
</div>
|
||||
<div class="home-people">
|
||||
<div class="home-people reveal-group">
|
||||
{professionisti.map((p) => (
|
||||
<PersonCard persona={p} variant="compact" />
|
||||
))}
|
||||
@@ -75,21 +85,24 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section" aria-labelledby="home-abilitazioni">
|
||||
<div class="container">
|
||||
<section class="stage credenziali" aria-labelledby="home-abilitazioni">
|
||||
<div class="stage__decor" aria-hidden="true"></div>
|
||||
<div class="container section">
|
||||
<SectionHead
|
||||
id="home-abilitazioni"
|
||||
eyebrow={home.abilitazioni.eyebrow}
|
||||
title={home.abilitazioni.titolo}
|
||||
subtitle={home.abilitazioni.sottotitolo}
|
||||
layout="split"
|
||||
/>
|
||||
<ul class="grid grid--3 badges">
|
||||
<ul class="grid grid--3 badges reveal-group">
|
||||
{abilitazioni.map((a) => (
|
||||
<BadgeAbilitazione
|
||||
testo={a.testo}
|
||||
professionista={nomeProfessionista(a.professionista)}
|
||||
personaId={a.professionista}
|
||||
icona={a.icona}
|
||||
tone="dark"
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
@@ -103,6 +116,7 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
eyebrow={home.partner.eyebrow}
|
||||
title={home.partner.titolo}
|
||||
subtitle={home.partner.sottotitolo}
|
||||
layout="split"
|
||||
/>
|
||||
<PartnerGrid partner={partner} />
|
||||
</div>
|
||||
@@ -113,7 +127,7 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
<section class="section" aria-labelledby="home-sedi">
|
||||
<div class="container">
|
||||
<SectionHead id="home-sedi" eyebrow={home.sedi.eyebrow} title={home.sedi.titolo} />
|
||||
<div class="grid grid--2">
|
||||
<div class="grid grid--2 reveal-group">
|
||||
{sedi.map((s) => (
|
||||
<SedeCard sede={s} variant="compact" />
|
||||
))}
|
||||
@@ -131,7 +145,7 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
}
|
||||
|
||||
.home-values {
|
||||
margin: var(--space-5) 0;
|
||||
margin: var(--space-5) 0 var(--space-6);
|
||||
}
|
||||
|
||||
.home-people {
|
||||
@@ -143,6 +157,10 @@ const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipa
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.credenziali .section {
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.split {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
|
||||
@@ -17,7 +17,7 @@ const breadcrumbs = [{ name: t.titolo, href: '/link-utili/' }];
|
||||
|
||||
<section class="section" aria-label="Elenco dei link">
|
||||
<div class="container">
|
||||
<ul class="grid grid--2 links">
|
||||
<ul class="grid grid--2 links reveal-group">
|
||||
{links.map((l) => (
|
||||
<li class="link-card">
|
||||
<span class="link-card__icon">
|
||||
@@ -50,30 +50,41 @@ const breadcrumbs = [{ name: t.titolo, href: '/link-utili/' }];
|
||||
}
|
||||
|
||||
.link-card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr);
|
||||
grid-template-columns: 48px minmax(0, 1fr);
|
||||
gap: var(--space-4);
|
||||
align-items: start;
|
||||
padding: var(--space-5);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition:
|
||||
transform 260ms var(--ease-out),
|
||||
box-shadow 260ms var(--ease-out),
|
||||
border-color 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.link-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--gold-300);
|
||||
}
|
||||
|
||||
.link-card__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 10px;
|
||||
background: var(--navy-050);
|
||||
color: var(--navy-700);
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: var(--navy-800);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.link-card h2 {
|
||||
margin: 0.1rem 0 0.35rem;
|
||||
font-size: 1.2rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.link-card p {
|
||||
@@ -93,6 +104,16 @@ const breadcrumbs = [{ name: t.titolo, href: '/link-utili/' }];
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.link-card a :global(svg) {
|
||||
flex: none;
|
||||
color: var(--gold-700);
|
||||
transition: transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.link-card:hover a :global(svg) {
|
||||
transform: translate(2px, -2px);
|
||||
}
|
||||
|
||||
.links__note {
|
||||
margin: var(--space-6) 0 0;
|
||||
font-size: var(--fs-sm);
|
||||
|
||||
+105
-29
@@ -16,6 +16,7 @@ import { externalLinksNoopener } from '../../lib/html';
|
||||
import { telHref, telText } from '../../lib/format';
|
||||
import { serviceLd } from '../../lib/seo';
|
||||
import { getServizi, servizioHref, type Servizio } from '../../lib/servizi';
|
||||
import '../../styles/checklist.css';
|
||||
|
||||
export const getStaticPaths = (async () => {
|
||||
const servizi = await getServizi();
|
||||
@@ -73,13 +74,15 @@ const nextWords = words(next.data.titolo);
|
||||
{servizi.map((s) => (
|
||||
<li>
|
||||
<a href={servizioHref(s)} aria-current={s.id === servizio.id ? 'page' : undefined}>
|
||||
<Icon name={s.data.icona} size={18} />
|
||||
{s.data.titolo}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="sidenav__cta">
|
||||
<div class="sidenav__cta stage">
|
||||
<div class="stage__decor" aria-hidden="true"></div>
|
||||
<p class="sidenav__cta-title">{ctaSidebar.titolo}</p>
|
||||
<p>{ctaSidebar.testo}</p>
|
||||
<a class="btn btn--gold btn--sm" href={ctaSidebar.pulsante.href}>
|
||||
@@ -98,7 +101,7 @@ const nextWords = words(next.data.titolo);
|
||||
<Fragment set:html={contentHtml} />
|
||||
|
||||
<nav class="pager" aria-label="Servizio precedente e successivo">
|
||||
<a href={servizioHref(prev)} rel="prev">
|
||||
<a class="reveal" href={servizioHref(prev)} rel="prev">
|
||||
<span class="pager__label">Precedente</span>
|
||||
<span class="pager__title">
|
||||
<span class="pager__nowrap">
|
||||
@@ -108,7 +111,7 @@ const nextWords = words(next.data.titolo);
|
||||
{prevWords.slice(1).join(' ')}
|
||||
</span>
|
||||
</a>
|
||||
<a href={servizioHref(next)} rel="next">
|
||||
<a class="reveal" href={servizioHref(next)} rel="next">
|
||||
<span class="pager__label">Successivo</span>
|
||||
<span class="pager__title">
|
||||
{nextWords.slice(0, -1).join(' ')}
|
||||
@@ -129,23 +132,30 @@ const nextWords = words(next.data.titolo);
|
||||
<style>
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: 17.5rem minmax(0, 1fr);
|
||||
grid-template-columns: 18.5rem minmax(0, 1fr);
|
||||
gap: var(--space-8);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.sidenav {
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + 1.5rem);
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
/* ferma durante lo scorrimento solo se ci sta tutta (invito e telefono compresi) */
|
||||
@media (min-width: 60.01em) and (min-height: 50em) {
|
||||
.sidenav {
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + 1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
.sidenav__box {
|
||||
padding: var(--space-3);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.sidenav__box ul {
|
||||
@@ -164,14 +174,25 @@ const nextWords = words(next.data.titolo);
|
||||
.sidenav__box a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
min-height: var(--tap);
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 0.55rem 0.75rem;
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--ink-700);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 500;
|
||||
line-height: 1.35;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
background-color var(--dur) var(--ease),
|
||||
color var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.sidenav__box a :global(svg) {
|
||||
flex: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
.sidenav__box a:hover {
|
||||
@@ -184,15 +205,17 @@ const nextWords = words(next.data.titolo);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.sidenav__box a[aria-current='page'] :global(svg) {
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.sidenav__cta {
|
||||
--focus-ring: var(--gold-500);
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
justify-items: start;
|
||||
margin: 0;
|
||||
padding: var(--space-5);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--navy-800);
|
||||
color: var(--white);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.sidenav__cta p {
|
||||
@@ -203,9 +226,9 @@ const nextWords = words(next.data.titolo);
|
||||
|
||||
.sidenav__cta .sidenav__cta-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.2rem;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.3;
|
||||
line-height: 1.25;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
@@ -232,13 +255,32 @@ const nextWords = words(next.data.titolo);
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
/* gruppi del servizio numerati (titoli ## del Markdown) */
|
||||
.content {
|
||||
counter-reset: gruppo;
|
||||
}
|
||||
|
||||
.content :global(h2) {
|
||||
font-size: 1.6rem;
|
||||
margin-top: var(--space-6);
|
||||
padding-top: var(--space-5);
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: var(--space-4);
|
||||
font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
|
||||
margin-top: var(--space-7);
|
||||
padding-top: var(--space-6);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.content :global(h2)::before {
|
||||
counter-increment: gruppo;
|
||||
content: counter(gruppo, decimal-leading-zero);
|
||||
content: counter(gruppo, decimal-leading-zero) / '';
|
||||
flex: none;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
.content :global(h2:first-child) {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
@@ -255,20 +297,54 @@ const nextWords = words(next.data.titolo);
|
||||
color: var(--ink-700);
|
||||
}
|
||||
|
||||
/* voci della checklist come piccole schede */
|
||||
.content :global(ul li) {
|
||||
padding: 0.8rem 1rem 0.8rem 2.75rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--white);
|
||||
transition:
|
||||
border-color var(--dur) var(--ease),
|
||||
box-shadow var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.content :global(ul li:hover) {
|
||||
border-color: var(--gold-300);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.content :global(ul li)::before {
|
||||
left: 1rem;
|
||||
top: 0.95rem;
|
||||
}
|
||||
|
||||
.pager {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-4);
|
||||
margin-top: var(--space-7);
|
||||
padding-top: var(--space-5);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.pager a {
|
||||
display: grid;
|
||||
gap: 0.2rem;
|
||||
align-content: start;
|
||||
gap: 0.35rem;
|
||||
min-height: var(--tap);
|
||||
padding: var(--space-5);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--white);
|
||||
text-decoration: none;
|
||||
transition:
|
||||
border-color 260ms var(--ease-out),
|
||||
box-shadow 260ms var(--ease-out),
|
||||
transform 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.pager a:hover {
|
||||
border-color: var(--gold-300);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.pager a:last-child {
|
||||
@@ -284,7 +360,10 @@ const nextWords = words(next.data.titolo);
|
||||
}
|
||||
|
||||
.pager__title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
@@ -295,11 +374,8 @@ const nextWords = words(next.data.titolo);
|
||||
/* tra freccia e parola basta lo spazio del testo */
|
||||
.pager__nowrap :global(svg) {
|
||||
display: inline-block;
|
||||
vertical-align: -0.2em;
|
||||
}
|
||||
|
||||
.pager a:hover .pager__title {
|
||||
text-decoration: underline;
|
||||
vertical-align: -0.15em;
|
||||
color: var(--gold-700);
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
@@ -321,7 +397,7 @@ const nextWords = words(next.data.titolo);
|
||||
|
||||
@media (max-width: 40em) {
|
||||
.pager {
|
||||
flex-direction: column;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.pager a:last-child {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* link /servizi#… atterrano sulla card giusta; con JavaScript si passa alla pagina di dettaglio.
|
||||
*/
|
||||
import CtaBand from '../../components/CtaBand.astro';
|
||||
import Metodo from '../../components/Metodo.astro';
|
||||
import PageHead from '../../components/PageHead.astro';
|
||||
import ServiceCard from '../../components/ServiceCard.astro';
|
||||
import { serviziPagina as t } from '../../data/pagine';
|
||||
@@ -19,14 +20,23 @@ const breadcrumbs = [{ name: 'Servizi', href: '/servizi/' }];
|
||||
|
||||
<section class="section" aria-label="Elenco dei servizi">
|
||||
<div class="container">
|
||||
<div class="grid grid--3">
|
||||
{servizi.map((s) => (
|
||||
<ServiceCard servizio={s} id={s.data.anchorLegacy} legacy headingLevel={2} />
|
||||
<div class="bento reveal-group">
|
||||
{servizi.map((s, i) => (
|
||||
<ServiceCard
|
||||
servizio={s}
|
||||
id={s.data.anchorLegacy}
|
||||
legacy
|
||||
headingLevel={2}
|
||||
index={i}
|
||||
featured={i === 0}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<Metodo />
|
||||
|
||||
<CtaBand />
|
||||
|
||||
{/* dentro il layout: scritto dopo </BaseLayout> finirebbe dopo </html> (HTML non valido) */}
|
||||
|
||||
+88
-18
@@ -18,6 +18,7 @@ import {
|
||||
valori,
|
||||
} from '../data/studio';
|
||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||
import '../styles/checklist.css';
|
||||
|
||||
const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
---
|
||||
@@ -27,14 +28,14 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
|
||||
<section class="section" aria-labelledby="studio-chi-siamo">
|
||||
<div class="container studio-intro">
|
||||
<div class="prose">
|
||||
<div class="prose reveal">
|
||||
<p class="eyebrow">{t.chiSiamo.eyebrow}</p>
|
||||
<h2 id="studio-chi-siamo">{t.chiSiamo.titolo}</h2>
|
||||
{t.chiSiamo.paragrafi.map((p) => (
|
||||
<p>{p}</p>
|
||||
))}
|
||||
</div>
|
||||
<div class="studio-intro__visual" aria-hidden="true">
|
||||
<div class="studio-intro__visual reveal" aria-hidden="true">
|
||||
<Illustrazione width={560} height={420} />
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,11 +44,16 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
<section class="section section--paper" aria-labelledby="studio-valori">
|
||||
<div class="container">
|
||||
<SectionHead id="studio-valori" eyebrow={t.valori.eyebrow} title={t.valori.titolo} />
|
||||
<ul class="grid grid--4 values">
|
||||
{valori.map((v) => (
|
||||
<ul class="grid grid--4 values reveal-group">
|
||||
{valori.map((v, i) => (
|
||||
<li class="value">
|
||||
<span class="value__icon">
|
||||
<Icon name={v.icona} size={22} />
|
||||
<span class="value__top">
|
||||
<span class="value__icon">
|
||||
<Icon name={v.icona} size={22} />
|
||||
</span>
|
||||
<span class="value__num" aria-hidden="true">
|
||||
{String(i + 1).padStart(2, '0')}
|
||||
</span>
|
||||
</span>
|
||||
<h3>{v.nome}</h3>
|
||||
<p>{v.descrizione}</p>
|
||||
@@ -64,7 +70,7 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
eyebrow={t.professionisti.eyebrow}
|
||||
title={t.professionisti.titolo}
|
||||
/>
|
||||
<div class="grid grid--2 people">
|
||||
<div class="grid grid--2 people reveal-group">
|
||||
{professionisti.map((p) => (
|
||||
<PersonCard persona={p} variant="full" />
|
||||
))}
|
||||
@@ -72,21 +78,24 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section section--tint" aria-labelledby="studio-abilitazioni">
|
||||
<div class="container">
|
||||
<section class="stage" aria-labelledby="studio-abilitazioni">
|
||||
<div class="stage__decor" aria-hidden="true"></div>
|
||||
<div class="container section">
|
||||
<SectionHead
|
||||
id="studio-abilitazioni"
|
||||
eyebrow={t.abilitazioni.eyebrow}
|
||||
title={t.abilitazioni.titolo}
|
||||
subtitle={t.abilitazioni.sottotitolo}
|
||||
layout="split"
|
||||
/>
|
||||
<ul class="grid grid--3 badges">
|
||||
<ul class="grid grid--3 badges reveal-group">
|
||||
{abilitazioni.map((a) => (
|
||||
<BadgeAbilitazione
|
||||
testo={a.testo}
|
||||
professionista={nomeProfessionista(a.professionista)}
|
||||
personaId={a.professionista}
|
||||
icona={a.icona}
|
||||
tone="dark"
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
@@ -100,9 +109,10 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
eyebrow={t.partner.eyebrow}
|
||||
title={t.partner.titolo}
|
||||
subtitle={t.partner.sottotitolo}
|
||||
layout="split"
|
||||
/>
|
||||
<PartnerGrid partner={partner} />
|
||||
<div class="collab">
|
||||
<div class="collab reveal">
|
||||
<h3>{t.partner.collaborazioniTitolo}</h3>
|
||||
<p>{t.partner.collaborazioniTesto}</p>
|
||||
<ul class="checklist">
|
||||
@@ -125,7 +135,29 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* illustrazione in una cornice tinta, con un anello oro sfalsato */
|
||||
.studio-intro__visual {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: var(--space-6);
|
||||
border-radius: var(--radius-xl);
|
||||
background: var(--navy-050);
|
||||
}
|
||||
|
||||
.studio-intro__visual::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 11rem;
|
||||
height: 11rem;
|
||||
right: -3.5rem;
|
||||
top: -3.5rem;
|
||||
border-radius: 50%;
|
||||
border: 10px solid var(--gold-300);
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.studio-intro__visual :global(svg) {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
@@ -141,15 +173,30 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
padding: var(--space-5);
|
||||
background: var(--white);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
transition:
|
||||
transform 260ms var(--ease-out),
|
||||
box-shadow 260ms var(--ease-out);
|
||||
}
|
||||
|
||||
.value:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.value__top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.value__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 10px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: var(--gold-100);
|
||||
color: var(--gold-700);
|
||||
}
|
||||
@@ -159,9 +206,20 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.value__num {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.75rem;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.03em;
|
||||
background: var(--gold-gradient);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.value h3 {
|
||||
margin: var(--space-2) 0 0;
|
||||
font-size: 1.15rem;
|
||||
margin: 0;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.value p {
|
||||
@@ -176,7 +234,9 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
|
||||
.collab {
|
||||
margin-top: var(--space-7);
|
||||
max-width: 56rem;
|
||||
padding: var(--space-6);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.collab h3 {
|
||||
@@ -187,6 +247,10 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
color: var(--ink-700);
|
||||
}
|
||||
|
||||
.collab .checklist {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.studio-intro {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
@@ -197,4 +261,10 @@ const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||
max-width: 32rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 40em) {
|
||||
.collab {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Indice delle pagine «documento» (LegalDocument): evidenzia con aria-current la voce della
|
||||
* sezione che si sta leggendo, cioè l'ultima il cui titolo ha superato il primo terzo della
|
||||
* finestra; a fondo pagina la voce scelta dall'indice, se visibile, altrimenti l'ultima (le
|
||||
* ultime sezioni possono essere troppo corte per arrivare in alto). Miglioramento
|
||||
* progressivo: senza JavaScript l'indice funziona come elenco di link.
|
||||
*/
|
||||
|
||||
function initToc(): void {
|
||||
const links = Array.from(document.querySelectorAll<HTMLAnchorElement>('[data-toc] a[href^="#"]'));
|
||||
const entries = links
|
||||
.map((link) => ({
|
||||
link,
|
||||
heading: document.getElementById(decodeURIComponent(link.hash.slice(1))),
|
||||
}))
|
||||
.filter((e): e is { link: HTMLAnchorElement; heading: HTMLElement } => e.heading !== null);
|
||||
if (entries.length === 0) return;
|
||||
|
||||
let current: HTMLAnchorElement | null = null;
|
||||
const update = () => {
|
||||
const line = window.innerHeight * 0.35;
|
||||
const root = document.documentElement;
|
||||
const atBottom = window.scrollY + window.innerHeight >= root.scrollHeight - 2;
|
||||
let active: HTMLAnchorElement | null = null;
|
||||
if (atBottom && window.scrollY > 0) {
|
||||
// in fondo vince la sezione scelta dall'indice, se il suo titolo è visibile
|
||||
const chosen = entries.find((e) => e.link.hash === window.location.hash);
|
||||
const top = chosen?.heading.getBoundingClientRect().top;
|
||||
active =
|
||||
chosen && top !== undefined && top >= 0 && top < window.innerHeight
|
||||
? chosen.link
|
||||
: entries[entries.length - 1].link;
|
||||
} else {
|
||||
for (const { link, heading } of entries) {
|
||||
if (heading.getBoundingClientRect().top <= line) active = link;
|
||||
}
|
||||
}
|
||||
if (active === current) return;
|
||||
current?.removeAttribute('aria-current');
|
||||
active?.setAttribute('aria-current', 'location');
|
||||
current = active;
|
||||
};
|
||||
|
||||
// scorrimento e ridimensionamento, al più un ricalcolo per fotogramma (salti con Home,
|
||||
// «Torna su» o scorrimenti veloci non passerebbero da un IntersectionObserver)
|
||||
let queued = false;
|
||||
const schedule = () => {
|
||||
if (queued) return;
|
||||
queued = true;
|
||||
requestAnimationFrame(() => {
|
||||
queued = false;
|
||||
update();
|
||||
});
|
||||
};
|
||||
window.addEventListener('scroll', schedule, { passive: true });
|
||||
window.addEventListener('resize', schedule, { passive: true });
|
||||
// un clic sull'indice con la pagina già in fondo non produce eventi di scorrimento
|
||||
window.addEventListener('hashchange', schedule);
|
||||
update();
|
||||
}
|
||||
|
||||
initToc();
|
||||
|
||||
export {};
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Studio Grasso — checklist con icona: elenchi dei servizi (Markdown, .content) e delle
|
||||
collaborazioni (pagina Lo studio). Importato solo dalle pagine che la usano. */
|
||||
|
||||
.checklist,
|
||||
.content ul {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 0.6rem var(--space-5);
|
||||
margin: var(--space-4) 0 var(--space-5);
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.checklist li,
|
||||
.content ul li {
|
||||
position: relative;
|
||||
padding-left: 1.75rem;
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--ink-700);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.checklist li::before,
|
||||
.content ul li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.12em;
|
||||
width: 1.15rem;
|
||||
height: 1.15rem;
|
||||
background-color: var(--gold-700);
|
||||
/* icona Lucide «circle-check» */
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
}
|
||||
|
||||
@media (max-width: 40em) {
|
||||
.checklist,
|
||||
.content ul {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Studio Grasso — pagine «documento» (privacy, cookie, note legali, accessibilità).
|
||||
Importato da LegalDocument.astro. */
|
||||
|
||||
.doc {
|
||||
max-width: var(--measure);
|
||||
}
|
||||
|
||||
.doc h2 {
|
||||
font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
|
||||
margin-top: var(--space-7);
|
||||
padding-top: var(--space-5);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.doc h2:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.doc h3 {
|
||||
font-size: 1.15rem;
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
|
||||
.doc p,
|
||||
.doc li,
|
||||
.doc dd {
|
||||
color: var(--ink-700);
|
||||
}
|
||||
|
||||
.doc ul,
|
||||
.doc ol {
|
||||
padding-left: 1.4rem;
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
.doc li + li {
|
||||
margin-top: 0.35rem;
|
||||
}
|
||||
|
||||
.doc a {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
+237
-86
@@ -1,5 +1,5 @@
|
||||
/* ==========================================================================
|
||||
Studio Grasso — stili globali: reset, tipografia, layout, bottoni, utilità.
|
||||
Studio Grasso — stili globali: reset, tipografia, layout, palchi scuri, bottoni, movimento.
|
||||
Gli stili dei singoli componenti stanno nei rispettivi file .astro.
|
||||
========================================================================== */
|
||||
|
||||
@@ -15,6 +15,7 @@ html {
|
||||
text-size-adjust: 100%;
|
||||
scroll-behavior: smooth;
|
||||
scroll-padding-top: calc(var(--header-h) + 1rem);
|
||||
accent-color: var(--navy-800);
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -69,19 +70,22 @@ h4 {
|
||||
font-weight: 600;
|
||||
line-height: var(--lh-tight);
|
||||
margin: 0 0 var(--space-4);
|
||||
letter-spacing: -0.01em;
|
||||
letter-spacing: -0.015em;
|
||||
color: var(--navy-900);
|
||||
text-wrap: balance;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: var(--fs-h1);
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: var(--fs-h2);
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@@ -90,6 +94,7 @@ h3 {
|
||||
|
||||
p {
|
||||
margin: 0 0 var(--space-4);
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
ul,
|
||||
@@ -223,6 +228,127 @@ button {
|
||||
}
|
||||
}
|
||||
|
||||
/* --- griglia «bento» dei servizi (home e /servizi/) ---
|
||||
La prima card (in evidenza) occupa due righe; l'ultima, se resterebbe sola nella riga,
|
||||
la occupa tutta (6 servizi: 1 grande + 4 + 1 larga). */
|
||||
.bento {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.bento > :first-child {
|
||||
grid-row: span 2;
|
||||
}
|
||||
|
||||
.bento > :last-child:nth-child(3n) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
@media (max-width: 60em) {
|
||||
.bento {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.bento > :first-child {
|
||||
grid-row: auto;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.bento > :last-child:nth-child(3n) {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.bento > :last-child:nth-child(even) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 40em) {
|
||||
.bento {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.bento > :first-child,
|
||||
.bento > :last-child:nth-child(even) {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- palchi scuri (hero, testate, credenziali, banda CTA) ---
|
||||
Fondo pieno sul contenitore (i controlli automatici del contrasto del focus leggono il fondo
|
||||
degli antenati); trama e bagliori stanno in un livello decorativo a parte (.stage__decor). */
|
||||
.stage {
|
||||
--focus-ring: var(--gold-300);
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
overflow: hidden;
|
||||
margin-inline: var(--stage-inset);
|
||||
border-radius: var(--radius-xl);
|
||||
background-color: var(--navy-950);
|
||||
color: var(--on-dark);
|
||||
}
|
||||
|
||||
.stage h1,
|
||||
.stage h2,
|
||||
.stage h3 {
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.stage .eyebrow {
|
||||
color: var(--gold-300);
|
||||
}
|
||||
|
||||
.stage .eyebrow::before {
|
||||
background: var(--gold-300);
|
||||
}
|
||||
|
||||
.stage__decor {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* clip dove esiste: un contenitore «hidden» è un contenitore di scorrimento, e le timeline
|
||||
view() dei figli seguirebbero lui, fermo, invece della pagina. In un blocco a parte perché
|
||||
il minificatore fonderebbe «hidden; clip» nel solo clip, che Safari/iOS 15 non conoscono. */
|
||||
@supports (overflow: clip) {
|
||||
.stage,
|
||||
.stage__decor {
|
||||
overflow: clip;
|
||||
}
|
||||
}
|
||||
|
||||
/* l'ultimo palco della pagina (banda CTA, 404) si stacca dal footer come due palchi tra loro */
|
||||
main > section.stage:last-of-type {
|
||||
margin-bottom: var(--stage-inset);
|
||||
}
|
||||
|
||||
/* trama a griglia sfumata verso i bordi */
|
||||
.stage__decor::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
|
||||
background-size: 56px 56px;
|
||||
-webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 70%);
|
||||
mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 70%);
|
||||
}
|
||||
|
||||
/* bagliori: oro in alto a destra, blu in basso a sinistra */
|
||||
.stage__decor::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -20%;
|
||||
background:
|
||||
radial-gradient(38% 42% at 82% 18%, rgba(184, 144, 46, 0.26), transparent 70%),
|
||||
radial-gradient(45% 50% at 8% 95%, rgba(31, 75, 116, 0.55), transparent 70%);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -263,7 +389,7 @@ button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
gap: 0.55rem;
|
||||
min-height: var(--tap);
|
||||
padding: 0.75rem 1.4rem;
|
||||
border-radius: var(--radius-pill);
|
||||
@@ -278,6 +404,7 @@ button {
|
||||
background-color var(--dur) var(--ease),
|
||||
color var(--dur) var(--ease),
|
||||
border-color var(--dur) var(--ease),
|
||||
box-shadow var(--dur) var(--ease),
|
||||
transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
@@ -285,27 +412,39 @@ button {
|
||||
flex: none;
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
transition: transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn:hover svg:last-child:not(:first-child) {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--navy-800);
|
||||
color: var(--white);
|
||||
box-shadow: 0 10px 24px -14px rgba(15, 42, 68, 0.9);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
background: var(--navy-900);
|
||||
color: var(--white);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 16px 30px -14px rgba(15, 42, 68, 0.9);
|
||||
}
|
||||
|
||||
.btn--gold {
|
||||
background: var(--gold-500);
|
||||
color: var(--navy-900);
|
||||
background: var(--gold-300);
|
||||
color: var(--navy-950);
|
||||
box-shadow: 0 12px 30px -14px rgba(227, 200, 120, 0.8);
|
||||
}
|
||||
|
||||
.btn--gold:hover {
|
||||
background: var(--gold-300);
|
||||
color: var(--navy-900);
|
||||
background: #edd794;
|
||||
color: var(--navy-950);
|
||||
box-shadow: 0 18px 36px -14px rgba(227, 200, 120, 0.9);
|
||||
}
|
||||
|
||||
.btn--outline {
|
||||
@@ -320,14 +459,21 @@ button {
|
||||
}
|
||||
|
||||
.btn--ghost-light {
|
||||
background: transparent;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--white);
|
||||
border-color: rgba(255, 255, 255, 0.55);
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.btn--ghost-light:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
color: var(--white);
|
||||
border-color: var(--white);
|
||||
}
|
||||
|
||||
.btn--lg {
|
||||
min-height: 3.25rem;
|
||||
padding: 0.9rem 1.6rem;
|
||||
font-size: var(--fs-md);
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
@@ -351,7 +497,7 @@ button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.35rem 0.8rem;
|
||||
padding: 0.4rem 0.9rem;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--gold-100);
|
||||
color: var(--gold-800);
|
||||
@@ -360,93 +506,98 @@ button {
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
/* --- checklist (elenchi di servizi, anche da Markdown) --- */
|
||||
.checklist,
|
||||
.content ul {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 0.6rem var(--space-5);
|
||||
margin: var(--space-4) 0 var(--space-5);
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.checklist li,
|
||||
.content ul li {
|
||||
position: relative;
|
||||
padding-left: 1.75rem;
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--ink-700);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.checklist li::before,
|
||||
.content ul li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.12em;
|
||||
width: 1.15rem;
|
||||
height: 1.15rem;
|
||||
background-color: var(--gold-700);
|
||||
/* icona Lucide «circle-check» */
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
}
|
||||
|
||||
@media (max-width: 40em) {
|
||||
.checklist,
|
||||
.content ul {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
/* --- movimento ---
|
||||
Solo CSS e solo come miglioramento: animazioni legate allo scorrimento (scroll-driven
|
||||
animations) dove il browser le supporta e l'utente non chiede di ridurre il movimento.
|
||||
Senza supporto, o con «riduci movimento», i contenuti sono semplicemente fermi e visibili. */
|
||||
/* niente opacità: l'animazione segue lo scorrimento, e un blocco fermo sul bordo inferiore
|
||||
della finestra resterebbe semitrasparente, con il testo sotto il contrasto AA */
|
||||
@keyframes reveal {
|
||||
from {
|
||||
translate: 0 3rem;
|
||||
scale: 0.97;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- documenti (pagine legali, accessibilità) --- */
|
||||
.doc {
|
||||
max-width: var(--measure);
|
||||
@keyframes rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
translate: 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.doc h2 {
|
||||
font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
|
||||
margin-top: var(--space-7);
|
||||
padding-top: var(--space-5);
|
||||
border-top: 1px solid var(--line);
|
||||
@keyframes grow-x {
|
||||
from {
|
||||
scale: 0 1;
|
||||
}
|
||||
|
||||
to {
|
||||
scale: 1 1;
|
||||
}
|
||||
}
|
||||
|
||||
.doc h2:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
@keyframes fade-out {
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.doc h3 {
|
||||
font-size: 1.15rem;
|
||||
margin-top: var(--space-6);
|
||||
/* barra di avanzamento della lettura (BaseLayout) */
|
||||
.scroll-progress {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.doc p,
|
||||
.doc li,
|
||||
.doc dd {
|
||||
color: var(--ink-700);
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
|
||||
::view-transition-old(root) {
|
||||
animation: fade-out 160ms var(--ease) both;
|
||||
}
|
||||
|
||||
::view-transition-new(root) {
|
||||
animation: rise 380ms var(--ease-out) both;
|
||||
}
|
||||
|
||||
/* la barra non segue lo spostamento tra le due posizioni (la barra superiore visibile o no):
|
||||
resta nella posizione della pagina nuova e passa con una dissolvenza */
|
||||
::view-transition-group(site-header) {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
@supports (animation-timeline: view()) {
|
||||
.reveal,
|
||||
.reveal-group > * {
|
||||
animation: reveal var(--ease-out) both;
|
||||
animation-timeline: view();
|
||||
animation-range: entry 0% entry 85%;
|
||||
}
|
||||
|
||||
.reveal-group > :nth-child(3n + 2) {
|
||||
animation-range: entry 6% entry 95%;
|
||||
}
|
||||
|
||||
.reveal-group > :nth-child(3n + 3) {
|
||||
animation-range: entry 12% cover 40%;
|
||||
}
|
||||
|
||||
.scroll-progress {
|
||||
display: block;
|
||||
position: fixed;
|
||||
inset: 0 0 auto;
|
||||
z-index: 120;
|
||||
height: 3px;
|
||||
background: var(--gold-gradient);
|
||||
transform-origin: 0 50%;
|
||||
scale: 0 1;
|
||||
pointer-events: none;
|
||||
animation: grow-x linear both;
|
||||
animation-timeline: scroll(root block);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.doc ul,
|
||||
.doc ol {
|
||||
padding-left: 1.4rem;
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
.doc li + li {
|
||||
margin-top: 0.35rem;
|
||||
}
|
||||
|
||||
.doc a {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* --- movimento ridotto --- */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
|
||||
@@ -54,6 +54,41 @@
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
/* palchi e card in evidenza: i fondi scuri non si stampano, il testo bianco sparirebbe */
|
||||
.stage,
|
||||
.stage *,
|
||||
.card--featured,
|
||||
.card--featured * {
|
||||
color: #000 !important;
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.stage,
|
||||
.site-footer {
|
||||
margin: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
/* decorazioni e numeri in gradiente (il testo trasparente senza fondo non si vede) */
|
||||
.stage__decor,
|
||||
.page-head__decor,
|
||||
.footer__wordmark,
|
||||
.footer__top,
|
||||
.scroll-progress,
|
||||
.card__num,
|
||||
.card__arrow,
|
||||
.value__num {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* nessuno stato di animazione nella pagina stampata */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
|
||||
+23
-13
@@ -1,11 +1,13 @@
|
||||
/* ==========================================================================
|
||||
Studio Grasso — token del design system (brief §6.2, Appendice B)
|
||||
Palette: navy (fiducia) + oro brunito (accento) + carta calda (sfondi)
|
||||
Studio Grasso — token del design system (brief §6.2, Appendice B; rework grafico D-058)
|
||||
Palette: navy (fiducia) + oro brunito (accento) + carta calda (sfondi); «palchi» navy
|
||||
profondi (--navy-950) per hero, testate, credenziali, banda CTA e footer.
|
||||
Tipografia: Fraunces (titoli) + Inter (testo), entrambi self-hosted
|
||||
========================================================================== */
|
||||
|
||||
:root {
|
||||
/* --- colori --- */
|
||||
--navy-950: #071423; /* palchi scuri: hero, testate, banda CTA, footer */
|
||||
--navy-900: #0b1f33;
|
||||
--navy-800: #0f2a44;
|
||||
--navy-700: #163a5c;
|
||||
@@ -15,7 +17,7 @@
|
||||
--gold-800: #806219; /* testo su fondo gold-100 (chip): contrasto 4.98:1 */
|
||||
--gold-700: #8a6a1e; /* accento su testo: contrasto AA su bianco e su carta */
|
||||
--gold-500: #b8902e; /* solo decorativo o su fondo navy, mai come testo su chiaro */
|
||||
--gold-300: #e3c878;
|
||||
--gold-300: #e3c878; /* testo e anello di focus sui palchi scuri (≥ 10:1 su navy-950) */
|
||||
--gold-100: #f7efd9;
|
||||
--paper: #f6f3ec;
|
||||
--white: #ffffff;
|
||||
@@ -24,6 +26,7 @@
|
||||
--ink-600: #4f5b66;
|
||||
--ink-400: #8a949e; /* solo elementi decorativi: contrasto insufficiente per il testo */
|
||||
--line: #dde3ea;
|
||||
--line-dark: rgba(255, 255, 255, 0.12);
|
||||
--success: #1e7b4f;
|
||||
--error: #b42318;
|
||||
|
||||
@@ -32,10 +35,13 @@
|
||||
--on-dark-muted: rgba(255, 255, 255, 0.74);
|
||||
|
||||
/* anello di focus (WCAG 1.4.11, ≥ 3:1 con il fondo): gold-700 sui fondi chiari (≥ 4,28:1);
|
||||
i contenitori navy (barra superiore, footer, banda CTA, riquadro dei servizi) lo
|
||||
ridefiniscono a gold-500 (≥ 4,9:1), perché gold-700 sul navy arriva solo a 2,9:1 */
|
||||
i contenitori navy (palchi .stage, barra superiore, menu mobile, footer) lo ridefiniscono
|
||||
a gold-300 (≥ 10:1 su navy-950), perché gold-700 sul navy arriva solo a 2,9:1 */
|
||||
--focus-ring: var(--gold-700);
|
||||
|
||||
/* accento in gradiente (solo decorativo: linee, numeri grandi, bordi) */
|
||||
--gold-gradient: linear-gradient(115deg, #f1dc9c 0%, #e3c878 30%, #b8902e 100%);
|
||||
|
||||
/* --- tipografia --- */
|
||||
--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
|
||||
--font-body:
|
||||
@@ -45,9 +51,9 @@
|
||||
--fs-md: 1.0625rem;
|
||||
--fs-lg: 1.1875rem;
|
||||
--fs-h3: 1.3125rem;
|
||||
--fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
|
||||
--fs-h1: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
|
||||
--lh-tight: 1.15;
|
||||
--fs-h2: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
|
||||
--fs-h1: clamp(2.25rem, 1.3rem + 3.1vw, 4rem);
|
||||
--lh-tight: 1.1;
|
||||
--lh-body: 1.65;
|
||||
--measure: 68ch;
|
||||
|
||||
@@ -61,23 +67,27 @@
|
||||
--space-7: 3rem;
|
||||
--space-8: 4rem;
|
||||
--space-9: 6rem;
|
||||
--section-pad: clamp(3.5rem, 7vw, 6rem);
|
||||
--section-pad: clamp(4rem, 8vw, 7rem);
|
||||
|
||||
/* --- forme --- */
|
||||
--radius-sm: 8px;
|
||||
--radius-md: 12px;
|
||||
--radius-lg: 20px;
|
||||
--radius-md: 14px;
|
||||
--radius-lg: 22px;
|
||||
--radius-xl: clamp(20px, 2.4vw, 32px);
|
||||
--radius-pill: 999px;
|
||||
--shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06), 0 1px 3px rgba(11, 31, 51, 0.08);
|
||||
--shadow-md: 0 10px 30px -12px rgba(11, 31, 51, 0.22);
|
||||
--shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.05), 0 2px 6px rgba(11, 31, 51, 0.06);
|
||||
--shadow-md: 0 18px 40px -18px rgba(11, 31, 51, 0.28);
|
||||
--shadow-lg: 0 40px 80px -32px rgba(7, 20, 35, 0.45), 0 12px 28px -14px rgba(7, 20, 35, 0.2);
|
||||
|
||||
/* --- layout --- */
|
||||
--container: 1200px;
|
||||
--gutter: clamp(1rem, 4vw, 2rem);
|
||||
--stage-inset: clamp(0.5rem, 1.2vw, 1rem); /* margine dei palchi scuri dal bordo */
|
||||
--header-h: 5rem;
|
||||
--tap: 44px; /* dimensione minima dei target touch */
|
||||
|
||||
/* --- movimento --- */
|
||||
--dur: 180ms;
|
||||
--ease: cubic-bezier(0.2, 0, 0, 1);
|
||||
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
Reference in new issue
Block a user