/* =====================================================================
   CLINICA EQUINA ANDROMEDA — Restyling one-page
   Tema: Blu / Azzurro scientifico
   Mobile-first, bilingue IT/EN
   ===================================================================== */

/* ----------  RESET  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ----------  DESIGN TOKENS  ---------- */
:root {
  /* Blu scientifico */
  --navy-950: #05132b;
  --navy-900: #071a35;
  --navy-800: #0a2447;
  --navy-700: #0e3160;
  --blue-600: #0b5c9e;
  --blue-500: #1273c9;
  --azure-400: #2ba9e0;
  --cyan-300: #45d0ef;
  --cyan-200: #8fe6fb;

  --ink: #0b1b33;
  --paper: #f4f9ff;
  --paper-2: #e7f2fb;
  --white: #ffffff;

  --emergency: #c1272d;
  --emergency-dark: #8f161c;

  --text-light: #e8f3fb;
  --text-muted: #a9c4dc;
  --text-dark: #1a2b45;
  --text-dark-muted: #52708f;

  --grid-line: rgba(69, 208, 239, 0.10);
  --card-border: rgba(69, 208, 239, 0.18);
  --glass: rgba(11, 36, 71, 0.55);

  /* Font titoli — cambia solo questa riga per provare le alternative:
     "Sora" · "Bricolage Grotesque" · "Fraunces" · "Space Grotesk" */
  --font-head: "Sora", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -20px rgba(3, 20, 45, 0.55);
  --shadow-blue: 0 20px 55px -18px rgba(18, 115, 201, 0.55);

  --maxw: 1200px;
  --header-h: 68px;
  --bar-h: 42px;
}

/* ----------  BASE  ---------- */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }

.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--azure-400), var(--cyan-300)); }
.section--dark .kicker { color: var(--cyan-300); }

.section-title { font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--ink); }
.section--dark .section-title { color: var(--white); }
.section-lead { max-width: 640px; margin-top: 16px; color: var(--text-dark-muted); font-size: 1.05rem; }
.section--dark .section-lead { color: var(--text-muted); }

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: linear-gradient(135deg, var(--blue-500), var(--azure-400)); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(18,115,201,.7); }

.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(143,230,251,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn--emergency {
  background: linear-gradient(135deg, var(--emergency), var(--emergency-dark));
  color: #fff; box-shadow: 0 16px 40px -14px rgba(193,39,45,.7);
}
.btn--emergency:hover { transform: translateY(-2px); box-shadow: 0 22px 55px -12px rgba(193,39,45,.85); }
.btn--emergency .pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.8); animation: pulse 1.8s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(193,39,45,.7); }
  70% { box-shadow: 0 0 0 9px rgba(193,39,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(193,39,45,0); }
}

/* =====================================================================
   EMERGENCY BAR (sticky, sempre visibile)
   ===================================================================== */
.emg-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--bar-h);
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800) 55%, var(--navy-950));
  border-bottom: 1px solid rgba(193,39,45,.4);
  box-shadow: 0 4px 18px -10px rgba(0,0,0,.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.emg-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.emg-bar__label { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; color: var(--text-light); }
.emg-bar__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emergency); box-shadow: 0 0 0 0 rgba(193,39,45,.7); animation: pulse-red 1.8s infinite; }
.emg-bar__phone { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--emergency), var(--emergency-dark)); color: #fff; box-shadow: 0 8px 20px -8px rgba(193,39,45,.7); }
.emg-bar__phone svg { width: 15px; height: 15px; }
@media (max-width: 560px){ .emg-bar__label span.txt { display:none; } }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 190;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header.scrolled { background: rgba(7, 26, 53, 0.86); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -12px rgba(0,0,0,.5); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 2px 10px rgba(69,208,239,.4)); }
.brand__name { font-family: var(--font-head); font-weight: 600; color: #fff; line-height: 1.05; font-size: 0.98rem; }
.brand__name small { display: block; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan-300); font-weight: 500; }

