/* ==========================================================================
   PANACEA MEDICAL GROUP — Design System
   Nessuna dipendenza esterna (GDPR: nessun font/CDN di terze parti).
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  /* Brand (dal logo) */
  --green:        #46b04a;
  --green-600:    #379140;
  --green-700:    #2b7434;
  --red:          #e4322b;
  --red-600:      #c9241e;

  /* Istituzionale */
  --ink:          #0a1a2b;
  --ink-2:        #10273e;
  --ink-3:        #1a3d5c;
  --blue:         #1e7fc2;
  --blue-600:     #1667a1;

  /* Neutri */
  --white:        #ffffff;
  --paper:        #f7faf8;
  --paper-2:      #eef4f1;
  --line:         #dde6e1;
  --text:         #17242f;
  --muted:        #5c6b78;

  /* Effetti */
  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    28px;
  --shadow-sm:    0 2px 8px rgba(10,26,43,.05);
  --shadow:       0 12px 32px -12px rgba(10,26,43,.16);
  --shadow-lg:    0 32px 64px -24px rgba(10,26,43,.28);
  --ring:         0 0 0 3px rgba(70,176,74,.35);

  /* Layout */
  --wrap:         1240px;
  --gutter:       clamp(1.1rem, 4vw, 3rem);
  --header-h:     84px;

  --ease:         cubic-bezier(.22,.68,.32,1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--green); color: #fff; }

