/* ==========================================================================
   Crab Building System — design system
   Palette derivata dai valori reali del sito precedente (variabili Kubio),
   riorganizzata per ruoli: ogni colore fa una cosa sola.
   ========================================================================== */

/* --- Font self-hosted: nessuna richiesta a terze parti, nessun cookie ----- */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Token ---------------------------------------------------------------- */
:root {
  /* Navy: struttura, testo, pause visive. Sostituisce il nero puro ovunque. */
  --navy-900: #161827;
  --navy-800: #1E2133;
  --navy-700: #2A2E44;
  --navy-600: #5A5F73;   /* testo secondario su fondo chiaro — 6.33:1 su bianco */
  --navy-200: #A7ACC0;   /* testo secondario su fondo navy — 7.79:1 */

  /* Arancione: solo azioni e accenti. Mai fondo di un'intera sezione. */
  --orange-500: #FF8200; /* fondo dei pulsanti — il testo sopra e' SEMPRE navy */
  --orange-600: #E87600; /* stato hover */
  --orange-700: #A95600; /* link testuali su fondo chiaro — 5.23:1 su bianco */

  /* Neutri caldi: il "rosa pesca" scollegato diventa arancione + 90% bianco. */
  --peach-50: #FFF2E6;
  --cream-50: #FBF7F1;
  --white:    #FFFFFF;

  --border:        #E7E1D9;
  --border-strong: #CFC7BC;
  --border-dark:   #333852;

  /* Spaziatura, base 4px */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(22, 24, 39, .06), 0 4px 12px rgba(22, 24, 39, .05);
  --shadow:    0 2px 6px rgba(22, 24, 39, .07), 0 14px 34px rgba(22, 24, 39, .09);

  --container: 1200px;
  --gutter: 20px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --header-h: 68px;

  /* Il disegno dei pannelli LED del soffitto, usato come firma del brand. */
  --hex-pattern: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'><path d='M70,24.25L56,48.5L28,48.5L14,24.25L28,0L56,0ZM28,0L14,24.25L-14,24.25L-28,0L-14,-24.25L14,-24.25ZM112,0L98,24.25L70,24.25L56,0L70,-24.25L98,-24.25ZM28,48.5L14,72.75L-14,72.75L-28,48.5L-14,24.25L14,24.25ZM112,48.5L98,72.75L70,72.75L56,48.5L70,24.25L98,24.25Z' fill='none' stroke='%23FF8200' stroke-width='1.1'/></svg>");
}
@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; --header-h: 80px; } }

/* --- Reset essenziale ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, video { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--orange-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p  { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--orange-500); color: var(--navy-900); font-weight: 600;
  padding: var(--s-3) var(--s-5); border-radius: var(--radius-sm); transition: top .15s;
}
.skip-link:focus { top: var(--s-3); }

/* --- Impalcatura ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 4rem + 3vw, 112px); }
.section--tight { padding-block: clamp(40px, 3rem + 2vw, 72px); }
.section--cream { background: var(--cream-50); }
.section--peach { background: var(--peach-50); }
/* La pausa visiva scura: prende il posto dell'arancione pieno del sito vecchio. */
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--navy-200); }
.section--navy a:not(.btn) { color: var(--orange-500); }
.section--navy a:not(.btn):hover { color: var(--white); }

.eyebrow::before {
  content: '';
  display: inline-block; width: 12px; height: 10.5px; margin-right: var(--s-3);
  background: currentColor; vertical-align: middle;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-700); margin-bottom: var(--s-3);
}
.section--navy .eyebrow { color: var(--orange-500); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--navy-600); }
.section--navy .lead { color: var(--navy-200); }
.measure { max-width: 62ch; }
.section-head { max-width: 66ch; margin-bottom: var(--s-7); }
.section-head.is-centered { margin-inline: auto; text-align: center; }

/* --- Pulsanti ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-6);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
/* Testo navy sull'arancione: bianco su #FF8200 sarebbe 2.49:1 e non passa AA. */
.btn--primary { background: var(--orange-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--orange-600); color: var(--navy-900); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.section--navy .btn--outline { color: var(--white); border-color: var(--border-dark); }
.section--navy .btn--outline:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; text-decoration: none; color: var(--orange-700);
}
.link-arrow:hover { color: var(--navy-900); }
.link-arrow span { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow svg { transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900); color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--white); margin-right: auto; }
/* Senza uno stato proprio, il marchio eredita il colore navy della regola
   globale a:hover e diventa identico al fondo dell'header: sparisce. */