.nav { display: none; align-items: center; gap: 28px; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-light); position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--cyan-300); transition: width .25s; }
.nav a:hover { color: #fff; } .nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang { display: inline-flex; background: rgba(255,255,255,.1); border: 1px solid rgba(143,230,251,.3); border-radius: 999px; padding: 3px; }
.lang button { font-family: var(--font-head); font-weight: 600; font-size: 0.76rem; padding: 5px 11px; border-radius: 999px; color: var(--text-light); transition: all .2s; }
.lang button.active { background: linear-gradient(135deg, var(--blue-500), var(--azure-400)); color: #fff; }

.header .btn--emergency { display: none; padding: 10px 18px; font-size: 0.85rem; }

/* Hamburger */
.burger { display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.1); }
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 180;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 100px 32px 40px;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(143,230,251,.12); }
.mobile-menu a small { display:block; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color: var(--cyan-300); font-weight:500; }
.mobile-menu .btn--emergency { margin-top: 24px; }

/* =====================================================================
   HERO (video background)
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--bar-h) + var(--header-h));
  padding-bottom: clamp(48px, 10vh, 110px);
  overflow: hidden;
  background: var(--navy-950);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
               filter: brightness(1.18) contrast(1.02) saturate(1.06); }
.hero__video.desktop { display: none; }
.hero__video.mobile { display: block; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(5,19,43,.04), rgba(5,19,43,.22) 55%, rgba(5,19,43,.70) 100%),
    linear-gradient(180deg, rgba(5,19,43,.20) 0%, rgba(5,19,43,.03) 38%, rgba(5,19,43,.52) 78%, rgba(5,19,43,.80) 100%);
}
/* (rimossa la griglia a quadretti sopra il video) */
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(69,208,239,.12); border: 1px solid rgba(69,208,239,.35);
  color: var(--cyan-200); font-family: var(--font-head); font-weight: 500;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-300); animation: pulse 2s infinite; }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 8vw, 5rem); font-weight: 700;
  max-width: 15ch; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(3,14,32,.55), 0 1px 3px rgba(3,14,32,.35);
}
.hero h1 .grad { background: linear-gradient(120deg, var(--cyan-300), var(--azure-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--text-light); font-size: clamp(1rem, 2.6vw, 1.25rem); max-width: 46ch; margin-top: 20px;
             text-shadow: 0 2px 14px rgba(3,14,32,.6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__cta .btn { flex: 1 1 auto; min-width: 200px; }

/* Stat rail sotto hero */
.hero__stats {
  position: relative; z-index: 2; margin-top: clamp(36px, 6vw, 56px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(143,230,251,.18); border: 1px solid rgba(143,230,251,.18);
  border-radius: var(--radius); overflow: hidden;
}
.hero__stats .stat { background: rgba(7,26,53,.55); backdrop-filter: blur(6px); padding: 20px 18px; }
.hero__stats .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--cyan-300); }
.hero__stats .lbl { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.trust { background: var(--navy-900); border-top: 1px solid rgba(143,230,251,.1); }
.section--dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.trust__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(69,208,239,.12); border: 1px solid var(--card-border); color: var(--cyan-300); }
.trust__item .ic svg { width: 22px; height: 22px; }
.trust__item h4 { color: #fff; font-size: 1rem; }
.trust__item p { color: var(--text-muted); font-size: .88rem; margin-top: 2px; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about__media .tag {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--card-border); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.about__media .tag small { display:block; color: var(--cyan-300); font-weight:500; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; }
.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-muted); }
.checks li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--azure-400); margin-top: 2px; }
.checks li strong { color: #fff; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.svc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 30px; }
.svc-tab {
  font-family: var(--font-head); font-weight: 600; font-size: .86rem;
  padding: 10px 18px; border-radius: 999px;
  color: var(--text-muted); border: 1px solid rgba(143,230,251,.2); background: rgba(255,255,255,.03);
  transition: all .2s;
}
.svc-tab.active { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--azure-400)); border-color: transparent; box-shadow: var(--shadow-blue); }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.svc-card {
  background: linear-gradient(160deg, rgba(14,49,96,.55), rgba(7,26,53,.55));
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s;
  position: relative; overflow: hidden;
}
.svc-card::before { content:""; position:absolute; top:0; left:0; width:100%; height:3px; background: linear-gradient(90deg, var(--azure-400), var(--cyan-300)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.svc-card:hover { transform: translateY(-4px); border-color: rgba(69,208,239,.45); box-shadow: var(--shadow); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(69,208,239,.12); color: var(--cyan-300); margin-bottom: 14px; }
.svc-card .ic svg { width: 24px; height: 24px; }
.svc-card h4 { color: #fff; font-size: 1.06rem; margin-bottom: 7px; }
.svc-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
.svc-card[hidden] { display: none; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.member { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--paper-2); }
.member__photo { aspect-ratio: 1/1; overflow: hidden; background: var(--paper-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 20px; }
.member__body h4 { color: var(--ink); font-size: 1.12rem; }
.member__role { color: var(--blue-500); font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 10px; }
.member__body p { color: var(--text-dark-muted); font-size: .9rem; }

/* =====================================================================
   LOCATION
   ===================================================================== */
.location { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.loc__grid { display: grid; gap: 26px; }
.loc__info { display: grid; gap: 16px; }
.loc__card { display: flex; gap: 14px; align-items: flex-start; background: rgba(14,49,96,.4); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; }
.loc__card .ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(69,208,239,.12); color: var(--cyan-300); }
.loc__card .ic svg { width: 20px; height: 20px; }
.loc__card h4 { color: #fff; font-size: .96rem; margin-bottom: 3px; }
.loc__card a, .loc__card p { color: var(--text-muted); font-size: .92rem; }
.loc__card a:hover { color: var(--cyan-300); }
.loc__map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--card-border); min-height: 320px; }
.loc__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* =====================================================================
   EMERGENCY CTA (grande)
   ===================================================================== */
.emg-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--emergency-dark), var(--emergency)); color: #fff; text-align: center; }
/* Texture: linee diagonali finissime + trama a punti */
.emg-cta::before {
  content:""; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0, rgba(255,255,255,.07) 1px, transparent 1px, transparent 13px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0, rgba(0,0,0,.05) 1px, transparent 1px, transparent 13px),
    radial-gradient(rgba(255,255,255,.12) 1.1px, transparent 1.4px);
  background-size: 26px 26px, 26px 26px, 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 82%);
}
/* Bagliore soffuso in alto */
.emg-cta::after { content:""; position:absolute; top:-30%; left:50%; transform:translateX(-50%); width:70%; height:60%; background: radial-gradient(ellipse, rgba(255,255,255,.18), transparent 70%); pointer-events:none; }
.emg-cta .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.emg-cta .icon-ring { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); margin-bottom: 8px; }
.emg-cta .icon-ring svg { width: 30px; height: 30px; }
.emg-cta h2 { font-size: clamp(1.7rem, 5vw, 2.8rem); }
.emg-cta p { max-width: 52ch; color: rgba(255,255,255,.9); font-size: 1.05rem; }
.emg-cta__phones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.emg-cta__phones a { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--emergency-dark); font-family: var(--font-head); font-weight: 700; padding: 14px 24px; border-radius: 999px; font-size: 1.05rem; transition: transform .18s; box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); }
.emg-cta__phones a:hover { transform: translateY(-2px); }
.emg-cta__phones a svg { width: 18px; height: 18px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--navy-950); color: var(--text-muted); padding: 56px 0 30px; border-top: 1px solid rgba(143,230,251,.1); }
.footer__grid { display: grid; gap: 34px; }
.footer .brand img { height: 52px; }
.footer .brand__name { font-size: 1.05rem; }
.footer p.desc { margin-top: 16px; font-size: .9rem; max-width: 34ch; }
.footer h5 { color: #fff; font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; }
.footer ul a:hover { color: var(--cyan-300); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(143,230,251,.1); display: flex; flex-direction: column; gap: 8px; font-size: .82rem; }
.footer__bottom a:hover { color: var(--cyan-300); }

/* Pulsante "Torna su" (mobile + desktop) */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,26,53,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--card-border); color: var(--cyan-300);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s, color .2s;
  cursor: pointer;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }

