/* imperfect — prototipo restyling 2026 (v2, minimal)
   I token qui sotto diventeranno theme.json / variabili del tema WordPress.
   Effetti "wow", volutamente pochi:
   1. titoli che salgono riga per riga al caricamento
   2. cursore-etichetta sulle immagini dei progetti (Play / Visita ↗ / Apri)
   3. indice dei progetti con anteprima che segue il mouse */
:root {
  --bg: #fafaf7;
  --ink: #111110;
  --ink-2: #8a8984;
  --line: #e4e3de;
  /* i tre colori del puntino del logo */
  --yellow: #ffe600;
  --green: #18a000;
  --cyan: #00ffff;
  /* colore principale del sito; giallo e verde restano solo nel logo */
  --main: #00ffff;
  --accent: var(--main);

  --f: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;

  --g: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); }

.wrap { padding-inline: var(--g); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
.mono { font: 400 11px/1.4 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.u:hover, a:hover > .u { background-size: 100% 1px; }

/* ---------- tipografia ---------- */
h1, h2, h3, .big { font-weight: 400; margin: 0; letter-spacing: -.035em; }
.big { font-size: clamp(34px, 5.4vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(26px, 2.8vw, 44px); line-height: 1.05; }
h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.25; }
.text { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; max-width: 46ch; }
.text p { margin: 0 0 1em; }

/* effetto 1: righe che salgono */
.lines .l { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.lines .l > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.lines.in .l > span { transform: none; }
.lines .l:nth-child(2) > span { transition-delay: .08s; }
.lines .l:nth-child(3) > span { transition-delay: .16s; }
.lines .l:nth-child(4) > span { transition-delay: .24s; }
.lines .l:nth-child(5) > span { transition-delay: .32s; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.site-header .grid { height: 92px; align-items: center; transition: height .4s var(--ease); }
.site-header.scrolled .grid { height: 64px; }

/* logo: wordmark in Funnel Display Bold (al posto del PNG), "imp rf ct" con spazi stretti al posto delle "e"
   e il puntino tricolore sulla "ı". Al passaggio del mouse si sdoppia in una copia ciano e una gialla. */
.logo { grid-column: 1 / 4; justify-self: start; position: relative; display: block; white-space: nowrap;
  font: 700 46px/1 'Funnel Display', var(--f); letter-spacing: -.04em; transition: font-size .4s var(--ease); }
.site-header.scrolled .logo { font-size: 36px; }
.logo .wm { display: inline-flex; gap: .2em; }
.logo .wm.c, .logo .wm.y { position: absolute; inset: 0; opacity: 0; mix-blend-mode: multiply; }
.logo .wm.c { color: var(--cyan); }
.logo .wm.y { color: var(--yellow); }
.logo .wm.ink { position: relative; color: var(--ink); }
.logo .i { position: relative; }
.logo .bl { display: inline-block; width: 0; height: 0; }
.logo .tdot { position: absolute; left: var(--dx, .12em); top: var(--dy, 0); width: .2em; height: .2em; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0 32%, var(--green) 33% 66%, var(--cyan) 67%); transition: transform .5s var(--ease); }
.logo:hover .tdot { transform: translateX(-50%) rotate(180deg) scale(1.15); }
.logo:hover .wm.c, .logo:focus-visible .wm.c { animation: glitch-c .5s steps(1) forwards; }
.logo:hover .wm.y, .logo:focus-visible .wm.y { animation: glitch-y .5s steps(1) forwards; }
.logo:active .wm.c { transform: translateX(1px); animation: none; opacity: 1; }
.logo:active .wm.y { transform: translateX(-1px); animation: none; opacity: 1; }
@keyframes glitch-c { 0% { opacity: 1; transform: translateX(7px); } 20% { opacity: 1; transform: translate(-4px, 2px); } 40% { opacity: 1; transform: translate(5px, -1px); } 60% { opacity: 1; transform: translateX(-2px); } 100% { opacity: 1; transform: translate(3px, 1px); } }
@keyframes glitch-y { 0% { opacity: 1; transform: translateX(-7px); } 20% { opacity: 1; transform: translate(4px, -2px); } 40% { opacity: 1; transform: translate(-5px, 1px); } 60% { opacity: 1; transform: translateX(2px); } 100% { opacity: 1; transform: translate(-3px, -1px); } }
@media (prefers-reduced-motion: reduce) {
  .logo:hover .wm.c { animation: none; opacity: 1; transform: translateX(3px); }
  .logo:hover .wm.y { animation: none; opacity: 1; transform: translateX(-3px); }
}

/* menu: il testo scorre in su e compare il puntino colorato del logo */
.nav { grid-column: 4 / 10; display: flex; gap: 6px; white-space: nowrap; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 6px 10px; border-radius: 99px; color: var(--ink-2); transition: color .25s, gap .4s var(--ease); }
.nav a::before { content: ''; width: 0; height: 7px; border-radius: 50%; background: var(--main); transition: width .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); gap: 7px; }
.nav a:hover::before, .nav a[aria-current="page"]::before { width: 7px; }
.nav .roll { display: block; overflow: hidden; height: 1.5em; }
.nav .roll span { display: block; transition: transform .45s var(--ease); }
.nav .roll span + span { position: relative; }
.nav a:hover .roll span { transform: translateY(-100%); }
.tools { grid-column: 10 / 13; display: flex; justify-content: flex-end; gap: 20px; }
.lang a { color: var(--ink-2); }
.lang a.on { color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .nav, .lang { display: none; }
  .logo { grid-column: 1 / 7; font-size: 36px; }
  .tools { grid-column: 7 / 13; }
  .menu-btn { display: block; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: 80px var(--g) 32px; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .4s; }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 40px; letter-spacing: -.035em; line-height: 1.15; }
.mobile-nav .close { position: absolute; top: 18px; right: var(--g); }

/* ---------- sezioni ---------- */
section { padding-top: clamp(72px, 11vw, 180px); }
.label { grid-column: 1 / 4; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .label { grid-column: 1 / -1; margin-bottom: 20px; } }

/* hero: frasi che si compongono */
.hero { padding-top: clamp(80px, 14vw, 220px); padding-bottom: clamp(56px, 8vw, 120px); }
.typed { grid-column: 1 / 12; display: grid; }
.typed > span { grid-area: 1 / 1; }
.typed .ghost { visibility: hidden; }   /* riserva lo spazio della frase più lunga: niente salti di layout */
.typed .caret { display: inline-block; width: .06em; height: .9em; margin-left: .04em; vertical-align: -.08em; background: var(--main); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cite { grid-column: 1 / -1; margin: 20px 0 0; opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s var(--ease); }
.cite.in { opacity: 1; transform: none; }
.hero-sub { grid-column: 1 / -1; margin-top: clamp(48px, 7vw, 112px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 24px; align-items: end; }
.hero-sub .lead { grid-column: 1 / 7; margin: 0; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -.025em; max-width: 26ch; }
.hero-sub > .mono { grid-column: 10 / 13; }
@media (max-width: 900px) { .typed { grid-column: 1 / -1; } .hero-sub .lead, .hero-sub > .mono { grid-column: 1 / -1; } }

/* ---------- progetti: griglia ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: clamp(48px, 7vw, 120px); }
.works > * { grid-column: span 6; }
/* in home: impaginazione sfalsata */
.works.offset > :nth-child(4n+1) { grid-column: 1 / 8; }
.works.offset > :nth-child(4n+2) { grid-column: 9 / 13; margin-top: 30%; }
.works.offset > :nth-child(4n+3) { grid-column: 2 / 6; }
.works.offset > :nth-child(4n+4) { grid-column: 7 / 13; margin-top: 12%; }
.works.thirds > * { grid-column: span 4; }
@media (max-width: 900px) { .works > *, .works.offset > *, .works.thirds > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

.card { display: block; position: relative; }
.card-media { position: relative; overflow: hidden; background: #ecebe6; aspect-ratio: 4/3; }
.works.offset > :nth-child(4n+2) .card-media, .works.offset > :nth-child(4n+3) .card-media { aspect-ratio: 4/5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.025); }
.card-info { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 12px; }
.card-info .t { font-size: 15px; }
.card-info .act { color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.card:hover .card-info .act { color: var(--ink); }
.card-info .m { grid-column: 1 / -1; color: var(--ink-2); }
.card-info .d { grid-column: 1 / -1; margin: 6px 0 0; color: var(--ink-2); max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* progetti in evidenza: slider orizzontale, uno alla volta */
.featured { border-top: 1px solid var(--ink); }
.slider-ctrl { display: flex; align-items: center; gap: 18px; }
.slider-ctrl button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.slider-ctrl button:hover { border-color: var(--ink); }
.slider-ctrl button:disabled { opacity: .3; pointer-events: none; }
.slider-count { font-variant-numeric: tabular-nums; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.feat { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  padding-top: clamp(20px, 2.5vw, 32px); }
.feat-text { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 18px; }
.feat-text h2 { font-size: clamp(30px, 3.4vw, 56px); margin-top: 6px; }
.feat-desc { margin: 0; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.feat-meta { margin: 8px 0 0; }
.feat-meta div { display: grid; grid-template-columns: 64px 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
.feat-meta dt { color: var(--ink-2); }
.feat-meta dd { margin: 0; }
.feat-links { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.feat-links .main { align-self: start; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.feat-links .card-links { margin-top: 0; }
.feat .card-media { grid-column: 6 / 13; aspect-ratio: 16/10; }
/* testo che entra quando la slide diventa attiva */
.feat .feat-text > * { opacity: 0; transform: translateX(24px); transition: opacity .6s, transform .9s var(--ease); }
.feat.active .feat-text > * { opacity: 1; transform: none; }
.feat.active .feat-text > :nth-child(2) { transition-delay: .05s; }
.feat.active .feat-text > :nth-child(3) { transition-delay: .1s; }
.feat.active .feat-text > :nth-child(4) { transition-delay: .15s; }
.feat.active .feat-text > :nth-child(5) { transition-delay: .2s; }
.slider-bar { height: 1px; background: var(--line); margin-top: 24px; position: relative; }
.slider-bar span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--main); transition: width .6s var(--ease); }
@media (max-width: 900px) {
  .feat-text, .feat .card-media { grid-column: 1 / -1; }
  .feat .card-media { order: -1; margin-bottom: 20px; }
  .feat-links { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .feat .feat-text > * { opacity: 1; transform: none; } .track { scroll-behavior: auto; } }

.card-links { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.card-links a, .card-links button { color: var(--ink-2); }
.card-links a:hover, .card-links button:hover { color: var(--ink); }
.card .stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* effetto 2: cursore-etichetta */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; padding: 8px 12px; background: var(--ink); color: var(--bg);
  border-radius: 99px; font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  transform: translate(-50%, -50%) scale(0); transition: transform .35s var(--ease), background .2s; }
.cursor.on { transform: translate(-50%, -50%) scale(1); }
.cursor.video, .cursor.esterno, .cursor.pagina { background: var(--main); color: var(--ink); }
.cursor-hide .card .stretch { cursor: none; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- progetti: indice ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { position: relative; border-bottom: 1px solid var(--line); }
.index .row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); padding: 14px 0; align-items: baseline; transition: color .25s, padding .4s var(--ease); }
.index .n { grid-column: 1 / 2; }
.index .t { grid-column: 2 / 7; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.02em; }
.index .m { grid-column: 7 / 10; }
.index .y { grid-column: 10 / 11; }
.index .a { grid-column: 11 / 13; text-align: right; }
.index:hover .row { color: var(--ink-2); }
.index .row:hover { color: var(--ink); padding-left: 10px; }
@media (max-width: 760px) { .index .n, .index .m, .index .y { display: none; } .index .t { grid-column: 1 / 9; } .index .a { grid-column: 9 / 13; } }
/* effetto 3: anteprima che segue il mouse */
.peek { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(200px, 22vw, 340px); aspect-ratio: 4/3; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .3s, transform .5s var(--ease); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .peek { display: none; } }

.view-toggle { display: flex; gap: 16px; }
.view-toggle button, .filters button { color: var(--ink-2); }
.view-toggle button.on, .filters button.on { color: var(--ink); }
.filters { display: flex; gap: 18px; flex-wrap: wrap; }
.filters sup { font-size: 9px; margin-left: 2px; }
.bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- studio ---------- */
.services { list-style: none; padding: 0; margin: 0; }
.services li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.services li:first-child { border-top: 1px solid var(--line); }
.services b { font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.015em; }
.clients { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; letter-spacing: -.015em; }
.clients b { color: var(--ink); font-weight: 400; }
.quote { font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.03em; line-height: 1.15; margin: 0; }

/* soci fondatori (colonna destra, sotto i clienti): nome + link sulla prima riga, descrizione sotto */
.founded .row { grid-template-columns: 1fr auto; row-gap: 2px; }
.founded .t { grid-column: 1; grid-row: 1; }
.founded .a { grid-column: 2; grid-row: 1; }
.founded .m { display: block; grid-column: 1 / -1; font-size: 14px; }
.founded .row:hover .t::after { content: none; }

/* ---------- shop ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--g); row-gap: clamp(40px, 5vw, 72px); }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .products { grid-template-columns: repeat(2, 1fr); } }
.prod { position: relative; }
.prod-media { display: block; aspect-ratio: 4/5; background: #f0efea; overflow: hidden; position: relative; }
.prod-media > a { display: block; height: 100%; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.prod:hover .prod-media img { transform: scale(1.03); }
.prod-info { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 12px; }
.prod-info .c { grid-column: 1 / -1; color: var(--ink-2); }
.prod-add { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px; background: var(--ink); color: var(--bg); text-align: center;
  font: 400 11px/1 var(--f-mono); text-transform: uppercase; transform: translateY(100%); transition: transform .5s var(--ease); }
.prod:hover .prod-add, .prod-add:focus-visible { transform: none; }
.prod-add:hover { background: var(--main); color: var(--ink); }
@media (hover: none) { .prod-add { display: none; } }

/* ---------- blog: stesso indice dei progetti, con anteprima al rollover ---------- */
.index.posts .row { align-items: baseline; }
.index.posts .y { grid-column: 1 / 3; }
.index.posts .t { grid-column: 3 / 10; line-height: 1.2; }
.index.posts .m { grid-column: 10 / 12; }
.index.posts .a { grid-column: 12 / 13; }
.index .th { display: none; }
@media (max-width: 760px) {
  .index.posts .row { grid-template-columns: 72px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
  .index.posts .y { display: block; grid-column: 2; grid-row: 1; }
  .index.posts .t { grid-column: 2; grid-row: 2; }
  .index.posts .m, .index.posts .a { display: none; }
}
/* sui touch (niente rollover) la miniatura sta nella riga */
@media (hover: none) { .index.posts .th { display: block; grid-column: 1; grid-row: 1 / 3; aspect-ratio: 1; overflow: hidden; background: #ecebe6; }
  .index.posts .th img { width: 100%; height: 100%; object-fit: cover; } }

/* ---------- instagram ---------- */
.insta { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.insta > :nth-child(n+9) { display: none; }
@media (max-width: 1000px) { .insta { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .insta { grid-template-columns: repeat(3, 1fr); gap: 4px; } .insta > :nth-child(n+7) { display: none; } }
.insta .card-media { aspect-ratio: 4/5; } /* come la griglia attuale di Instagram */

/* ---------- pagine interne ---------- */
.page-head { padding: clamp(64px, 10vw, 160px) 0 clamp(40px, 5vw, 72px); }
.page-head .big { grid-column: 1 / 9; }
.page-head .text { grid-column: 9 / 13; align-self: end; color: var(--ink-2); }
@media (max-width: 900px) { .page-head .big, .page-head .text { grid-column: 1 / -1; } .page-head .text { margin-top: 24px; } }

.p-head { padding: clamp(56px, 8vw, 120px) 0 clamp(32px, 4vw, 56px); }
.p-head .big { grid-column: 1 / 10; }
.p-cover { aspect-ratio: 16/9; overflow: hidden; background: #ecebe6; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: clamp(48px, 6vw, 96px) 0; row-gap: 40px; }
.p-meta { grid-column: 1 / 4; }
.p-meta dl { margin: 0; }
.p-meta div { padding: 10px 0; border-top: 1px solid var(--line); }
.p-meta dt { color: var(--ink-2); }
.p-meta dd { margin: 4px 0 0; }
.p-links { display: grid; gap: 8px; margin-top: 24px; }
.p-text { grid-column: 5 / 12; }
@media (max-width: 900px) { .p-meta, .p-text { grid-column: 1 / -1; } }
.prose { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; max-width: 62ch; }
.prose p:first-child { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.02em; margin-top: 0; }
.prose h2 { font-size: clamp(20px, 1.7vw, 26px); margin: 2em 0 .6em; }
.prose blockquote { margin: 2em 0; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.02em; }
.btn { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--ink);
  font: 400 12px/1 var(--f-mono); text-transform: uppercase; transition: background .25s, color .25s; width: 100%; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .poster { position: absolute; inset: 0; width: 100%; }
.video-frame .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-frame .poster span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--accent); padding: 10px 16px; border-radius: 99px; font: 400 11px/1 var(--f-mono); text-transform: uppercase; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: var(--g); }
.gallery > :nth-child(3n+1) { grid-column: 1 / -1; }
.gallery > :nth-child(3n+2) { grid-column: 1 / 7; }
.gallery > :nth-child(3n+3) { grid-column: 7 / 13; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery > :nth-child(3n+1) img { aspect-ratio: 16/9; }
.next-p { display: block; border-top: 1px solid var(--ink); padding: 20px 0 clamp(64px, 8vw, 120px); }
.next-p .big { transition: color .3s; }
.next-p:hover .big { color: var(--ink-2); }

.prod-single { padding: 24px 0 clamp(64px, 8vw, 120px); }
.prod-gallery { grid-column: 1 / 8; display: grid; gap: var(--g); }
.prod-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #f0efea; mix-blend-mode: multiply; }
.prod-detail { grid-column: 9 / 13; position: sticky; top: 80px; align-self: start; display: grid; gap: 28px; }
@media (max-width: 900px) { .prod-gallery, .prod-detail { grid-column: 1 / -1; position: static; } .prod-detail { margin-top: 32px; } }
.prod-detail h1 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: grid; place-items: center; min-width: 44px; height: 40px; border: 1px solid var(--line); font: 400 12px var(--f-mono); cursor: pointer; transition: border-color .2s; }
.sizes span:hover { border-color: var(--ink); }
.sizes input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 36px; height: 42px; }
.qty input { width: 28px; text-align: center; border: 0; background: none; font: 400 13px var(--f-mono); }
.acc details { border-top: 1px solid var(--line); padding: 12px 0; }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: '+'; color: var(--ink-2); }
.acc details[open] summary::after { content: '−'; }
.acc p { color: var(--ink-2); margin: 10px 0 0; }

.article-head { padding: clamp(64px, 10vw, 160px) 0 clamp(32px, 4vw, 56px); }
.article-head .big { grid-column: 1 / 11; font-size: clamp(32px, 4.6vw, 76px); }
.article-head .mono { grid-column: 1 / -1; margin-bottom: 24px; }
.article-body { padding: clamp(48px, 6vw, 96px) 0; }
.article-body .prose { grid-column: 4 / 10; }
@media (max-width: 900px) { .article-body .prose { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.site-footer { padding-top: clamp(96px, 14vw, 220px); padding-bottom: 20px; }
.footer-cta { grid-column: 1 / 9; }
.footer-cta .big { font-size: clamp(34px, 4.5vw, 76px); }
.footer-cols { margin-top: clamp(64px, 9vw, 140px); padding-top: 14px; border-top: 1px solid var(--ink); row-gap: 32px; }
.footer-cols > div { grid-column: span 3; }
@media (max-width: 760px) { .footer-cols > div { grid-column: span 6; } .footer-cta { grid-column: 1 / -1; } }
.footer-cols ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.nl { display: flex; border-bottom: 1px solid var(--ink); margin-top: 10px; }
.nl input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: 8px 0; }
.nl input:focus { outline: none; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); margin-top: clamp(48px, 6vw, 96px); }

/* ---------- overlay video ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: var(--g);
  opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { width: min(1280px, 100%, calc((100vh - 140px) * 16 / 9)); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.lightbox-links { display: flex; gap: 18px; margin-top: 12px; }
.lightbox-links a { color: var(--ink-2); }
.lightbox-links a:hover { color: var(--ink); }

/* ---------- carrello ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(17, 17, 16, .12); opacity: 0; pointer-events: none; transition: opacity .4s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); }
.cart-open .drawer { transform: none; }
.cart-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 var(--g); border-bottom: 1px solid var(--line); }
.drawer-items { flex: 1; overflow: auto; padding: 0 var(--g); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 64px; aspect-ratio: 4/5; object-fit: cover; background: #f0efea; }
.line small { display: block; color: var(--ink-2); margin-top: 2px; }
.line button { color: var(--ink-2); margin-top: 8px; }
.line button:hover { color: var(--ink); }
.drawer-foot { padding: 16px var(--g) 24px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.drawer-foot .tot { display: flex; justify-content: space-between; }
.empty { padding: 48px 0; color: var(--ink-2); }

.reveal { opacity: 0; transition: opacity 1s var(--ease); }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .lines .l > span { transform: none; transition: none; }
}

/* nota del prototipo */
.proto-note { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-2); max-width: 70ch; }
.proto-note b { color: var(--ink); font-weight: 400; }

/* tocchi di colore */
.cart-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--line); font: 400 11px/1 var(--f-mono); margin-left: 4px; transition: background .3s; }
.cart-n.full { background: var(--main); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--main); margin-right: 8px; vertical-align: 1px; }
.typed .hl, .hero .hl { background: linear-gradient(var(--main), var(--main)) 0 88% / 100% .32em no-repeat; }
.feat-links .main { border-bottom-color: var(--main); border-bottom-width: 2px; }
.index .row:hover .t::after { content: ' ●'; font-size: .5em; vertical-align: .35em; color: var(--main); -webkit-text-stroke: .5px var(--ink); }
.footer-cta .u { background-image: linear-gradient(var(--main), var(--main)); background-size: 100% .12em; transition: background-size .5s var(--ease); }
.footer-cta a:hover .u { background-size: 100% .5em; }

/* sezione studio: su mobile i blocchi vanno uno sotto l'altro */
@media (max-width: 900px) { #studio .grid > * { grid-column: 1 / -1 !important; } }

/* newsletter: fascia prima del footer, su tutte le pagine */
.newsletter { padding-top: clamp(96px, 14vw, 220px); }
.newsletter .grid { border-top: 1px solid var(--ink); padding-top: 14px; row-gap: 28px; align-items: end; }
.newsletter .nl-text { grid-column: 1 / 7; }
.newsletter .nl-text h2 { margin-top: 18px; font-size: clamp(30px, 3.6vw, 60px); }
.newsletter .nl-text p { color: var(--ink-2); margin: 16px 0 0; max-width: 40ch; }
.nl-form { grid-column: 8 / 13; display: grid; gap: 14px; }
.nl-field { display: flex; align-items: center; border-bottom: 1px solid var(--ink); transition: border-color .3s; }
.nl-field:focus-within { border-bottom-color: var(--main); box-shadow: 0 1px 0 var(--main); }
.nl-field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; padding: 12px 0; }
.nl-field input:focus { outline: none; }
.nl-field button { padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 400 11px/1 var(--f-mono); text-transform: uppercase; transition: background .25s, color .25s; }
.nl-field button:hover { background: var(--main); color: var(--ink); }
.nl-consent { display: flex; gap: 8px; align-items: start; color: var(--ink-2); font-size: 13px; }
.nl-consent input { accent-color: var(--ink); margin-top: 3px; }
.nl-done { grid-column: 8 / 13; font-size: clamp(18px, 1.6vw, 24px); }
.nl-form.sending button { opacity: .5; cursor: progress; }
.nl-done { animation: nl-in .6s var(--ease); }
@keyframes nl-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .newsletter .nl-text, .nl-form, .nl-done { grid-column: 1 / -1; } }

/* ---------- attività apribili (details/summary) ---------- */
.services details { border-bottom: 1px solid var(--line); }
.services details:first-child { border-top: 1px solid var(--line); }
.services summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto 20px; gap: 12px; align-items: baseline; padding: 14px 0; }
.services summary::-webkit-details-marker { display: none; }
.services summary h3 { justify-self: start; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.015em; transition: transform .4s var(--ease); }
.services summary:hover h3 { transform: translateX(4px); }
.services .pm { position: relative; width: 12px; height: 12px; align-self: center; }
.services .pm::before, .services .pm::after { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.services .pm::after { transform: rotate(90deg); }
.services details[open] .pm::after { transform: rotate(0); }
.services details[open] summary h3 { background: linear-gradient(var(--main), var(--main)) 0 90% / 100% .3em no-repeat; }
.svc-body { padding: 0 32px 20px 52px; color: var(--ink-2); max-width: 60ch; }
.svc-body p { margin: 0; }
.svc-body a { color: var(--ink); }
details[open] .svc-body { animation: svc-in .5s var(--ease); }
@keyframes svc-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 760px) { .services summary { grid-template-columns: 32px 1fr 16px; } .services summary > .mono:nth-of-type(2) { display: none; } .svc-body { padding: 0 0 18px 44px; } }

/* loghi dei soci nell'anteprima al passaggio del mouse */
.peek.logo-peek { background: #fff; aspect-ratio: 4/3; }
.peek.logo-peek img { object-fit: contain; padding: 14%; }

/* ---------- al posto dello slider: il gioco "Trova l'imperfezione" (niente foto, niente logo) ---------- */
.feat-fallback { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 32px; border-top: 1px solid var(--ink); padding-top: clamp(20px, 2.5vw, 32px); align-items: start; }
.game-text { grid-column: 1 / 5; display: grid; gap: 16px; }
.game-text h2 { font-size: clamp(30px, 3.4vw, 56px); }
.game-text p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.game-score { margin: 0; display: flex; gap: 28px; }
.game-score dt { color: var(--ink-2); }
.game-score dd { margin: 4px 0 0; font: 300 clamp(36px, 3.6vw, 56px)/1 var(--f); letter-spacing: -.04em; text-transform: none; }
.lives { display: flex; gap: 6px; align-items: center; height: clamp(36px, 3.6vw, 56px); }
.lives i { width: 14px; height: 14px; border-radius: 50%; background: var(--main); transition: background .3s, transform .3s; }
.lives i.lost { background: var(--line); transform: scale(.7); }
.game-text .game-msg { min-height: 1.5em; color: var(--ink); }
.ff-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.game-wrap { grid-column: 6 / 13; position: relative; background: #f2f1ec; }
.game-time { height: 3px; background: var(--line); }
.game-time span { display: block; height: 100%; width: 100%; background: var(--main); }
.game-board { --gap: clamp(8px, 1.1vw, 18px); display: grid; gap: var(--gap); padding: clamp(16px, 2vw, 32px); }
.g-dot { aspect-ratio: 1; width: 100%; border-radius: 50%; background: var(--ink); border: 0; padding: 0; cursor: pointer; transition: box-shadow .2s; }
.g-dot:hover { box-shadow: 0 0 0 3px #f2f1ec, 0 0 0 5px var(--main); }
.g-dot.hit, .g-dot.reveal-odd { background: var(--main) !important; box-shadow: 0 0 0 6px color-mix(in srgb, var(--main) 35%, transparent); }
.g-dot.miss { background: var(--ink-2); }
.game-again { justify-self: start; }
@media (max-width: 900px) { .game-text, .game-wrap { grid-column: 1 / -1; } }
/* il gioco come ultima slide dello slider: niente riga sopra (c'è già quella dello slider) */
.feat-game { border-top: 0; }
/* stesse proporzioni delle immagini dei progetti (16:10; 4:3 su telefono): i puntini si adattano all'altezza */
.feat-game .game-wrap { aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.feat-game .game-board { flex: 1; min-height: 0; container-type: size; grid-template-rows: repeat(var(--r, 4), 1fr); align-items: center; justify-items: center; }
.feat-game .g-dot { width: min(100%, calc((100cqh - (var(--r, 4) - 1) * var(--gap)) / var(--r, 4))); }
@media (max-width: 900px) { .feat-game .game-wrap { aspect-ratio: 4 / 3; } .feat-game { row-gap: 20px; } }
.feat-game .game-text > * { opacity: 0; transform: translateX(24px); transition: opacity .6s, transform .9s var(--ease); }
.feat-game.active .game-text > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .feat-game .game-text > * { opacity: 1; transform: none; } }

/* ---------- blog: colori principali dell'immagine ---------- */
.index.posts .t { grid-column: 3 / 9; }
.index.posts .m { grid-column: 9 / 11; }
.index.posts .sw { grid-column: 11 / 12; display: flex; gap: 3px; justify-content: flex-end; align-self: center; }
.index.posts .a { grid-column: 12 / 13; }
.sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .4s var(--ease); }
.index.posts .row:hover .sw i { transform: scale(1.25); }
.index.posts .row:hover .sw i:nth-child(2) { transition-delay: .04s; }
.index.posts .row:hover .sw i:nth-child(3) { transition-delay: .08s; }
@media (max-width: 760px) { .index.posts .sw { display: flex; grid-column: 2; grid-row: 1; justify-content: flex-end; } .sw i { width: 10px; height: 10px; } }

/* ---------- CTA portfolio ---------- */
.portfolio-cta { margin-top: clamp(72px, 11vw, 180px); background: var(--main); padding: clamp(28px, 4vw, 56px); }
.portfolio-cta .grid { row-gap: 32px; }
.pf-text { grid-column: 1 / 6; }
.pf-text h2 { margin-top: 16px; font-size: clamp(28px, 3.2vw, 52px); }
.pf-text p { margin: 16px 0 0; max-width: 36ch; }
.pf-form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.pf-field { display: grid; gap: 4px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.pf-field input, .pf-field select { border: 0; background: none; font: inherit; font-size: 18px; padding: 4px 0; color: var(--ink); }
.pf-field input:focus, .pf-field select:focus { outline: none; }
.pf-form .nl-consent { grid-column: 1 / -1; color: var(--ink); }
.pf-form .btn { grid-column: 1 / -1; }
.pf-form .btn.solid:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.pf-done { grid-column: 7 / 13; font-size: clamp(20px, 2vw, 28px); align-self: end; }
@media (max-width: 900px) { .pf-text, .pf-form, .pf-done { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pf-form { grid-template-columns: 1fr; } }

/* ---------- corsi e labs ---------- */
.course { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 20px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.course:first-child { padding-top: 0; }
.course-media { grid-column: 1 / 5; aspect-ratio: 4/3; background: #f0efea; overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.course:hover .course-media img { transform: scale(1.03); }
.course-body { grid-column: 5 / 10; display: grid; gap: 14px; align-content: start; }
.course-body h2 { font-size: clamp(24px, 2.4vw, 38px); }
.course-text { margin: 0; color: var(--ink-2); max-width: 52ch; }
.course-info { margin: 0; }
.course-info div { display: grid; grid-template-columns: 70px 1fr; padding: 7px 0; border-top: 1px solid var(--line); }
.course-info dt { color: var(--ink-2); }
.course-info dd { margin: 0; }
.course-buy { grid-column: 10 / 13; display: grid; gap: 14px; align-content: start; }
.course-buy .dates p { margin: 6px 0 0; }
.course-buy .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.course-buy .chips label { position: relative; }
.course-buy .chips input { position: absolute; opacity: 0; }
.course-buy .chips span { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); font: 400 11px/1 var(--f-mono); cursor: pointer; transition: border-color .2s; }
.course-buy .chips span:hover { border-color: var(--ink); }
.course-buy .chips input:checked + span { background: var(--main); border-color: var(--main); }
.course-buy .chips input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.course-price { display: flex; align-items: baseline; gap: 8px; font-size: 22px; letter-spacing: -.02em; }
.course-price small { font-size: 13px; }
@media (max-width: 900px) { .course-media, .course-body, .course-buy { grid-column: 1 / -1; } }
/* "Tutti i lab si possono regalare": un buono regalo nel colore del sito, con la matrice da staccare */
.gift { --gp: clamp(28px, 4vw, 56px); position: relative; margin: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 96px); padding: var(--gp); background: var(--main); row-gap: 24px; align-items: center; }
.gift .muted { color: rgba(17, 17, 16, .6); }
.gift-text { grid-column: 1 / 8; }
.gift-text h2 { margin-top: 14px; font-size: clamp(28px, 3.2vw, 52px); }
.gift-text p { color: var(--ink); opacity: .8; max-width: 44ch; margin: 14px 0 0; }
.gift-side { grid-column: 9 / 13; display: grid; gap: 8px; position: relative; align-self: stretch; align-content: center; padding-left: var(--g); border-left: 1px dashed var(--ink); }
.gift-side::before, .gift-side::after { content: ''; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.gift-side::before { top: calc(-1 * var(--gp) - 10px); }
.gift-side::after { bottom: calc(-1 * var(--gp) - 10px); }
.gift-side .big-mail { font: 400 clamp(22px, 2.2vw, 34px)/1.1 var(--f); letter-spacing: -.03em; text-transform: none; text-decoration: none; }
.gift-side .big-mail:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.gift .gift-stamp { position: absolute; top: calc(var(--gp) * -.5); right: var(--gp); transform: rotate(6deg); font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--main); padding: 8px 10px; }
@media (max-width: 900px) {
  .gift-text, .gift-side { grid-column: 1 / -1; }
  .gift-side { border-left: 0; border-top: 1px dashed var(--ink); padding: 20px 0 0; }
  .gift-side::before, .gift-side::after { top: -11px; bottom: auto; }
  .gift-side::before { left: calc(-1 * var(--gp) - 10px); }
  .gift-side::after { left: auto; right: calc(-1 * var(--gp) - 10px); }
}

/* ---------- cultural design: griglia masonry ---------- */
.works.masonry { --mgap: clamp(36px, 4vw, 64px); grid-template-columns: repeat(3, 1fr); grid-auto-rows: 4px; row-gap: 0; grid-auto-flow: row dense; align-items: start; }
.works.masonry > * { grid-column: span 1; }
.works.masonry > [data-grande] { grid-column: span 2; }
.works.masonry .card-media { aspect-ratio: auto; }
.works.masonry .card-media img { height: auto; }
@media (max-width: 900px) { .works.masonry { grid-template-columns: repeat(2, 1fr); } .works.masonry > * { grid-column: span 1 !important; } .works.masonry > [data-grande] { grid-column: span 2 !important; } }
@media (max-width: 560px) { .works.masonry { grid-template-columns: 1fr; } .works.masonry > *, .works.masonry > [data-grande] { grid-column: 1 / -1 !important; } }
/* le card grandi non superano l'altezza dello schermo: le immagini verticali vengono rifilate */
.works.masonry > [data-grande] .card-media img { max-height: min(78vh, 760px); object-fit: cover; }

/* frasi in evidenza nelle intro (corsi, shop) */
.lead-hl { color: var(--ink); background: linear-gradient(var(--main), var(--main)) 0 88% / 100% .32em no-repeat; }
.shop-intro p { margin: 0 0 .6em; }
.shop-intro a { color: var(--ink); }

/* avviso della pagina speciale attiva */
/* ticker: banda sottile sopra tutto, testo che scorre (colori e velocità da Personalizza → Ticker) */
.announce { display: block; overflow: hidden; background: var(--tk-bg, var(--yellow)); color: var(--tk-fg, var(--ink)); font: 400 11px/1 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; }
.announce .track { display: flex; width: max-content; animation: ticker var(--tk-dur, 38s) linear infinite; }
.announce .track.still { width: auto; justify-content: center; animation: none; }
.announce .half { display: flex; }
.announce .half > span { padding: 7px 28px 7px 0; white-space: nowrap; }
.announce .half i { font-style: normal; margin: 0 28px; }
.announce .still .half > span { padding-inline: var(--g); white-space: normal; text-align: center; }
.announce .still .half i { margin: 0 12px 0 0; }
.announce b { font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.announce:hover .track, .announce:focus-visible .track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce .track { animation: none; } }

/* footer: prima i contatti, poi la newsletter, poi la riga legale */
.site-footer .newsletter { padding-top: 0; margin-top: clamp(48px, 6vw, 96px); }
@media (min-width: 901px) {
  .site-footer { padding-top: clamp(80px, 9vw, 140px); }
  .footer-cols { margin-top: clamp(36px, 4vw, 64px); }
  .footer-legal { margin-top: clamp(32px, 3.5vw, 56px); }
}

/* invito alla playlist di studio su Spotify (nel footer, su tutte le pagine) */
.playlist { display: flex; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 56px); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.playlist .pl-text { font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.02em; }
.playlist .mono { margin-left: auto; white-space: nowrap; }
.playlist:hover .mono { text-decoration: underline; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.eq i { width: 4px; height: 30%; background: #1ed760; animation: eq 1.1s ease-in-out infinite; animation-play-state: paused; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.9s; }
.playlist:hover .eq i { animation-play-state: running; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (max-width: 600px) { .playlist { flex-wrap: wrap; } .playlist .mono { margin-left: 34px; } }

/* =====================================================================
   WordPress
   ===================================================================== */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* logo a due immagini: sovrapposte; al passaggio del mouse si sdoppiano per un attimo */
.logo-img { position: relative; display: block; height: var(--logo-h, 46px); grid-column: 1 / 4; justify-self: start; transition: height .4s var(--ease); }
.site-header.scrolled .logo-img { height: calc(var(--logo-h, 46px) * .78); }
.logo-img img { display: block; height: 100%; width: auto; }
.logo-img .l2 { position: absolute; left: 0; top: 0; }
.logo-img:hover .l1, .logo-img:focus-visible .l1 { animation: lg-a .45s steps(1) 1; }
.logo-img:hover .l2, .logo-img:focus-visible .l2 { animation: lg-b .45s steps(1) 1; }
@keyframes lg-a { 0% { transform: translateX(calc(var(--logo-shift, 6px) * -1)); } 25% { transform: translate(calc(var(--logo-shift, 6px) * .6), 1px); } 50% { transform: translateX(calc(var(--logo-shift, 6px) * -.5)); } 75% { transform: translateX(2px); } 100% { transform: none; } }
@keyframes lg-b { 0% { transform: translateX(var(--logo-shift, 6px)); } 25% { transform: translate(calc(var(--logo-shift, 6px) * -.6), -1px); } 50% { transform: translateX(calc(var(--logo-shift, 6px) * .5)); } 75% { transform: translateX(-2px); } 100% { transform: none; } }
.logo-img:active .l1 { transform: translateX(-2px); }
.logo-img:active .l2 { transform: translateX(1px); }
@media (max-width: 1100px) { .logo-img { grid-column: 1 / 7; height: calc(var(--logo-h, 46px) * .78); } }
@media (prefers-reduced-motion: reduce) { .logo-img:hover img { animation: none; } }

/* menu da WordPress */
.nav a { white-space: nowrap; }
.mobile-nav a { display: block; }

/* home */
.clients .b { color: var(--ink); }
.studio-text p { color: var(--ink-2); }
.studio-text p:first-child { color: var(--ink); }
.insta-feed #sb_instagram { padding: 0 !important; }
.insta-feed #sb_instagram .sbi_header, .insta-feed #sb_instagram #sbi_load { display: none !important; }
.insta-feed #sbi_images { gap: 6px !important; padding: 0 !important; }
.insta-feed .sbi_item { aspect-ratio: 4/5; overflow: hidden; }
.insta-feed .sbi_photo { height: 100% !important; }
.insta-feed .sbi_photo img { object-fit: cover; height: 100% !important; }

/* contenuti dell'editor (articoli, pagine, progetti) */
.page-body { padding: 0 0 clamp(48px, 6vw, 96px); }
.page-body .prose { grid-column: 1 / 9; }
@media (max-width: 900px) { .page-body .prose { grid-column: 1 / -1; } }
.entry > * + * { margin-top: 1em; }
.entry p { margin: 0 0 1em; }
.entry a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--main); text-decoration-thickness: .15em; text-underline-offset: .15em; }
.entry a:hover { background: var(--main); }
.entry img { height: auto; }
.entry figure { margin: 2em 0; }
.entry figcaption, .entry .wp-element-caption { font: 400 11px/1.4 var(--f-mono); text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li { margin: .3em 0; }
.entry h2, .entry h3, .entry h4 { margin: 1.8em 0 .6em; font-weight: 400; letter-spacing: -.02em; }
.entry h3 { font-size: clamp(19px, 1.5vw, 23px); }
.entry blockquote, .entry .wp-block-quote { margin: 2em 0; padding: 0; border: 0; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.02em; }
.entry blockquote cite { display: block; margin-top: 10px; font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); font-style: normal; }
.entry .alignwide { margin-left: calc(-1 * var(--g)); margin-right: calc(-1 * var(--g)); max-width: none; }
.entry .alignfull { width: 100vw; position: relative; left: 50%; margin-left: -50vw; max-width: none; }
.entry .wp-block-image img { display: block; }
.entry .wp-block-embed iframe { width: 100%; }
.entry .wp-block-embed__wrapper { position: relative; }
.entry .wp-block-button__link, .entry .wp-element-button { display: inline-flex; gap: 12px; padding: 14px 18px; border-radius: 0; background: var(--ink); color: var(--bg); font: 400 12px/1 var(--f-mono); text-transform: uppercase; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--main); color: var(--ink); }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.entry .wp-block-gallery { gap: var(--g); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery img { height: auto; }
.prose.entry { max-width: 68ch; }
.article-comments { grid-column: 4 / 10; padding-bottom: 64px; }
@media (max-width: 900px) { .article-comments { grid-column: 1 / -1; } }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.comment-meta { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: none; font: inherit; padding: 8px 0; }
.comment-form label { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }

/* filtri come link (blog, shop) */
.filters a { color: var(--ink-2); }
.filters a.on, .filters a:hover { color: var(--ink); }

/* paginazione */
.pager { display: flex; gap: 14px; margin-top: 40px; }
.pager .page-numbers { color: var(--ink-2); }
.pager .current, .pager a:hover { color: var(--ink); }

/* moduli */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b00020; margin: 0; }
.search-form { max-width: 520px; }
.nl-sc input[type=email], .nl-sc input[type=text], .pf-sc input:not([type=checkbox]):not([type=submit]), .pf-sc textarea, .pf-sc select {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: none; font: inherit; font-size: 18px; padding: 8px 0; color: var(--ink); border-radius: 0; }
.nl-sc button, .nl-sc input[type=submit], .pf-sc input[type=submit], .pf-sc button { background: var(--ink); color: var(--bg); border: 0; padding: 12px 18px; font: 400 12px/1 var(--f-mono); text-transform: uppercase; cursor: pointer; border-radius: 0; }
.pf-sc .wpcf7-list-item { margin: 0; }
.pf-sc p { margin: 0 0 14px; }
.wpcf7-not-valid-tip { font-size: 13px; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 12px; border-width: 1px; }

/* =====================================================================
   Cultural design (pagina WordPress)
   ===================================================================== */
.formats { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); column-gap: var(--g); border-top: 1px solid var(--ink); }
.format { text-align: left; padding: 16px 0 28px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: color .25s; }
.format .n { display: flex; justify-content: space-between; }
.format b { font-weight: 400; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; }
.format p { margin: 0; color: var(--ink-2); max-width: 32ch; }
.format .bar-c { height: 3px; background: var(--main); width: 0; transition: width .6s var(--ease); }
.format:hover .bar-c, .format.on .bar-c { width: 100%; }
.formats:hover .format:not(:hover):not(.on) { color: var(--ink-2); }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }
.cultural .portfolio-cta { margin-bottom: 0; }

/* =====================================================================
   Pagina speciale + stili dei blocchi dei pattern
   ===================================================================== */
.sp-hero { padding: clamp(56px, 9vw, 140px) 0 clamp(32px, 4vw, 56px); row-gap: 28px; }
.sp-hero .label { grid-column: 1 / -1; }
.sp-hero h1 { grid-column: 1 / 11; font-size: clamp(44px, 8vw, 132px); line-height: .95; font-weight: 400; letter-spacing: -.04em; margin: 0; }
.sp-content { padding-bottom: clamp(48px, 6vw, 96px); }
.sp-content > * + * { margin-top: clamp(48px, 6vw, 96px); }
.sp-content > p { max-width: 60ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.015em; }
.sp-content .wp-block-image img { width: 100%; height: auto; }
.is-style-sp-titolo { font-size: clamp(28px, 3.4vw, 52px) !important; }
.is-style-sp-info { display: grid !important; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); border-top: 1px solid var(--ink); }
.is-style-sp-info > * { margin: 0 !important; padding: 14px 0 20px; border-bottom: 1px solid var(--line); }
.is-style-sp-info p:first-child, .is-style-sp-info .sp-k { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.is-style-sp-passi { list-style: none !important; padding: 0 !important; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); }
.is-style-sp-passi li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 14px; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.is-style-sp-passi li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 28px; font: 400 11px var(--f-mono); color: var(--ink-2); }
.is-style-sp-modulo { background: var(--main); padding: clamp(28px, 4vw, 56px) !important; }
.sp-content .wp-block-details { border-bottom: 1px solid var(--line); padding: 0; }
.sp-content .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.015em; }
.sp-content .wp-block-details summary::-webkit-details-marker { display: none; }
.sp-content .wp-block-details summary::after { content: '+'; font-family: var(--f-mono); }
.sp-content .wp-block-details[open] summary::after { content: '−'; }
.sp-content .wp-block-details > :not(summary) { color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.sp-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px !important; }
.sp-content .wp-block-gallery img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) { .sp-hero h1 { grid-column: 1 / -1; } .is-style-sp-info, .is-style-sp-passi { grid-template-columns: 1fr; } .is-style-sp-passi { row-gap: 20px; } .sp-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   WooCommerce
   ===================================================================== */
.woo { padding-bottom: clamp(64px, 8vw, 120px); }
.woo-crumbs { padding-top: 24px; }
.woo-crumbs a { color: var(--ink-2); }
.woocommerce .woocommerce-breadcrumb { margin: 0; }

/* griglia prodotti: la nostra al posto dei float di WooCommerce */
.woocommerce ul.products, ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); column-gap: var(--g); row-gap: clamp(40px, 5vw, 72px); list-style: none; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0; position: relative; }
@media (max-width: 1000px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr); } }
.prod-media img { margin: 0 !important; aspect-ratio: 4/5; }
.prod-info a { text-decoration: none; }
.prod-info .price { color: var(--ink) !important; font-size: 15px !important; }
.prod-info .price del { color: var(--ink-2); margin-right: 6px; }
.prod-info .price ins { text-decoration: none; }
.prod-flag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--main); padding: 5px 8px; }
.prod-add.added::after { content: ' ✓'; }
.prod-add.loading { opacity: .6; }
.woocommerce a.added_to_cart { display: none !important; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select { font: inherit; border: 0; background: transparent; color: var(--ink); text-transform: uppercase; }
.woocommerce .woocommerce-result-count { display: none; }
.woocommerce nav.woocommerce-pagination { margin-top: 48px; text-align: left; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 12px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { font: 400 12px var(--f-mono); padding: 4px; color: var(--ink-2); background: none !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { color: var(--ink); }

/* pulsanti WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce .checkout-button,
.wc-block-components-button:not(.is-link), .wp-block-button__link.wc-block-components-button {
  background: var(--ink) !important; color: var(--bg) !important; border-radius: 0 !important; border: 1px solid var(--ink) !important;
  font: 400 12px/1 var(--f-mono) !important; text-transform: uppercase; letter-spacing: .02em; padding: 15px 18px !important; transition: background .25s, color .25s; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce .checkout-button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--main) !important; color: var(--ink) !important; border-color: var(--main) !important; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .4 !important; }

/* campi */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .quantity .qty, .woocommerce-page form .form-row input.input-text, .woocommerce .coupon input.input-text {
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 10px 0; font: inherit; color: var(--ink); }
.woocommerce form .form-row label { font: 400 11px/1.4 var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.woocommerce .select2-container--default .select2-selection--single { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; height: 40px; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 0; }
.woocommerce .quantity .qty { width: 56px; text-align: center; border: 1px solid var(--line); padding: 12px 0; }

/* avvisi */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  border: 0 !important; border-left: 3px solid var(--main) !important; background: #f2f1ec !important; color: var(--ink) !important; border-radius: 0 !important; font-size: 15px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink) !important; }
.woocommerce-error { border-left-color: #b00020 !important; }
.woocommerce-message .button { float: right; }

/* prodotto singolo */
.single-product div.product { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); padding: 24px 0 0; }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .woo-variation-product-gallery { grid-column: 1 / 8; width: 100% !important; max-width: none !important; float: none !important; margin: 0 !important; }
/* Woo Variation Gallery: niente effetto "in caricamento" rimasto sulle immagini */
.woo-variation-gallery-wrapper.wvg-loaded .woo-variation-gallery-container { opacity: 1 !important; filter: none !important; transition: none !important; }
.woo-variation-gallery-thumbnail-wrapper { margin-top: 8px; }
.single-product div.product .summary { grid-column: 9 / 13; width: 100% !important; float: none !important; position: sticky; top: 100px; align-self: start; display: grid; gap: 20px; }
.single-product div.product .prod-top { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
.single-product div.product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
/* le sezioni correlati / upsell / cross-sell hanno la classe .products: non devono diventare loro stesse una griglia */
section.related.products, section.upsells.products, .cross-sells.products { display: block; }
@media (max-width: 900px) { .single-product div.product .woocommerce-product-gallery, .single-product div.product .woo-variation-product-gallery, .single-product div.product .summary { grid-column: 1 / -1; position: static; } .single-product div.product .summary { margin-top: 32px; } }
.single-product .woocommerce-product-gallery__image img { background: #f0efea; mix-blend-mode: multiply; }
.single-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px !important; }
.single-product .flex-control-thumbs li { width: auto !important; }
.single-product .flex-control-thumbs img { opacity: .5; }
.single-product .flex-control-thumbs img.flex-active, .single-product .flex-control-thumbs img:hover { opacity: 1; }
.single-product .woocommerce-product-gallery__trigger { background: var(--bg) !important; border-radius: 0 !important; }
.single-product .product_title { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; font-weight: 400; letter-spacing: -.035em; margin: 0; }
.single-product .summary .price { color: var(--ink) !important; font-size: 20px !important; margin: 0; }
.single-product .summary .woocommerce-product-details__short-description { color: var(--ink-2); }
.single-product .summary .prod-cat a { color: var(--ink-2); }
.single-product .summary form.cart { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.single-product .summary form.cart .single_add_to_cart_button { flex: 1; }
.single-product .summary form.variations_form { display: block; }
.single-product table.variations { border: 0; margin-bottom: 12px !important; }
.single-product table.variations th, .single-product table.variations td { display: block; padding: 0 !important; text-align: left; border: 0; }
.single-product table.variations th label { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.single-product table.variations select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; font: inherit; margin: 6px 0 14px; }
.single-product .reset_variations { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.single-product .woocommerce-variation-add-to-cart { display: flex; gap: 8px; width: 100%; }
.single-product .woocommerce-variation-price .price { font-size: 18px !important; }
.woocommerce div.product .woocommerce-tabs { margin-top: clamp(48px, 6vw, 96px); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 24px !important; border-bottom: 1px solid var(--ink); display: flex; gap: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font: 400 12px var(--f-mono); text-transform: uppercase; color: var(--ink-2) !important; padding: 10px 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; box-shadow: inset 0 -3px 0 var(--main); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 68ch; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); background: none !important; font-style: normal; padding: 10px 0; }
.single-product .related > h2, .single-product .upsells > h2, .cross-sells > h2 { font: 400 11px var(--f-mono); text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin: clamp(64px, 8vw, 120px) 0 clamp(24px, 3vw, 40px); }
.woocommerce .star-rating span::before { color: var(--ink); }
.woocommerce span.onsale { display: none; }

/* carrello, cassa e account (shortcode classici) */
.woocommerce-cart .woo, .woocommerce-checkout .woo, .woocommerce-account .woo { max-width: none; }
.woocommerce table.shop_table { border: 0; border-top: 1px solid var(--ink); border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table th { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--ink-2); border: 0; padding: 12px 8px 12px 0; }
.woocommerce table.shop_table td { border: 0; border-top: 1px solid var(--line); padding: 16px 8px 16px 0; }
.woocommerce table.cart img { width: 72px; background: #f0efea; }
.woocommerce a.remove { color: var(--ink-2) !important; font-weight: 300; }
.woocommerce a.remove:hover { background: var(--main) !important; color: var(--ink) !important; }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3, .woocommerce-account h2, .woocommerce-account h3 { font: 400 11px var(--f-mono); text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.woocommerce-checkout #payment { background: #f2f1ec !important; border-radius: 0 !important; }
.woocommerce-checkout #payment div.payment_box { background: var(--bg) !important; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; color: var(--ink-2); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a, .woocommerce-account .woocommerce-MyAccount-navigation a:hover { color: var(--ink); }

/* carrello e cassa a blocchi */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--f); }
.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title { font: 400 11px var(--f-mono) !important; text-transform: uppercase; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select { border-radius: 0 !important; }
.wc-block-components-product-name { color: var(--ink) !important; }

/* pagine WooCommerce che usano page.php (carrello, cassa, account) */
.woocommerce-cart .page-body .prose, .woocommerce-checkout .page-body .prose, .woocommerce-account .page-body .prose { grid-column: 1 / -1; max-width: none; }

/* mini carrello nel cassetto laterale */
.drawer .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.drawer .woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
.drawer .woocommerce-mini-cart-item { position: relative; min-height: 108px; padding: 14px 28px 14px 78px; border-bottom: 1px solid var(--line); }
.drawer .woocommerce-mini-cart-item a:not(.remove) { color: var(--ink); text-decoration: none; display: block; }
.drawer .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 14px; width: 64px !important; height: 80px !important; object-fit: cover; background: #f0efea; margin: 0 !important; float: none !important; }
.drawer .woocommerce-mini-cart-item .quantity { display: block; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.drawer .woocommerce-mini-cart-item dl.variation { margin: 2px 0; font-size: 13px; color: var(--ink-2); }
.drawer .woocommerce-mini-cart-item dl.variation dt, .drawer .woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0; }
.drawer .woocommerce-mini-cart-item dl.variation p { display: inline; margin: 0; }
.drawer .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 12px; color: var(--ink-2); text-decoration: none; font-size: 18px; }
.drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 0 6px; margin: 0; }
.drawer .woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 10px 0 0; }
.drawer .woocommerce-mini-cart__buttons a { display: flex; justify-content: center; padding: 14px; border: 1px solid var(--ink); font: 400 12px/1 var(--f-mono); text-transform: uppercase; text-decoration: none; }
.drawer .woocommerce-mini-cart__buttons a.checkout { background: var(--ink); color: var(--bg); }
.drawer .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--main); color: var(--ink); border-color: var(--main); }
.drawer .woocommerce-mini-cart__empty-message { color: var(--ink-2); padding: 32px 0; }
.drawer-items { padding-bottom: 24px; }

/* corsi da WooCommerce */
.course-text p { margin: 0 0 .6em; }
.course-price .price, .course-price { font-size: 22px; letter-spacing: -.02em; }
.course-price del { color: var(--ink-2); font-size: .7em; }
/* carrello e cassa a blocchi: niente sbordi (alignwide) dentro il contenitore del tema */
.entry .wp-block-woocommerce-cart.alignwide, .entry .wp-block-woocommerce-checkout.alignwide { margin-left: 0; margin-right: 0; }
.woocommerce .coupon input.input-text { width: 200px !important; margin-right: 8px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border: 1px solid var(--line) !important; border-radius: 0 !important; }
/* temi classici: il blocco Gruppo aggiunge un contenitore interno; lo "apriamo" per la griglia */
.is-style-sp-info > .wp-block-group__inner-container { display: contents; }
.is-style-sp-info > .wp-block-group__inner-container > * { margin: 0 !important; padding: 14px 0 20px; border-bottom: 1px solid var(--line); }
.is-style-sp-info .wp-block-group p { margin: 0; }
.is-style-sp-info .wp-block-group p + p { margin-top: 8px; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; }
.drawer .woocommerce-mini-cart-item img { position: absolute !important; left: 0 !important; top: 14px !important; }
.drawer .woocommerce-mini-cart-item { min-height: 108px; }
/* barra di amministrazione (solo da collegati) */
.admin-bar .site-header { top: 32px; }
.admin-bar .drawer, .admin-bar .mobile-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } .admin-bar .drawer, .admin-bar .mobile-nav { top: 46px; } }
.drawer .woocommerce-mini-cart-item { padding: 14px 28px 14px 78px !important; margin: 0 !important; list-style: none; }