/* ---------- 3. Tipografia ---------- */
h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 1.1rem + 2.9vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); letter-spacing: -.015em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p  { text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, .98rem + .45vw, 1.28rem);
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--red));
  border-radius: 2px;
}
.eyebrow--light { color: #9fe3a6; }
.eyebrow--light::before { background: linear-gradient(90deg, #9fe3a6, #ff8b85); }

.grad-text {
  background: linear-gradient(100deg, var(--green) 0%, var(--blue) 55%, var(--red) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}
.section { position: relative; padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.section--paper {
  background: var(--paper);
  /* bordi netti in alto e in basso: staccano il blocco senza pesantezza */
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}
.section--dark { background: var(--ink); color: #cfe0d6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark, .showcase { box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }

/* ---- Separatore tra le sezioni ----
   Un filo che sfuma ai lati con un piccolo rombo nei colori del marchio:
   segna il passaggio senza tagliare la pagina con una riga netta. */
.section:not(.showcase):not(.section--dark)::after {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100% - var(--gutter) * 2, var(--wrap));
  height: 1px;
  background: linear-gradient(90deg,
              transparent, var(--line) 14%, var(--line) 86%, transparent);
  pointer-events: none;
}
.section:not(.showcase):not(.section--dark)::before {
  content: "";
  position: absolute; top: -5px; left: 50%; z-index: 1;
  width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 0 7px var(--white);
  pointer-events: none;
}
.section--paper::before { box-shadow: 0 0 0 7px var(--paper); }

/* Niente separatore dove lo stacco c'è già: dopo un hero, dopo un blocco
   scuro e subito sotto la barra dei numeri (che è dentro un .wrap).
   I selettori ripetono i :not() della regola sopra, altrimenti perderebbero
   il confronto di specificità e l'esclusione non avrebbe effetto. */
.hero + .section:not(.showcase):not(.section--dark)::before,
.hero + .section:not(.showcase):not(.section--dark)::after,
.page-hero + .section:not(.showcase):not(.section--dark)::before,
.page-hero + .section:not(.showcase):not(.section--dark)::after,
.showcase + .section:not(.showcase):not(.section--dark)::before,
.showcase + .section:not(.showcase):not(.section--dark)::after,
.section--dark + .section:not(.showcase):not(.section--dark)::before,
.section--dark + .section:not(.showcase):not(.section--dark)::after,
.wrap + .section:not(.showcase):not(.section--dark)::before,
.wrap + .section:not(.showcase):not(.section--dark)::after { content: none; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }

/* ---------- 5. Bottoni ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
  box-shadow: 0 8px 20px -8px rgba(70,176,74,.65);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(70,176,74,.6); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn--lg { padding: 1.15rem 2.2rem; font-size: 1.03rem; }
.btn--sm { padding: .68rem 1.25rem; font-size: .88rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--green-700); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.btn--outline-light:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); }

.btn--red { --btn-bg: var(--red); box-shadow: 0 8px 20px -8px rgba(228,50,43,.6); }
.btn--red:hover { box-shadow: 0 16px 30px -10px rgba(228,50,43,.55); }

.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .93rem; color: var(--green-700);
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. Header ---------- */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.3rem;
  border-radius: 0 0 10px 10px; font-weight: 700;
  transition: top .25s;
}
.skip-link:focus { top: 0; }

/* In cima alla pagina l'header è trasparente sopra l'hero scuro: solo una
   velatura che garantisce la leggibilità. Allo scroll diventa una barra
   bianca compatta e il logo passa dalla versione chiara a quella scura. */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(4,16,28,.38), rgba(4,16,28,0));
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), background .4s var(--ease),
              border-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-stuck {
  --header-h: 68px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(10,26,43,.7);
}
.header__inner {
  width: min(100% - var(--gutter) * 2, 1340px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}

/* Logo: due versioni sovrapposte in dissolvenza */
.brand {
  position: relative;
  display: flex; align-items: center;
  margin-right: auto;
  line-height: 0;
}
.brand__logo {
  height: clamp(42px, 4.8vw, 56px);
  width: auto;
  transition: height .35s var(--ease), opacity .35s var(--ease);
}
.brand__logo--dark {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.header.is-stuck .brand__logo { height: 42px; }
.header.is-stuck .brand__logo--light { opacity: 0; }
.header.is-stuck .brand__logo--dark  { opacity: 1; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative;
  padding: .55rem .72rem;
  font-size: .92rem; font-weight: 600;
  color: rgba(255,255,255,.92);
  border-radius: 10px;
  white-space: nowrap;          /* le voci non devono mai spezzarsi su due righe */
  transition: color .3s, background .2s;
}
.nav a::after {
  content: "";
  position: absolute; left: .72rem; right: .72rem; bottom: .3rem;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }

.header.is-stuck .nav a { color: var(--ink); }
.header.is-stuck .nav a:hover,
.header.is-stuck .nav a[aria-current="page"] { color: var(--green-700); }

.header__cta { display: flex; align-items: center; gap: .6rem; }

/* Il bottone secondario si adatta al fondo chiaro o scuro */
.header .btn--ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.header .btn--ghost:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1.5px #fff;
}
.header.is-stuck .btn--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.header.is-stuck .btn--ghost:hover {
  color: var(--green-700);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  position: relative;
  transition: background .3s;
}
.header.is-stuck .burger { background: var(--paper-2); }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .34s var(--ease), opacity .2s, background .3s;
}
.header.is-stuck .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .3rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  color: #fff; font-size: 1.5rem; font-weight: 700;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  opacity: 0; transform: translateY(18px);
}
.mobile-nav.is-open a { animation: navIn .5s var(--ease) forwards; }
.mobile-nav.is-open a:nth-child(1) { animation-delay: .1s; }
.mobile-nav.is-open a:nth-child(2) { animation-delay: .16s; }
.mobile-nav.is-open a:nth-child(3) { animation-delay: .22s; }
.mobile-nav.is-open a:nth-child(4) { animation-delay: .28s; }
.mobile-nav.is-open a:nth-child(5) { animation-delay: .34s; }
.mobile-nav.is-open a:nth-child(6) { animation-delay: .40s; }
.mobile-nav.is-open a:nth-child(7) { animation-delay: .46s; }
@keyframes navIn { to { opacity: 1; transform: none; } }
.mobile-nav__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .8rem; }
.mobile-nav__foot .btn { width: 100%; }

