feat: design system, layout e componenti di base
- token, font self-hosted (Fraunces e Inter, sottoinsieme latin) con preload - BaseLayout con head completo (SEO, Open Graph, favicon) e JSON-LD dello studio - intestazione con barra superiore, navigazione e sottomenu servizi accessibili - menu mobile con dialog modale e alternativa senza JavaScript - footer con P.IVA, recapiti, servizi, orari e link legali - componenti: Logo, Icon (Lucide inline), Hero, card servizio, scheda professionista, badge abilitazione, card sede, mappa click-to-load, modulo di contatto, banda CTA, breadcrumb, intestazioni di sezione - generate-icons.mjs: marchio, favicon, apple-touch-icon e immagine OG - collection dei servizi e dei link utili con schemi Zod Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016zJ9ZWGKvoKoxYwbmnRKdJ
This commit is contained in:
58 files changed
+5077
-16
No files matched your search
@@ -0,0 +1,455 @@
|
||||
/* ==========================================================================
|
||||
Studio Grasso — stili globali: reset, tipografia, layout, bottoni, utilità.
|
||||
Gli stili dei singoli componenti stanno nei rispettivi file .astro.
|
||||
========================================================================== */
|
||||
|
||||
/* --- reset leggero --- */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-size-adjust: 100%;
|
||||
scroll-behavior: smooth;
|
||||
scroll-padding-top: calc(var(--header-h) + 1rem);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-md);
|
||||
line-height: var(--lh-body);
|
||||
color: var(--ink-900);
|
||||
background: var(--white);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
main:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
img,
|
||||
svg,
|
||||
picture,
|
||||
video {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
img {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--navy-700);
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 600;
|
||||
line-height: var(--lh-tight);
|
||||
margin: 0 0 var(--space-4);
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--navy-900);
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: var(--fs-h1);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: var(--fs-h2);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: var(--fs-h3);
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul[role='list'],
|
||||
ol[role='list'] {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
address {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 3px solid var(--gold-500);
|
||||
outline-offset: 3px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--gold-100);
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
/* --- utilità --- */
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
padding: 0 !important;
|
||||
margin: -1px !important;
|
||||
overflow: hidden !important;
|
||||
clip: rect(0 0 0 0) !important;
|
||||
white-space: nowrap !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: var(--space-4);
|
||||
top: var(--space-3);
|
||||
z-index: 200;
|
||||
padding: 0.75rem 1.1rem;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--navy-900);
|
||||
color: var(--white);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
transform: translateY(-200%);
|
||||
}
|
||||
|
||||
.skip-link:focus-visible,
|
||||
.skip-link:focus {
|
||||
transform: none;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
/* --- layout --- */
|
||||
.container {
|
||||
width: min(100% - 2 * var(--gutter), var(--container));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding-block: var(--section-pad);
|
||||
}
|
||||
|
||||
.section--paper {
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.section--tint {
|
||||
background: var(--navy-050);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.grid--2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.grid--3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.grid--4 {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.grid--3,
|
||||
.grid--4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.grid--2,
|
||||
.grid--3,
|
||||
.grid--4 {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gold-700);
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
.eyebrow::before {
|
||||
content: '';
|
||||
flex: none;
|
||||
width: 1.75rem;
|
||||
height: 2px;
|
||||
background: var(--gold-500);
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-size: var(--fs-lg);
|
||||
color: var(--ink-600);
|
||||
}
|
||||
|
||||
.prose {
|
||||
max-width: var(--measure);
|
||||
}
|
||||
|
||||
.prose p,
|
||||
.prose li {
|
||||
color: var(--ink-700);
|
||||
}
|
||||
|
||||
/* --- bottoni --- */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
min-height: var(--tap);
|
||||
padding: 0.75rem 1.4rem;
|
||||
border-radius: var(--radius-pill);
|
||||
border: 1.5px solid transparent;
|
||||
font-weight: 600;
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.2;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background-color var(--dur) var(--ease),
|
||||
color var(--dur) var(--ease),
|
||||
border-color var(--dur) var(--ease),
|
||||
transform var(--dur) var(--ease);
|
||||
}
|
||||
|
||||
.btn svg {
|
||||
flex: none;
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
background: var(--navy-800);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.btn--primary:hover {
|
||||
background: var(--navy-900);
|
||||
color: var(--white);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn--gold {
|
||||
background: var(--gold-500);
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
.btn--gold:hover {
|
||||
background: var(--gold-300);
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
.btn--outline {
|
||||
background: var(--white);
|
||||
color: var(--navy-800);
|
||||
border-color: var(--navy-800);
|
||||
}
|
||||
|
||||
.btn--outline:hover {
|
||||
background: var(--navy-100);
|
||||
color: var(--navy-900);
|
||||
}
|
||||
|
||||
.btn--ghost-light {
|
||||
background: transparent;
|
||||
color: var(--white);
|
||||
border-color: rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
|
||||
.btn--ghost-light:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.btn--sm {
|
||||
padding: 0.55rem 1.05rem;
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
.btn--block {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* --- chip (valori) --- */
|
||||
.chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.35rem 0.8rem;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--gold-100);
|
||||
color: var(--gold-700);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
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: 640px) {
|
||||
.checklist,
|
||||
.content ul {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* --- documenti (pagine legali, accessibilità) --- */
|
||||
.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;
|
||||
}
|
||||
|
||||
/* --- movimento ridotto --- */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user