/* Incontri Production — foglio di stile unico (niente librerie) */

@view-transition { navigation: auto; }

/* caratteri ospitati nel sito (niente richieste a Google): file in assets/fonts */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #120e0f;
  --ink-2: #1b1516;
  --ink-3: #2a2122;
  --paper: #f5efe6;
  --paper-2: #ebe1d3;
  --cream: #f3ece2;
  --cream-mute: #b9aea3;
  --text: #1a1415;
  --text-mute: #5f5551;
  --red: #bf1e2e;
  --red-hot: #e3263a;
  --red-soft: #ff6575;
  --gold: #f7ad1a;
  --line-d: rgba(243, 236, 226, .13);
  --line-l: rgba(26, 20, 21, .14);

  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.16, 1, .3, 1);

  --mute: var(--cream-mute);
  --em: var(--red-soft);
  --line: var(--line-d);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 300;
  background: var(--gold); color: var(--ink); font-weight: 700;
  padding: .7em 1.2em; border-radius: 999px; transition: top .25s;
}
.skip:focus { top: 16px; }

/* grana da pellicola: un solo strato fisso, nessuna animazione */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
main { overflow-x: clip; } /* il nastro inclinato non deve mai far scorrere la pagina di lato */

/* ---------- temi delle sezioni ---------- */
.sec { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.t-dark { background: var(--ink); color: var(--cream); }
.t-ink2 { background: var(--ink-2); color: var(--cream); }
.t-paper, .t-beige { --mute: var(--text-mute); --em: var(--red); --line: var(--line-l); color: var(--text); }
.t-paper { background: var(--paper); }
.t-beige { background: var(--paper-2); }
.t-red { --mute: rgba(255, 255, 255, .82); --em: #fff; --line: rgba(255, 255, 255, .25); background: var(--red); color: #fff; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .78rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--live::before {
  width: 8px; height: 8px; border-radius: 50%; opacity: 1; background: var(--red-hot);
  animation: live 2.2s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(227, 38, 58, .65); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(227, 38, 58, 0); }
}

.display, .title, .big {
  font-weight: 760; letter-spacing: -.04em; text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 7.4vw, 7.4rem); line-height: .93; }