.brand:hover, .brand:hover .brand__name { color: var(--white); }
.brand img { width: 40px; height: 40px; transition: transform .25s; }
.brand:hover img { transform: scale(1.06); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.1; letter-spacing: -.01em; }
.brand__tag { display: block; font-family: var(--font-body); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-200); }
@media (min-width: 1100px) { .brand img { width: 48px; height: 48px; } }
@media (max-width: 519px) {
  .brand__name { font-size: .9375rem; }
  .brand__tag { display: none; }
  .nav-toggle { padding: var(--s-2) var(--s-3); }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: var(--s-2) var(--s-4);
  background: transparent; color: var(--white); font: inherit; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--border-dark); border-radius: 999px; cursor: pointer;
}
.nav-toggle__bars { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform .18s;
}
.nav-toggle__bars::before { top: -5px; } .nav-toggle__bars::after { top: 5px; }
[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); border-bottom: 1px solid var(--border-dark); padding: var(--s-4) 0 var(--s-6);
}
.site-nav ul { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: var(--s-1); }
.site-nav a {
  display: block; padding: var(--s-3) 0; color: var(--white); text-decoration: none;
  font-weight: 500; font-size: 1.0625rem;
}
/* Non sul pulsante: tagliava di traverso la pillola arancione. */
.site-nav a:not(.btn) { border-bottom: 1px solid var(--border-dark); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange-500); }
.site-nav .btn { margin-top: var(--s-4); margin-inline: var(--gutter); width: calc(100% - var(--gutter) * 2); }
.site-nav .btn--primary, .site-nav .btn--primary:hover { color: var(--navy-900); }
.header-cta { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; background: none; border: 0; padding: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: var(--s-6); padding: 0; }
  .site-nav a {
    position: relative; border: 0; padding: var(--s-2) 0;
    font-size: .9375rem; font-weight: 500;
  }
  /* La sottolineatura cresce dal centro invece di comparire di colpo. */
  .site-nav a::after {
    content: '';
    position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px;
    background: var(--orange-500);
    transition: left .22s, right .22s;
  }
  .site-nav a:hover::after { left: 0; right: 0; }
  .site-nav a[aria-current="page"]::after { left: 0; right: 0; }
  .site-nav .btn { display: none; }
  .header-cta { display: inline-flex; margin-left: var(--s-6); }
}

/* --- Voce di menu a tendina (Servizi) -------------------------------------- */
/* "Servizi" resta un link alla sua pagina, il pulsante accanto apre l'elenco:
   da tastiera si possono fare entrambe le cose. Sopra i 900px il pannello si
   apre da CSS, quindi regge anche senza JavaScript. */

.nav-sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0;
  background: transparent; color: inherit; font: inherit;
  border: 0; border-bottom: 1px solid var(--border-dark); cursor: pointer;
  grid-column: 2;
}
.nav-sub-toggle:hover { color: var(--orange-500); }
.nav-sub-toggle svg { display: block; transition: transform .2s; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Sotto i 900px: elenco a fisarmonica dentro il pannello del menu. */
.nav-has-sub { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.nav-has-sub > a { grid-column: 1; display: flex; align-items: center; }
.site-nav .nav-sub {
  grid-column: 1 / -1;
  display: none; gap: 0; margin: 0; padding: 0 0 var(--s-2) var(--s-4);
}
.site-nav .nav-sub.is-open { display: grid; }
.site-nav .nav-sub a {
  display: block; padding: var(--s-3) 0; text-decoration: none;
  color: var(--white); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border-dark);
}
.site-nav .nav-sub a:hover { color: var(--orange-500); }
.site-nav .nav-sub li:last-child a { border-bottom: 0; }
.nav-sub__label {
  display: block; margin-bottom: 2px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-500);
}