body.is-locked { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(165deg, #06182b 0%, #0d2b45 45%, #123a52 100%);
  color: #d7e6dd;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; background: #46b04a; top: -14%; right: -8%; animation: drift1 22s ease-in-out infinite; }
.blob--2 { width: 38vw; height: 38vw; background: #1e7fc2; bottom: -18%; left: -6%; animation: drift2 27s ease-in-out infinite; }
.blob--3 { width: 24vw; height: 24vw; background: #e4322b; opacity: .28; top: 42%; left: 46%; animation: drift3 19s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate3d(-7%, 9%, 0) scale(1.14); } }
@keyframes drift2 { 50% { transform: translate3d(9%, -8%, 0) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate3d(-11%, -12%, 0) scale(.86); } }

/* trama di croci mediche */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 30%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero p.lead { color: #b8cfc3; margin-bottom: 2.2rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: #a9c3b6; }
.trust-item svg { flex: 0 0 auto; color: var(--green); }

/* card visuale hero */
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
.hero__card:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) scale(1.015); }
.hero__card img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.hero__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,24,43,.72), transparent 55%);
}
.hero__badge {
  position: absolute; z-index: 2;
  left: 1.4rem; bottom: 1.4rem; right: 1.4rem;
  padding: 1.05rem 1.3rem;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: #fff;
}
.hero__badge strong { display: block; font-size: 1.02rem; }
.hero__badge span { font-size: .84rem; color: #b8cfc3; }

.hero__float {
  position: absolute;
  padding: .85rem 1.15rem;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem;
  font-size: .84rem; font-weight: 700; color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.hero__float--a { top: 8%; left: -6%; }
.hero__float--b { bottom: 22%; right: -5%; animation-delay: -3s; }
.hero__float i {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(70,176,74,.14); color: var(--green-700);
  font-style: normal;
}
@keyframes float { 50% { transform: translateY(-13px); } }

/* ---------- 8. Barra numeri ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: -3.5rem;
  position: relative; z-index: 5;
}
.stat { background: #fff; padding: 1.9rem 1.3rem; text-align: center; }
.stat b {
  display: block;
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.stat span { font-size: .84rem; color: var(--muted); font-weight: 600; }

/* ---------- 9. Card generiche ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--red));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(70,176,74,.14), rgba(30,127,194,.12));
  color: var(--green-700);
  margin-bottom: 1.2rem;
  transition: transform .4s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-5deg); }

/* ---------- 10. Sala convegni: showcase in home ---------- */
.showcase {
  position: relative;
  background: linear-gradient(150deg, #071d2f, #0e3350 60%, #14455c);
  color: #cfe0d6;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(70,176,74,.3), transparent 62%);
  top: -25%; right: -20%;
  animation: drift1 25s ease-in-out infinite;
}
.showcase__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.showcase h2 { color: #fff; margin-bottom: 1.2rem; }
.showcase p { color: #b0c8bc; }

.showcase__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0 2.4rem; }
.spec-pill {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  font-size: .89rem; font-weight: 600; color: #e4f0e9;
  transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.spec-pill:hover { background: rgba(70,176,74,.16); border-color: rgba(70,176,74,.5); transform: translateX(4px); }
.spec-pill svg { flex: 0 0 auto; color: #7fd486; }

/* mosaico foto */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  aspect-ratio: 1/.92;
}
.mosaic figure {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.65);
  cursor: zoom-in;
}
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .5s;
  filter: saturate(1.02);
}
.mosaic figure:hover img { transform: scale(1.09); }
.mosaic figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,24,43,.5), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.mosaic figure:hover::after { opacity: 1; }

/* ---------- 11. Specializzazioni ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem;
  align-items: center;
  margin-bottom: 2.4rem;
}
.search-box {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search-box svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: .9rem 1rem .9rem 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.search-box input:focus { outline: none; border-color: var(--green); box-shadow: var(--ring); }

.chip {
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: .87rem; font-weight: 650;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.chip:hover { background: #e2ece6; color: var(--ink); }
.chip.is-active {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(10,26,43,.5);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: .9rem;
}
.spec-item {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 650; font-size: .95rem;
  color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s;
}
.spec-item:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.spec-item i {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(70,176,74,.15), rgba(30,127,194,.1));
  color: var(--green-700);
  font-style: normal; font-weight: 800; font-size: .95rem;
}
.spec-item.is-hidden { display: none; }

.no-results {
  padding: 2.5rem; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- 12. Specialisti ---------- */
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .4s var(--ease), box-shadow .4s;
  height: 100%;
  display: flex; flex-direction: column;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doc-card__avatar {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green), var(--blue));
  color: #fff; font-weight: 800; font-size: 1.25rem;
  margin-bottom: 1.1rem;
  letter-spacing: -.02em;
}
.doc-card__role {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--green-700);
  margin-bottom: .35rem;
}
.doc-card h3 { font-size: 1.14rem; margin-bottom: .7rem; }
.doc-card p { font-size: .92rem; color: var(--muted); }
.doc-card ul { margin-top: .9rem; display: grid; gap: .4rem; }
.doc-card li {
  font-size: .87rem; color: var(--muted);
  padding-left: 1.2rem; position: relative;
}
.doc-card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

