/* --- Token ------------------------------------------------------------- */
:root {
  
  --navy:        #07305D;
  --navy-deep:   #041A38;
  --navy-soft:   #12436F;
  --blue:        #0073E6;   
  --blue-text:   #0066CC;   
  --blue-press:  #005BB8;
  --blue-light:  #3E7DDA;
  --blue-wash:   #E8F0FA;

  
  --ink:         #19191A;
  --ink-mid:     #454A52;
  --ink-faint:   #616875;
  --ground:      #FFFFFF;
  --ground-alt:  #F4F7FB;
  --line:        #D2DCE7;
  --line-strong: #A9BACB;

  
  --on-navy:     #FFFFFF;
  --on-navy-mid: #B9CDE4;

  
  --ui:   'Titillium Web', 'Segoe UI', Tahoma, sans-serif;
  --text: 'Lora', Georgia, 'Times New Roman', serif;

  
  --t-display: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --t-h2:      clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --t-h3:      clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --t-lead:    clamp(1.125rem, 1.05rem + 0.45vw, 1.4rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-label:   0.8125rem;

  
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4rem;
  --s9: 6rem;     --s10: 8rem;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;

  --radius: 4px;          
  --radius-lg: 8px;

  
  --lift-1: 0 1px 2px rgba(7, 48, 93, .10), 0 2px 8px rgba(7, 48, 93, .06);
  --lift-2: 0 2px 4px rgba(7, 48, 93, .12), 0 8px 24px rgba(7, 48, 93, .10);
  --lift-3: 0 4px 8px rgba(7, 48, 93, .14), 0 16px 40px rgba(7, 48, 93, .14);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --- Reset e base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .ui { font-family: var(--ui); }
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--navy);
}
p { margin: 0 0 var(--s4); max-width: var(--measure); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-press); }

::selection { background: var(--blue); color: #fff; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
html { scrollbar-color: var(--line-strong) var(--ground-alt); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground-alt); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--ground-alt); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-soft); }
:target { scroll-margin-top: 7rem; }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--blue); color: #fff; padding: var(--s3) var(--s5);
  font-family: var(--ui); font-weight: 600; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: var(--s4); }

.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }

.hero-grid > *, .percorso-grid > *, .svc-grid > *, .chi-grid > *,
.foot-grid > *, .casi > *, .aree > *, .altri > * { min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Etichette istituzionali ------------------------------------------ */
.label {
  font-family: var(--ui); font-size: var(--t-label); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--blue-text);
  display: block; margin-bottom: var(--s3);
}
.label--onnavy { color: var(--on-navy-mid); }