@media (min-width: 900px) {
  .nav-has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
  .nav-sub-toggle { min-width: 26px; min-height: 26px; border-bottom: 0; }
  .site-nav .nav-sub {
    position: absolute; top: calc(100% + 14px); left: -14px; z-index: 20;
    display: grid; gap: 2px; min-width: 274px;
    margin: 0; padding: var(--s-3);
    background: var(--navy-800);
    border: 1px solid var(--border-dark); border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  /* Ponte invisibile fra la voce e il pannello: senza, scendendo col mouse si
     attraversa un vuoto e il menu si richiude in faccia. */
  .site-nav .nav-sub::before {
    content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
  }
  .nav-has-sub:hover .nav-sub,
  .nav-has-sub:focus-within .nav-sub,
  .site-nav .nav-sub.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav .nav-sub a {
    padding: var(--s-3); border: 0; border-radius: 9px;
    font-size: .9375rem; line-height: 1.35;
  }
  .site-nav .nav-sub a::after { content: none; }
  .site-nav .nav-sub a:hover { background: var(--navy-700); color: var(--white); }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,39,.94) 0%, rgba(22,24,39,.80) 45%, rgba(22,24,39,.90) 100%);
}
@media (min-width: 900px) {
  .hero__scrim { background: linear-gradient(96deg, rgba(22,24,39,.95) 0%, rgba(22,24,39,.90) 34%, rgba(22,24,39,.62) 62%, rgba(22,24,39,.22) 100%); }
}
.hero .btn--outline {
  color: var(--white); border-color: rgba(255, 255, 255, .55); background: rgba(22, 24, 39, .45);
}
.hero .btn--outline:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.hero__inner { position: relative; padding-block: clamp(64px, 5rem + 6vw, 148px); }
.hero__content { max-width: 34rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--orange-500); }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--navy-200); max-width: 46ch; }
.hero__note {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--border-dark);
  font-size: .9375rem; color: var(--navy-200);
}
.hero__note svg { flex: none; color: var(--orange-500); }
.hero--inner .hero__inner { padding-block: clamp(48px, 4rem + 4vw, 104px); }

/* --- Griglia due colonne (risolve le sezioni compresse del sito vecchio) --- */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 72px); }
  .split--reverse > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 1.05fr .95fr; }
}
.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%;
}
@media (min-width: 900px) { .split__media img { aspect-ratio: 4 / 4.4; } }
.split__media--framed::after {
  content: ''; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 62%;
  border: 2px solid var(--orange-500); border-radius: var(--radius-lg); z-index: -1;
}

/* --- Card ----------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-6); height: 100%; display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
/* Reazione discreta al passaggio del mouse: il bordo si scalda e la scheda si
   stacca appena. Nessun cambio di cursore: non sono elementi cliccabili. */
@media (hover: hover) {
  .card:hover {
    border-color: var(--orange-500);
    box-shadow: 0 2px 6px rgba(22, 24, 39, .05), 0 12px 28px rgba(22, 24, 39, .08);
    transform: translateY(-2px);
  }
  .card:hover .card__icon { background: var(--orange-500); color: var(--navy-900); }
  .section--navy .card:hover { border-color: var(--orange-500); }
  .section--navy .card:hover .card__icon { background: var(--orange-500); color: var(--navy-900); }
}
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card__icon svg { width: 28px; height: 28px; }
/* L'icona sta dentro un esagono: la stessa forma dei pannelli LED del soffitto. */
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 55px; margin-bottom: var(--s-5);
  background: var(--peach-50); color: var(--orange-700);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  transition: background-color .25s, color .25s;
}
.section--navy .card { background: var(--navy-800); border-color: var(--border-dark); }
.section--navy .card__icon { background: rgba(255,130,0,.14); color: var(--orange-500); }

.numbered { counter-reset: step; display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .numbered { grid-template-columns: repeat(3, 1fr); } }
.numbered__item { counter-increment: step; padding-top: var(--s-5); border-top: 3px solid var(--border); }
.numbered__item::before {
  content: '0' counter(step);
  display: block; margin-bottom: var(--s-3);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--orange-700);
}
.section--navy .numbered__item { border-top-color: var(--border-dark); }
.section--navy .numbered__item::before { color: var(--orange-500); }