/* ---------- Pagina essenziale (senza menu): booking, pagine da QR code ---------- */
.ess { min-height: 100vh; display: flex; flex-direction: column; }
.ess-top { padding: clamp(20px, 3vw, 32px) var(--pad, 16px); display: flex; justify-content: center; }
.ess-main { width: 100%; max-width: 640px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) 16px clamp(48px, 8vw, 96px); flex: 1; }
.ess-title { font-size: clamp(36px, 6vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -.04em; margin: 0 0 24px; }
.ess-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -.015em; margin: 0 0 32px; }
.ess-cover { margin: 0 0 32px; }
.ess-cover img, .ess-body img { width: 100%; height: auto; display: block; }
.ess-body { font-size: 17px; line-height: 1.55; }
.ess-body > :first-child, .ess-body .wpb_wrapper > :first-child { margin-top: 0; }
/* contenuto fatto con WPBakery: righe e colonne a tutta larghezza, senza margini del vecchio costruttore */
.ess-body .vc_row, .ess-body .vc_column-inner, .ess-body .wpb_column { margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; }
.ess-body .wpb_content_element, .ess-body .vc_figure, .ess-body .wpb_single_image { margin: 0 0 24px !important; }
.ess-body .vc_single_image-wrapper { display: block; border: 0 !important; }
.ess-body .vc_empty_space { display: none; }
/* modulo Contact Form 7 con la grafica del tema */
.form-tema .wpcf7 { margin: 0; }
.ess-body .wpcf7, .form-tema .wpcf7 { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
.ess-body .wpcf7 p, .form-tema .wpcf7 p { margin: 0 0 22px; }
.ess-body .wpcf7 label, .form-tema .wpcf7 label { display: block; font: 400 11px/1.4 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.ess-body .wpcf7 br, .form-tema .wpcf7 br { display: none; }
.ess-body .wpcf7-form-control-wrap, .form-tema .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.ess-body .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .ess-body .wpcf7 select, .ess-body .wpcf7 textarea, .form-tema .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .form-tema .wpcf7 select, .form-tema .wpcf7 textarea {
  width: 100%; font: 400 17px/1.4 var(--f-sans, inherit); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; -webkit-appearance: none; appearance: none; }
.ess-body .wpcf7 select[multiple], .form-tema .wpcf7 select[multiple] { border: 1px solid var(--ink); padding: 4px; min-height: 0; }
.ess-body .wpcf7 select[multiple] option, .form-tema .wpcf7 select[multiple] option { padding: 8px 10px; }
.ess-body .wpcf7 select[multiple] option:checked, .form-tema .wpcf7 select[multiple] option:checked { background: var(--main) linear-gradient(var(--main), var(--main)); color: var(--ink); }
.ess-body .wpcf7 input:focus, .ess-body .wpcf7 select:focus, .ess-body .wpcf7 textarea:focus, .form-tema .wpcf7 input:focus, .form-tema .wpcf7 select:focus, .form-tema .wpcf7 textarea:focus { outline: none; border-color: var(--main); box-shadow: 0 2px 0 var(--main); }
.ess-body .wpcf7 input[type=submit], .form-tema .wpcf7 input[type=submit] { width: 100%; cursor: pointer; padding: 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--bg); font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; -webkit-appearance: none; appearance: none; }
.ess-body .wpcf7 input[type=submit]:hover, .form-tema .wpcf7 input[type=submit]:hover { background: var(--main); color: var(--ink); border-color: var(--main); }
.ess-body .wpcf7-spinner, .form-tema .wpcf7-spinner { display: block; margin: 12px auto 0; }
.ess-foot { text-align: center; color: var(--ink-2); padding: 24px 16px 32px; border-top: 1px solid rgba(0,0,0,.08); }
.ess-foot a { color: inherit; }
.ess-foot a:hover { color: var(--ink); }

/* ---------- Home e pagine fatte con i blocchi "imperfect" ---------- */
/* blocchi normali messi tra le sezioni: stessi margini laterali delle sezioni */
.home-blocks > :not(section):not(header):not(.wrap):not(div[class*="wrap"]) { padding-inline: var(--g); }
/* Studio: citazione e testo in alto, attività e clienti sotto (come la home di prima) */
.studio-grid { row-gap: 56px; }
.studio-grid > .quote { grid-column: 1 / 7; }
.studio-grid > .studio-text { grid-column: 8 / 13; }
.studio-grid > .services { grid-column: 1 / 7; }
.studio-grid > .studio-side { grid-column: 8 / 13; }
.studio-grid > * { margin: 0; }
.studio-grid .studio-text > * + * { margin-top: 1em; }
.studio-grid .studio-text p { margin: 0; }
.studio-grid .services details { margin: 0; }
.studio-grid .svc-body > p { margin: 0 0 1em; }
.studio-side .etichetta { font: 400 11px/1.4 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); margin: 48px 0 12px; }
.studio-side .etichetta:first-child { margin-top: 0; }
.studio-side .clients { margin: 0; }
.clients strong, .clients b { color: var(--ink); font-weight: 400; }
.studio-side .founded { margin-top: 12px; }
@media (max-width: 900px) { .studio-grid > * { grid-column: 1 / -1 !important; } }
/* Richiesta portfolio: testo scritto nella pagina */
.pf-text > .mono { display: block; }
.pf-text > h2 { margin: 12px 0 0; }

