Le run della CI restavano «in attesa» perché l'unico runner dell'istanza («Ferrari») non si è mai collegato: il runner resta da configurare. La revisione completa del codice ha trovato anche difetti che avrebbero fatto fallire la CI con il runner online, oltre ad altri problemi del sito, dei controlli e della documentazione. CI e rilascio: - continue-on-error sullo step dei link esterni: Forgejo lo ignora sul job, e un sito esterno irraggiungibile avrebbe reso rossa la CI; - artifact con i file nascosti (report Lighthouse e .htaccess non venivano mai caricati); - token personale RELEASE_TOKEN: FORGEJO_TOKEN è riservato ed è sempre il token automatico; - dominio in un solo punto (site.config.mjs) e variabile del repository SITE_URL; - ripiego REST: release in bozza, file, poi pubblicazione; tag verificato sul server; sostituzione dei file senza mai lasciarli mancanti; - tar.gz identico su Windows, macOS e Linux (byte del sistema operativo nell'header gzip). Sito: CSS compatibile con Safari/iOS 15 (media query classiche, backdrop-filter), anello di focus con contrasto di almeno 3:1, bersagli touch di 44 px dove servono, intestazione desktop senza voci o logo a capo, HTML valido in /servizi/, colore delle chip, stampa senza mappe, giorni di apertura, ricerca e titolo delle mappe e numero breve ricavati dai dati. Modulo di contatto e contact.php: stesse regole nel browser e sul server (spazi, e-mail, a capo, lunghezze), tempo minimo misurato con un solo orologio (ts_invio), corpo in quoted-printable e oggetto RFC 2047, funzionamento con PHP a 32 bit, costante MODALITA_PREDEFINITA per attivarlo. Controlli e test: valori letti dai dati del sito, i sei servizi del brief con le ancore, «commercialista» anche in meta, attributi e dati strutturati, .htaccess su righe attive, HSTS attivabile con una scelta esplicita, contrasto del focus misurato nei test. Esempi di pubblicazione: nginx con gli header di sicurezza in un solo punto (HSTS compreso), deploy automatico che parte alla pubblicazione e sincronizza solo una cartella confermata, procedura nginx che toglie i file delle versioni precedenti. Debug: .vscode/launch.json e tasks.json, F5 avvia il server Astro e apre il browser con il debugger collegato. Documentazione aggiornata (README, DEPLOY, CONTENUTI, CONFORMITA, TODO-STUDIO, CHANGELOG) e decisioni D-045…D-055. Verificato: npm run verify su Windows e nel container della CI (Playwright 1.56.1, root); job dei link esterni in node:24; contact.php con PHP 7.4 e 8.3, a 64 e 32 bit; nginx in Docker; release-upload.sh e deploy di esempio contro API e shell simulate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
463 lines
8.1 KiB
CSS
463 lines
8.1 KiB
CSS
/* ==========================================================================
|
|
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;
|
|
}
|
|
|
|
/* gli elenchi con una classe sono elementi d'interfaccia: niente punti elenco */
|
|
ul[class],
|
|
ol[class] {
|
|
list-style: none;
|
|
}
|
|
|
|
address {
|
|
font-style: normal;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 3px solid var(--focus-ring);
|
|
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;
|
|
}
|
|
|
|
/* Visibile solo senza JavaScript (BaseLayout, blocco <noscript>). */
|
|
.no-js-only {
|
|
display: none;
|
|
}
|
|
|
|
.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: 60em) {
|
|
.grid--3,
|
|
.grid--4 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 40em) {
|
|
.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);
|
|
}
|
|
|
|
/* le chip (valori in home) hanno il proprio colore, --gold-800 */
|
|
.prose p:not(.eyebrow),
|
|
.prose li:not(.chip) {
|
|
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-800);
|
|
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: 40em) {
|
|
.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;
|
|
}
|
|
}
|