/* Pagine interne di mkissellstudio: la stessa identità della home in chiave chiara.
   Palette: navy #001C55, deep #003F88, blue #0074E4, sky #9FC9FF, ice #EEF7FF. Serif Bodoni Moda + Inter Tight. */
:root {
  --navy: #001C55; --deep: #003F88; --blue: #0074E4; --sky: #9FC9FF; --ice: #EEF7FF;
  --grey: #2c4572;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --m: clamp(16px, 4vw, 64px);
  --body: clamp(16px, 0.95rem + 0.2vw, 18px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ice); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--navy); background: var(--ice); font: 400 var(--body)/1.6 "Inter Tight", "Helvetica Neue", Arial, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -80px; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 90; }
.skip:focus { top: 12px; }

/* Top bar: navy, as on the home once you scroll */
.top {
  position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px var(--m); background: color-mix(in srgb, var(--navy) 92%, transparent); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; color: #fff; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 20px; font-size: 15px; }
.top nav a { text-decoration: none; color: #fff; }
.top nav a:hover { color: var(--sky); }
.top nav a[aria-current] { color: var(--sky); text-decoration: underline; text-underline-offset: 5px; }
.top .nav-cta { background: #fff; color: var(--navy) !important; padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.top .nav-cta:hover { background: var(--sky); }
@media (max-width: 860px) {
  .brand span { display: none; }
  .top nav a:not(.nav-cta) { display: none; }
  .top nav a[href="/lavori/"] { display: inline; }
}

/* Intro: the fluid navy field from the home hero, then the page turns light */
.intro {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy);
  margin: 0; padding: clamp(56px, 9vw, 128px) var(--m) clamp(64px, 9vw, 120px);
}
.intro-bg { position: absolute; inset: 0; z-index: -1; }
.intro-bg canvas, .intro-bg .grain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-bg .grain {
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}
.intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ice) 18%, transparent)); }
.crumb { display: inline-block; font-size: 14px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.crumb a { text-decoration: none; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.4vw, 120px); line-height: .95; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 14ch; }
.lead { font-size: clamp(19px, 1.05rem + .6vw, 26px); line-height: 1.4; max-width: 40ch; margin: 0 0 32px; color: #e4efff; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; text-decoration: none; padding: 14px 24px; border-radius: 999px; font-weight: 500; transition: background .25s, transform .3s cubic-bezier(.2,1.4,.3,1); }
.btn:hover { background: var(--blue); transform: translateY(-2px); }
.intro .btn { background: #fff; color: var(--navy); }
.intro .btn:hover { background: var(--sky); }

/* Body sections on the light page */
main > section:not(.intro), .case { margin: 0 auto; max-width: 1240px; padding: clamp(64px, 8vw, 120px) var(--m) 0; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 20ch; color: var(--navy); }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; margin: 0 0 12px; }
p { max-width: 66ch; margin: 0 0 16px; }
main > section:not(.intro) p, .case p { color: var(--grey); }
main > section:not(.intro) a:not(.btn) { color: var(--blue); text-underline-offset: 4px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 18px; }
.grid3 figure, .split figure { margin: 0; }
.grid3 img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.grid3 figure { overflow: hidden; border-radius: 14px; }
.grid3 figure:hover img { transform: scale(1.04); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split img { border-radius: 14px; }
.steps { padding-left: 0; max-width: 70ch; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 16px 20px 16px 64px; background: #fff; border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 13px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; }
.values { list-style: none; padding: 0; max-width: 76ch; display: grid; gap: 10px; }
.values li { padding: 18px 22px; background: #fff; border-radius: 14px; border-left: 4px solid var(--blue); }
.faq details { max-width: 76ch; background: #fff; border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; transition: background .2s; }
.faq details[open] { background: color-mix(in srgb, var(--sky) 22%, #fff); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 12px 0 0; }
.case .kind { color: var(--blue); font-weight: 500; }
.case dl { display: grid; grid-template-columns: 220px 1fr; gap: 12px 24px; max-width: 920px; padding: 24px; background: #fff; border-radius: 14px; }
.case dt { font-weight: 600; color: var(--navy); }
.case dd { margin: 0; color: var(--grey); }
.cta { padding-bottom: clamp(64px, 8vw, 120px) !important; }

/* Footer: links, then the wordmark across the row */
.foot { margin-top: clamp(64px, 8vw, 120px); padding: 48px var(--m) 32px; background: var(--navy); color: #fff; overflow: hidden; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--sky); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-row p { margin: 0; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot-sign { text-align: center; margin: clamp(40px, 6vw, 96px) 0 24px; }
.foot-word { display: block; font-family: var(--serif); font-size: clamp(48px, 15.2vw, 320px); line-height: .9; letter-spacing: -0.035em; color: var(--sky); white-space: nowrap; }
.foot-phrase { margin: 12px auto 0; max-width: none; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 44px); line-height: 1.1; color: #fff; }
.foot-phrase span { color: var(--sky); font-style: italic; }
.small { font-size: 14px; opacity: .8; margin: 0; }

/* Floating message button */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--navy) 60%, transparent); transition: transform .3s cubic-bezier(.2,1.4,.3,1), background .25s; }
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: scale(1.08); background: var(--navy); }

@media (max-width: 760px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 figure:nth-child(3) { display: none; }
  .split { grid-template-columns: 1fr; }
  .case dl { grid-template-columns: 1fr; gap: 2px; }
  .case dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Lists with serif dashes on grainy blue glass; focus follows the scroll ---------- */
.values { gap: 10px; }
.values li {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 18px 22px 18px 58px; border-left: 0; border-radius: 9px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.1,1);
}
.values li::before {
  content: "—"; position: absolute; left: 20px; top: 13px;
  font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--blue);
}
.values li::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .1 0 0 0 0 .35 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px;
}
.values li strong { font-family: var(--serif); font-weight: 500; font-size: 1.12em; color: var(--navy); }

/* ---------- Accordion: light blue boxes with the site arrow ---------- */
.faq details { border-radius: 9px; padding: 0; background: color-mix(in srgb, var(--sky) 28%, #fff); overflow: hidden; }
.faq details[open] { background: color-mix(in srgb, var(--sky) 42%, #fff); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M10 24h26M26 14l10 10-10 10' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M10 24h26M26 14l10 10-10 10' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s cubic-bezier(.2,1.4,.3,1);
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { margin: 0; padding: 0 22px 20px; }

/* Steps share the same 9px boxes */
.steps li { border-radius: 9px; }
.case dl, .grid3 figure, .grid3 img, .split img { border-radius: 9px; }

/* "In lavorazione" badge */
.wip { display: inline-block; margin-right: 8px; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 14px; font-weight: 600; vertical-align: 3px; }
svg.ar { display: inline-block; width: .9em; height: .9em; vertical-align: -.08em; }

/* ---------- Round 5: nav strip, language, no zoom/save ---------- */
html { touch-action: manipulation; }
img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.top nav { flex-wrap: nowrap; min-width: 0; }
.nav-links { display: flex; gap: 6px 20px; align-items: center; min-width: 0; }
.nav-links a { white-space: nowrap; }
@media (max-width: 860px) {
  .top nav { flex: 1; justify-content: flex-end; gap: 10px; }
  .top nav .nav-links a:not(.nav-cta) { display: inline !important; }
  .nav-links {
    flex: 1; overflow-x: auto; scrollbar-width: none; padding: 6px 28px 6px 4px; margin-right: -28px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 40px), transparent 100%);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .top .nav-cta { position: relative; z-index: 1; white-space: nowrap; }
}
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 999px; cursor: pointer; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); font: inherit; font-size: 14px; font-weight: 500; }
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: #fff; border-radius: 9px; box-shadow: 0 18px 40px -12px rgba(0,20,60,.45); }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--navy); font: inherit; font-size: 15px; cursor: pointer; }
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: var(--ice); }
@media (max-width: 560px) { .lang-btn .lang-cur { display: none; } .lang-btn { width: 40px; padding: 0; justify-content: center; } }
.small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Round 6: hamburger on phones, globe-only language ---------- */
.lang-btn { border: 0 !important; background: transparent !important; width: 40px; height: 40px; padding: 0 !important; justify-content: center; border-radius: 50%; }
.lang-btn svg { width: 22px !important; height: 22px !important; }
.lang-btn:hover { background: rgba(255,255,255,.12) !important; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; place-items: center;
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
}
.menu-btn svg { width: 22px; height: 22px; overflow: visible; }
.menu-btn path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .35s cubic-bezier(.2,.7,.1,1), opacity .2s; transform-origin: 12px 12px; }
.nav-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-btn .l2 { opacity: 0; }
.nav-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links, .top nav .nav-links {
    display: none !important; position: absolute; left: 0; right: 0; top: 100%; z-index: 59; margin: 0 !important;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px 28px !important;
    background: color-mix(in srgb, var(--navy) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: none !important; mask-image: none !important; overflow: visible !important;
  }
  .nav-open .nav-links, .nav-open nav .nav-links { display: flex !important; }
  .nav-links a, .top nav .nav-links a { display: block !important; font-family: var(--serif, "Bodoni Moda", Georgia, serif) !important; font-size: 30px !important; line-height: 1.2; padding: 6px 0; color: #fff !important; text-decoration: none; }
  .nav-open, header.topbar.nav-open { background: color-mix(in srgb, var(--navy) 96%, transparent) !important; }
  .topbar nav, .top nav { flex: 0 0 auto; }
}
html { scroll-behavior: auto !important; }
html { -webkit-tap-highlight-color: transparent; }
