/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #fbf6f0;
  --color-surface: #f2e6d9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-accent-2-100: #fff2ef;
  --color-accent-2-200: #ffe0da;
  --color-accent-2-300: #ffc4b9;
  --color-accent-2-400: #ff9784;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #c94b39;
  --color-accent-2-700: #9e3526;
  --color-accent-2-800: #71261b;
  --color-accent-2-900: #471d16;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 999px; /* pill-shaped, echoing the round dot of the brand */
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ══════════════════════════════════════════════════════════════════════════
   INNvesting site — page components. Everything below styles index.html
   and the caso-*.html pages: no inline styles, only these classes.
   ══════════════════════════════════════════════════════════════════════ */

body { overflow-x: hidden; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.text-accent { color: var(--color-accent); }

/* — layout sections — */
.section { border-top: 2px solid var(--color-divider); padding: clamp(48px, 6vw, 88px) 0; }
.section--flush { border-top: 0; padding-top: 0; }
.section--tinted { background: var(--color-surface); }
.section--accent-light { background: var(--color-accent-100); }
.section--dark { background: var(--color-text); color: var(--color-bg); }
.section--accent { background: var(--color-accent); color: var(--color-bg); padding: clamp(48px, 7vw, 96px) 0; }

.section--coral { background: var(--color-accent); color: var(--color-bg); }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 16px; }
.eyebrow::before { content: ''; flex: none; width: 21px; height: 15px; background: url(../images/n-dot.svg) center / contain no-repeat; }
.section--dark .eyebrow { color: var(--color-accent-400); }
.section--coral .eyebrow, .section-photo .eyebrow { color: var(--color-bg); }
.section--coral .eyebrow::before { background-image: url(../images/n-dot-light.svg); }
.section--dark .eyebrow::before, .section-photo .eyebrow::before { background-image: url(../images/n-dot-on-dark.svg); }
.case-hero .eyebrow::before { display: none; }

/* The N as a graphic device: one single mark, fixed in the viewport and not tied to any section. It stays put while the sections scroll beneath it; its three layers are clipped by js/main.js to the sections of the matching tone (light, dark, coloured background) so it is always visible and never cut. It sits above the section backgrounds and below their content. */
body > section > .container, body > footer > .container { position: relative; z-index: 1; }
.n-mark-fixed { position: fixed; top: 50%; right: clamp(20px, 5vw, 72px); z-index: 0; width: clamp(340px, 48vw, 660px); aspect-ratio: 1076 / 768; transform: translateY(-50%); pointer-events: none; }
.n-mark-fixed__layer { position: absolute; inset: 0; background: center / contain no-repeat; clip-path: inset(100%); }
.n-mark-fixed__layer[data-tone="on-light"] { background-image: url(../images/n-dot.svg); opacity: .1; }
.n-mark-fixed__layer[data-tone="on-dark"] { background-image: url(../images/n-dot-on-dark.svg); opacity: .22; }
.n-mark-fixed__layer[data-tone="on-color"] { background-image: url(../images/n-dot-light.svg); opacity: .16; }

.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--lg { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.section-head p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 52ch; }

.section-photo {
  position: relative;
  background-color: var(--color-text);
  background-image: linear-gradient(90deg, rgba(32, 30, 29, .9) 0%, rgba(32, 30, 29, .78) 50%, rgba(32, 30, 29, .12) 100%), url(../images/a6-soggiorno-vetrata.jpg);
  background-size: cover; background-position: center 58%;
  color: var(--color-bg);
}
.section-photo .eyebrow { color: var(--color-bg); }
.section-photo h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 clamp(20px, 3vw, 28px); max-width: 22ch; color: var(--color-bg); }
.section-photo p { font-size: 17px; line-height: 1.65; margin: 0; max-width: 62ch; color: var(--color-bg); }