/* --- Servizi -------------------------------------------------------------- */
.service {
  display: grid; gap: var(--s-5);
  padding-block: var(--s-7);
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); } }
.service__label { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-700); }
.service__body > *:last-child { margin-bottom: 0; }
.service ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.service li { display: flex; gap: var(--s-3); align-items: flex-start; }
.service li svg { flex: none; margin-top: 5px; color: var(--orange-700); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.check-list li svg { flex: none; margin-top: 5px; color: var(--orange-700); }
.section--navy .check-list li svg { color: var(--orange-500); }

/* --- Team ----------------------------------------------------------------- */
.person { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
/* Su schermi larghi la colonna e' gia' ampia: senza questo la foto verticale
   diventava alta quasi quanto lo schermo. */
@media (min-width: 900px) { .person img { aspect-ratio: 1 / 1; } }
.person__body { padding: var(--s-6); }
.person__role { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-700); margin-bottom: var(--s-2); }
.person h3 { margin-bottom: var(--s-3); }
.person ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); color: var(--navy-600); font-size: .9375rem; }
.person li { display: flex; gap: var(--s-3); align-items: flex-start; }
.person li svg { flex: none; margin-top: 4px; color: var(--orange-700); }

/* --- Video testimonianze -------------------------------------------------- */
.testimonial { border-radius: var(--radius); overflow: hidden; background: var(--navy-800); border: 1px solid var(--border-dark); }
.testimonial__frame { position: relative; aspect-ratio: 9 / 16; background: var(--navy-900); }
.testimonial video { width: 100%; height: 100%; object-fit: cover; }
.testimonial__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: var(--s-3);
  padding: var(--s-5);
  background: linear-gradient(180deg, rgba(22,24,39,.05) 40%, rgba(22,24,39,.72) 100%);
  border: 0; cursor: pointer; color: var(--white); font: inherit; font-weight: 600;
}
.testimonial__play::before {
  content: ''; width: 56px; height: 56px; flex: none;
  background: var(--orange-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='%23161827'%3E%3Cpath d='M8 5.14v13.72L19 12z'/%3E%3C/svg%3E") no-repeat center;
  border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .18s;
}
.testimonial__play:hover::before { transform: scale(1.06); }
.testimonial__play[hidden] { display: none; }
/* Quanto dura: chi non lo sa, nel dubbio non clicca. */
.testimonial__dur {
  position: absolute; top: var(--s-3); right: var(--s-3);
  padding: 2px var(--s-2); border-radius: 999px;
  background: rgba(22, 24, 39, .78); color: var(--white);
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.testimonial__caption { padding: var(--s-4) var(--s-5); color: var(--navy-200); font-size: .9375rem; }

/* Stato di apertura, scritto dal JS: senza, non compare nulla. */
.stato-apertura {
  display: flex; align-items: center; gap: var(--s-2); width: fit-content;
  margin-top: var(--s-3); font-size: .875rem; font-weight: 600;
}
.stato-apertura::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.stato-apertura[data-aperto="si"] { color: #1B6B3A; }
.stato-apertura[data-aperto="no"] { color: var(--navy-600); }

/* --- Prima/dopo: la lente ------------------------------------------------- */
/* Su un confronto prima/dopo il dettaglio e' il contenuto: a 640px dentro una
   scheda non si vede. Il file grande si scarica solo al click. */
.ba-open {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; font: inherit; color: inherit;
}
.ba-open img { display: block; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5); background: rgba(22, 24, 39, .94);
}
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}
.lightbox__close {
  position: absolute; top: var(--s-5); right: var(--s-5);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-500); color: var(--navy-900); font-size: 1.5rem; line-height: 1;
  border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox__close:hover { background: var(--orange-600); color: var(--navy-900); }

/* --- Contatti e mappa ----------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.contact-list a, .contact-item {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; background: var(--white);
  transition: border-color .18s, box-shadow .18s;
}
.contact-list a:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); color: inherit; }
.contact-list svg { flex: none; margin-top: 3px; color: var(--orange-700); }
.contact-list dt, .contact-list__label {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-600); margin-bottom: 2px;
}
.contact-list__value { font-weight: 500; font-size: 1.0625rem; }

/* Mappa: caricata solo al click, cosi' Google non installa cookie da sola. */
.map { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--cream-50); }
.map__frame { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: var(--s-6); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .55;
}
.map__prompt { position: relative; max-width: 34ch; }
.map__prompt p { color: var(--navy-600); font-size: .9375rem; }
.map__note { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); font-size: .875rem; color: var(--navy-600); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--navy-200); padding-block: var(--s-8) var(--s-9);
}
.site-footer::before {
  content: '';
  position: absolute; inset: -10%;
  background-image: var(--hex-pattern);
  opacity: .06;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(90% 120% at 12% 100%, #000 0%, transparent 70%);
          mask-image: radial-gradient(90% 120% at 12% 100%, #000 0%, transparent 70%);
}
.site-footer > .container { position: relative; z-index: 1; }
@media (min-width: 640px) { .site-footer { padding-bottom: var(--s-8); } }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer a { color: var(--navy-200); text-decoration: none; }
.site-footer a:hover { color: var(--orange-500); }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-title { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin: 0 0 var(--s-4); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); font-size: .9375rem; }
.footer-brand img { width: 52px; height: 52px; margin-bottom: var(--s-4); }
.footer-brand p { font-size: .9375rem; max-width: 34ch; }
.social-row { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border-dark); border-radius: 50%; color: var(--white);
}
.social-row a:hover { background: var(--orange-500); border-color: var(--orange-500); color: var(--navy-900); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--border-dark); font-size: .875rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-5); margin: 0; padding: 0; }

