/* ==========================================================
   La Sorgente — foglio di stile globale
   Tono: caldo, umano, editoriale. Tipografia grande, colori a tessere.
   ========================================================== */

:root {
  --bg: #f1ece3;
  --bg-2: #e8e1d4;
  --ink: #1b1a17;
  --ink-soft: #55504799;
  --muted: #6a645a;
  --line: #1b1a1722;

  /* tessere colore (ispirate alle composizioni a blocchi) */
  --terra: #d9663f;
  --burro: #f2c84b;
  --salvia: #a3b487;
  --lilla: #b9a6e0;
  --cielo: #9cc3d9;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --content-max: 1900px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--burro); color: var(--ink); }

/* grana leggera sullo sfondo per un effetto carta */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografia ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 7rem); }
h2 { font-size: clamp(2rem, 4.8vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.65rem); line-height: 1.4; max-width: 34em; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter); max-width: var(--content-max); margin-inline: auto; }
.section { padding-block: clamp(64px, 11vw, 150px); }
.section.tight { padding-block: clamp(40px, 6vw, 80px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1150px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: normal;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.site-header.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; background: transparent; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.menu-btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 9px 22px; display: inline-flex; align-items: center; gap: 12px;
  transition: background 0.25s, color 0.25s;
}
.menu-btn:hover { background: var(--ink); color: var(--bg); }
.menu-btn .bars { width: 18px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
body.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Menu a schermo intero ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--bg);
  display: grid; grid-template-rows: 1fr auto; padding: 110px var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 80px) 40px);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
  overflow-y: auto;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 80px) 40px); visibility: visible; transition: clip-path 0.8s var(--ease); }