/* --- Testata ----------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.head-bar { display: flex; align-items: center; gap: var(--s5); min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-plate {
  width: 46px; height: 46px; flex: none;
  background: #fff; border-radius: var(--radius);
  display: grid; place-items: center; padding: 3px;
  box-shadow: var(--lift-1);
}
.brand-plate img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--ui); line-height: 1.15; }
.brand-name b { display: block; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand-name span { display: block; font-size: var(--t-label); color: var(--on-navy-mid); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  font-family: var(--ui); font-weight: 600; font-size: 1rem;
  color: var(--on-navy); text-decoration: none; padding: var(--s2) 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue-light); }

/* --- Pulsanti ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-family: var(--ui); font-weight: 700; font-size: 1.0625rem;
  padding: var(--s3) var(--s5); min-height: 3rem;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--call { background: var(--blue); color: #fff; box-shadow: var(--lift-1); }
.btn--call:hover { background: var(--blue-press); color: #fff; transform: translateY(-1px); box-shadow: var(--lift-2); }
.btn--call:active { transform: translateY(0); }
.btn--ghost { border-color: currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--blue-wash); color: var(--navy); }
.btn--onnavy { border-color: var(--on-navy-mid); color: #fff; }
.btn--onnavy:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { font-size: 1.1875rem; min-height: 3.5rem; padding: var(--s4) var(--s6); }

.head-call { display: inline-flex; }
.head-call .num { font-variant-numeric: tabular-nums; }

/* --- Apertura ---------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.hero h1 { font-size: var(--t-display); font-weight: 700; letter-spacing: -0.035em; }
.hero-lead {
  font-size: var(--t-lead); line-height: 1.55; color: var(--ink-mid);
  margin: var(--s5) 0 var(--s6); max-width: 38ch;
}
.hero-lead strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.hero-note { font-family: var(--ui); font-size: var(--t-small); color: var(--ink-faint); margin: var(--s5) 0 0; max-width: 44ch; }

.slip {
  background: var(--ground); border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  box-shadow: var(--lift-2);
  overflow: hidden;
}
.slip-head {
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--ground-alt);
}
.slip-head p { margin: 0; font-family: var(--ui); font-size: var(--t-small); color: var(--ink-mid); max-width: none; }
.slip-head b { display: block; font-family: var(--ui); font-size: 1.0625rem; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.slip-steps { list-style: none; }
.slip-steps li {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}
.slip-steps li:last-child { border-bottom: 0; }
.slip-steps .n {
  font-family: var(--ui); font-weight: 700; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue-wash); color: var(--navy);
  align-self: start;
}
.slip-steps b { font-family: var(--ui); font-size: 1.0625rem; color: var(--navy); display: block; }
.slip-steps span { font-size: var(--t-small); color: var(--ink-mid); }
.slip-foot {
  padding: var(--s4) var(--s5); background: var(--navy); color: var(--on-navy);
  font-family: var(--ui); font-size: var(--t-small);
}
.slip-foot b { color: #fff; }

/* --- Sezioni ----------------------------------------------------------- */
.band { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.band--alt { background: var(--ground-alt); border-block: 1px solid var(--line); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy p { color: var(--on-navy-mid); }
.band--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.band h2 { font-size: var(--t-h2); font-weight: 700; }
.band > .wrap > h2 { margin-bottom: var(--s5); }
.band-intro { font-size: var(--t-lead); color: var(--ink-mid); max-width: 58ch; margin-bottom: var(--s7); }
.band--navy .band-intro { color: var(--on-navy-mid); }

/* --- Percorso della pratica -------------------------------------------- */
.percorso { position: relative; }
.percorso-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.rail { position: sticky; top: 7.5rem; }
.rail ol { list-style: none; position: relative; }
.rail ol::before {
  content: ''; position: absolute; left: 0.9375rem; top: .75rem; bottom: .75rem;
  width: 2px; background: var(--line);
}
.rail li { position: relative; padding: 0 0 var(--s5) 3rem; }
.rail li:last-child { padding-bottom: 0; }
.rail .dot {
  position: absolute; left: 0; top: .0625rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--ui); font-weight: 700; font-size: .9375rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.rail a {
  font-family: var(--ui); font-weight: 600; font-size: 1.0625rem;
  color: var(--ink-faint); text-decoration: none; line-height: 1.3;
  display: block; transition: color .35s var(--ease);
}
.rail li.is-active .dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-wash); }
.rail li.is-active a { color: var(--navy); }
.rail li.is-done .dot { border-color: var(--blue-light); color: var(--blue-text); }
.rail li.is-done a { color: var(--ink-mid); }

.stage { padding-bottom: clamp(3rem, 6vw, 5rem); scroll-margin-top: 7rem; }
.stage:last-child { padding-bottom: 0; }
.stage-num {
  font-family: var(--ui); font-weight: 700; font-size: var(--t-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--blue-text);
  display: block; margin-bottom: var(--s3);
  font-variant-numeric: tabular-nums;
}
.stage h3 { font-size: var(--t-h2); font-weight: 700; margin-bottom: var(--s4); }
.stage > p { font-size: var(--t-lead); color: var(--ink-mid); }