/* ----------  REVEAL ANIMATION  ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   GALLERIA
   ===================================================================== */
.gallery { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.gallery-masonry { columns: 2; column-gap: 14px; margin-top: 34px; }
.g-item { break-inside: avoid; margin-bottom: 14px; border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; border: 1px solid var(--card-border); display: block; }
.g-item img { width: 100%; display: block; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(5,19,43,.55)); opacity: 0; transition: opacity .3s; }
.g-item::before { content: ""; position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 9px; background: rgba(11,36,71,.7); backdrop-filter: blur(4px); border: 1px solid var(--card-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345d0ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 17px; opacity: 0; transform: translateY(6px); transition: all .3s; }
.g-item:hover::after { opacity: 1; }
.g-item:hover::before { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,12,26,.95); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 5vw; }
.lightbox.open { display: flex; animation: lbFade .25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(143,230,251,.3); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--text-muted); font-family: var(--font-head); font-size: .85rem; letter-spacing: .1em; }

/* =====================================================================
   ARTICOLI
   ===================================================================== */
.articles { background: var(--paper); }
.art-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 34px; }
.art-card { background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s; }
.art-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -22px rgba(3,20,45,.4); }
.art-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-card:hover .art-card__img img { transform: scale(1.05); }
.art-card__body { padding: 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.art-meta { display: flex; gap: 10px; align-items: center; font-size: .72rem; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dark-muted); }
.art-meta .cat { background: rgba(18,115,201,.1); color: var(--blue-500); padding: 3px 10px; border-radius: 6px; }
.art-card h3 { color: var(--ink); font-size: 1.16rem; line-height: 1.28; }
.art-card p { color: var(--text-dark-muted); font-size: .92rem; flex: 1; }
.art-link { margin-top: 6px; color: var(--blue-500); font-weight: 600; font-family: var(--font-head); font-size: .9rem; display: inline-flex; gap: 7px; align-items: center; }
.art-link svg { width: 16px; height: 16px; transition: transform .2s; }
.art-card:hover .art-link svg { transform: translateX(4px); }
.articles__all { margin-top: 30px; text-align: center; }

