/* Template 51 Segno — Studio di grafica.
   Stile editoriale da studio creativo: bianco e nero, Inter pesantissimo, cursore in
   «difference», foto in bianco e nero che prendono colore al passaggio. Il colore viene
   solo dalle fotografie. Base comune in classico.css. */
:root {
  --sg-nero: #000; --sg-bianco: #fff; --sg-grigio: #525252; --sg-grigio-2: #737373;
  --sg-filo: rgba(0,0,0,.1); --sg-curva: cubic-bezier(.16, 1, .3, 1);
  --cl-primario: #000; --cl-fondo: #fff;
}
body { background: #fff; color: #000; font: 400 17px/1.5 'Inter', system-ui, sans-serif; letter-spacing: -.02em; }
@media (hover: hover) and (pointer: fine) { body, a, button, summary { cursor: none; } }
.sg-pagina { width: min(1360px, 100% - 48px); margin-inline: auto; }
.sg-meta { font: 400 14px/1.4 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--sg-grigio-2); }

/* --- Cursore -------------------------------------------------------------- */
.sg-cursore { position: fixed; top: 0; left: 0; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  background: #fff; border: 1px solid #000; mix-blend-mode: difference; pointer-events: none; z-index: 9999;
  transition: scale .5s var(--sg-curva), opacity .3s ease; opacity: 0; }
.sg-cursore.vivo { opacity: 1; } .sg-cursore.sopra { scale: 2.5; }
@media (hover: none), (pointer: coarse) { .sg-cursore { display: none; } }