/* ---------- 13. Feature / perché noi ---------- */
.feature {
  display: flex; gap: 1.1rem;
  padding: 1.4rem 0;
}
.feature__ico {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(70,176,74,.12); color: var(--green-700);
}
.section--dark .feature__ico { background: rgba(70,176,74,.18); color: #8ada91; }
.feature h4 { margin-bottom: .3rem; }
.section--dark .feature h4 { color: #fff; }
.feature p { font-size: .92rem; color: var(--muted); }
.section--dark .feature p { color: #a3bcae; }

/* ---------- 14. Galleria + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.gallery figure {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem 1.1rem .95rem;
  background: linear-gradient(to top, rgba(6,24,43,.86), transparent);
  color: #fff; font-size: .87rem; font-weight: 600;
  transform: translateY(6px); opacity: 0;
  transition: all .4s var(--ease);
}
.gallery figure:hover figcaption { transform: none; opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,14,24,.94);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px #000;
  transform: scale(.94); transition: transform .4s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .25s, transform .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); transform: scale(1.08); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; margin-top: -25px; }
.lightbox__nav--next { right: 1.4rem; top: 50%; margin-top: -25px; }
.lightbox__count { position: absolute; bottom: 1.6rem; color: #9fb3a8; font-size: .87rem; font-weight: 600; }

/* ---------- 15. Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .87rem; font-weight: 700;
  margin-bottom: .45rem;
  color: var(--ink);
}
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .88rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--green);
  box-shadow: var(--ring);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1.1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.consent {
  display: flex; gap: .8rem;
  padding: 1.05rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 1.3rem;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 21px; height: 21px;
  margin-top: .12rem;
  accent-color: var(--green);
  cursor: pointer;
}
.consent label { font-size: .855rem; line-height: 1.55; color: var(--muted); font-weight: 500; margin: 0; }
.consent a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

.form-msg {
  padding: 1rem 1.2rem; border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  margin-bottom: 1.2rem;
  display: none;
}
.form-msg.is-ok { display: block; background: rgba(70,176,74,.1); color: var(--green-700); border: 1px solid rgba(70,176,74,.3); }
.form-msg.is-err { display: block; background: rgba(228,50,43,.08); color: var(--red-600); border: 1px solid rgba(228,50,43,.28); }

/* ---------- 16. Info contatti ---------- */
.info-item {
  display: flex; gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 0; }
.info-item__ico {
  flex: 0 0 auto; width: 44px; height: 44px;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(30,127,194,.1); color: var(--blue-600);
}
.info-item h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.info-item p, .info-item a { font-size: 1.02rem; font-weight: 650; color: var(--ink); }
.info-item a:hover { color: var(--green-700); }

.map-consent {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  display: grid; place-items: center;
  text-align: center; padding: 2rem;
  border: 1px solid var(--line);
}
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 17. CTA finale ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--green-700), var(--green) 45%, var(--blue));
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.22), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.14), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .9rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- 18. Page hero (pagine interne) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.8rem, 6vw, 4.5rem)) 0 clamp(2.8rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, #06182b, #103049 70%, #14455c);
  color: #c5d8cd;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(70,176,74,.32), transparent 60%);
  top: -30%; right: -12%;
  filter: blur(50px);
  animation: drift1 24s ease-in-out infinite;
}
.page-hero__inner { position: relative; max-width: 800px; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: #a9c3b6; font-size: clamp(1rem, .95rem + .35vw, 1.18rem); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .84rem; color: #7e9c8e; margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------- 19. Accordion FAQ ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0;
  font-size: 1.04rem; font-weight: 700; color: var(--ink);
  transition: color .25s;
}
.acc__btn:hover { color: var(--green-700); }
.acc__btn i {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  position: relative;
  transition: background .3s, transform .35s var(--ease);
}
.acc__btn i::before, .acc__btn i::after {
  content: ""; position: absolute;
  background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease), background .3s;
}
.acc__btn i::before { width: 12px; height: 2px; }
.acc__btn i::after  { width: 2px; height: 12px; }
.acc__btn[aria-expanded="true"] i { background: var(--green); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] i::before,
.acc__btn[aria-expanded="true"] i::after { background: #fff; }
.acc__btn[aria-expanded="true"] i::after { transform: scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.4rem; color: var(--muted); font-size: .96rem; }

/* ---------- 20. Footer ---------- */
.footer {
  background: var(--ink);
  color: #8fa89b;
  padding: clamp(3.2rem, 6vw, 5rem) 0 2rem;
  font-size: .92rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer__brand img { height: 46px; margin-bottom: 1.1rem; }
.footer__brand p { font-size: .89rem; line-height: 1.7; max-width: 34ch; }
.footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer li { margin-bottom: .55rem; }
.footer a { transition: color .2s, padding-left .25s; }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer__bottom {
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: #64796e;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  transition: background .25s, transform .25s;
}
.footer__socials a:hover { background: var(--green); color: #fff; transform: translateY(-3px); padding: 0; }

/* ---------- 21. Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 300;
  left: clamp(.8rem, 2vw, 1.5rem);
  bottom: clamp(.8rem, 2vw, 1.5rem);
  width: min(100% - 1.6rem, 430px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  transform: translateY(140%);
  transition: transform .55s var(--ease);
}
.cookie.is-open { transform: none; }
.cookie h4 { margin-bottom: .5rem; font-size: 1.05rem; }
.cookie p { font-size: .87rem; color: var(--muted); margin-bottom: 1.1rem; }
.cookie p a { color: var(--green-700); font-weight: 700; text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__prefs { margin-bottom: 1.1rem; display: none; }
.cookie.show-prefs .cookie__prefs { display: grid; gap: .7rem; }
#cookie-save { display: none; }
.cookie.show-prefs #cookie-save { display: inline-flex; }
.cookie.show-prefs #cookie-prefs { display: none; }
.cookie-row {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .8rem .9rem; background: var(--paper); border-radius: 11px;
}
.cookie-row input { margin-top: .15rem; width: 19px; height: 19px; accent-color: var(--green); }
.cookie-row strong { display: block; font-size: .87rem; }
.cookie-row span { font-size: .79rem; color: var(--muted); }
.cookie__link { font-size: .82rem; color: var(--muted); text-decoration: underline; }

/* ---------- 22. Back to top ---------- */
.to-top {
  position: fixed; right: clamp(.9rem, 2vw, 1.6rem); bottom: clamp(.9rem, 2vw, 1.6rem);
  z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px) scale(.85); pointer-events: none;
  transition: all .4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); transform: translateY(-4px); }

/* barra progresso lettura */
.progress {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--red));
  transform: scaleX(0); transform-origin: left;
}