/* =====================================================================
   SOTTOPAGINE (articoli / legale)
   ===================================================================== */
.subpage { background: var(--paper); padding-top: var(--bar-h); }
.doc-header { position: sticky; top: var(--bar-h); z-index: 100; background: rgba(7,26,53,.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(143,230,251,.12); }
.doc-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.doc-header .brand__name { color: #fff; }
.doc-header .actions { display: flex; align-items: center; gap: 12px; }
.doc-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; padding: clamp(30px,6vw,54px) 0 clamp(28px,5vw,44px); border-bottom: 1px solid rgba(143,230,251,.1); }
.doc-back { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan-300); font-family: var(--font-head); font-weight: 600; font-size: .84rem; margin-bottom: 18px; }
.doc-back svg { width: 16px; height: 16px; }
.doc-back:hover { color: #fff; }
.doc-hero h1 { color: #fff; font-size: clamp(1.7rem,4.2vw,2.7rem); max-width: 22ch; line-height: 1.15; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; font-family: var(--font-head); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.doc-meta .cat { background: rgba(69,208,239,.14); color: var(--cyan-300); padding: 3px 10px; border-radius: 6px; }
.doc-body { padding: clamp(34px,6vw,60px) 0 clamp(50px,8vw,80px); }
.doc-body .wrap { max-width: 820px; }
.doc-body h2 { color: var(--ink); font-size: clamp(1.3rem,3vw,1.6rem); margin: 34px 0 12px; }
.doc-body h3 { color: var(--ink); font-size: 1.18rem; margin: 26px 0 10px; }
.doc-body h4 { color: var(--ink); font-size: 1.04rem; margin: 20px 0 8px; }
.doc-body p { color: #33475f; margin-bottom: 15px; line-height: 1.78; }
.doc-body ul, .doc-body ol { margin: 0 0 18px 22px; }
.doc-body li { color: #33475f; margin-bottom: 8px; line-height: 1.72; }
.doc-body a { color: var(--blue-500); text-decoration: underline; overflow-wrap: anywhere; }
.doc-body a.btn { color: #fff; text-decoration: none; overflow-wrap: normal; }
.doc-body strong, .doc-body b { color: var(--ink); }
.doc-body blockquote { border-left: 3px solid var(--azure-400); padding: 6px 0 6px 18px; margin: 18px 0; color: var(--text-dark-muted); font-style: italic; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { border: 1px solid var(--paper-2); padding: 9px 12px; text-align: left; color: #33475f; }
.doc-body th { background: var(--paper-2); color: var(--ink); font-family: var(--font-head); }
.doc-updated { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--paper-2); color: var(--text-dark-muted); font-size: .82rem; }

/* =====================================================================
   DETTAGLIO SERVIZIO (sottopagina)
   ===================================================================== */
.svc-detail { display: grid; gap: 30px; align-items: start; }
.svc-detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.svc-detail__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.svc-detail__media.icon { background: #fff; }
.svc-detail__media.icon img { object-fit: contain; padding: 12%; }
.svc-detail__text > p:first-child { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.svc-cta-box { margin-top: 28px; background: linear-gradient(160deg, rgba(18,115,201,.09), rgba(43,169,224,.05)); border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 22px 24px; }
.svc-cta-box h4 { color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; }
.svc-cta-box p { color: var(--text-dark-muted); font-size: .92rem; margin-bottom: 16px; }
.svc-cta-box .btn { margin-right: 8px; }
.svc-cta-box .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-detail__back { margin-top: 40px; }
.svc-detail__back a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-500); font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.svc-detail__back svg { width: 16px; height: 16px; }
/* card servizio cliccabile */
a.svc-card { cursor: pointer; }
a.svc-card .go { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(69,208,239,.12); color: var(--cyan-300); opacity: 0; transform: translateX(-4px); transition: all .25s; }
a.svc-card .go svg { width: 15px; height: 15px; }
a.svc-card:hover .go { opacity: 1; transform: none; }
@media (min-width: 820px){ .svc-detail { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } }

/* =====================================================================
   COOKIE — banner, preferenze, blocco contenuti
   ===================================================================== */
.cc-banner { position: fixed; z-index: 400; left: 16px; right: 16px; bottom: 16px; max-width: 470px; background: rgba(7,26,53,.98); backdrop-filter: blur(14px); border: 1px solid var(--card-border); border-radius: 18px; padding: 22px 22px 20px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.65); color: var(--text-light); transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s; }
.cc-banner.show { transform: none; opacity: 1; pointer-events: auto; }
.cc-banner h4 { font-family: var(--font-head); color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.cc-banner h4 svg { width: 20px; height: 20px; color: var(--cyan-300); }
.cc-banner p { color: var(--text-muted); font-size: .84rem; line-height: 1.55; }
.cc-banner p a { color: var(--cyan-300); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.cc-actions .btn { flex: 1 1 120px; padding: 11px 14px; font-size: .84rem; }
.cc-actions .btn--ghost { border-color: rgba(143,230,251,.35); }
.cc-prefsbtn { background: none; color: var(--text-muted); font-family: var(--font-head); font-size: .8rem; text-decoration: underline; margin-top: 12px; display: inline-block; }
.cc-prefsbtn:hover { color: #fff; }

.cc-modal { position: fixed; inset: 0; z-index: 401; background: rgba(3,12,26,.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.cc-modal.show { display: flex; }
.cc-modal__panel { background: var(--navy-900); border: 1px solid var(--card-border); border-radius: 20px; max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px; color: var(--text-light); }
.cc-modal__panel h3 { font-family: var(--font-head); color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.cc-modal__panel > p { color: var(--text-muted); font-size: .86rem; margin-bottom: 18px; }
.cc-cat { border: 1px solid var(--card-border); border-radius: 14px; padding: 15px 16px; margin-bottom: 12px; }
.cc-cat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat__top strong { color: #fff; font-family: var(--font-head); font-size: .98rem; }
.cc-cat p { color: var(--text-muted); font-size: .82rem; margin-top: 6px; line-height: 1.5; }
.cc-switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch .track { position: absolute; inset: 0; background: rgba(143,230,251,.2); border-radius: 999px; transition: .25s; }
.cc-switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.cc-switch input:checked + .track { background: linear-gradient(135deg, var(--blue-500), var(--azure-400)); }
.cc-switch input:checked + .track::before { transform: translateX(20px); }
.cc-switch input:disabled + .track { background: var(--blue-600); opacity: .6; }
.cc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-modal__actions .btn { flex: 1 1 140px; }

/* Contenuto bloccato (es. mappa) finché non c'è consenso */
.cc-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 320px; height: 100%; padding: 30px; background: rgba(14,49,96,.4); color: var(--text-muted); }
.cc-placeholder svg { width: 34px; height: 34px; color: var(--cyan-300); }
.cc-placeholder p { font-size: .9rem; max-width: 34ch; }

/* =====================================================================
   RESPONSIVE  (tablet / desktop)
   ===================================================================== */
@media (min-width: 620px){
  .hero__stats { grid-template-columns: repeat(4,1fr); }
  .trust__grid { grid-template-columns: repeat(4,1fr); }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .team__grid { grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 700px){ .gallery-masonry { columns: 3; } .art-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .gallery-masonry { columns: 4; } }
@media (min-width: 900px){
  :root { --header-h: 76px; }
  .hero__video.desktop { display: block; }
  .hero__video.mobile { display: none; }
  .nav { display: flex; }
  .burger { display: none; }
  .header .btn--emergency { display: inline-flex; }
  .svc-grid { grid-template-columns: repeat(3,1fr); }
  .about__grid { grid-template-columns: 1.05fr 1fr; }
  .about__grid.rev { direction: rtl; } .about__grid.rev > * { direction: ltr; }
  .loc__grid { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
@media (min-width: 1100px){
  .svc-grid { grid-template-columns: repeat(4,1fr); }
}

/* Riduci motion se richiesto */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   REEL — striscia scorrevole + riproduttore a pieno schermo
   (nessun filtro sui video: si vedono con la luminosità originale)
   ===================================================================== */
.reels { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); overflow: hidden; }
.reels__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.reels__nav { display: none; gap: 8px; flex-shrink: 0; }
.reels__nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--card-border);
  background: rgba(255,255,255,.05); color: var(--cyan-300); display: grid; place-items: center; transition: all .2s; }
.reels__nav button:hover { background: var(--blue-500); color: #fff; border-color: transparent; }
.reels__nav button svg { width: 20px; height: 20px; }

.reels__strip {
  display: flex; gap: 14px; margin-top: 26px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px 20px 18px; margin-inline: -20px;
  scrollbar-width: none;
}
.reels__strip::-webkit-scrollbar { display: none; }

.reel-card {
  flex: 0 0 auto; width: 63vw; max-width: 232px; aspect-ratio: 9/16;
  border-radius: 18px; overflow: hidden; position: relative; cursor: pointer;
  scroll-snap-align: start; background: var(--navy-800);
  border: 1px solid var(--card-border);
  transition: transform .25s ease, border-color .25s ease;
}
.reel-card:hover { transform: translateY(-4px); border-color: rgba(69,208,239,.5); }
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,19,43,.30) 0%, transparent 30%, transparent 45%, rgba(5,19,43,.88) 100%); }
.reel-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35);
  transition: transform .25s, background .25s; }
.reel-card:hover .reel-card__play { transform: translate(-50%,-50%) scale(1.12); background: rgba(255,255,255,.3); }
.reel-card__play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.reel-card__t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 14px 15px; }
.reel-card__t h4 { color: #fff; font-size: .88rem; line-height: 1.28; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-card__d { position: absolute; top: 11px; right: 11px; z-index: 2; font-family: var(--font-head);
  font-size: .68rem; font-weight: 600; color: #fff; background: rgba(5,19,43,.6);
  backdrop-filter: blur(4px); padding: 3px 8px; border-radius: 6px; }
.reels__hint { margin-top: 4px; font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.reels__hint svg { width: 15px; height: 15px; color: var(--cyan-300); }

/* ---------- riproduttore a pieno schermo ---------- */
.rp { position: fixed; inset: 0; z-index: 500; background: #000;
  display: none; align-items: center; justify-content: center; }
.rp.open { display: flex; }
.rp__video { max-width: 100%; max-height: 100%; width: auto; height: 100%;
  object-fit: contain; background: #000; }
.rp__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: 16px 16px 40px; display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.72), transparent); }
.rp__title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  line-height: 1.3; flex: 1; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.rp__count { color: rgba(255,255,255,.65); font-size: .8rem; margin-top: 3px; font-weight: 500; }
.rp__btn { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff;
  display: grid; place-items: center; transition: background .2s; }
.rp__btn:hover { background: rgba(255,255,255,.28); }
.rp__btn svg { width: 20px; height: 20px; }
.rp__side { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); display: none; }
.rp__side.prev { left: 18px; } .rp__side.next { right: 18px; }
.rp__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 40px 16px 18px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }
.rp__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; cursor: pointer; }
.rp__bar i { display: block; height: 100%; width: 0; background: var(--cyan-300); border-radius: 4px; }
.rp__time { color: rgba(255,255,255,.8); font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.rp__tap { position: absolute; inset: 0; z-index: 2; }

@media (min-width: 700px){
  .reel-card { width: 210px; }
  .reels__nav { display: flex; }
  .rp__side { display: block; }
  .reels__hint { display: none; }
}

/* Pulsante Instagram: colori del marchio, per renderlo riconoscibile */
.btn--ig {
  margin-top: 18px; padding: 12px 22px; font-size: .9rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 22%, #dc2743 48%, #cc2366 72%, #bc1888 100%);
  color: #fff; border: none;
  box-shadow: 0 14px 34px -14px rgba(220,39,67,.7);
}
.btn--ig:hover { background: linear-gradient(45deg, #f5a04a 0%, #ec7a4f 22%, #e63b55 48%, #d93a77 72%, #cb2a9c 100%);
  transform: translateY(-2px); box-shadow: 0 20px 46px -14px rgba(220,39,67,.85); }
.btn--ig svg { width: 18px; height: 18px; }

/* Ultima scheda della striscia: rimando a Instagram */
.reel-card--ig { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 22px;
  background: linear-gradient(160deg, rgba(18,115,201,.22), rgba(11,36,71,.9));
  border: 1px dashed rgba(220,39,118,.5); text-decoration: none; }
.reel-card--ig:hover { border-color: #dc2743; }
.reel-card--ig .ic { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 22%, #dc2743 48%, #cc2366 72%, #bc1888 100%);
  border: none; color: #fff; box-shadow: 0 10px 26px -10px rgba(220,39,67,.75); }
.reel-card--ig .ic svg { width: 26px; height: 26px; }
.reel-card--ig b { color: #fff; font-family: var(--font-head); font-size: .96rem; font-weight: 600; line-height: 1.3; }
.reel-card--ig span { color: var(--text-muted); font-size: .8rem; line-height: 1.45; }

/* =====================================================================
   POST CAROSELLO (dai social) — griglia + visualizzatore
   ===================================================================== */
.social { background: var(--paper); }
.social__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 30px; }
.sp-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1/1; background: var(--paper-2); border: 1px solid var(--paper-2); text-align: left;
  transition: transform .25s ease, box-shadow .25s ease; }
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,19,43,.12) 0%, transparent 34%, rgba(5,19,43,.86) 100%); }
.sp-card__n { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 5px;
  background: rgba(5,19,43,.62); backdrop-filter: blur(4px); color: #fff; font-family: var(--font-head);
  font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.sp-card__n svg { width: 13px; height: 13px; }
.sp-card__t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 13px; }
.sp-card__t h4 { color: #fff; font-size: .82rem; line-height: 1.3; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* visualizzatore */
.sv { position: fixed; inset: 0; z-index: 500; background: rgba(4,12,26,.97); backdrop-filter: blur(8px);
  display: none; flex-direction: column; }
.sv.open { display: flex; }
.sv__top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-shrink: 0; }
.sv__top h3 { color: #fff; font-family: var(--font-head); font-size: .98rem; font-weight: 600;
  flex: 1; min-width: 0; line-height: 1.3; }
.sv__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 0 12px; }
.sv__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.sv__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.sv__arrow.p { left: 14px; } .sv__arrow.n { right: 14px; }
.sv__dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 4px; flex-wrap: wrap; flex-shrink: 0; }
.sv__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .2s; }
.sv__dots i.on { background: var(--cyan-300); width: 20px; border-radius: 4px; }
.sv__foot { flex-shrink: 0; max-height: 32vh; overflow-y: auto; padding: 10px 20px 22px; }
.sv__foot p { color: #cfe0ee; font-size: .92rem; line-height: 1.6; max-width: 70ch; margin: 0 auto 14px; }
.sv__foot .lk { display: flex; justify-content: center; }
.sv__foot .lk a { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-300);
  font-family: var(--font-head); font-size: .86rem; font-weight: 600; }
.sv__foot .lk svg { width: 16px; height: 16px; }

@media (min-width: 700px){
  .social__grid { grid-template-columns: repeat(3,1fr); gap: 18px; }
  .sp-card__t h4 { font-size: .92rem; }
}