/* --- Pulsante WhatsApp fisso ---------------------------------------------- */
/* Compare solo sotto i 900px: sopra quella soglia l'header sticky ha gia' il suo
   pulsante WhatsApp sempre in vista, e un secondo pulsante fisso coprirebbe i
   contenuti senza aggiungere nulla. */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; padding: 0;
  background: var(--orange-500); color: var(--navy-900);
  border-radius: 50%; box-shadow: 0 8px 26px rgba(22, 24, 39, .28);
}
.wa-fab:hover { background: var(--orange-600); color: var(--navy-900); }
.wa-fab svg { width: 28px; height: 28px; }
/* Il testo resta per i lettori di schermo: l'icona da sola non basta a loro. */
.wa-fab__text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 900px) { .wa-fab { display: none; } }

/* --- Comparsa allo scorrimento -------------------------------------------- */
/* La classe js-reveal la mette uno script inline nell'head: senza JavaScript
   questa regola non si applica mai e il contenuto resta normalmente visibile. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* Le immagini entrano con una scala appena percettibile invece che scivolando. */
.js-reveal [data-reveal="media"] { transform: translateY(16px) scale(.985); }
.js-reveal [data-reveal="media"].is-visible { transform: none; }

/* In stampa niente animazioni: la pagina uscirebbe bianca. */
@media print {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal="media"] { opacity: 1; transform: none; }
}

/* Chi ha chiesto meno movimento vede tutto fermo e gia' al suo posto. */
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal="media"] { opacity: 1; transform: none; transition: none; }
}


/* --- Motivo a nido d'ape --------------------------------------------------
   E' il disegno dei pannelli LED sul soffitto della sala: l'elemento piu'
   riconoscibile del posto, qui usato come firma visiva del brand. Resta
   volutamente sotto la soglia dell'attenzione: si nota, non si impone. */
.section--navy { position: relative; overflow: hidden; }
.section--navy::before {
  content: '';
  position: absolute; inset: -10%;
  background-image: var(--hex-pattern);
  opacity: .07;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 72%);
}
.section--navy > .container { position: relative; z-index: 1; }

/* --- Utility -------------------------------------------------------------- */
.stack-lg > * + * { margin-top: var(--s-6); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); border-radius: 999px;
  background: var(--peach-50); color: var(--navy-900);
  font-size: .875rem; font-weight: 500;
}
.section--navy .pill { background: rgba(255,130,0,.14); color: var(--white); }
.pill svg { color: var(--orange-700); }
.section--navy .pill svg { color: var(--orange-500); }
.fact { display: grid; gap: var(--s-1); }
.fact__value { font-family: var(--font-display); font-size: clamp(2.75rem, 2rem + 3.2vw, 4.5rem); font-weight: 600; line-height: 1; color: var(--orange-500); }
.fact__label { font-size: .9375rem; color: var(--navy-200); }
.note { font-size: .875rem; color: var(--navy-600); }
.section--navy .note { color: var(--navy-200); }
.placeholder {
  display: inline-block; padding: 2px var(--s-2); border-radius: 4px;
  background: repeating-linear-gradient(135deg, #FFF2E6, #FFF2E6 6px, #FFE3C7 6px, #FFE3C7 12px);
  border: 1px dashed var(--orange-700); color: var(--navy-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125em;
}