/* ---------- 23. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.94); }

/* ---------- 24. Area riservata ---------- */
.auth-page {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 2rem var(--gutter);
  background: linear-gradient(160deg, #06182b, #0e2f49 60%, #14455c);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: ""; position: absolute;
  width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,176,74,.28), transparent 60%);
  top: -30%; left: -20%; filter: blur(60px);
  animation: drift1 22s ease-in-out infinite;
}
.auth-card {
  position: relative;
  width: min(100%, 445px);
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.auth-card img { height: 46px; margin: 0 auto 1.5rem; }
.auth-card h1 { font-size: 1.55rem; text-align: center; margin-bottom: .4rem; }
.auth-card > p { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }
.auth-back { display: block; text-align: center; margin-top: 1.4rem; font-size: .87rem; color: var(--muted); }
.auth-back:hover { color: var(--green-700); }

.alert {
  padding: .9rem 1.1rem; border-radius: 11px;
  font-size: .89rem; font-weight: 600; margin-bottom: 1.2rem;
}
.alert--err { background: rgba(228,50,43,.08); color: var(--red-600); border: 1px solid rgba(228,50,43,.25); }
.alert--ok  { background: rgba(70,176,74,.1); color: var(--green-700); border: 1px solid rgba(70,176,74,.28); }
.alert--warn{ background: rgba(230,160,20,.1); color: #96690c; border: 1px solid rgba(230,160,20,.3); }

.dash-header {
  background: var(--ink); color: #fff;
  padding: 1rem 0;
}
.dash-header__inner { display: flex; align-items: center; gap: 1rem; }
/* Usa già la versione chiara del logo: nessun filtro, così lo swoosh
   conserva il rosso e il verde del marchio. */
.dash-header img { height: 40px; width: auto; margin-right: auto; }
.dash-user { font-size: .88rem; color: #9fb8ab; }
.dash-user strong { color: #fff; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; }
.dash-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.dash-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dash-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.dash-card p { font-size: .9rem; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data th, table.data td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--paper); }

/* ---------- 25. Contenuti legali ---------- */
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); margin: 2.6rem 0 .9rem; }
.prose h3 { font-size: 1.12rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: .9rem; font-size: .97rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--green-700); text-decoration: underline; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.prose th, .prose td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--paper); }