/* — site header — */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--color-bg); border-top: 4px solid var(--color-accent); border-bottom: 2px solid var(--color-divider); }
.site-header__bar { max-width: 1240px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; flex-shrink: 0; }
.brand img { display: block; width: 120px; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.3vw, 22px); align-items: center; }
.main-nav a { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text); }
.main-nav .btn { font-size: 13px; }
.nav-more { display: none; } /* voci secondarie: fuori dalla barra desktop per non andare a capo, restano nel menu mobile */
.back-link { font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { font-size: 12px; letter-spacing: .06em; padding: 6px 14px; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; padding: 0; border: 0; background: url(../images/n-dot.svg) center / 28px no-repeat; cursor: pointer; flex-shrink: 0; transition: background-color .2s ease; }
.nav-toggle[aria-expanded="true"] { background-color: var(--color-accent); background-image: url(../images/n-dot-light.svg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-header__bar { position: relative; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg); border-bottom: 2px solid var(--color-divider);
    padding: 8px clamp(20px, 4vw, 48px) 20px;
  }
  .main-nav.main-nav--open { display: flex; }
  .nav-more { display: block; }
  .main-nav a:not(.btn) { padding: 14px 0; border-top: 1px solid var(--color-divider); }
  .main-nav .btn { margin-top: 16px; }
}

/* — hero — */
.hero {
  position: relative; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(120px, 18vh, 220px) 0 clamp(28px, 4vw, 44px);
  background-color: var(--color-text);
  background-image: linear-gradient(90deg, rgba(24, 22, 21, .88) 0%, rgba(24, 22, 21, .62) 48%, rgba(24, 22, 21, .25) 100%), url(../images/hero-soppalco-travi.jpg);
  background-size: cover; background-position: center 68%;
}
.hero .container { max-width: none; margin-left: 0; margin-right: 0; }
.hero__logo { display: block; height: clamp(32px, 4vw, 44px); width: auto; margin-bottom: clamp(20px, 3vw, 32px); }
.hero__eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-bg); opacity: .85; margin-bottom: clamp(18px, 3vw, 28px); }
.hero__title { font-size: clamp(46px, 8vw, 104px); line-height: 0.94; letter-spacing: -0.04em; margin: 0 0 clamp(22px, 3vw, 32px); color: var(--color-bg); max-width: 18ch; }
.hero__lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; margin: 0 0 clamp(26px, 3.5vw, 38px); max-width: 52ch; color: var(--color-bg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__actions .btn { padding: 14px 22px; }
.hero__tagline-row { padding-top: clamp(36px, 6vw, 72px); display: flex; justify-content: flex-end; }
.hero__tagline { font-family: var(--font-heading); font-weight: 800; font-size: clamp(15px, 1.8vw, 22px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; color: var(--color-bg); text-align: left; }
.hero__tagline img { display: inline-block; height: .95em; width: auto; margin: 0 .12em; vertical-align: baseline; }

/* — about (chi sono) — */
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 64px); }
.about h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 clamp(28px, 4vw, 40px); }
.about__copy { display: flex; flex-direction: column; gap: 18px; }
.about__copy p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 62ch; }

/* — process steps (come lavoro) — */
.step { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); border-top: 2px solid var(--color-divider); padding: 26px 0; }
.step:last-child { border-bottom: 2px solid var(--color-divider); }
.step__number { font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; color: var(--color-accent); }
.step h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.015em; }
.step p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 70ch; }

/* — area riservata (anteprima dell'area investitore) — */
.portal-grid {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-bottom: -8px;
}
.portal-card { flex: 0 0 min(250px, 68vw); scroll-snap-align: start; margin: 0; }
.portal-card__frame { padding: 8px; background: var(--color-bg); border: 1px solid var(--color-divider); box-shadow: var(--shadow-md); }
.portal-card__frame img { display: block; width: 100%; aspect-ratio: 3 / 5.5; object-fit: cover; object-position: top; }
.portal-card h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -0.01em; }
.portal-card p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--color-neutral-800); }
.portal-note { font-size: 13px; line-height: 1.6; margin: 20px 0 0; color: var(--color-neutral-700); }

