/* ==========================================================================
   Lorenzo Saini — Videomaker & Photographer, Lake Como
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1d1d1d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f3ef;
  --muted: #9a9894;
  --accent: #f07419;
  --accent-hover: #ff8a33;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

/* Photo protection: no drag, no long-press save, no right click (JS) */
.protect img, img.protect {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--text);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0a0a0a; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 40px; height: auto; }
.brand span { font-stretch: 125%; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-family: var(--font); font-stretch: 100%; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.28em; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a:not(.btn) {
  position: relative;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 20px; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav a:not(.btn) { font-size: 1.6rem; font-stretch: 125%; font-weight: 800; letter-spacing: 0.02em; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter/transform would trap the fixed overlay inside the header */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .brand small { display: none; }
}

/* ---------- Hero video ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(10,10,10,.92) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 80px); z-index: 2;
}
.hero-content .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(1.6rem, 7.8vw, 7rem); } /* longest line ("& Photographer") must fit the viewport */
.hero h1 span { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 380px; }
.hero-meta p { margin: 0; color: rgba(255,255,255,.78); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255,255,255,.25); overflow: hidden;
}
.scroll-hint::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: scroll-line 2s var(--ease) infinite; }
@keyframes scroll-line { to { top: 100%; } }
/* on phones/tablets the line would overlap the hero text and button */
@media (max-width: 860px) { .scroll-hint { display: none; } }

/* ---------- Custom video controls (no timeline, no timecode) ---------- */
.vctrl {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(10,10,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
}
.hero .vctrl { top: calc(var(--header-h) + 12px); right: var(--gutter); }
.vctrl button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.vctrl button:hover { background: rgba(255,255,255,.12); }
.vctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vctrl input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 0; opacity: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--vol, 70%), rgba(255,255,255,.25) var(--vol, 70%));
  transition: width .35s var(--ease), opacity .25s;
}
.vctrl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.vctrl input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }
.vctrl .i-muted { display: none; }
.vctrl.is-muted .i-muted { display: block; }
.vctrl.is-muted .i-sound { display: none; }
.vctrl .i-play { display: none; }
.vctrl.is-paused .i-play { display: block; }
.vctrl.is-paused .i-pause { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }

.intro { padding-bottom: 0; }
.intro p.statement {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 500; line-height: 1.18; letter-spacing: -0.01em;
  max-width: 24ch;
}
.intro p.statement em { font-style: normal; color: var(--accent); }

