/* =========================================================================
   Special One Kennel — Miniature American Shepherd
   Identita: editoriale, fredda, nitida. Palette dal mantello merle
   (slate/argento) con l'occhio azzurro-ghiaccio come unico accento forte
   e il rame come contrappunto caldo. Display Fraunces, testo Hanken Grotesk.
   ========================================================================= */

/* Font self-hosted (subset latin), VARIABILI e ridotti ai pesi usati: Fraunces 500–600, Hanken Grotesk 400–700.
   Stanno qui (e non in un CSS a parte) per risparmiare una richiesta bloccante; le stesse regole sono in
   fonts.css per pagine legali e 404. Se cambiano i file: nuovo ?v= qui, in fonts.css e nei <link rel="preload">. */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 600;font-display:swap;src:url(../fonts/fraunces-normal.woff2?v=5) 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:italic;font-weight:500 600;font-display:swap;src:url(../fonts/fraunces-italic.woff2?v=5) 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:'Hanken Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/hankengrotesk.woff2?v=5) 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 di riserva calibrati su Fraunces (Georgia ridimensionato): quando Fraunces arriva dopo il primo disegno
   il titolo non cambia piu' numero di righe (CLS da ~0,13 a ~0). Fraunces cambia larghezza con la dimensione
   (asse opsz), quindi l'H1 usa una calibrazione diversa sopra i 640 e i 1024 px. Dove Georgia manca si passa a serif. */
@font-face{font-family:'Fraunces fb';font-weight:400 500;src:local('Georgia');size-adjust:90%;ascent-override:109%;descent-override:29%;line-gap-override:0%}
@font-face{font-family:'Fraunces fb';font-weight:600 700;src:local('Georgia Bold');size-adjust:90%;ascent-override:109%;descent-override:29%;line-gap-override:0%}
@font-face{font-family:'Fraunces fb';font-style:italic;font-weight:600 700;src:local('Georgia Bold Italic');size-adjust:90%;ascent-override:109%;descent-override:29%;line-gap-override:0%}
@font-face{font-family:'Fraunces fb md';font-weight:600 700;src:local('Georgia Bold');size-adjust:86%;ascent-override:114%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:'Fraunces fb md';font-style:italic;font-weight:600 700;src:local('Georgia Bold Italic');size-adjust:86%;ascent-override:114%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:'Fraunces fb lg';font-weight:600 700;src:local('Georgia Bold');size-adjust:83%;ascent-override:118%;descent-override:31%;line-gap-override:0%}
@font-face{font-family:'Fraunces fb lg';font-style:italic;font-weight:600 700;src:local('Georgia Bold Italic');size-adjust:83%;ascent-override:118%;descent-override:31%;line-gap-override:0%}