body.menu-open .brand { color: var(--bg); }
body.menu-open .menu-btn { color: var(--bg); border-color: var(--bg); }
body.menu-open .menu-btn:hover { background: var(--bg); color: var(--ink); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: center; }
.menu li { overflow: hidden; }
.menu li a {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  font-size: clamp(2.2rem, 7.5vw, 5.6rem);
  transform: translateY(110%); transition: transform 0.7s var(--ease), color 0.25s, padding-left 0.3s var(--ease);
  padding-block: 0.06em;
}
.menu li a small { font-family: var(--f-body); font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.5; font-weight: 500; }
body.menu-open .menu li a { transform: none; }
.menu li:nth-child(1) a { transition-delay: 0.10s; } .menu li:nth-child(2) a { transition-delay: 0.14s; }
.menu li:nth-child(3) a { transition-delay: 0.18s; } .menu li:nth-child(4) a { transition-delay: 0.22s; }
.menu li:nth-child(5) a { transition-delay: 0.26s; } .menu li:nth-child(6) a { transition-delay: 0.30s; }
.menu li:nth-child(7) a { transition-delay: 0.34s; } .menu li:nth-child(8) a { transition-delay: 0.38s; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--burro); padding-left: 0.25em; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 28px; font-size: 0.95rem; opacity: 0.75; }
.menu-foot a { text-underline-offset: 3px; }
@media (max-width: 600px) { .menu { padding-top: 96px; } .menu li a small { display: none; } }

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 2px solid var(--ink); border-radius: 999px; padding: 14px 28px;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-3px); background: var(--terra); border-color: var(--terra); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--terra); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 60px); padding: 120px var(--gutter) 40px; max-width: var(--content-max); margin-inline: auto; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-text h1 em { font-style: normal; color: var(--terra); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero-foot p { margin: 0; color: var(--muted); font-size: 0.95rem; }
/* Mosaico tessere (composizione originale): righe ad altezza FISSA (min,max in px, mai "fr")
   così su schermi grandi/alti non si allungano all'infinito per riempire l'hero. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(100px, 175px)); gap: 14px; align-self: center; }
.tile {
  border-radius: var(--radius); position: relative; overflow: hidden; background: var(--c, var(--bg-2));
  display: flex; align-items: flex-end; padding: 14px; font-size: 0.8rem; font-weight: 600; text-decoration: none;
  transition: transform 0.5s var(--ease); isolation: isolate;
}
.tile:hover { transform: translateY(-6px) rotate(-1deg); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.tile.logo { align-items: center; justify-content: center; padding: 16px; background: #fff; }
.tile.logo img { position: static; object-fit: contain; z-index: 0; max-height: 82%; max-width: 88%; }
.tile .tag { background: var(--bg); padding: 4px 12px; border-radius: 999px; }
.tile.tag-tile { align-items: flex-end; }
.tile-big { font-family: var(--f-display); font-size: clamp(1.05rem, 1.8vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.08; align-items: flex-start; padding: 18px; }
.tile-big.g-b { flex-direction: column; justify-content: space-between; align-items: flex-start; }
.tile-teaser { font-family: var(--f-body); font-size: 0.82rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--muted); margin: 10px 0 0; }
.tile-credit { font-family: var(--f-body); font-size: 0.72rem; font-weight: 500; line-height: 1.25; letter-spacing: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.tile-credit img { position: static; z-index: 0; width: 34px; height: 34px; object-fit: contain; flex: none; border-radius: 50%; background: var(--ink); padding: 2px; }

/* Anteprime News ed Eventi: due tessere bianche di uguale altezza. */
.tile-story { min-width: 0; background: #fff; padding: clamp(18px, 2vw, 28px); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-story-kind { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.tile-story-title { font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.08; letter-spacing: -0.03em; }
.tile-story-excerpt { font-size: 0.9rem; line-height: 1.35; font-weight: 400; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-story-cta { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 15px; font-size: 0.82rem; font-weight: 600; line-height: 1.2; }

/* Loghi a sinistra; collaborazione, News ed Eventi impilati a destra. */
.g-a { grid-column: 1; grid-row: 1 / 4; }
.g-b { grid-column: 2; grid-row: 1 / 3; }
.g-c { grid-column: 2; grid-row: 3 / 5; }
.g-d { grid-column: 2; grid-row: 5 / 7; }
.g-e { grid-column: 1; grid-row: 4 / 7; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 110px; }
  .tiles { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 160px); }
  .tiles > .tile { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; grid-template-rows: repeat(5, 150px); }
  .tile-story-excerpt { display: none; }
  .tile-story-title { font-size: 1.25rem; }
}

/* Lettura dei singoli articoli, più stretta delle griglie editoriali. */
.story-detail { max-width: 860px; }
.story-detail time { display: block; color: var(--muted); font-weight: 600; margin-bottom: 28px; }
.story-detail p { font-size: 1.15rem; line-height: 1.7; }
.story-detail .story-image { width: 100%; border-radius: var(--radius); margin-bottom: 36px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 2px solid var(--ink); overflow: hidden; white-space: nowrap; padding-block: 18px; background: var(--burro); }
.marquee-track { display: inline-flex; gap: 48px; animation: scroll 32s linear infinite; padding-right: 48px; }
.marquee span { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✺"; font-size: 0.7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Card progetti ---------- */
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 380px; padding: clamp(22px, 2.6vw, 34px);
  border-radius: calc(var(--radius) + 6px); background: var(--c, var(--bg-2)); text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-radius 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); border-radius: 60px 20px 60px 20px; }