/* ---------- Photo marquee carousel ---------- */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { flex: none; height: clamp(220px, 30vw, 380px); border-radius: var(--radius); overflow: hidden; position: relative; }
.marquee-track img { height: 100%; width: auto; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.25); }
.marquee-track a:hover img { transform: scale(1.04); filter: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Split: Video / Photo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--surface);
  display: flex; align-items: flex-end;
}
.split-card img, .split-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.split-card video { opacity: 0; }
.split-card:hover video.is-ready { opacity: 1; }
.split-card:hover img { transform: scale(1.05); }
.split-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); }
.split-card .label { position: relative; z-index: 2; padding: clamp(20px, 3vw, 40px); width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.split-card h2 { font-size: clamp(2.4rem, 7vw, 6.5rem); }
.split-card .count { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.split-card .tags { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 10px; max-width: 34ch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split-card { aspect-ratio: 4 / 4.2; } }

/* ---------- Clients (scrolling logo strip) ---------- */
.clients {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: clamp(28px, 4vw, 44px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: logos 60s linear infinite; }
@keyframes logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* starts only when the strip comes into view, so the most relevant logos are seen first */
.clients-track { animation-play-state: paused; }
.clients.is-in .clients-track { animation-play-state: running; }
.clients.is-in:hover .clients-track { animation-play-state: paused; }
.client { flex: none; display: grid; place-items: center; height: clamp(44px, 5vw, 64px); padding-right: clamp(48px, 6vw, 96px); box-sizing: content-box; }
.client img { width: auto; height: auto; max-height: clamp(44px, 5vw, 64px); max-width: clamp(110px, 12vw, 170px); opacity: .5; transition: opacity .3s; }
.client:hover img { opacity: 1; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta h2 { font-size: clamp(2.6rem, 9vw, 8.5rem); }
.cta h2 a { display: inline-flex; align-items: center; gap: .25em; transition: color .3s; }
.cta h2 a:hover { color: var(--accent); }
.cta h2 .arrow-big { display: inline-block; transition: transform .5s var(--ease); }
.cta h2 a:hover .arrow-big { transform: translate(10px, -10px) rotate(-45deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- Page heading ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 18px 0 22px; }
.breadcrumb { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Category grid (video & photo) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--surface); }
.cat-card .media, .cat-card .media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card .media > img { transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.cat-card .media > img + img { opacity: 0; }
.cat-card .media > img.is-active { opacity: 1; }
.cat-card .media video { opacity: 0; transition: opacity .5s; }
.cat-card:hover .media video.is-ready { opacity: 1; }
.cat-card:hover .media > img { transform: scale(1.06); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.8)); pointer-events: none; }
.cat-card .label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cat-card .num { font-size: .7rem; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.cat-card .go { width: 42px; height: 42px; flex: none; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.cat-card:hover .go { background: var(--accent); border-color: var(--accent); color: #000; transform: rotate(-45deg); }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { aspect-ratio: 4 / 4.4; } }

/* ---------- Video projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 14px; }
.project { cursor: pointer; }
.project .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.project .thumb img, .project .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.project .thumb video { opacity: 0; }
.project:hover .thumb video.is-ready { opacity: 1; }
.project:hover .thumb img { transform: scale(1.04); }
.project .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.project .meta h3 { font-size: clamp(1rem, 1.6vw, 1.35rem); }
.project .meta span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.project-grid--vertical { grid-template-columns: repeat(4, 1fr); }
.project-grid--vertical .thumb { aspect-ratio: 9 / 16; }
@media (max-width: 1000px) { .project-grid--vertical { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; gap: 32px; } .project-grid--vertical { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; } }

/* ---------- Video modal ---------- */
.vmodal { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.vmodal.is-open { opacity: 1; visibility: visible; }
.vmodal .frame { --ratio: 1.7778; position: relative; width: min(92vw, calc(78vh * var(--ratio))); aspect-ratio: var(--ratio); background: #000; }
.vmodal video { width: 100%; height: 100%; object-fit: contain; }
.vmodal .vctrl { left: 50%; bottom: -64px; transform: translateX(-50%); }
.vmodal .close { position: absolute; top: 20px; right: var(--gutter); width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 22px; transition: background .3s, color .3s; }
.vmodal .close:hover { background: var(--accent); color: #000; }
.vmodal h3 { position: absolute; top: 30px; left: var(--gutter); font-size: .95rem; }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 340px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform 1s var(--ease), opacity .6s; opacity: 0; }
.masonry img.is-loaded { opacity: 1; }
.masonry figure:hover img { transform: scale(1.03); }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-nav a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: all .25s; }
.cat-nav a:hover { color: var(--text); border-color: var(--text); }
.cat-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #000; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.97); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox .stage { position: relative; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lightbox .shield { position: absolute; inset: 0; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 20px; transition: background .25s, color .25s; z-index: 2; }
.lightbox .lb-btn:hover { background: var(--accent); color: #000; }
.lightbox .prev { left: var(--gutter); }
.lightbox .next { right: var(--gutter); }
.lightbox .close { top: 44px; right: var(--gutter); transform: none; }
.lightbox .counter { position: absolute; top: 34px; left: var(--gutter); font-size: .75rem; letter-spacing: .2em; color: var(--muted); }
@media (max-width: 760px) { .lightbox .prev, .lightbox .next { top: auto; bottom: 24px; transform: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); position: sticky; top: calc(var(--header-h) + 24px); }
.about-grid .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: #cfcdc8; margin: 0 0 1.2em; }
.about-text p.big { font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.25; color: var(--text); font-weight: 500; }
.services { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.services li { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.services li span { font-stretch: 100%; font-weight: 500; font-size: .75rem; letter-spacing: .16em; color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .portrait { position: relative; top: 0; } }

/* ---------- Quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25);
  padding: 10px 0 12px; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field select option { background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; letter-spacing: .06em; color: #cfcdc8; transition: all .2s; text-transform: none; font-weight: 500; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #000; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--muted); grid-column: 1 / -1; margin: 0; }
.form-success { display: none; padding: 24px; border: 1px solid var(--accent); border-radius: var(--radius); }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: block; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, background .3s; }
.contact-card:hover { border-color: var(--accent); background: var(--surface-2); }
.contact-card small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-weight: 600; }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-top .brand img { width: 52px; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 14px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { font-size: .92rem; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; font-size: .75rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Custom cursor (pointer devices only) ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor .project, .has-cursor figure { cursor: none; }
  .has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
  .cursor, .cursor-dot { display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 50%; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(255,255,255,.55);
    display: grid; place-items: center;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s;
  }
  .cursor span { font-size: .62rem; font-weight: 700; letter-spacing: .16em; color: #000; opacity: 0; transition: opacity .2s; text-transform: uppercase; }
  .cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }
  .cursor.is-label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-label span { opacity: 1; }
  .cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Language switch (EN / IT) ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 6px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); transition: color .2s, background .2s; }
.lang-switch a::after { display: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 860px) { .lang-switch a { font-size: .85rem; padding: 8px 16px; } }