:root {
  /* superfici — tema chiaro (default) */
  --ground: #ECEFF1;
  --surface: #FFFFFF;
  --surface-2: #F4F7F8;
  --ink: #141A20;
  --ink-soft: #38434D;
  --muted: #66727C;
  --line: #DBE1E5;
  --line-soft: #E7ECEF;

  --accent: #2E8FD6;        /* azzurro ghiaccio: l'occhio del MAS */
  --accent-deep: #1E6EAC;
  --accent-wash: #E4F0FA;
  --ember: #B76A3A;         /* rame: i punti fulvi */
  --ember-deep: #9A5630;

  --night: #121A21;         /* banda scura (sempre scura) */
  --night-2: #0C1218;
  --on-night: #ECF2F6;
  --on-night-soft: #9DB0BD;
  --night-line: #27323B;

  /* ombre fredde e tirate, non "candy" */
  --shadow-sm: 0 1px 0 var(--line);
  --shadow: 0 1px 0 var(--line), 0 16px 34px -24px rgba(20,45,70,.30);
  --shadow-lg: 0 1px 0 var(--line), 0 34px 74px -34px rgba(20,45,70,.42);

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 12px;
  --r-xl: 16px;

  --container: 1180px;
  --sp-sec: clamp(4rem, 3rem + 6vw, 8rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --measure: 66ch;

  --f-display: 'Fraunces', 'Fraunces fb', serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1.02rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.35rem, 1.15rem + 1vw, 1.7rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  --fs-h1: clamp(2.7rem, 1.9rem + 4vw, 4.8rem);
}

/* Le pagine hanno data-theme="dark" fisso: il tema scuro e' l'unico effettivamente usato. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0D141A; --surface: #151E26; --surface-2: #10191F;
  --ink: #E9EFF3; --ink-soft: #B3C0CA; --muted: #8494A0;
  --line: #263039; --line-soft: #1D262E;
  --accent: #49A6E9; --accent-deep: #2E8FD6; --accent-wash: #10202D;
  --ember: #CF8A5A; --ember-deep: #B87343;
  --night: #0A1116; --night-2: #06090D; --night-line: #1E2932;
  --shadow-sm: 0 1px 0 rgba(0,0,0,.4);
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 18px 40px -26px rgba(0,0,0,.7);
  --shadow-lg: 0 1px 0 rgba(0,0,0,.4), 0 40px 80px -34px rgba(0,0,0,.8);
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding-inline-start: 0; }  /* niente indent di default sulle liste custom */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #06121c; }
/* skip link: visibile solo al focus da tastiera */
.skip { position: absolute; top: -100px; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: #06121c; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
main:focus { outline: none; }

/* --- tipografia --- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.012em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
@media (min-width: 641px) { h1 { font-family: 'Fraunces', 'Fraunces fb md', serif; } }
@media (min-width: 1024px) { h1 { font-family: 'Fraunces', 'Fraunces fb lg', serif; } }
p { text-wrap: pretty; max-width: var(--measure); }
em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }
.accent { color: var(--accent-deep); font-style: italic; }
.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 52ch; }
a[href^="tel:"], .foot-bottom { font-variant-numeric: tabular-nums; }

/* --- layout --- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--sp-sec); }
.section-2 { background: var(--surface-2); }

/* capitolo editoriale (rimpiazza l'eyebrow centrato) */
.chapter { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.chapter .n { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 500; color: var(--accent-deep); }
.chapter .t { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-family: var(--f-body); white-space: nowrap; }
.chapter .r { flex: 1; height: 1px; background: var(--line); }
.sec-head { max-width: 46rem; }
.sec-head h2 + .lead { margin-top: 1rem; }
.sec-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
/* "come funziona": passi numerati come i capitoli (01, 02…) */
.steps { counter-reset: passo; display: grid; gap: .75rem; margin-top: 1.5rem; max-width: 46rem; }
.steps li { counter-increment: passo; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .6rem; align-items: baseline; color: var(--ink-soft); }
.steps li::before { content: counter(passo, decimal-leading-zero); font-family: var(--f-display); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.geo { margin-top: 1rem; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 52ch; }

/* --- bottoni --- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.4rem; border-radius: var(--r-sm);
  font-family: var(--f-body); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 1rem 1.7rem; font-size: var(--fs-base); }
.btn-wa { background: #25D366; color: #06331b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
@media (hover: hover) {
  .btn-wa:hover { background: #1fbb59; transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn-ghost:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
}

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21,30,38,.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 1.4rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand .mark { flex: none; color: var(--ink); }
.brand .mark svg { width: 34px; height: 34px; display: block; }
.brand .wm { font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.brand .wm small { display: block; font-family: var(--f-body); font-weight: 600; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-menu a { position: relative; padding: .4rem 0; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); transition: color .15s var(--ease); }
.nav-menu a .nav-label { position: relative; display: inline-block; }
.nav-menu a .nav-label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav-menu a[aria-current="true"] { color: var(--ink); }
.nav-menu a[aria-current="true"] .nav-label::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav-menu a:hover { color: var(--ink); }
  .nav-menu a:hover .nav-label::after { transform: scaleX(1); }
}

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.lang { display: flex; gap: .25rem; align-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.lang a { padding: .25rem .1rem; }
.lang a[aria-current="page"] { color: var(--accent-deep); }
.lang span { opacity: .4; }
.lang-mobile, .menu-eyebrow, .menu-foot { display: none; }
/* CTA header: testo + freccia con filetto rame, niente pillola */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); align-items: center; justify-content: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }

/* --- hero (banda notturna) --- */
.hero { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(66% 56% at 84% 8%, rgba(46,143,214,.20), transparent 60%),
    radial-gradient(50% 50% at 8% 96%, rgba(183,106,58,.13), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.6rem, 1rem + 3vw, 4rem); align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); }
.hero .chapter .t { color: var(--on-night-soft); white-space: normal; }
.hero .chapter .r { background: var(--night-line); }
.hero h1 { color: #fff; }
.hero h1 .ice { color: #6FBAF0; font-style: italic; }
.hero-sub { font-size: var(--fs-lg); color: var(--on-night-soft); margin-top: 1.4rem; max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-visual { position: relative; }
.hero-visual .frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 34px 74px -34px rgba(0,0,0,.55); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
/* passe-partout: squadrette d'angolo ghiaccio (dettaglio-firma MAS) */
.plate::before, .plate::after { content: ""; position: absolute; width: 20px; height: 20px; z-index: 3; pointer-events: none; border: 0 solid var(--accent); }
.plate::before { top: 10px; left: 10px; border-top-width: 1.6px; border-left-width: 1.6px; }
.plate::after { bottom: 10px; right: 10px; border-bottom-width: 1.6px; border-right-width: 1.6px; }

/* --- striscia fiducia (nastro a filetti, niente tile) --- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.6rem clamp(1rem, 2vw, 1.8rem); border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item .ic { color: var(--accent-deep); margin-bottom: .55rem; }
.trust-item .ic svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: var(--fs-sm); font-weight: 700; font-family: var(--f-body); }
.trust-item span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }

/* --- about --- */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.8rem, 1rem + 3vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media .frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-top: 1.1rem; color: var(--ink-soft); }
.about-text .sign { margin-top: 1.5rem; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--ink); }

/* --- galleria colori: mosaico + legenda sotto (niente etichette sulle foto) --- */
.colors-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; border-radius: var(--r-lg); overflow: hidden; margin-top: 2.4rem; }
.color-card { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.color-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .color-card:hover img { transform: scale(1.045); } }
.color-card:focus-visible { outline: 3px solid transparent; outline-offset: -4px; }  /* invisibile, ma in "contrasto elevato" diventa l'anello di focus */
.color-card:focus-visible::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 6px #06121c; }
.colors-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem 3px; margin-top: 1rem; }
.colors-legend div { padding-right: .6rem; }
.colors-legend b { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.colors-legend span { display: block; font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; margin-top: 1px; }

/* --- banda carattere --- */
.carattere { position: relative; color: var(--on-night); isolation: isolate; }
.carattere img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.carattere::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(9,13,17,.95) 30%, rgba(9,13,17,.55) 74%, rgba(9,13,17,.3)); }
@media (max-width: 1100px) { .carattere::after { background: linear-gradient(100deg, rgba(9,13,17,.95) 30%, rgba(9,13,17,.86)); } }
.carattere .inner { padding-block: clamp(4rem, 3rem + 5vw, 7rem); max-width: 42rem; }
.carattere .chapter .n { color: #7FC1EE; }
.carattere .chapter .t { color: var(--on-night-soft); }
.carattere .chapter .r { background: var(--night-line); }
.carattere h2 { color: #fff; }
.carattere h2 .ice { color: #7FC1EE; font-style: italic; }
.carattere p { color: var(--on-night-soft); margin-top: 1.2rem; font-size: var(--fs-lg); }
.traits { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.9rem; list-style: none; }
.traits li { font-size: var(--fs-sm); font-weight: 500; padding: .42rem .95rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; }

/* --- perche: lista a filo (niente card) --- */
.reasons { list-style: none; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.reasons > li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1.8rem; row-gap: .4rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.reasons .k { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 500; color: var(--accent-deep); }
.reasons h3 { grid-column: 2; font-size: var(--fs-xl); }
.reasons p { grid-column: 2; margin-top: .35rem; color: var(--ink-soft); font-size: var(--fs-base); }

/* --- faq --- */
.faq { max-width: 52rem; margin-top: 2.4rem; display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; inset: 50% 2px auto 2px; height: 2px; background: var(--accent-deep); border-radius: 2px; }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(135deg); }
.faq .a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: var(--fs-sm); max-width: none; }
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--r-sm); }