/* ---------- 25b. Banner informativo di sito ---------- */
.site-banner {
  position: relative;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  padding: .8rem clamp(1rem, 4vw, 2rem);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: #fff;
  background: var(--blue-600);
  animation: bannerDrop .5s var(--ease) both;
}
@keyframes bannerDrop { from { transform: translateY(-100%); opacity: 0; } }

.site-banner--attenzione { background: #b4740a; }
.site-banner--urgente    { background: var(--red-600); }

.site-banner__ico { flex: 0 0 auto; opacity: .9; }
.site-banner a.site-banner__cta {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem .9rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: .84rem; font-weight: 700;
  white-space: nowrap;
  transition: background .25s, transform .25s var(--ease);
}
.site-banner a.site-banner__cta:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }

.site-banner__close {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; opacity: .75;
  transition: opacity .2s, background .2s;
}
.site-banner__close:hover { opacity: 1; background: rgba(255,255,255,.18); }

/* Quando il banner è presente, header e ancore scendono di conseguenza */
body.has-banner .header { top: var(--banner-h, 0px); }
body.has-banner { --scroll-pad: calc(var(--header-h) + var(--banner-h, 0px) + 16px); }
body.has-banner html { scroll-padding-top: var(--scroll-pad); }

/* ---------- 25c. Icona pagina manutenzione ---------- */
.maint-icon {
  width: 62px; height: 62px;
  margin: 0 auto 1.4rem;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(70,176,74,.16), rgba(30,127,194,.14));
  color: var(--green-700);
  animation: maintPulse 2.8s ease-in-out infinite;
}
@keyframes maintPulse {
  50% { transform: scale(1.06) rotate(-4deg); }
}

/* Avviso "prenotazioni sospese" nei moduli */
.form-locked {
  padding: 1.1rem 1.3rem;
  border-radius: 13px;
  background: rgba(230,160,20,.1);
  border: 1px solid rgba(230,160,20,.32);
  color: #8a5f0a;
  font-size: .9rem; font-weight: 600;
  margin-bottom: 1.3rem;
}

/* ---------- 26. Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.badge {
  display: inline-block;
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700;
  background: rgba(70,176,74,.13); color: var(--green-700);
}
.divider { height: 1px; background: var(--line); margin: 2.5rem 0; }

/* ---------- 27. Responsive ---------- */
/* Sotto i 1180px il menu e i due bottoni non convivono più: il primo
   a sparire è "Area Riservata", che resta nel menu mobile e nel footer. */
@media (max-width: 1180px) {
  .header__inner { gap: 1rem; }
  .header__cta .btn--ghost { display: none; }
}
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta .btn--ghost { display: none; }
  .hero__inner, .showcase__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; margin-inline: auto; }
  .hero__card { transform: none; }
  .hero__float { display: none; }
  .stats { margin-top: -2rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  /* Su due colonne il numero dispari lascerebbe una casella vuota:
     l'ultimo riquadro occupa l'intera riga. */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .showcase__specs { grid-template-columns: 1fr; }
  .mosaic { aspect-ratio: auto; grid-template-rows: auto; }
  .mosaic figure:first-child { grid-row: span 1; aspect-ratio: 4/3; }
  .mosaic figure { aspect-ratio: 4/3; }
  .footer__top { grid-template-columns: 1fr; }
  .cookie { width: calc(100% - 1.6rem); }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: .6rem; }
  .lightbox__nav--next { right: .6rem; }
}

/* ---------- 28. Accessibilità: motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__card { transform: none; }
}

/* ---------- 29. Stampa ---------- */
@media print {
  .header, .mobile-nav, .cookie, .to-top, .progress, .footer__socials, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .page-hero, .showcase, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1 { color: #000 !important; }
}