/* — case studies grid (casi reali) — */
.case-grid {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-bottom: -8px;
}
.case-card {
  display: flex; flex-direction: column; flex: 0 0 min(360px, 80vw); scroll-snap-align: start;
  background: var(--color-bg); color: var(--color-text); outline: 1px solid var(--color-divider);
}
.case-card:hover { background: var(--color-accent-100); }
.case-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; outline: 1px solid var(--color-divider); }
.case-card img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.case-card__number { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--color-accent); margin-bottom: 8px; }
.case-card__body h3 { font-size: 24px; margin: 0 0 10px; letter-spacing: -0.02em; }
.case-card__body p { font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.case-card__cta { margin-top: auto; font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }

/* — rendimento: le tre leve — */
.levers-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--color-bg); }
@media (min-width: 960px) { .levers-grid { grid-template-columns: repeat(3, 1fr); } }
.lever-card { background: var(--color-bg); color: var(--color-text); padding: clamp(24px, 3vw, 36px); outline: 1px solid var(--color-divider); }
.lever-card h3 { font-size: 24px; margin: 0 0 16px; letter-spacing: -0.02em; }
.lever-card p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--color-neutral-800); }
.levers-result { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(20px, 3vw, 40px); margin-top: 2px; background: var(--color-surface); color: var(--color-text); padding: clamp(24px, 3vw, 36px); }
.levers-result__value { font-family: var(--font-heading); font-weight: 800; font-size: clamp(56px, 8vw, 88px); line-height: 1; letter-spacing: -0.04em; color: var(--color-accent); }
.levers-result p { flex: 1 1 280px; font-size: 15px; line-height: 1.65; margin: 0; max-width: 60ch; }
.levers__closing { font-family: var(--font-heading); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; max-width: 34ch; margin: clamp(32px, 5vw, 56px) 0 0; }
.levers__disclaimer { font-size: 13px; line-height: 1.6; margin: 20px 0 0; max-width: 80ch; color: var(--color-bg); }

/* — advantages comparison (vantaggi) — */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; background: var(--color-bg); }
.advantage-col { background: var(--color-bg); padding: clamp(24px, 3vw, 36px); outline: 1px solid var(--color-divider); }
.advantage-col--highlight { background: var(--color-accent-100); border-top: 4px solid var(--color-accent); }
.advantage-col h3 { font-size: 20px; margin: 0 0 20px; letter-spacing: -0.015em; }
.advantage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.advantage-list li { font-size: 15px; line-height: 1.55; border-top: 1px solid var(--color-divider); padding-top: 14px; }

/* — reasons (perché noi) — */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.reason { border-top: 2px solid var(--color-text); padding-top: 24px; }
.reason__number { font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; color: var(--color-accent); margin-bottom: 18px; }
.reason h3 { font-size: 20px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.015em; }
.reason p { font-size: 16px; line-height: 1.65; margin: 0; }
.reasons-closing { font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; max-width: 26ch; margin: clamp(40px, 6vw, 72px) 0 0; }

/* — the N words (la nostra N) — */
.n-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 900px) { .n-words { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .n-words { grid-template-columns: 1fr; } }
.n-word { border-top: 2px solid var(--color-text); padding-top: 22px; }
.n-word h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 14px; }
.n-word h3 span { color: var(--color-accent); }
.n-word p { font-size: 16px; line-height: 1.65; margin: 0; }

/* — audience (a chi ci rivolgiamo) — */
.audience h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 clamp(28px, 4vw, 48px); max-width: 30ch; color: var(--color-bg); }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.audience-card { position: relative; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--color-bg) 28%, transparent); }
.audience-card::before { content: ''; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--color-accent); }
.audience-card h3 { font-size: clamp(22px, 2.2vw, 26px); margin: 0 0 14px; letter-spacing: -0.02em; color: var(--color-bg); }
.audience-card p { font-size: 16px; line-height: 1.65; margin: 0; color: var(--color-bg); opacity: .75; max-width: 34ch; }

/* — contact — */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__intro h2 { font-size: clamp(44px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 20px; color: var(--color-bg); }
/* The logo's own N used inside a word set in type (INNvestire), in dark ink for contrast on the coral ground: never a font N. */
.nowrap { white-space: nowrap; }
.logo-n { display: inline-block; height: .7em; width: auto; margin: 0 .02em; vertical-align: baseline; }
.contact__intro p { font-size: 17px; line-height: 1.6; margin: 0; max-width: 48ch; color: var(--color-bg); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 2px solid var(--color-bg); padding: 16px 0; }
.contact-row--last { border-bottom: 2px solid var(--color-bg); }
.contact-row .contact-row__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contact-row .contact-row__value { font-family: var(--font-heading); font-weight: 800; font-size: 17px; }
.contact-row a.contact-row__value { color: var(--color-bg); }

/* — site footer — */
.site-footer { padding: clamp(32px, 5vw, 56px) 0; background: var(--color-text); color: var(--color-bg); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer__logo { display: block; width: 150px; height: auto; }
.site-footer p { margin: 0; max-width: 62ch; font-size: 13px; line-height: 1.6; opacity: .75; }
.site-footer .site-footer__legal { flex-basis: 100%; max-width: none; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--color-bg) 20%, transparent); font-size: 12px; }
.inline-n { display: inline-block; height: .78em; width: auto; margin-left: .22em; vertical-align: baseline; }

