/* ============================================================
   ECOS SOLUTION — Design System
   Brand: blu #2E3D8F · giallo sole #F2C230 · navy #142131
   Type: Fraunces (display) · Inter (testo)
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #142131;
  --ink-soft: #3c4a5c;
  --muted: #5b6572;
  --brand: #2e3d8f;
  --brand-700: #232f6e;
  --brand-900: #16204b;
  --brand-050: #eef0fa;
  --sun: #f2c230;
  --sun-600: #d9a812;
  --paper: #ffffff;
  --cloud: #f5f6f3;
  --cloud-2: #eceee8;
  --line: #e3e6df;
  --ok: #1e7d4f;
  --err: #b3352e;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(20, 33, 49, .06), 0 2px 8px rgba(20, 33, 49, .05);
  --shadow-m: 0 2px 6px rgba(20, 33, 49, .07), 0 12px 32px rgba(20, 33, 49, .09);
  --shadow-l: 0 8px 18px rgba(20, 33, 49, .10), 0 28px 64px rgba(20, 33, 49, .16);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img, video, svg { height: auto; }
/* <picture> deve ereditare l'altezza del contenitore per permettere object-fit sull'img */
.hero__media picture, .card__media picture, .gallery__item picture, .media-frame picture { width: 100%; height: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--brand); text-decoration-color: rgba(46, 61, 143, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
ul, ol { padding-left: 1.25rem; }
strong { font-weight: 650; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}
.eyebrow--center::after {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}
.text-muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 880px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 { margin: .9rem 0 .9rem; }
.grid { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); } .split--wide-media { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(46, 61, 143, .28); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46, 61, 143, .34); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(217, 168, 18, .35); }
.btn--sun:hover { background: var(--sun-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(20, 33, 49, .25); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; padding-block: .35rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; font-weight: 550; }
.topbar a:hover { color: var(--sun); }
.topbar svg { width: 14px; height: 14px; }
.topbar__items { display: flex; gap: 1.4rem; align-items: center; }
.topbar__note { display: none; }
@media (min-width: 760px) { .topbar__note { display: block; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 33, 49, .08); }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { width: 132px; height: auto; }
.brand__tag { display: none; font-size: .72rem; line-height: 1.25; color: var(--muted); border-left: 1px solid var(--line); padding-left: .8rem; max-width: 150px; }

.main-nav { margin-left: auto; min-width: 0; }
.main-nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; padding: 0; margin: 0; }
.main-nav a, .main-nav .nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem .5rem;
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
@media (max-width: 1500px) {
  .main-nav a, .main-nav .nav-drop__btn { padding: .65rem .45rem; font-size: .92rem; }
  .main-nav li:last-child { display: none; } /* Contatti: coperto dal pulsante CTA */
}
.main-nav a:hover, .main-nav .nav-drop__btn:hover { color: var(--brand); background: var(--brand-050); }
.main-nav a[aria-current="page"] { color: var(--brand); }
.main-nav a[aria-current="page"]::after { content: ''; display: block; }
.nav-drop { position: relative; }
.nav-drop__btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-drop__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: .6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  display: grid;
  gap: 2px;
}
.nav-drop:hover .nav-drop__panel, .nav-drop:focus-within .nav-drop__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop:hover .nav-drop__btn svg, .nav-drop:focus-within .nav-drop__btn svg { transform: rotate(180deg); }
.nav-drop__panel a { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .85rem; border-radius: 10px; }
.nav-drop__panel a span { font-size: .8rem; color: var(--muted); font-weight: 400; }
.nav-cta { margin-left: .5rem; padding: .8rem 1rem; }
.header-burger { display: none; }
@media (max-width: 1080px) {
  .main-nav, .nav-cta { display: none; }
  .header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink);
  }
  .header-burger svg { width: 22px; height: 22px; }
}