/* --- Testata --------------------------------------------------------------- */
.sg-testata { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; justify-content: space-between; align-items: center;
  padding: 24px; mix-blend-mode: difference; color: #fff; }
.sg-logo { font: 700 24px/1 'Inter', sans-serif; letter-spacing: -.06em; color: #fff; text-decoration: none; }
.sg-menu { position: relative; }
.sg-menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; }
.sg-menu summary::-webkit-details-marker { display: none; }
.sg-menu summary span, .sg-menu summary span::after { display: block; width: 22px; height: 1px; background: #fff; transition: rotate .5s var(--sg-curva); }
.sg-menu summary span { position: relative; } .sg-menu summary span::after { content: ''; position: absolute; inset: 0; rotate: 90deg; }
.sg-menu[open] summary span { rotate: 45deg; }
.sg-menu nav { position: absolute; right: 0; top: 52px; display: grid; gap: 4px; text-align: right; }
.sg-menu nav a { color: #fff; text-decoration: none; font: 700 30px/1.1 'Inter', sans-serif; letter-spacing: -.05em; }

/* --- Apertura: lettere che salgono ---------------------------------------- */
.sg-apertura { min-height: 80vh; min-height: 80svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 140px 24px 60px; }
.sg-titolo { font: 700 12vw/.9 'Inter', sans-serif; letter-spacing: -.05em; margin: 0; }
.sg-riga { display: block; overflow: hidden; padding-bottom: .04em; }
.sg-riga > span { display: inline-block; }
.sg-lettera { display: inline-block; transform: translateY(100%); transition: transform 1s var(--sg-curva); }
.sg-pronto .sg-lettera { transform: none; }
.sg-sotto { font-size: 24px; line-height: 1.35; color: var(--sg-grigio); margin: 32px auto 0; max-width: 32ch; }

/* --- Nastro di lavori, con angoli asimmetrici ------------------------------ */
.sg-nastro { overflow: hidden; padding-block: 40px 100px; }
.sg-nastro-binario { display: flex; gap: 24px; width: max-content; animation: sg-scorre 30s linear infinite; }
.sg-nastro:hover .sg-nastro-binario { animation-play-state: paused; }
@keyframes sg-scorre { to { transform: translateX(-50%); } }
.sg-scheda { margin: 0; width: clamp(200px, 22vw, 320px); aspect-ratio: 5 / 7; overflow: hidden; flex: 0 0 auto; }
.sg-a { border-top-left-radius: 100px; } .sg-b { border-top-right-radius: 100px; border-bottom-left-radius: 40px; } .sg-c { border-radius: 40px; }
.sg-scheda img, .sg-lavoro-foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter .7s var(--sg-curva), transform .7s var(--sg-curva); }
.sg-scheda:hover img, .sg-lavoro:hover img { filter: grayscale(0); transform: scale(1.05); }

/* --- Frase dello studio ---------------------------------------------------- */
.sg-frase { padding-block: 60px 120px; text-align: center; }
.sg-frase p { font: 700 clamp(30px, 4vw, 58px)/1.05 'Inter', sans-serif; letter-spacing: -.05em; max-width: 22ch; margin: 22px auto 0; }
.sg-frase em { font-style: normal; color: var(--sg-grigio-2); }

/* --- Lavori ------------------------------------------------------------------ */
.sg-lavori { padding-bottom: 120px; }
.sg-lavori-testa { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.sg-lavori-testa h2 { font: 700 clamp(40px, 6vw, 88px)/.9 'Inter', sans-serif; letter-spacing: -.05em; margin: 0; }
.sg-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; }
.sg-lavoro { color: inherit; text-decoration: none; display: block; }
.sg-lavoro-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #f2f2f2; }
.sg-lavoro-foto::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.1); opacity: 0; transition: opacity .6s var(--sg-curva); }
.sg-lavoro:hover .sg-lavoro-foto::after { opacity: 1; }
.sg-freccia { position: absolute; top: 18px; right: 18px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #000; font-size: 22px; opacity: 0; transform: translate(-8px, 8px); transition: opacity .6s var(--sg-curva), transform .6s var(--sg-curva); }
.sg-lavoro:hover .sg-freccia { opacity: 1; transform: none; }
.sg-lavoro-riga { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; border-top: 1px solid var(--sg-filo); margin-top: 18px; padding-top: 14px; }
.sg-lavoro-riga h3 { font: 700 24px/1.1 'Inter', sans-serif; letter-spacing: -.04em; margin: 0; }
.sg-lavoro-riga span:not(.sg-meta) { color: var(--sg-grigio); font-size: 15px; }

/* --- Servizi ----------------------------------------------------------------- */
.sg-servizi { padding-bottom: 140px; }
.sg-servizi ol { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid #000; }
.sg-servizi li { display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--sg-filo); transition: padding .6s var(--sg-curva); }
.sg-servizi li:hover { padding-left: 16px; }
.sg-servizi b { font: 400 14px 'JetBrains Mono', monospace; color: var(--sg-grigio-2); }
.sg-servizi h3 { font: 700 clamp(28px, 3.6vw, 52px)/1 'Inter', sans-serif; letter-spacing: -.05em; margin: 0; }
.sg-servizi p { color: var(--sg-grigio); margin: 0; }

/* --- Chiusa ------------------------------------------------------------------ */
.sg-chiusa { padding-block: 60px 140px; text-align: center; }
.sg-chiusa h2 { font: 700 clamp(48px, 9vw, 150px)/.9 'Inter', sans-serif; letter-spacing: -.05em; margin: 0 0 32px; }
.sg-scrivi { display: inline-flex; gap: 14px; align-items: center; padding: 20px 34px; border-radius: 999px; background: #000; color: #fff; text-decoration: none; font: 700 20px 'Inter', sans-serif; letter-spacing: -.03em; transition: transform .6s var(--sg-curva); }
.sg-scrivi:hover { transform: scale(1.05); }

/* --- Piede --------------------------------------------------------------------- */
.sg-piede { background: #0A0A0A; color: #fff; padding-block: 90px 110px; }
.sg-piede-griglia { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.sg-piede-marchio strong { font: 700 clamp(56px, 8vw, 120px)/.85 'Inter', sans-serif; letter-spacing: -.06em; display: block; margin-bottom: 18px; }
.sg-piede p { color: rgba(255,255,255,.6); max-width: 36ch; }
.sg-piede h4 { font: 400 14px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.sg-piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-piede a { color: #fff; text-decoration: none; } .sg-piede a:hover { text-decoration: underline; }
.sg-piede-fondo { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 70px; padding-top: 22px; font-size: 14px; color: rgba(255,255,255,.5); }

@media (prefers-reduced-motion: reduce) {
  .sg-nastro-binario { animation: none; } .sg-lettera { transform: none; transition: none; }
}
@media (max-width: 860px) {
  .sg-pagina { width: calc(100% - 32px); }
  .sg-testata { padding: 18px 16px; }
  .sg-titolo { font-size: 16vw; }
  .sg-sotto { font-size: 19px; }
  .sg-griglia { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .sg-lavoro-riga { grid-template-columns: 1fr auto; } .sg-lavoro-riga span:not(.sg-meta) { grid-column: 1; grid-row: 2; }
  .sg-servizi li { grid-template-columns: 44px minmax(0, 1fr); } .sg-servizi p { grid-column: 2; }
  .sg-piede-griglia { grid-template-columns: minmax(0, 1fr); }
  .sg-freccia { opacity: 1; transform: none; width: 42px; height: 42px; font-size: 18px; }
  .sg-scheda img, .sg-lavoro-foto img { filter: grayscale(.25); }
}