.settle { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .settle.pre { opacity: 0; transform: translateY(14px); }
  .settle { transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* --- Elenco pratiche --------------------------------------------------- */
.pratiche { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pratiche li { border-bottom: 1px solid var(--line); }
.pratiche a, .pratiche .row {
  display: grid; grid-template-columns: 2.5rem 1fr auto; gap: var(--s4);
  align-items: center; padding: var(--s4) var(--s2) var(--s4) 0;
  text-decoration: none; color: var(--ink);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.pratiche a:hover { background: var(--blue-wash); color: var(--ink); box-shadow: inset 3px 0 0 var(--blue); }
.pratiche .ico { width: 2rem; height: 2rem; color: var(--blue); }
.pratiche .nm { font-family: var(--ui); font-weight: 600; font-size: 1.0625rem; color: var(--navy); }
.pratiche .ds { display: block; font-family: var(--text); font-weight: 400; font-size: var(--t-small); color: var(--ink-mid); margin-top: 2px; max-width: 62ch; }
.pratiche .go { width: 1.25rem; height: 1.25rem; color: var(--line-strong); transition: transform .18s var(--ease), color .18s var(--ease); }
.pratiche a:hover .go { color: var(--blue); transform: translateX(3px); }

.gruppo { margin-bottom: var(--s7); }
.gruppo > h4 {
  font-family: var(--ui); font-size: var(--t-h3); font-weight: 700; color: var(--navy);
  margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 2px solid var(--navy);
}

/* --- Casi difficili ---------------------------------------------------- */
.inset {
  background: var(--navy); color: var(--on-navy);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  margin-top: var(--s6);
  box-shadow: var(--lift-3);
}
.inset-tit {
  font-family: var(--ui); font-size: var(--t-h3); font-weight: 700; color: #fff;
  margin-bottom: var(--s5); max-width: 30ch; letter-spacing: -.02em;
}
.casi { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.caso {
  padding: var(--s5); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
}
.caso h4 { font-family: var(--ui); font-size: 1.125rem; color: #fff; margin-bottom: var(--s3); }
.caso p { font-size: var(--t-small); color: var(--on-navy-mid); margin: 0; }

/* --- Prove: recensioni reali ------------------------------------------- */
.prove { display: grid; gap: var(--s5); }
.prova {
  border-left: 1px solid var(--line-strong);
  padding: var(--s2) 0 var(--s2) var(--s5);
}
.prova blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); font-style: italic; }
.prova figcaption { font-family: var(--ui); font-size: var(--t-small); color: var(--ink-faint); margin-top: var(--s3); }
.prova figcaption b { color: var(--navy); font-weight: 600; }
.band--navy .prova { border-left-color: rgba(255,255,255,.32); }
.band--navy .prova blockquote { color: #fff; }
.band--navy .prova figcaption { color: var(--on-navy-mid); }
.band--navy .prova figcaption b { color: #fff; }

.stelle { display: inline-flex; gap: 2px; color: var(--blue); vertical-align: -2px; }
.stelle svg { width: 1rem; height: 1rem; }
.band--navy .stelle { color: #FFC107; }

/* --- Chi siamo --------------------------------------------------------- */
.chi-grid { display: grid; grid-template-columns: 21rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.chi-grid p { font-size: var(--t-lead); }

.ritratto { position: relative; }
.ritratto img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--lift-2); display: block;
  aspect-ratio: 65 / 71; object-fit: cover;
}
.ritratto figcaption {
  font-family: var(--ui); font-size: var(--t-small); color: var(--ink-mid);
  margin-top: var(--s3); padding-left: var(--s3); border-left: 1px solid var(--line-strong);
}
.ritratto figcaption b { display: block; color: var(--navy); font-size: 1.0625rem; }

.insegna { margin-top: var(--s6); }
.insegna img {
  width: 100%; max-width: 44rem; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--lift-1);
}
.insegna figcaption { font-family: var(--ui); font-size: var(--t-small); color: var(--ink-mid); margin-top: var(--s3); }
.firma {
  border-top: 2px solid var(--navy); padding-top: var(--s4); margin-top: var(--s5);
  font-family: var(--ui);
}
.firma b { display: block; font-size: 1.125rem; color: var(--navy); }
.firma span { font-size: var(--t-small); color: var(--ink-mid); }

/* --- Aree servite ------------------------------------------------------ */
.aree { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.area h4 { font-family: var(--ui); font-size: 1rem; color: var(--blue-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s3); }
.area p { font-size: var(--t-small); color: var(--ink-mid); margin: 0; }

/* --- Chiusura / contatto ----------------------------------------------- */
.chiusura h2 { font-size: var(--t-h2); max-width: 20ch; }
.chiusura .hero-lead { max-width: 46ch; }
.chiusura-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.chiusura-grid > * { min-width: 0; }
.contatto-riga {
  display: grid; gap: var(--s5); align-content: start;
  border-top: 1px solid rgba(255,255,255,.22); padding-top: var(--s5);
}
.contatto-voce { font-family: var(--ui); }
.contatto-voce .k { display: block; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .08em; color: var(--on-navy-mid); margin-bottom: var(--s2); }
.contatto-voce .v { font-size: 1.125rem; color: #fff; font-weight: 600; }
.contatto-voce a.v { text-decoration: none; border-bottom: 2px solid var(--blue-light); }
.contatto-voce a.v:hover { color: #fff; border-bottom-color: #fff; }

/* --- Piede ------------------------------------------------------------- */
.site-foot { background: var(--navy-deep); color: var(--on-navy-mid); padding: var(--s8) 0 var(--s6); font-size: var(--t-small); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s7); margin-bottom: var(--s7); }
.site-foot h4 { font-family: var(--ui); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: var(--s4); }
.site-foot ul { list-style: none; display: grid; gap: var(--s3); }
.site-foot a { color: var(--on-navy-mid); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot p { max-width: 46ch; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; font-size: var(--t-label); }

/* --- Barra di chiamata mobile ------------------------------------------ */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ground); border-top: 1px solid var(--line);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 4px rgba(7,48,93,.08), 0 -12px 32px rgba(7,48,93,.10);
  display: none;
}
.call-bar .btn { width: 100%; justify-content: center; }

/* --- Pagina servizio --------------------------------------------------- */
.briciole { font-family: var(--ui); font-size: var(--t-small); padding: var(--s5) 0 0; color: var(--ink-faint); }
.briciole ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.briciole li::after { content: '›'; margin-left: var(--s2); color: var(--line-strong); }
.briciole li:last-child::after { content: ''; }
.briciole a { color: var(--ink-mid); text-decoration: none; }
.briciole a:hover { color: var(--blue); text-decoration: underline; }

.svc-head { padding: var(--s6) 0 var(--s7); }
.svc-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; max-width: 20ch; }
.svc-head .hero-lead { margin-bottom: var(--s5); }

.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.svc-body h2 { font-size: var(--t-h3); margin: var(--s7) 0 var(--s4); }
.svc-body h2:first-child { margin-top: 0; }
.svc-body ul { list-style: none; display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.svc-body ul li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s3); align-items: start; }
.svc-body ul li svg { width: 1.25rem; height: 1.25rem; color: var(--blue); margin-top: .3rem; }

.aside-card {
  position: sticky; top: 7.5rem;
  background: var(--ground-alt); border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  padding: var(--s5); box-shadow: var(--lift-1);
}
.aside-card h3 { font-family: var(--ui); font-size: 1.1875rem; margin-bottom: var(--s3); }
.aside-card p { font-size: var(--t-small); color: var(--ink-mid); }
.aside-card .btn { width: 100%; justify-content: center; margin-top: var(--s2); }
.aside-card dl { margin: var(--s5) 0 0; font-family: var(--ui); font-size: var(--t-small); display: grid; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.aside-card dt { color: var(--ink-faint); text-transform: uppercase; font-size: var(--t-label); letter-spacing: .06em; }
.aside-card dd { margin: 0; color: var(--navy); font-weight: 600; }

.altri { list-style: none; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.altri a { display: block; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--ground); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.altri a:hover { border-color: var(--blue); box-shadow: var(--lift-1); transform: translateY(-2px); }
.altri b { font-family: var(--ui); color: var(--navy); display: block; }
.altri span { font-size: var(--t-small); color: var(--ink-mid); }

/* --- Adattamento ------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .percorso-grid { grid-template-columns: 1fr; }
  .rail { position: static; margin-bottom: var(--s6); }
  .rail ol { display: flex; gap: var(--s5); overflow-x: auto; padding-bottom: var(--s3); scrollbar-width: thin; }
  .rail ol::before { display: none; }
  .rail li { padding: 0; flex: none; min-width: 11rem; }
  .rail .dot { position: static; margin-bottom: var(--s3); }
  .chi-grid { grid-template-columns: 1fr; }
  .chi-grid .ritratto { max-width: 18rem; }
  .chiusura-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}

@media (max-width: 720px) {
  :root { --t-body: 1.0625rem; }
  .nav { display: none; }
  .head-bar { min-height: 4rem; gap: var(--s3); }
  .head-call { padding: var(--s2) var(--s4); min-height: 2.75rem; font-size: 1rem; }
  .head-call .num { display: none; }
  .brand-name b { font-size: .9375rem; }
  .brand-name span { font-size: .6875rem; }
  .brand-plate { width: 40px; height: 40px; }
  body { padding-bottom: 5rem; }
  .call-bar { display: block; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .pratiche a, .pratiche .row { grid-template-columns: 1.75rem 1fr; padding-right: 0; }
  .pratiche .ico { width: 1.5rem; height: 1.5rem; }
  .pratiche .go { display: none; }
  .contatto-riga { gap: var(--s5); }
}

@media print {
  .site-head, .call-bar, .rail { display: none; }
  body { color: #000; }
}

/* --- Consenso cookie --------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--ground); color: var(--ink);
  border-top: 3px solid var(--blue);
  box-shadow: 0 -2px 6px rgba(7,48,93,.10), 0 -16px 48px rgba(7,48,93,.18);
  padding: var(--s5) 0 calc(var(--s5) + env(safe-area-inset-bottom));
}
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s7); align-items: center; }
.cookie-inner > * { min-width: 0; }
.cookie-bar h2 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.cookie-bar p { font-size: var(--t-small); color: var(--ink-mid); margin: 0; max-width: 72ch; }
.cookie-azioni { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cookie-azioni .btn { min-height: 2.75rem; font-size: 1rem; }

/* --- Pagine legali ----------------------------------------------------- */
.legale { padding: var(--s6) 0 var(--s8); }
.legale h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: 22ch; }
.legale .aggiornata { font-family: var(--ui); font-size: var(--t-small); color: var(--ink-faint); margin: var(--s4) 0 var(--s7); }
.legale h2 { font-size: var(--t-h3); margin: var(--s7) 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.legale h3 { font-family: var(--ui); font-size: 1.125rem; margin: var(--s5) 0 var(--s3); }
.legale p, .legale li { max-width: 72ch; }
.legale ul { list-style: none; display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.legale ul li { padding-left: var(--s5); position: relative; }
.legale ul li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--line-strong); }
.legale dl { display: grid; gap: var(--s4); margin: 0 0 var(--s5); }
.legale dt { font-family: var(--ui); font-weight: 700; color: var(--navy); }
.legale dd { margin: var(--s1) 0 0; color: var(--ink-mid); }

/* --- Credito di sviluppo ----------------------------------------------- */
.foot-legal a { color: var(--on-navy-mid); text-decoration: underline; text-underline-offset: .18em; }
.foot-legal a:hover { color: #fff; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: var(--s4); }

@media (max-width: 720px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-azioni .btn { flex: 1 1 auto; justify-content: center; }
  body.consenso-aperto .call-bar { display: none; }
}

/* --- Hero con foto della sede ------------------------------------------ */
.hero-foto {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 78vh, 46rem);
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.hero-sfondo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 22% 42%;
}
.hero-foto::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4,26,56,.95) 0%, rgba(4,26,56,.92) 45%, rgba(4,26,56,.78) 72%, rgba(4,26,56,.62) 100%),
    linear-gradient(to top, rgba(4,26,56,.80) 0%, rgba(4,26,56,.15) 55%);
}
.hero-foto-inner { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.hero-foto h1 {
  color: #fff; font-size: var(--t-display); font-weight: 700;
  letter-spacing: -.035em; max-width: 15ch;
  text-shadow: 0 2px 24px rgba(4,26,56,.5);
}
.hero-foto .hero-lead { color: #E4EDF8; max-width: 40ch; }
.hero-foto .hero-lead strong { color: #fff; font-weight: 500; }
.hero-foto .hero-note { color: var(--on-navy-mid); }
.hero-foto .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-foto .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* --- Valutazione Google ------------------------------------------------ */
.rating {
  display: inline-flex; align-items: center; gap: var(--s3);
  margin-top: var(--s6); padding: var(--s3) var(--s4);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  font-family: var(--ui); text-decoration: none; color: #fff;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.rating:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); color: #fff; }
.rating .voto { font-size: 1.375rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rating .stelle { color: #FFC107; gap: 1px; }
.rating .stelle svg { width: .95rem; height: .95rem; }
.rating .dett { font-size: var(--t-small); color: var(--on-navy-mid); line-height: 1.3; }
.rating .dett b { display: block; color: #fff; font-weight: 600; }

.rating--chiaro {
  background: var(--ground); border-color: var(--line);
  color: var(--ink); box-shadow: var(--lift-1);
}
.rating--chiaro:hover { background: var(--ground-alt); border-color: var(--line-strong); color: var(--ink); }
.rating--chiaro .voto { color: var(--navy); }
.rating--chiaro .dett { color: var(--ink-mid); }
.rating--chiaro .dett b { color: var(--navy); }

/* --- Orari di apertura -------------------------------------------------- */
.orari { display: grid; gap: 0; margin: 0; font-family: var(--ui); }
.orari div {
  display: flex; justify-content: space-between; gap: var(--s5);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.orari div:last-child { border-bottom: 0; }
.orari dt { color: var(--ink-mid); }
.orari dd { margin: 0; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.orari .chiuso dd { color: var(--ink-faint); font-weight: 400; }
.band--navy .orari div { border-bottom-color: rgba(255,255,255,.18); }
.band--navy .orari dt { color: var(--on-navy-mid); }
.band--navy .orari dd { color: #fff; }
.band--navy .orari .chiuso dd { color: var(--on-navy-mid); font-weight: 400; }

@media (max-width: 720px) {
  .hero-foto { min-height: clamp(26rem, 70vh, 34rem); }
  .hero-sfondo { object-position: 30% 45%; }
  .hero-foto::before {
    background:
      linear-gradient(180deg, rgba(4,26,56,.86) 0%, rgba(4,26,56,.80) 50%, rgba(4,26,56,.92) 100%);
  }
  .rating { width: 100%; }
}