/* Mobile nav */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: #fff;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32, .72, .24, 1);
  visibility: hidden;
}
.mnav.is-open { transform: translateX(0); visibility: visible; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mnav__head img { width: 120px; }
.mnav__close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; }
.mnav__close svg { width: 20px; height: 20px; }
.mnav__body { overflow-y: auto; padding: 1.4rem 1.25rem 2rem; }
.mnav__body ul { list-style: none; padding: 0; margin: 0; }
.mnav__body > ul > li > a, .mnav__group-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: .95rem .2rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mnav__group-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.mnav__group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav__sub { padding: .4rem 0 .8rem; display: none; }
.mnav__sub.is-open { display: block; }
.mnav__sub a { display: block; padding: .5rem .2rem .5rem 1rem; color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 1.05rem; }
.mnav__sub a:hover { color: var(--sun); }
.mnav__foot { padding: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: .7rem; }
.mnav__foot a { color: #fff; text-decoration: none; display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.mnav__foot svg { width: 16px; height: 16px; color: var(--sun); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(88vh, 780px);
}.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 37, .42) 0%, rgba(13, 22, 37, .18) 40%, rgba(13, 22, 37, .82) 100%);
}
.hero__inner { padding-block: clamp(6rem, 12vh, 9rem) clamp(3rem, 7vh, 5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .88); margin-top: 1.2rem; }
.hero .btn-row { margin-top: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__badge { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 550; color: rgba(255, 255, 255, .92); }
.hero__badge svg { width: 18px; height: 18px; color: var(--sun); flex: none; }
.hero--page { min-height: 0; }
.hero--page .hero__media img { object-position: center 35%; }
.hero--page .hero__inner { padding-block: clamp(4.5rem, 9vh, 6.5rem) clamp(2.6rem, 5vh, 3.6rem); }
.hero--page h1 { max-width: 20ch; }

/* ---------- Hero home (lampadina + diorama) ---------- */
.hero--home .hero__media::after {
  background: linear-gradient(90deg, rgba(13, 22, 37, .78) 0%, rgba(13, 22, 37, .45) 48%, rgba(13, 22, 37, .18) 72%, rgba(13, 22, 37, .30) 100%);
}
.hero__figure {
  position: absolute;
  top: 6%;
  right: 2.5%;
  bottom: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero__figure img {
  height: 100%;
  width: auto;
  max-width: 44vw;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(5, 12, 20, .5));
}
.hero--home .hero__inner { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero--home { display: flex; flex-direction: column; }
  .hero__figure {
    position: relative;
    inset: auto;
    order: 2;
    justify-content: center;
    padding: 0 1.5rem;
    margin-top: -1.5rem;
  }
  .hero__figure img { height: 300px; max-width: 100%; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: rgba(255, 255, 255, .75); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--brand); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: rgba(46, 61, 143, .35); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cloud-2); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card__media img { transform: scale(1.045); }
.card__media--contain { background: #fff; padding: 1.4rem; }
.card__media--contain img { object-fit: contain; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { color: var(--muted); font-size: .97rem; margin: 0; }
.card__link { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--brand); font-weight: 650; font-size: .95rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.card:hover .card__link svg { transform: translateX(4px); }
.card__flag {
  position: absolute;
  top: .9rem;
  left: .9rem;
  background: rgba(20, 33, 49, .82);
  color: #fff;
  backdrop-filter: blur(4px);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  padding: .35rem .7rem;
  border-radius: 999px;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.card__flag svg { width: 12px; height: 12px; color: var(--sun); }

/* ---------- Feature list / icons ---------- */
.icon-chip {
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-050);
  color: var(--brand);
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip--sun { background: rgba(242, 194, 48, .18); color: var(--sun-600); }
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin-bottom: .25rem; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.step__num {
  counter-increment: step;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; margin-bottom: .3rem; }
.step h3 svg { display: inline-block; width: 19px; height: 19px; vertical-align: -3px; color: var(--brand); margin-right: .3rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink); padding: 1.8rem 1.5rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--sun); line-height: 1; }
.stat__num svg { width: 42px; height: 42px; }
.stat__label { margin-top: .5rem; font-size: .92rem; color: rgba(255, 255, 255, .78); }

/* ---------- Reviews ---------- */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow: var(--shadow-s);
  height: 100%;
}
.review__stars { display: inline-flex; gap: 2px; color: var(--sun); }
.review__stars svg { width: 17px; height: 17px; }
.review__text { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.review__meta { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: .4rem; }
.review__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  flex: none;
}
.review__name { font-weight: 650; font-size: .95rem; }
.review__src { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.review__src svg { width: 13px; height: 13px; }
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.2rem .6rem .7rem;
  box-shadow: var(--shadow-s);
  text-decoration: none;
  color: var(--ink);
}
.g-badge__g { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-050); display: grid; place-items: center; font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.g-badge__stars { color: var(--sun); display: inline-flex; gap: 1px; }
.g-badge__stars svg { width: 14px; height: 14px; }
.g-badge small { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery__item {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cloud-2);
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 33, 49, .45));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__item:hover::after { opacity: 1; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 16, 26, .94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(1200px, 92vw); max-height: 78vh; width: auto; height: auto; border-radius: var(--radius-s); }
.lightbox__cap { color: rgba(255, 255, 255, .8); margin-top: 1rem; font-size: .95rem; text-align: center; }
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox__prev { left: .4rem; } .lightbox__next { right: .4rem; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .9rem; }
.filters__meta { margin: 0 0 1.8rem; color: var(--muted); font-size: .92rem; }
.filters__meta strong { color: var(--ink); }
.filter-btn {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-count { font-size: .8rem; opacity: .75; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(115deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand) 100%);
  border-radius: var(--radius-l);
  color: #fff;
  padding: clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 194, 48, .28), transparent 65%);
  z-index: -1;
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 56ch; margin-top: .9rem; }
.cta-band .btn-row { margin-top: 1.8rem; }
.cta-band__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: 1.4fr 1fr; } }
.cta-band__contact { display: grid; gap: .8rem; }
.cta-band__contact a {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease;
}
.cta-band__contact a:hover { background: rgba(255, 255, 255, .16); }
.cta-band__contact svg { width: 20px; height: 20px; color: var(--sun); flex: none; }
.cta-band__contact small { display: block; font-weight: 400; color: rgba(255, 255, 255, .7); font-size: .82rem; }