/* — caso-*.html pages — */
.case-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.case-hero .eyebrow { letter-spacing: .16em; margin-bottom: 20px; }
.case-hero h1 { font-size: clamp(40px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.04em; margin: 0; }

.case-intro { padding: clamp(40px, 5vw, 72px) 0; }
.case-intro__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 64px); }
.case-intro h2 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; margin: 0 0 16px; }
.case-intro p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 60ch; }
.case-intro p + p { margin-top: 16px; }
.case-intro__note { font-size: 15px; line-height: 1.6; margin: 20px 0 0; max-width: 60ch; border-left: 4px solid var(--color-accent); padding-left: 16px; }
.case-figure, .photo-grid figure { margin: 0; padding: 10px; background: var(--color-bg); border: 1px solid var(--color-divider); box-shadow: var(--shadow-sm); }
.case-figure img, .photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.case-choices { border-top: 2px solid var(--color-divider); padding: clamp(40px, 5vw, 72px) 0; background: var(--color-surface); }
.case-choices h2 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; margin: 0 0 clamp(24px, 3vw, 36px); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--color-bg); }
@media (max-width: 900px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card { background: var(--color-bg); padding: clamp(20px, 3vw, 30px); outline: 1px solid var(--color-divider); }
.choice-card__number { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--color-accent); margin-bottom: 12px; }
.choice-card h3 { font-size: 19px; margin: 0 0 10px; letter-spacing: -0.015em; }
.choice-card p { font-size: 15px; line-height: 1.6; margin: 0; }

.case-photos { padding: clamp(40px, 5vw, 72px) 0; }
.case-photos__head, .photo-grid { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.case-photos--divided { border-top: 2px solid var(--color-divider); }
.case-photos__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); }
.case-photos__head h2 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; margin: 0; }
.case-photos__tag { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-700); }
.case-photos__tag--accent { color: var(--color-accent-700); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 28px); }
.photo-grid figure { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.photo-grid figure:hover, .photo-grid figure:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.photo-grid__link { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.photo-grid__link img { transition: transform .5s ease; }
.photo-grid__link:hover img, .photo-grid__link:focus-visible img { transform: scale(1.04); }
/* round "+" badge on hover, echoing the round dot of the brand */
.photo-grid__link::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background-color: var(--color-accent); background-image: linear-gradient(var(--color-bg), var(--color-bg)), linear-gradient(var(--color-bg), var(--color-bg)); background-size: 16px 2px, 2px 16px; background-position: center; background-repeat: no-repeat; opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .25s ease; }
.photo-grid__link:hover::after, .photo-grid__link:focus-visible::after { opacity: 1; transform: scale(1); }

/* — lightbox (js/gallery.js) — */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(56px, 8vh, 80px) clamp(16px, 6vw, 96px); border: 0; background: color-mix(in srgb, var(--color-text) 94%, transparent); color: var(--color-bg); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__img { display: block; max-width: 100%; max-height: calc(100vh - 180px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { max-width: 70ch; margin: 0; font-size: 14px; line-height: 1.5; text-align: center; opacity: .8; }
.lightbox__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--color-bg); color: var(--color-text); cursor: pointer; transition: background .2s ease, color .2s ease; }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn:hover { background: var(--color-accent); color: var(--color-bg); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev, .lightbox__btn--next { top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__btn--next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 640px) {
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 16px; transform: none; }
}
body:has(.lightbox[open]) { overflow: hidden; }

.case-footer-nav { border-top: 2px solid var(--color-divider); padding: clamp(36px, 5vw, 64px) 0; }
.case-footer-nav__inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.case-footer-nav__link { font-family: var(--font-heading); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; color: var(--color-text); }