/* ---------- Modelli generici: "Pagina a sezioni" e "Testo lungo con indice" ---------- */
.sezioni { padding-bottom: clamp(48px, 6vw, 96px); }
.sezioni > * { margin-inline: var(--g); }
.sezioni > .alignfull { margin-inline: 0; }
.sezioni > p, .sezioni > ul, .sezioni > ol, .sezioni > h2, .sezioni > h3, .sezioni > blockquote { max-width: 62ch; }
.sez { margin-top: clamp(64px, 8vw, 120px) !important; }
.sezioni > .sez:first-child { margin-top: clamp(24px, 3vw, 48px) !important; }
.sez-label { font: 400 11px/1.4 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin: 0 0 clamp(24px, 3vw, 40px) !important; display: flex; align-items: center; gap: 8px; }
.sez-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--main); }
.sez-intro .quote { max-width: 28ch; margin: 0 0 24px; }
.sez-intro > p:not(.sez-label):not(.quote) { max-width: 62ch; color: var(--ink-2); }
.sez-cols { gap: var(--g) !important; }
.sez-cols h2 { margin-top: 0; }
.sez-link a, .sezioni .sez-link a { font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .03em; }
.righe { list-style: none; padding: 0 !important; margin: 0; }
.righe li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--g); padding: 14px 0; margin: 0 !important; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.righe li:first-child { border-top: 1px solid var(--line); }
.righe li strong { color: var(--ink); font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.015em; }
.righe li strong a { text-decoration: none; }
@media (max-width: 700px) { .righe li { grid-template-columns: 1fr; gap: 4px; } }
.faq details { border-bottom: 1px solid var(--line); margin: 0 !important; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; gap: 24px; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--ink-2); }
.faq details[open] summary::after { content: '−'; }
.faq details > :not(summary) { color: var(--ink-2); max-width: 62ch; margin: 0 0 16px; }
.sez-box { background: var(--main); padding: clamp(24px, 4vw, 56px); }
.sez-box h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.035em; margin: 12px 0 !important; max-width: 20ch; }
.sez-box p { max-width: 52ch; }
.entry .wp-block-button__link, .sezioni .wp-block-button__link { background: var(--ink); color: var(--bg); border-radius: 0; padding: 14px 18px; font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--bg); color: var(--ink); }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.sez-numeri .wp-block-column { border-top: 1px solid var(--ink); padding-top: 16px; }
.sez-numeri .numero { font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -.045em; margin: 0 0 8px; }
.sez-numeri .wp-block-column p:not(.numero) { color: var(--ink-2); margin: 0; }
.testo-lungo { padding-bottom: clamp(48px, 6vw, 96px); }
.testo-lungo .toc { grid-column: 1 / 4; position: sticky; top: 100px; align-self: start; }
.testo-lungo .toc ol { list-style: none; padding: 0; margin: 12px 0 0; }
.testo-lungo .toc li { margin: 0; border-top: 1px solid var(--line); }
.testo-lungo .toc a { display: block; padding: 8px 0; color: var(--ink-2); text-transform: none; font-size: 12px; }
.testo-lungo .toc a:hover { color: var(--ink); }
.testo-lungo > .prose { grid-column: 5 / 12; }
.testo-lungo > .prose:only-child { grid-column: 1 / 9; }
.testo-lungo h2 { scroll-margin-top: 100px; }
.testo-agg { margin: 0 0 48px; }
@media (max-width: 900px) { .testo-lungo .toc { grid-column: 1 / -1; position: static; margin-bottom: 32px; } .testo-lungo > .prose { grid-column: 1 / -1; } }