.card .num { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; opacity: 0.7; }
.card h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.card p { margin: 12px 0 0; max-width: 28em; }
.card .go { align-self: flex-end; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1.4rem; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.card:hover .go { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }
.card .clogo { height: 56px; width: 56px; object-fit: contain; align-self: flex-start; background: var(--ink); border-radius: 50%; padding: 3px; }

/* ---------- Testi e liste ---------- */
.big-quote { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22em; }
.big-quote em {
  font-style: normal;
  text-decoration-line: underline;
  text-decoration-color: var(--terra);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}
.list-lines { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.list-lines li { display: grid; grid-template-columns: 4ch 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-lines li b { font-family: var(--f-display); color: var(--terra); }
.stat { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9; letter-spacing: -0.05em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.stats p { margin: 8px 0 0; color: var(--muted); }
.panel { background: var(--c, var(--bg-2)); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3.4vw, 48px); }
.pill { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-size: 0.85rem; font-weight: 600; margin: 0 6px 8px 0; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero { padding: clamp(130px, 18vw, 220px) var(--gutter) clamp(40px, 6vw, 80px); max-width: var(--content-max); margin-inline: auto; }
.page-hero h1 { max-width: 14em; margin-block: 22px 28px; }

/* ---------- Segnaposto immagini ---------- */
.ph {
  aspect-ratio: var(--ar, 4/3); border-radius: var(--radius); background: var(--c, var(--bg-2)); position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: var(--ink); font-size: 0.85rem; padding: 16px;
}
.ph::before { content: ""; position: absolute; inset: 10px; border: 2px dashed #1b1a1755; border-radius: calc(var(--radius) - 6px); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img::before, .ph.has-img span { display: none; }

/* ---------- Eventi / News / Galleria ---------- */
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.event:first-child { border-top: 2px solid var(--ink); }
.event .date { font-family: var(--f-display); font-weight: 600; line-height: 0.95; letter-spacing: -0.04em; }
.event .date b { display: block; font-size: 3rem; }
.event .date span { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.event h3 { margin-bottom: 6px; }
.event p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .event { grid-template-columns: 80px 1fr; } .event .btn { grid-column: 1 / -1; justify-self: start; } .event .date b { font-size: 2.2rem; } }
.news-card { display: block; text-decoration: none; }
.news-card .ph { margin-bottom: 16px; transition: transform 0.5s var(--ease); }
.news-card:hover .ph { transform: scale(0.98) rotate(-0.6deg); }
.news-card time { font-size: 0.85rem; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.news-card h3 { margin: 6px 0 8px; }
.masonry { columns: 3 260px; column-gap: 16px; }
.masonry .ph { margin-bottom: 16px; break-inside: avoid; }
.empty { padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button { font: inherit; font-weight: 600; cursor: pointer; background: transparent; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 8px 20px; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--bg); }

/* ---------- Form ---------- */
form { display: grid; gap: 18px; }
label { font-weight: 600; font-size: 0.9rem; display: grid; gap: 8px; }
input, textarea, select {
  font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: 12px 2px; border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--terra); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; }
.check input { width: 20px; height: 20px; accent-color: var(--terra); margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; min-height: 1.5em; }

/* ---------- Partner AIjò ---------- */
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 22px 28px; border-radius: var(--radius); background: #fff; text-decoration: none; }
.partner img { height: 64px; width: 64px; object-fit: contain; border-radius: 50%; background: var(--ink); padding: 3px; }
.partner small { display: block; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.partner strong { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.partner:hover strong { color: var(--terra); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: clamp(60px, 9vw, 120px) var(--gutter) 28px; margin-top: 0; }
.site-footer .inner { max-width: var(--content-max); margin-inline: auto; }
.footer-cta { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; font-size: clamp(2.6rem, 9vw, 8.5rem); text-decoration: none; display: block; margin-bottom: clamp(40px, 7vw, 90px); }
.footer-cta:hover { color: var(--burro); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 0.95rem; }
.footer-cols h4 { margin: 0 0 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.55; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols a { text-decoration: none; opacity: 0.9; }
.footer-cols a:hover { color: var(--burro); }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid #f1ece32e; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.85rem; opacity: 0.7; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 90; max-width: 560px; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); padding: 20px 22px; display: none; gap: 14px; font-size: 0.92rem; box-shadow: 0 20px 60px #0004;
}
.cookie.show { display: grid; }
.cookie a { color: var(--burro); }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 9px 20px; border: 2px solid var(--bg); background: transparent; color: var(--bg); }
.cookie button.ok { background: var(--bg); color: var(--ink); }

/* ---------- Pulsante "torna su" ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: 18px; z-index: 80; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--terra); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none;
  box-shadow: 0 8px 24px #0004;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(0.9); }

/* ---------- Animazioni di ingresso ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { transform: none; } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(1deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}