/* ---------- Accordion (FAQ) ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-weight: 650;
  font-size: 1.03rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); margin: 0; }

/* ---------- Spec table ---------- */
.spec-list { display: grid; gap: .6rem; }
.spec {
  display: flex;
  gap: .8rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .85rem 1.1rem;
  font-weight: 600;
  font-size: .98rem;
}
.spec svg { width: 18px; height: 18px; color: var(--sun-600); flex: none; }
.brand-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.brand-row img { height: 34px; width: auto; opacity: .85; }

/* ---------- Map / areas ---------- */
.area-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-s);
  height: 100%;
}
.area-card h3 { display: flex; align-items: center; gap: .55rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.area-card h3 svg { width: 17px; height: 17px; color: var(--brand); }
.area-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.area-card a { margin-top: .4rem; font-weight: 600; font-size: .92rem; }
.area-card a svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; }

/* ---------- Media frame ---------- */
.media-frame { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--ratio { aspect-ratio: 4 / 3; }
.media-stack { position: relative; }
.media-stack .media-frame:first-child { width: 78%; }
.media-stack .media-frame:last-child { position: absolute; right: 0; bottom: -2rem; width: 46%; border: 6px solid #fff; }
.video-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 0; }
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2, .site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .btn--sun, .mnav .btn--sun { color: var(--ink); }
.site-footer .btn--sun:hover, .mnav .btn--sun:hover { color: #fff; }
.footer-brand img { width: 150px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .94rem; max-width: 34ch; margin: 0 0 1.2rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--sun); flex: none; margin-top: 3px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer-legal nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.notice {
  border: 1px solid rgba(217, 168, 18, .5);
  background: rgba(242, 194, 48, .12);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  font-size: .95rem;
}
.notice svg { width: 20px; height: 20px; color: var(--sun-600); flex: none; margin-top: 2px; }
.tag { display: inline-block; background: var(--brand-050); color: var(--brand); font-weight: 650; font-size: .8rem; border-radius: 999px; padding: .3rem .8rem; }
.list-check { list-style: none; padding: 0; display: grid; gap: .7rem; }
.list-check li { display: flex; gap: .7rem; align-items: flex-start; }
.list-check svg { width: 19px; height: 19px; color: var(--ok); flex: none; margin-top: 3px; }
.small svg { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; }
.product-brand { margin-bottom: 1rem; }
.product-brand img, .product-brand picture { height: 42px; width: auto; }
.product-brand picture img { height: 42px; width: auto; }
.img-cover, .img-cover img { width: 100%; height: 100%; object-fit: cover; }
.img-cover picture { display: block; width: 100%; height: 100%; }
.prose p { margin-bottom: 1.1rem; }
.prose > *:last-child { margin-bottom: 0; }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pagination a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; text-decoration: none; }
.pagination svg { width: 16px; height: 16px; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }

/* 404 */
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.page-404 h1 { font-size: clamp(4rem, 12vw, 7rem); color: var(--brand); }

/* Utility: solo screen reader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mnav[hidden] { display: none; }

/* ---------- Casa interattiva (home) ---------- */
.house { max-width: 980px; margin-inline: auto; }
.house__stage {
  position: relative;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #d9e9f8 0%, #ecf4fb 55%, #f4f8f1 100%);
  box-shadow: var(--shadow-m);
  overflow: visible;
}
.house__stage > svg { width: 100%; height: auto; border-radius: var(--radius-l); }
.house__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.1rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.house__hint-dot {
  width: 12px; height: 12px; flex: none;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(242, 194, 48, .3);
}
.house__point { position: absolute; z-index: 5; }
.house__point.is-open { z-index: 40; }
.house__dot {
  position: relative;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 33, 49, .35);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.house__dot svg { width: 22px; height: 22px; }
.house__dot:hover { transform: scale(1.14); }
.house__dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sun);
  animation: house-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes house-pulse {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
.house__point.is-open .house__dot { background: var(--ink); color: var(--sun); transform: scale(1.05); }
.house__point.is-open .house__dot-ring { animation: none; opacity: 0; }
/* etichetta al passaggio del mouse (solo desktop) */
@media (hover: hover) {
  .house__dot::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ink);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    padding: .45rem .7rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .house__dot:hover::after, .house__dot:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
  .house__point.is-open .house__dot::after { content: none; }
}
/* scheda che si apre dal punto */
.house__pop {
  position: absolute;
  z-index: 40;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: 1.3rem 1.4rem 1.35rem;
  animation: house-pop .22s ease;
}
.house__pop h3 { margin: .7rem 0 .45rem; font-size: 1.25rem; }
.house__pop p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 .4rem; }
.house__pop-close {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.house__pop-close:hover { background: var(--cloud); color: var(--ink); }
.house__pop-close svg { width: 16px; height: 16px; }
@keyframes house-pop { from { opacity: 0; } to { opacity: 1; } }
/* posizioni di apertura */
.house__point--above .house__pop { bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%); }
.house__point--below .house__pop { top: calc(100% + 18px); left: 50%; transform: translateX(-50%); }
.house__point--left .house__pop { right: calc(100% + 18px); top: 50%; transform: translateY(-50%); }
.house__point--right .house__pop { left: calc(100% + 18px); top: 50%; transform: translateY(-50%); }
/* freccia verso il punto */
.house__pop::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: var(--paper);
  transform: rotate(45deg);
}
.house__point--above .house__pop::before { top: calc(100% - 7px); left: calc(50% - 7px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.house__point--below .house__pop::before { bottom: calc(100% - 7px); left: calc(50% - 7px); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.house__point--left .house__pop::before { left: calc(100% - 7px); top: calc(50% - 7px); border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.house__point--right .house__pop::before { right: calc(100% - 7px); top: calc(50% - 7px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* mobile: la scheda diventa un pannello in basso */
@media (max-width: 700px) {
  .house__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .house__dot svg { width: 16px; height: 16px; }
  .house__pop,
  .house__point--above .house__pop,
  .house__point--below .house__pop,
  .house__point--left .house__pop,
  .house__point--right .house__pop {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem; top: auto;
    width: auto;
    transform: none;
    max-height: 62vh;
    overflow: auto;
  }
  .house__pop::before { display: none; }
}