/* ---------- Modello "Corso o laboratorio" ---------- */
.corso-back { grid-column: 1 / -1; margin-bottom: 16px; }
.corso-back:hover { color: var(--ink); }
.corso-grid { margin-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 96px); row-gap: 40px; }
.corso-body { grid-column: 1 / 8; max-width: none; }
.corso-body h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; padding-top: 18px; border-top: 1px solid var(--ink); margin: 2.2em 0 .8em; }
.corso-body > h2:first-child { margin-top: 0; }
.corso-body h3 { font-size: clamp(17px, 1.3vw, 20px); margin: 1.6em 0 .4em; }
.corso-side { grid-column: 9 / 13; }
.scheda-corso { position: sticky; top: 100px; border-top: 1px solid var(--ink); }
.scheda-corso .sc-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.scheda-corso .sc-row p { margin: 0; }
.scheda-corso .sc-row p + p { margin-top: 2px; }
.scheda-corso .sc-costo > div { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.02em; }
.scheda-corso .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scheda-corso .chips a { font: 400 11px/1 var(--f-mono); padding: 7px 9px; border: 1px solid var(--ink); }
.scheda-corso .chips a:hover { background: var(--main); border-color: var(--main); }
.scheda-corso .btn { margin-top: 20px; }
.scheda-corso .sc-nota { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.scheda-corso .sc-nota p { margin: 0 0 4px; }
.corso-altri { padding-bottom: clamp(48px, 6vw, 96px); }
@media (max-width: 900px) {
  .corso-body, .corso-side { grid-column: 1 / -1; }
  .corso-side { order: -1; }
  .scheda-corso { position: static; }
}

/* ---------- pagine convertite da WPBakery ---------- */
.sezioni > section, .sezioni > header, .sezioni > .wrap, .sezioni > div.wrap { margin-inline: 0; }
.persone-cols .wp-block-column { border-top: 1px solid var(--ink); padding-top: 16px; }
.persone-cols figure { margin: 0 0 16px; }
.persone-cols img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #f0efea; }
.persone-cols h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; margin: 0 0 6px; }
.persone-cols .mono { color: var(--ink-2); margin: 0 0 14px; }
.persona-link a { font: 400 12px/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .03em; }
.mappa { margin-top: 24px; aspect-ratio: 4/3; background: #f0efea; }
.mappa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); }
.downloads > * { margin: 0 !important; }
@media (max-width: 900px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
.downloads .sdm_fancy2_item { width: auto !important; margin: 0 !important; float: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
.downloads .sdm_fancy2_download_title { font: 400 15px/1.3 var(--f-sans, inherit) !important; margin: 10px 0 !important; text-align: left !important; }
.downloads .sdm_download_link a, .downloads .sdm_fancy2_download_link a { display: inline-block; background: var(--ink) !important; color: var(--bg) !important; border: 0 !important; border-radius: 0 !important; padding: 10px 12px !important; font: 400 11px/1 var(--f-mono) !important; text-transform: uppercase; text-decoration: none !important; box-shadow: none !important; }
.ess-body .wp-block-buttons { justify-content: center; margin: 0 0 24px; }
.ess-body .bio-nota { text-align: center; color: var(--ink-2); font: 400 11px/1.4 var(--f-mono); text-transform: uppercase; }
.bio-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bio-griglia figure { margin: 0 !important; aspect-ratio: 1; overflow: hidden; background: #f0efea; }
.bio-griglia img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bio-griglia a:hover img { transform: scale(1.04); }
.persone-cols { max-width: 900px; }
.persone-cols img { aspect-ratio: 1; }
.entry .index a, .entry .founded a, .entry .index a:hover { text-decoration: none; background: none; }
/* blocchi "Dettagli" nel testo (descrizioni prodotto, pagine): come le domande frequenti */
.prose .wp-block-details, .woocommerce-Tabs-panel .wp-block-details { border-bottom: 1px solid var(--line); margin: 0 !important; }
.prose .wp-block-details:first-of-type, .woocommerce-Tabs-panel .wp-block-details:first-of-type { border-top: 1px solid var(--line); }
.prose .wp-block-details summary, .woocommerce-Tabs-panel .wp-block-details summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; gap: 24px; font-size: clamp(17px, 1.4vw, 21px); }
.prose .wp-block-details summary::-webkit-details-marker, .woocommerce-Tabs-panel .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after, .woocommerce-Tabs-panel .wp-block-details summary::after { content: '+'; font-family: var(--f-mono); color: var(--ink-2); }
.prose .wp-block-details[open] summary::after, .woocommerce-Tabs-panel .wp-block-details[open] summary::after { content: '−'; }

/* ---------- Home: manifesto "perché noi" ---------- */
.manifesto-grid { row-gap: clamp(40px, 6vw, 96px); align-items: start; }
.manifesto-grid > * { margin: 0; }
.manifesto .manifesto-top { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: start; }
.manifesto .domande { grid-column: 1 / 6; position: sticky; top: 110px; }
.manifesto .domande p { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 .55em; color: var(--ink-2); }
.manifesto .domande p:last-child { color: var(--ink); margin-top: 1.1em; }
.manifesto.ready .domande:not(.in) p { opacity: 0; transform: translateY(12px); }
.manifesto .domande p { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .35s); }
.manifesto .domande.in p { opacity: 1; transform: none; }
.manifesto [data-barrata] .q { background: linear-gradient(var(--main), var(--main)) 0 55% / 0 2px no-repeat; transition: background-size .6s var(--ease); transition-delay: calc(var(--i, 0) * .35s + .5s); }
.manifesto .domande.in [data-barrata] .q { background-size: 100% 2px; }
.manifesto [data-barrata] .a { display: inline-block; font-size: 12px; color: var(--ink); opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i, 0) * .35s + 1.1s); }
.manifesto .domande.in [data-barrata] .a { opacity: 1; }
.manifesto .manifesto-testo { grid-column: 7 / 13; }
.manifesto .manifesto-testo p { font-size: clamp(22px, 2.3vw, 36px); line-height: 1.18; letter-spacing: -.032em; margin: 0 0 1.1em; }
.manifesto.ready .manifesto-testo .w { color: var(--ink-2); opacity: .35; transition: opacity .35s, color .35s; }
.manifesto.ready .manifesto-testo .w.on { color: var(--ink); opacity: 1; }
.manifesto .manifesto-testo strong { font-weight: 400; background: linear-gradient(var(--main), var(--main)) 0 88% / 0 .32em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .8s var(--ease); }
.manifesto:not(.ready) .manifesto-testo strong, .manifesto .manifesto-testo strong.on { background-size: 100% .32em; }
.manifesto .motto { grid-column: 1 / -1; font-size: clamp(40px, 7vw, 120px); line-height: .95; letter-spacing: -.05em; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--ink); }
.manifesto .manifesto-link { grid-column: 1 / -1; display: flex; gap: 28px; font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .03em; margin-top: -1em !important; }
.manifesto .manifesto-link a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.manifesto .manifesto-link a:hover { border-color: var(--main); }
@media (max-width: 900px) {
  .manifesto .domande, .manifesto .manifesto-testo { grid-column: 1 / -1; position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto .domande p, .manifesto [data-barrata] .q, .manifesto [data-barrata] .a { transition: none; }
}
/* manifesto: le due persone di riferimento sotto "In imperfection we trust" */
.manifesto .riferimenti { grid-column: 1 / -1; gap: var(--g) !important; margin: -1em 0 0 !important; justify-content: flex-start; }
.manifesto .riferimenti .wp-block-column { flex: 0 1 380px !important; display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; align-content: start; }
.manifesto .riferimenti figure { grid-row: 1 / span 3; margin: 0; }
.manifesto .riferimenti img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; background: #f0efea; }
.manifesto .riferimenti h3 { font-size: clamp(18px, 1.4vw, 21px); letter-spacing: -.02em; margin: 2px 0 2px; font-weight: 400; }
.manifesto .riferimenti .mono { color: var(--ink-2); margin: 0 0 10px; font-size: 10px; }
.manifesto .riferimenti .persona-link { margin: 0; font-size: 15px; line-height: 1.6; }
.manifesto .riferimenti .persona-link a { font: inherit; text-transform: none; letter-spacing: 0; }
.manifesto .riferimenti .persona-link a { text-decoration: none; }
.manifesto .riferimenti .persona-link a:hover { color: var(--ink); background: linear-gradient(var(--main), var(--main)) 0 88% / 100% .3em no-repeat; }
@media (max-width: 900px) { .manifesto .riferimenti { grid-column: 1 / -1; margin-top: 0 !important; } }
@media (max-width: 600px) { .manifesto .riferimenti { flex-direction: column; } }

/* ---------- Newsletter nel footer: riquadro giallo come il ticker ---------- */
.site-footer .newsletter .grid { background: var(--giallo, #ffe600); border-top: 0; padding: clamp(28px, 4vw, 56px); align-items: center; }
.site-footer .newsletter .nl-text .muted { color: rgba(17, 17, 16, .6); }
.site-footer .newsletter .nl-text p, .site-footer .newsletter .nl-consent { color: var(--ink); opacity: .8; }
.site-footer .newsletter .nl-field:focus-within { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.site-footer .newsletter .nl-field input::placeholder { color: rgba(17, 17, 16, .55); }
.site-footer .newsletter .nl-field button:hover { background: var(--bg); color: var(--ink); }
.site-footer .newsletter .nl-consent a { color: var(--ink); }

/* ---------- Blog: campo "Cerca nel blog" nella barra ---------- */
.blog-bar { align-items: center; }
.blog-bar .bar-right { display: flex; align-items: center; gap: 20px; }
.blog-search { display: flex; align-items: center; border-bottom: 1px solid var(--ink-2); transition: border-color .25s; }
.blog-search:focus-within { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--main); }
.blog-search input { width: 170px; border: 0; background: none; padding: 4px 0; font: 400 14px/1.2 var(--f); text-transform: none; letter-spacing: 0; color: var(--ink); -webkit-appearance: none; appearance: none; }
.blog-search input::placeholder { color: var(--ink-2); }
.blog-search input:focus { outline: none; }
.blog-search input::-webkit-search-cancel-button { display: none; }
.blog-search button { padding: 4px 0 4px 8px; color: var(--ink); font: 400 14px/1 var(--f); }
.blog-search button:hover { color: var(--ink-2); }
@media (max-width: 700px) { .blog-bar .bar-right { width: 100%; justify-content: space-between; } .blog-search { flex: 1; max-width: 240px; } .blog-search input { width: 100%; } }
/* elenco articoli su telefono: miniatura a sinistra, data e colori sopra, titolo sotto (dopo le regole per computer) */
@media (max-width: 760px) {
  .index.posts .row { grid-template-columns: 72px 1fr auto; }
  .index.posts .th { grid-column: 1; grid-row: 1 / 3; }
  .index.posts .y { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .index.posts .sw { grid-column: 3; grid-row: 1; align-self: center; }
  .index.posts .t { grid-column: 2 / 4; grid-row: 2; }
  .index.posts .m, .index.posts .a { display: none; }
}
/* riga legale del footer: privacy, cookie, termini, preferenze cookie */
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Laboratori: le foto dei corsi con le loro proporzioni, senza tagli */
.course-media { aspect-ratio: auto; align-self: start; }
.course-media img { height: auto; object-fit: contain; }