/* --- contatti --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.8rem, 1rem + 3vw, 3.6rem); align-items: start; }
.contact-grid .lead { margin-top: 1rem; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.9rem; }
.contact-row { display: flex; gap: .95rem; align-items: flex-start; }
.contact-row .ic { color: var(--accent-deep); flex: none; margin-top: 2px; }
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row b { display: block; font-size: var(--fs-sm); font-family: var(--f-body); }
.contact-row a, .contact-row span { color: var(--ink-soft); font-size: var(--fs-sm); }
.contact-row a:hover { color: var(--accent-deep); }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.map .view { aspect-ratio: 16/11; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); }
.map .foot b { font-size: var(--fs-sm); font-family: var(--f-body); }
.map .foot span { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* --- footer (con terminatore) --- */
.site-footer { background: var(--night); color: var(--on-night-soft); border-top: 1px solid var(--night-line); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) clamp(2.2rem, 1.6rem + 1vw, 2.8rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.6rem; }
/* lockup del piede: il segno in un badge fa da ancora, il nome sta compatto
   su due righe con l'occhiello sotto — cosi' il blocco ha un peso solo. */
.foot-brand .brand { color: #fff; align-items: center; gap: .85rem; }
.foot-brand .brand .mark, .foot-brand .brand .wm { color: #fff; }
.foot-brand .brand .mark {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--night-line);
}
.foot-brand .brand .mark svg { width: 33px; height: 33px; }
/* niente cap di larghezza: il nome resta su una riga dove c'e' spazio e va a capo
   da solo solo sugli schermi davvero stretti. */
.foot-brand .brand .wm { white-space: normal; font-size: 1.08rem; line-height: 1.18; }
.foot-brand .brand .wm small { font-size: .66rem; letter-spacing: .16em; color: var(--on-night-soft); margin-top: 5px; }
.foot-brand p { margin-top: 1.2rem; font-size: .95rem; line-height: 1.68; color: var(--on-night-soft); max-width: 46ch; }
.foot-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.foot-social a { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: #fff; transition: background .2s, transform .2s; }
@media (hover: hover) { .foot-social a:hover { background: var(--accent); color: #06121c; transform: translateY(-2px); } }
.foot-social svg { width: 19px; height: 19px; }
.foot-col .foot-h { font-family: var(--f-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
.foot-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.foot-col a { font-size: var(--fs-sm); color: var(--on-night-soft); }
.foot-col a:hover { color: #fff; }
/* colonna Contatti con icone */
.foot-contacts a { display: flex; align-items: center; gap: .7rem; padding-block: .3rem; color: var(--on-night-soft); font-size: var(--fs-sm); }
.foot-contacts a:hover { color: #fff; }
.fc-ico { width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: var(--accent); transition: background .18s, color .18s, border-color .18s; }
.fc-ico svg { width: 16px; height: 16px; }
.foot-contacts a:hover .fc-ico { background: var(--accent); border-color: var(--accent); color: #06121c; }
/* dati in fondo centrati */
.foot-bottom { margin-top: clamp(2.6rem, 2rem + 2vw, 3.4rem); padding-top: 1.8rem; border-top: 1px solid var(--night-line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; font-size: var(--fs-xs); }
.foot-bottom a:hover { color: #fff; }
.foot-credits { color: var(--muted); font-size: .72rem; }
/* tap target adeguati (link tel/mail, footer, legali) */
.contact-row a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.foot-col a { display: inline-block; padding-block: .4rem; }
.foot-col .foot-contacts a { display: flex; padding-block: .45rem; }  /* batte .foot-col a { inline-block } */
.foot-bottom a { display: inline-block; padding-block: .3rem; }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================== responsive =========================== */
.hero-grid > *, .about-grid > *, .contact-grid > *, .foot-grid > * { min-width: 0; }

@media (max-width: 1000px) { .nav, .nav-menu { gap: 1rem; } .nav-cta { gap: .9rem; } }

@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual, .about-media { max-width: 460px; margin-inline: auto; }
  .map .view { aspect-ratio: 16/9; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* menu full-screen tipografico */
@media (max-width: 860px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .nav-menu { display: none; }
  /* logo e comandi restano SOPRA il pannello: lì c'è la X per chiudere */
  /* SOLO quelli dell'header: .brand esiste anche nel footer, e con lo z-index
     alto finiva a dipingersi SOPRA il pannello del menu (il footer sta nel
     contesto di impilamento radice). */
  .site-header .brand, .site-header .nav-cta, .site-header .burger { position: relative; z-index: 62; }
  .nav-cta { margin-left: auto; gap: 0; }
  .burger { display: inline-flex; }
  .burger .i-close { display: none; }
  .burger[aria-expanded="true"] .i-open { display: none; }
  .burger[aria-expanded="true"] .i-close { display: block; }
  .nav-cta .lang { display: none; }

  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 0; z-index: 55;
    padding: calc(64px + 1.7rem) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(120% 60% at 92% 0, rgba(46,143,214,.16), transparent 60%),
      radial-gradient(110% 55% at 0 100%, rgba(183,106,58,.11), transparent 60%),
      var(--surface);
    animation: menu-in .24s ease both;
  }
  @keyframes menu-in { from { opacity: 0 } to { opacity: 1 } }
  /* Lock dello scroll sul <html>, NON sul <body>: con overflow:hidden sul body
     quest'ultimo diventa scroll container e lo sticky dell'header si slega
     (spariva in alto). Bloccando <html> il flusso non cambia di un pixel:
     niente scatto del contenuto all'apertura e l'header resta al suo posto. */
  html.nav-lock { overflow: hidden; touch-action: none; }
  html.nav-lock .nav-menu.open { touch-action: pan-y; }   /* il pannello resta scorrevole */

  .nav-menu.open .menu-eyebrow { display: block; font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
  /* solo le voci dirette del menu: i link di lingua e social nel piede hanno stili propri */
  .nav-menu.open > a {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 8vw, 2.5rem);
    letter-spacing: -.012em; line-height: 1.1; color: var(--ink-soft);
    padding: 1rem 0; border-bottom: 1px solid var(--line);
    animation: voce-in .34s cubic-bezier(.2,.7,.3,1) both;
  }
  @keyframes voce-in { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
  .nav-menu.open > a:nth-of-type(1) { animation-delay: .05s }
  .nav-menu.open > a:nth-of-type(2) { animation-delay: .09s }
  .nav-menu.open > a:nth-of-type(3) { animation-delay: .13s }
  .nav-menu.open > a:nth-of-type(4) { animation-delay: .17s }
  .nav-menu.open > a:nth-of-type(5) { animation-delay: .21s }
  .nav-menu.open > a:nth-of-type(6) { animation-delay: .25s }
  .nav-menu.open > a .nav-label { display: inline; }
  .nav-menu.open > a .nav-label::after { display: none; }
  .nav-menu.open > a::after { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
  .nav-menu.open > a[aria-current="true"] { color: var(--ink); }
  .nav-menu.open > a[aria-current="true"]::after { opacity: 1; transform: none; }

  /* piede del pannello: centrato */
  .nav-menu.open .menu-foot { display: block; padding-top: 1.9rem; text-align: center; }
  .nav-menu.open .lang-mobile { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; }
  .nav-menu.open .lang-mobile a { padding: .5rem .45rem; color: var(--ink-soft); }
  .nav-menu.open .lang-mobile a[aria-current="page"] { color: var(--accent-deep); }
  .nav-menu.open .lang-mobile span { opacity: .4; }
  .menu-seguici { display: block; font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
  /* glifi nudi, ognuno col colore del proprio social */
  .menu-social { display: flex; gap: .8rem; justify-content: center; align-items: center; }
  .menu-social a { display: grid; place-items: center; padding: .55rem; color: var(--ink-soft); transition: transform .18s ease; }
  @media (hover: hover) { .menu-social a:hover { transform: translateY(-3px); } }
  .menu-social a.ms-tt { color: var(--ink); }
  .menu-social a.ms-wa { color: #25D366; }
  .menu-social svg { width: 30px; height: 30px; }
}

@media (max-width: 720px) {
  .section { padding-block: clamp(2.8rem, 2rem + 5vw, 4rem); }
  .about-media { display: none; }        /* su mobile: solo testo, niente foto */
  .about-grid { gap: 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .trust-item:nth-child(odd) { border-left: 0; }
  .reasons > li { grid-template-columns: 1fr; }
  .reasons h3, .reasons p { grid-column: 1; }
  .lead { font-size: var(--fs-base); }
}

@media (max-width: 640px) {
  :root {
    --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem;
    --fs-lg: 1.05rem; --fs-xl: 1.28rem; --fs-h3: 1.3rem;
    --fs-h2: clamp(1.65rem, 1.2rem + 2vw, 2.1rem);
    --fs-h1: clamp(2.1rem, 1.5rem + 3vw, 2.8rem);
  }
  h1 { line-height: 1.06; }
  .hero-grid { padding-block: 2.4rem 3rem; }
  .hero-sub { margin-top: 1rem; max-width: 100%; }
  .hero-cta { margin-top: 1.5rem; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .colors-grid, .colors-legend { grid-template-columns: 1fr 1fr; }
  .map .view { aspect-ratio: 4/3; }
  .map .foot { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .map .foot .btn { width: 100%; justify-content: center; }
  .chapter .t { white-space: normal; letter-spacing: .14em; }
}

@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* telefoni stretti: il nome nell'header va su due righe, cosi' il burger resta sempre nello schermo */
@media (max-width: 400px) {
  .site-header .brand { min-width: 0; }
  .site-header .brand .wm { white-space: normal; font-size: .95rem; line-height: 1.08; max-width: 9.6rem; text-wrap: balance; }
}

/* --- movimento ridotto: in fondo, cosi' vince sulle regole delle media query precedenti --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav-menu.open, .nav-menu.open > a { animation: none; }
  .btn:hover, .foot-social a:hover, .menu-social a:hover, .color-card:hover img { transform: none; }
}

/* --- stampa: sfondo bianco, testo nero, tutto visibile --- */
@media print {
  :root, :root[data-theme="dark"] { --ground: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-soft: #222; --muted: #555; --line: #bbb; --line-soft: #ddd; --night: #fff; --night-2: #fff; --on-night: #000; --on-night-soft: #333; --night-line: #bbb; --accent: #1E6EAC; --accent-deep: #1E6EAC; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .hero-cta, .map, .foot-social, .carattere img.bg, .hero::before, .carattere::after, .plate::before, .plate::after, .skip { display: none !important; }
  .carattere .chapter .n, .hero h1, .hero h1 .ice, .carattere h2, .carattere h2 .ice, .traits li, .foot-brand .brand, .foot-brand .brand .wm { color: #000; }
  .traits li { border-color: #bbb; background: none; }
  .foot-col a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