.title { font-size: clamp(2.15rem, 4.9vw, 4.5rem); line-height: 1; letter-spacing: -.035em; }
.big { font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 720; }
.display em, .title em, .big em, .foot__big em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--em); font-size: 1.06em; padding-right: .04em;
}
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.6; color: var(--mute); max-width: 58ch; text-wrap: pretty; }
.muted { color: var(--mute); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* titoli che entrano parola per parola (le parole le divide costruisci.py) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.split .w > span { display: inline-block; transform: translateY(108%); animation: wordUp 1s var(--out) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes wordUp { to { transform: none; } }

.load { opacity: 0; animation: fadeUp 1.1s var(--out) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* comparsa allo scorrimento (attiva solo se c'è JavaScript) */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--out), transform 1s var(--out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-clip { clip-path: inset(14% 8% 14% 8% round 28px); transition: clip-path 1.4s var(--out); transition-delay: var(--d, 0ms); }
.js .rv-clip img { transform: scale(1.18); transition: transform 1.8s var(--out); transition-delay: var(--d, 0ms); }
.js .rv-clip.in { clip-path: inset(0 round 28px); }
.js .rv-clip.in img { transform: none; }

/* ---------- bottoni ---------- */
.btn {
  --fill: var(--cream); --fill-ink: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .65em; min-height: 52px;
  padding: .9em 1.55em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; line-height: 1.1; white-space: nowrap;
  transition: color .45s var(--out), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill); transform: translateY(102%); transition: transform .55s var(--out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--fill-ink); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform .5s var(--out); }
.btn:hover svg { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--ghost { border-color: currentColor; }
.t-paper .btn--ghost, .t-beige .btn--ghost { --fill: var(--ink); --fill-ink: var(--cream); }
.t-paper .btn--red, .t-beige .btn--red { --fill: var(--ink); --fill-ink: var(--cream); }
.btn--cream { background: var(--cream); color: var(--ink); --fill: var(--ink); --fill-ink: var(--cream); }
.btn--sm { min-height: 42px; padding: .7em 1.2em; font-size: .9rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 650;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--out);
}
.link:hover { background-size: 100% 1px; }
.link svg { width: 1em; height: 1em; transition: transform .5s var(--out); }
.link:hover svg { transform: translateX(4px); }

/* ---------- testata ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform .55s var(--out), background-color .4s, border-color .4s;
  view-transition-name: testata;
}
.top.is-solid {
  background: rgba(18, 14, 15, .84); border-color: var(--line-d);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.top.is-hidden { transform: translateY(-101%); }
.top__row { display: flex; align-items: center; gap: 20px; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--cream); }
.brand img { width: 42px; transition: transform 1s var(--out); }
.brand:hover img { transform: rotate(-28deg) scale(1.06); }
.brand__name { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand__name b { font-weight: 400; font-size: 1.02rem; letter-spacing: .36em; }
.brand__name small { font-size: .55rem; letter-spacing: .66em; margin-top: 6px; opacity: .72; }

.nav ul { display: flex; gap: 2px; }
.nav a {
  position: relative; display: block; padding: .55em .8em;
  font-size: .95rem; font-weight: 500; color: var(--cream-mute); transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .32em; height: 1.5px;
  background: var(--red-hot); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-d); place-items: center;
}
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--cream); transition: transform .5s var(--out), top .5s var(--out); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .nav, .top__cta { display: none; }
  .burger { display: grid; }
}

/* menu del telefono: si apre a cerchio dal bottone */
.mnav {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gut) 36px; background: var(--ink); overflow-y: auto;
  clip-path: circle(0 at calc(100% - var(--gut) - 24px) 39px); visibility: hidden;
  transition: clip-path .75s var(--out), visibility 0s .75s;
}
.mnav.is-open { clip-path: circle(150% at calc(100% - var(--gut) - 24px) 39px); visibility: visible; transition: clip-path .75s var(--out); }
.mnav li { overflow: hidden; }
.mnav li a {
  display: flex; align-items: baseline; gap: 14px; padding: .14em 0;
  font-size: clamp(2.1rem, 9.5vw, 3.6rem); font-weight: 720; letter-spacing: -.04em; line-height: 1.12;
  transform: translateY(110%); transition: transform .8s var(--out), color .3s;
}
.mnav li a small { font-size: .8rem; font-weight: 500; letter-spacing: .1em; color: var(--cream-mute); }
.mnav li a[aria-current="page"] { color: var(--red-soft); }
.mnav.is-open li a { transform: none; transition-delay: calc(var(--i) * 55ms + 150ms); }
.mnav__foot { margin-top: 40px; display: grid; gap: 6px; color: var(--cream-mute); opacity: 0; transition: opacity .6s .5s; }
.mnav.is-open .mnav__foot { opacity: 1; }
body.menu-open { overflow: hidden; }

/* ---------- hero della home ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center; padding: 120px 0 110px;
}
.hero::before, .phero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(40vmax circle at var(--mx, 74%) var(--my, 44%), rgba(191, 30, 46, .3), transparent 62%),
    radial-gradient(70vmax 36vmax at 0% 105%, rgba(247, 173, 26, .09), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 24px; }
.hero__text .lead { margin-top: 30px; }
.hero__text .btns { margin-top: 42px; }
.hero__text .eyebrow { margin-bottom: 26px; }
.hero__globe { position: relative; width: min(50vw, 680px); aspect-ratio: 1; justify-self: end; margin-right: calc(-1 * var(--gut) - 6vw); }
.globe { width: 100%; height: 100%; overflow: visible; }

.cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--cream-mute);
}
.cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--line-d); }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red-hot); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-bottom: 100px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__globe { position: absolute; z-index: -1; top: 64px; right: -34vw; width: 100vw; margin: 0; opacity: .55; }
  .cue { display: none; }
}

/* globo animato (lo disegna sito.js) */
.globe .rim { fill: none; stroke: rgba(243, 236, 226, .5); stroke-width: 1.2; }
.globe .mf { fill: none; stroke: rgba(243, 236, 226, .3); stroke-width: 1; }
.globe .mb { fill: none; stroke: rgba(243, 236, 226, .07); stroke-width: 1; }
.globe .lk { fill: none; stroke: var(--red-hot); stroke-width: 1.5; stroke-linecap: round; opacity: .8; transition: opacity .3s; }
.globe .lk.b { opacity: .14; }
.globe .spark { fill: none; stroke: #ffd08a; stroke-width: 2.6; stroke-linecap: round; opacity: 0; stroke-dasharray: .14 .86; filter: drop-shadow(0 0 4px #ffb347); }
.globe .spark.hot { opacity: 1; animation: signal 1.5s linear forwards; }
@keyframes signal { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -.16; } }
.globe .nd .c { fill: var(--red-hot); }
.globe .nd.b .c { fill: #4a2329; }
.globe .nd .ring { fill: none; stroke: var(--red-hot); stroke-width: 1; animation-name: ring; animation-duration: 2.8s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); animation-iteration-count: infinite; animation-delay: var(--dl, 0s); }
.globe .nd.b .ring { display: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.globe-static .lk, .globe-static .nd .ring { animation: none; }

/* ---------- nastro che scorre ---------- */
.marquee { --gap: clamp(28px, 4vw, 56px); display: flex; overflow: hidden; user-select: none; }
.marquee__track { display: flex; flex: none; align-items: center; gap: var(--gap); padding-right: var(--gap); min-width: 100%; animation: marquee var(--dur, 32s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.band { position: relative; z-index: 2; background: var(--red); color: #fff; padding: 20px 0; transform: rotate(-1.4deg); margin: -26px -3vw 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.band .marquee__track span { display: inline-flex; align-items: center; gap: var(--gap); font-size: clamp(1.35rem, 2.9vw, 2.3rem); font-weight: 720; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.band .marquee__track span::after { content: "✦"; color: var(--gold); font-size: .7em; }

/* ---------- chi siamo ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.about__label { grid-column: 1 / 4; }
.about__label .eyebrow { position: sticky; top: 120px; }
.about__body { grid-column: 4 / 13; }
.statement { font-size: clamp(1.55rem, 3.1vw, 2.85rem); line-height: 1.2; letter-spacing: -.028em; font-weight: 560; text-wrap: pretty; }
.statement em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); font-size: 1.07em; letter-spacing: -.01em; }
.about__more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.about__more p { color: var(--mute); font-size: 1.08rem; }
.about__more p + p { margin-top: 1em; }
.about__more .btns { margin-top: 32px; }

.photo { position: relative; }
.photo figure { border-radius: 28px; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { margin-top: 14px; font-size: .9rem; color: var(--mute); }

.badge {
  position: absolute; z-index: 2; left: -46px; top: -58px; width: 148px; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .5);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font-size: 10.4px; font-weight: 650; letter-spacing: .2em; fill: var(--ink); text-transform: uppercase; }
.badge b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.badge b small { display: block; font-size: .7rem; letter-spacing: .1em; text-align: center; font-weight: 650; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .about__label, .about__body { grid-column: 1 / -1; }
  .about__more { grid-template-columns: 1fr; }
  .badge { left: auto; right: -6px; top: -54px; width: 116px; }
  .badge b { font-size: 1.8rem; }
}

/* ---------- servizi ---------- */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(44px, 6vw, 72px); }
.head .lead { max-width: 44ch; }
.head .eyebrow { margin-bottom: 20px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 420px; padding: 28px;
  border: 1px solid var(--line-d); border-radius: 24px; background: rgba(243, 236, 226, .02);
  transition: border-color .5s, transform .6s var(--out);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform .7s var(--out); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .14), transparent 70%); }
.card:hover { border-color: var(--red); transform: translateY(-6px); }
.card:hover::before { transform: none; }
.card:hover::after { opacity: 1; }
.card__num { font-size: .82rem; letter-spacing: .14em; color: var(--cream-mute); transition: color .4s; }
.card .ico { width: 58px; height: 58px; margin-top: 30px; color: var(--red-soft); transition: color .4s, transform .7s var(--out); }
.card:hover .ico { color: #fff; transform: translateY(-4px) rotate(-8deg); }
.card h3 { margin-top: auto; padding-top: 36px; font-size: clamp(1.45rem, 1.9vw, 1.75rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 720; }
.card p { margin-top: 12px; font-size: .98rem; color: var(--cream-mute); transition: color .4s; }
.card:hover p, .card:hover .card__num { color: rgba(255, 255, 255, .88); }
.card__go { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 26px; border-radius: 50%; border: 1px solid var(--line-d); transition: transform .6s var(--out), background .4s, color .4s, border-color .4s; }
.card__go svg { width: 18px; height: 18px; }
.card:hover .card__go { background: #fff; color: var(--red); border-color: #fff; transform: rotate(-45deg); }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* icone a tratto: si disegnano quando compaiono */
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.js .rv .ico > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* selettore ".ico > *" e non "[pathLength]": Chrome non aggiorna lo stile degli attributi SVG in camelCase */
.js .rv.in .ico > * { animation-name: draw; animation-duration: 1.6s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); animation-fill-mode: forwards; animation-delay: calc(var(--d, 0ms) + 250ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- no stress + numeri ---------- */
.nostress { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.nostress .lead { margin-top: 24px; }
.sticker {
  position: relative; display: grid; place-items: center; text-align: center;
  width: clamp(140px, 17vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: var(--gold); color: var(--ink); transform: rotate(-12deg);
  font-weight: 800; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: .92; letter-spacing: -.035em;
  box-shadow: 0 26px 40px -26px rgba(0, 0, 0, .55); transition: transform .8s var(--out);
}
.sticker::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px dashed rgba(18, 14, 15, .4); }
.sticker:hover { transform: rotate(6deg) scale(1.06); }
.sticker small { display: block; font-size: .42em; letter-spacing: .14em; font-weight: 650; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 780; letter-spacing: -.055em; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .3em; letter-spacing: .02em; font-weight: 600; margin-right: .2em; vertical-align: .9em; }
.stat b i { font-style: normal; font-size: .42em; letter-spacing: -.02em; margin-left: .12em; }
.stat > span { display: block; margin-top: 12px; font-size: .95rem; color: var(--mute); max-width: 24ch; }
@media (max-width: 860px) {
  .nostress { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- valori ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { display: flex; align-items: center; gap: 24px; padding: clamp(28px, 3.5vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .5s; }
.value .ico { flex: none; width: 54px; height: 54px; color: var(--red); transition: transform .7s var(--out); }
.value h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 720; letter-spacing: -.025em; line-height: 1.1; }
.value:hover { background: var(--paper); }
.value:hover .ico { transform: scale(1.12) rotate(-6deg); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- produzioni tv ---------- */
.onair {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 22px;
  border: 1.5px solid var(--red-hot); border-radius: 8px; color: var(--red-soft);
  font-size: .78rem; font-weight: 800; letter-spacing: .24em;
  text-shadow: 0 0 14px rgba(227, 38, 58, .9);
  box-shadow: 0 0 26px -4px rgba(227, 38, 58, .6), inset 0 0 14px -4px rgba(227, 38, 58, .7);
  animation: flicker 5s infinite;
}
.onair::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot); }
@keyframes flicker { 0%, 46%, 50%, 54%, 100% { opacity: 1; } 48%, 52% { opacity: .45; } }

.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px max(var(--gut), (100vw - var(--wrap)) / 2) 26px; scroll-padding-inline: max(var(--gut), (100vw - var(--wrap)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.poster { flex: 0 0 clamp(250px, 25vw, 320px); scroll-snap-align: start; }
.poster a { display: block; }
.poster__img { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.poster__img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--out); }
.poster__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-d); transition: box-shadow .4s; }
.poster:hover .poster__img img { transform: scale(1.07); }
.poster:hover .poster__img::after { box-shadow: inset 0 0 0 2px var(--red-hot); }
.poster h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-d); transition: background .3s, color .3s, border-color .3s; }
.rail-nav button:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.rail-nav svg { width: 20px; height: 20px; }
.rail-nav button:first-child svg { transform: scaleX(-1); }

/* ---------- loghi clienti ---------- */
.logos { margin-top: 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos + .logos { margin-top: 14px; }
.logo { flex: none; display: grid; place-items: center; width: 190px; height: 112px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line-l), 0 18px 30px -24px rgba(0, 0, 0, .35); }
.logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; transition: filter .5s, opacity .5s, transform .5s var(--out); }
@media (hover: hover) {
  .logo img { filter: grayscale(1); opacity: .75; }
  .logo:hover img { filter: none; opacity: 1; transform: scale(1.06); }
}
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-grid .logo { width: auto; }
.logo-wide { margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: #fff; }
.logo-wide img { width: 100%; }

/* ---------- obiettivo (fascia rossa) ---------- */
.goal { overflow: hidden; isolation: isolate; text-align: center; }
.goal__deco { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 160vw); height: auto; aspect-ratio: 1; translate: -50% -50%; opacity: .14; color: #fff; animation: spin 120s linear infinite; }
.goal__deco .rim, .goal__deco .mf { stroke: #fff; }
.goal__deco .lk { stroke: #fff; opacity: .9; }
.goal__deco .nd .c { fill: #fff; }
.goal blockquote { margin: 28px auto 0; max-width: 17ch; font-family: var(--serif); font-style: italic; font-size: clamp(2.5rem, 6.4vw, 5.8rem); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.goal p { margin: 32px auto 0; max-width: 62ch; color: var(--mute); font-size: 1.1rem; }
.goal .btns { justify-content: center; margin-top: 40px; }

/* ---------- piè di pagina ---------- */
.foot { position: relative; padding: clamp(84px, 10vw, 140px) 0 30px; border-top: 1px solid var(--line-d); background: var(--ink); color: var(--cream); }
.foot__big { display: block; font-size: clamp(2.5rem, 7.6vw, 7.3rem); font-weight: 770; letter-spacing: -.048em; line-height: .95; text-wrap: balance; }
.foot__big em { color: var(--red-soft); }
.foot__big:hover em { color: var(--gold); transition: color .5s; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px 32px; margin-top: clamp(56px, 8vw, 96px); padding-top: 48px; border-top: 1px solid var(--line-d); }
.foot h4 { margin-bottom: 18px; font-size: .74rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-mute); }
.foot li + li { margin-top: 8px; }
.foot a:not(.btn) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--out), color .3s; }
.foot a:not(.btn):hover { background-size: 100% 1px; color: #fff; }
.foot__logo { width: 190px; margin-bottom: 20px; }
.foot__brand p { color: var(--cream-mute); max-width: 32ch; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 72px; font-size: .86rem; color: var(--cream-mute); }
.foot__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__bottom li + li { margin-top: 0; }
.foot__bottom button { text-decoration: underline; text-underline-offset: 3px; }
.totop { position: absolute; right: var(--gut); top: clamp(84px, 10vw, 140px); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-d); transition: background .3s, color .3s, transform .5s var(--out); }
.totop svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.totop:hover { background: var(--red); border-color: var(--red); transform: translateY(-4px); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } .totop { display: none; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- testata delle pagine interne ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(140px, 17vw, 200px) 0 clamp(72px, 9vw, 120px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.phero--solo .phero__grid { grid-template-columns: minmax(0, 1fr); }
.phero h1 { margin-top: 24px; }
.phero .lead { margin-top: 28px; }
.phero .btns { margin-top: 38px; }
.phero__deco { position: absolute; z-index: -1; right: -14vw; top: -12vw; width: 60vw; max-width: 820px; aspect-ratio: 1; opacity: .3; pointer-events: none; }
.frame { position: relative; border-radius: 28px; overflow: hidden; animation: unclip 1.5s var(--out) .2s both; }
.frame img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; animation: zoomOut 2s var(--out) .2s both; }
@keyframes unclip { from { clip-path: inset(20% 12% 20% 12% round 28px); } to { clip-path: inset(0 round 28px); } }
@keyframes zoomOut { from { transform: scale(1.22); } to { transform: none; } }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .9rem; color: var(--mute); }
.chip { display: inline-flex; align-items: center; padding: .38em .95em; border-radius: 999px; border: 1px solid currentColor; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.chip--red { border-color: var(--red-hot); color: var(--red-soft); }
.t-paper .chip--red { color: var(--red); }
.back { display: inline-flex; align-items: center; gap: .5em; margin-bottom: 26px; font-size: .92rem; color: var(--mute); transition: color .3s; }
.back svg { width: 1em; height: 1em; transform: scaleX(-1); transition: transform .4s var(--out); }
.back:hover { color: var(--cream); }
.back:hover svg { transform: scaleX(-1) translateX(4px); }
@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__deco { width: 110vw; right: -50vw; top: -20vw; opacity: .22; }
}

/* ---------- testo lungo (articoli, privacy) ---------- */
.prose { max-width: 70ch; margin-inline: auto; font-size: 1.1rem; line-height: 1.78; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 720; text-wrap: balance; }
.prose h3 { margin-top: 2em; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { font-weight: 680; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .sign { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--text-mute); }
.dropcap > p:first-of-type::first-letter { float: left; padding: .08em .12em 0 0; font-family: var(--serif); font-style: italic; font-size: 4.8em; line-height: .78; color: var(--red); }
.article-img { max-width: 1040px; margin: 0 auto clamp(48px, 6vw, 80px); border-radius: 28px; overflow: hidden; }
.article-img img { width: 100%; }
.progress { position: fixed; inset: 0 0 auto; z-index: 101; height: 3px; background: var(--red-hot); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.next-post { display: grid; gap: 10px; max-width: 70ch; margin: clamp(56px, 7vw, 88px) auto 0; padding-top: 36px; border-top: 1px solid var(--line); }
.next-post a { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 720; letter-spacing: -.025em; line-height: 1.12; }
.next-post a:hover { color: var(--red); }

/* ---------- organizzazione eventi ---------- */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.type {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 260px; padding: 28px; border-radius: 24px; border: 1px solid var(--line);
  transition: background-color .5s, color .5s, transform .6s var(--out);
}
.type .ico { width: 60px; height: 60px; color: var(--red); transition: color .5s, transform .7s var(--out); }
.type h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 720; letter-spacing: -.025em; line-height: 1.1; }
.type span { font-size: .82rem; letter-spacing: .14em; color: var(--mute); transition: color .5s; }
.type:hover { background: var(--ink); color: var(--cream); transform: translateY(-6px); }
.type:hover .ico { color: var(--red-soft); transform: scale(1.1) rotate(-8deg); }
.type:hover span { color: var(--cream-mute); }
@media (max-width: 1060px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .types { grid-template-columns: 1fr; } .type { min-height: 0; } }

.tailor { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.tailor blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.04; text-wrap: balance; }
.tailor blockquote em { color: var(--red); }
.stitch { display: block; width: 100%; height: 70px; margin-top: 30px; color: var(--red); overflow: visible; }
.stitch .dash { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 9 9; stroke-linecap: round; }
.stitch .mask-line { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rv.in .stitch .mask-line { animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
@media (max-width: 860px) { .tailor { grid-template-columns: 1fr; } }

/* ---------- corsi ---------- */
.teacher { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.portrait { position: relative; max-width: 460px; }
.portrait figure { border-radius: 50% 50% 28px 28px; overflow: hidden; background: var(--gold); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait .badge { left: auto; right: -30px; top: auto; bottom: -34px; background: var(--red); color: #fff; }
.portrait .badge text { fill: #fff; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.25vw, 1.95rem); line-height: 1.3; text-wrap: pretty; }
.quote::before { content: "“"; display: block; height: .5em; margin-bottom: .1em; font-size: 3.4em; line-height: 1; color: var(--red); }
.bio { display: flex; gap: 22px; align-items: flex-start; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--mute); }
.bio img { flex: none; width: 92px; border-radius: 14px; background: #fff; padding: 6px; }
.bio strong { color: var(--text); font-weight: 680; }

.courses li a {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: clamp(22px, 3vw, 34px) 10px; border-top: 1px solid var(--line);
  font-size: clamp(1.45rem, 3.6vw, 3rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.05;
  transition: color .45s, padding .6s var(--out);
}
.courses li:last-child a { border-bottom: 1px solid var(--line); }
.courses li a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--out); }
.courses small { font-size: .85rem; font-weight: 600; letter-spacing: .12em; color: var(--mute); transition: color .45s; }
.courses .go { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 650; letter-spacing: 0; opacity: 0; transform: translateX(-12px); transition: opacity .45s, transform .6s var(--out); }
.courses .go svg { width: 22px; height: 22px; }
.courses li a:hover { color: #fff; padding-left: 26px; padding-right: 26px; }
.courses li a:hover::before { transform: scaleY(1); }
.courses li a:hover small { color: rgba(255, 255, 255, .8); }
.courses li a:hover .go { opacity: 1; transform: none; }
@media (hover: none) { .courses .go { opacity: 1; transform: none; } .courses .go span { display: none; } }
@media (max-width: 860px) { .teacher { grid-template-columns: 1fr; } .portrait { max-width: 340px; } .courses li a { grid-template-columns: 44px minmax(0, 1fr) auto; } }

/* ---------- programmi ---------- */
.tv { position: relative; padding: 14px; border-radius: 30px; background: linear-gradient(160deg, #2c2324, #141011); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); animation: unclip 1.5s var(--out) .2s both; }
.tv__screen { position: relative; border-radius: 18px; overflow: hidden; }
.tv__screen img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tv__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .45)); }
.tv .onair { position: absolute; z-index: 2; top: 30px; left: 30px; margin: 0; background: rgba(18, 14, 15, .7); }

.prog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-d); }
.prog:nth-child(even) .prog__media { order: 2; }
.prog__media { position: relative; }
.prog__media figure { border-radius: 24px; overflow: hidden; background: var(--ink-2); }
.prog__media img { width: 100%; max-height: 560px; object-fit: cover; transition: transform 1.2s var(--out); }
.prog:hover .prog__media img { transform: scale(1.04); }
.prog__num { display: block; font-size: clamp(4.5rem, 10vw, 9rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.2px rgba(243, 236, 226, .28); }
.prog h2 { margin-top: 18px; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 760; letter-spacing: -.04em; line-height: .98; }
.prog p { margin-top: 20px; color: var(--cream-mute); font-size: 1.06rem; max-width: 52ch; }
.prog .chip { margin-top: 22px; }
@media (max-width: 860px) { .prog { grid-template-columns: 1fr; } .prog:nth-child(even) .prog__media { order: 0; } }

/* ---------- rassegna stampa ---------- */
.wall { columns: 4 230px; column-gap: 20px; }
.clip { position: relative; display: block; width: 100%; margin: 0 0 22px; break-inside: avoid; transform: rotate(var(--r, 0deg)); transition: transform .6s var(--out); cursor: zoom-in; }
.clip img { width: 100%; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 18px 34px -20px rgba(0, 0, 0, .45); transition: box-shadow .5s; }
.clip::before { content: ""; position: absolute; z-index: 2; top: -9px; left: 50%; width: 74px; height: 22px; translate: -50% 0; rotate: var(--t, -3deg); background: rgba(247, 173, 26, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.clip:nth-child(3n) { --r: -1.4deg; --t: 4deg; }
.clip:nth-child(3n+1) { --r: 1deg; }
.clip:nth-child(4n+2) { --r: -.6deg; --t: 2deg; }
.clip:nth-child(5n) { --r: 1.8deg; --t: -5deg; }
.clip:hover { transform: rotate(0) scale(1.04); z-index: 3; }
.clip:hover img { box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 30px 50px -24px rgba(0, 0, 0, .55); }

.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 9, 9, .95); color: var(--cream); overscroll-behavior: contain; }
.lb::backdrop { background: transparent; }
.lb[open] { animation: lbIn .35s var(--out); }
@keyframes lbIn { from { opacity: 0; } }
.lb figure { height: 100%; display: grid; place-items: center; padding: 76px clamp(16px, 8vw, 96px) 64px; }
.lb img { max-width: 100%; max-height: 100%; width: auto; border-radius: 6px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.lb__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(243, 236, 226, .1); transition: background .3s, color .3s; }
.lb__btn:hover { background: var(--cream); color: var(--ink); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev, .lb__next { top: 50%; translate: 0 -50%; }
.lb__prev { left: 16px; }
.lb__prev svg { transform: scaleX(-1); }
.lb__next { right: 16px; }
.lb__count { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; font-size: .9rem; letter-spacing: .12em; color: var(--cream-mute); }
@media (max-width: 600px) { .lb__prev, .lb__next { top: auto; bottom: 8px; translate: none; } }

/* ---------- blog ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post figure { border-radius: 24px; overflow: hidden; }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--out); }
.post:hover img { transform: scale(1.05); }
.post h2 { margin-top: 18px; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 740; text-wrap: balance; }
.post p { margin-top: 16px; color: var(--mute); font-size: 1.08rem; }
.post .link { margin-top: 26px; color: var(--red); }
.post:hover .link { background-size: 100% 1px; }
@media (max-width: 860px) { .post { grid-template-columns: 1fr; } }

/* ---------- contatti ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ccard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: var(--paper-2); overflow: hidden; isolation: isolate; }
.ccard .ico { width: 48px; height: 48px; color: var(--red); }
.ccard h2 { font-size: .78rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); }
.ccard__value { font-size: clamp(1.45rem, 2.8vw, 2.3rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.ccard__value a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--out), color .3s; }
.ccard__value a:hover { background-size: 100% 2px; color: var(--red); }
.ccard .btns { margin-top: auto; padding-top: 14px; }
.ccard--dark { background: var(--ink); color: var(--cream); }
.ccard--dark h2 { color: var(--cream-mute); }
.ccard--dark .ico { color: var(--red-soft); }
.ccard--dark .ccard__value a:hover { color: var(--red-soft); }
.vat { margin-top: 28px; color: var(--text-mute); font-size: .95rem; }
@media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } }

.toast { position: fixed; z-index: 260; left: 50%; bottom: 24px; translate: -50% 140%; padding: .8em 1.3em; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); transition: translate .5s var(--out); }
.toast.is-on { translate: -50% 0; }

/* ---------- mappa del sito ---------- */
.sitemap { columns: 2 280px; column-gap: 40px; }
.sitemap li { break-inside: avoid; }
.sitemap a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; transition: color .3s, padding .5s var(--out); }
.sitemap a:hover { color: var(--red); padding-left: 10px; }

/* ---------- banner cookie ---------- */
.cookie {
  position: fixed; z-index: 240; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px));
  padding: 24px; border-radius: 22px; border: 1px solid var(--line-d); background: var(--ink-2); color: var(--cream);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: fadeUp .7s var(--out) both;
}
.cookie h2 { font-size: 1.15rem; font-weight: 720; letter-spacing: -.01em; }
.cookie p { margin-top: 8px; font-size: .93rem; color: var(--cream-mute); }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie .btns { margin-top: 18px; gap: 8px; }
.cookie .btn { flex: 1 1 auto; justify-content: center; }
.cookie__more { margin-top: 12px; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; color: var(--cream-mute); }
.cookie__prefs { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-d); }
.cookie__prefs label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .95rem; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--ink-3); cursor: pointer; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .35s var(--out); }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- animazioni legate allo scorrimento (solo dove il browser le supporta) ---------- */
@supports (animation-timeline: view()) {
  .hl .hw { animation: hl linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  @keyframes hl { from { opacity: .16; } to { opacity: 1; } }
  .parallax img { animation: par linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes par { from { transform: translateY(-7%) scale(1.16); } to { transform: translateY(7%) scale(1.16); } }
}

/* ---------- chi preferisce meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .rv, .js .rv-clip { opacity: 1; transform: none; clip-path: none; }
  .js .rv-clip img { transform: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .hl .hw, .parallax img { animation: none !important; }
}
