/* Fisionet - Restyling moderno (cartella /) */
:root{
  --bg: #ffffff;
  --bg2:#f4f8ff;
  --card:#ffffff;
  --card2:#ffffff;
  --text:#0b1220;
  --muted:#4b5b77;
  --accent:#0ea5e9;      /* azzurro Fisionet */
  --accent2:#2563eb;     /* blu profondo */
  --line:#e3ecff;
  --shadow: 0 10px 24px rgba(2, 12, 27, .10);
  --shadow2: 0 16px 40px rgba(2, 12, 27, .12);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(92,200,255,.25), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(122,166,255,.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.is-open{overflow:hidden; touch-action:none}
a{color:inherit}
img{max-width:100%; height:auto; display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width:0;
  text-decoration:none;
}
.brand img{
  height:78px;
  width:auto;
  max-width:min(540px, 64vw);
  background:transparent;
}
.brand .title{display:none}
.brand img{height:72px; width:auto; max-width:520px; border-radius:0; background:transparent; padding:0; border:none; filter:none}
.brand .title{display:none}
.brand .title strong{font-size:15px; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.brand .title span{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Brand logo responsive */
@media (max-width: 480px){
  .brand img{height:60px; max-width:78vw}
}

/* brandmark (logo a destra) disattivato nel restyling live */
.brandmark{display:none}


.actions{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  color:#fff;
  text-decoration:none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow: var(--shadow2); filter:saturate(1.05)}
.btn:active{transform:translateY(0)}
.btn.secondary{
  border:1px solid var(--line);
  background:#fff;
  color:var(--accent2);
  box-shadow:none;
}
.btn.secondary:hover{box-shadow: var(--shadow)}

.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.secondary{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  box-shadow:none;
}
.icon-btn{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.dots{
  width:18px; height:18px; position:relative;
}
.dots:before,.dots:after,.dots i{
  content:"";
  position:absolute; left:50%;
  width:5px; height:5px;
  border-radius:99px;
  background:var(--text);
  transform:translateX(-50%);
  opacity:.95;
}
.dots:before{top:0}
.dots i{top:6.5px}
.dots:after{bottom:0}

/* Drawer menu */
.backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
  z-index:60;
}
.drawer{
  position:fixed; top:0; right:-360px; height:100%; width:min(360px, 92vw);
  background:#ffffff;
  border-left:1px solid var(--line);
  box-shadow: var(--shadow2);
  transition:right .25s ease;
  z-index:70;
  padding:16px;
}
.drawer header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:6px 2px 14px;
  border-bottom:1px solid var(--line);
  margin-bottom:12px;
}
.drawer header .mini{display:flex; align-items:center; gap:10px}
.drawer header img{height:28px; width:auto; background:#fff; padding:6px; border-radius:10px}
.drawer nav{display:flex; flex-direction:column; gap:6px; margin-top:10px}
.drawer a{
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.drawer a:hover{background:rgba(14,165,233,.08); border-color:rgba(14,165,233,.18)}
.drawer a.active{background:rgba(14,165,233,.12); border-color:rgba(14,165,233,.24)}
.drawer .small{margin-top:12px; color:var(--muted); font-size:13px; line-height:1.35}

.is-open .backdrop{opacity:1; pointer-events:auto}
.is-open .drawer{right:0}

/* Hero + sections */
.hero{
  padding:34px 0 22px;
}
.hero-grid{
  display:grid; gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
@media (max-width: 880px){
  .hero-grid{grid-template-columns:1fr}
}
.card{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  font-size:13px; color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.h1{font-size:38px; line-height:1.05; margin:14px 0 10px}
@media (max-width: 480px){.h1{font-size:30px}}
.lead{color:var(--muted); font-size:16px; line-height:1.6}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.hero-media{
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.hero-media picture{display:block; width:100%; height:100%}
.hero-media img{width:100%; height:auto; display:block}

.section{padding:18px 0}
.section h2{margin:0 0 10px; font-size:22px}
.grid3{display:grid; gap:12px; grid-template-columns:repeat(3,1fr)}
@media (max-width: 900px){.grid3{grid-template-columns:1fr}}
.feature{
  padding:14px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.feature h3{margin:0 0 6px; font-size:16px}
.feature p{margin:0; color:var(--muted); line-height:1.55}

.split{
  display:grid; gap:14px;
  grid-template-columns: 1fr 1fr;
  align-items:start;
}
@media (max-width: 880px){.split{grid-template-columns:1fr}}
.note{
  color:var(--muted);
  border-left:3px solid rgba(92,200,255,.55);
  padding-left:12px;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
}
.table th{color:var(--muted); font-weight:600; background:rgba(255,255,255,.04)}
.table tr:last-child td{border-bottom:none}

.form{
  display:grid; gap:12px;
}
.field label{display:block; font-size:13px; color:var(--muted); margin:0 0 6px}
.field input,.field select,.field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.field textarea{min-height:120px; resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(92,200,255,.45); box-shadow:0 0 0 4px rgba(92,200,255,.10)}
.help{font-size:12px; color:var(--muted); line-height:1.35}

.footer{
  margin-top:22px;
  border-top:1px solid rgba(255,255,255,.10);
  padding:18px 0 26px;
  color:var(--muted);
  font-size:13px;
}
.footer a{color:var(--text); text-decoration:none; border-bottom:1px dotted rgba(255,255,255,.25)}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.badge{
  padding:8px 10px; border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}

.whatsapp-fab{
  position:fixed;
  right:16px; bottom:16px;
  z-index:80;
  width:56px; height:56px;
  border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10, 20, 35, .78);
  box-shadow: var(--shadow);
}
.whatsapp-fab svg{width:26px; height:26px}
.whatsapp-fab:hover{transform:translateY(-1px)}

.video{
  position:relative;
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  aspect-ratio: 16/9;
}
.video iframe{position:absolute; inset:0; width:100%; height:100%; border:0}



/* Hero backdrop (home) */
.page-home .hero{
  position:relative;
  overflow:hidden;
}
.page-home .hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 52%, rgba(255,255,255,.55) 78%),
    url("../img/fisiovede_header.png") center/cover no-repeat;
  z-index:-1;
}
.hero .container{position:relative}

/* Pagine interne: micro-backdrop */
.page-rpg .hero::before,
.page-come .hero::before,
.page-scoliosi .hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(14,165,233,.10), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(37,99,235,.10), transparent 60%),
    url("../img/pantera.jpg") 110% 10%/520px auto no-repeat;
  opacity:.18;
  z-index:-1;
}
.page-risultati .hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(14,165,233,.10), transparent 60%),
    radial-gradient(700px 500px at 15% 0%, rgba(37,99,235,.08), transparent 60%);
  z-index:-1;
}
.hero{position:relative}

/* Evita di ingrandire troppo immagini piccole */
img[data-native-max]{
  width:100%;
  max-width: var(--native-max, 720px);
  margin: 0 auto;
}
.figure{
  border:1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}

/* Lightbox (zoom su immagini) */
.lightbox{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  background:rgba(11,18,32,.72);
  padding:18px;
  z-index:90;
}
.lightbox.is-open{display:flex}
.lightbox img{
  max-width:min(1100px, 96vw);
  max-height:90vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  background:#fff;
}
.zoomable{cursor:zoom-in}


/* --- Mobile & smartphone usability upgrades --- */
@media (max-width: 768px){
  .container{padding:0 14px}
  .topbar-inner{padding:8px 0}
  .brand img{height:60px; max-width:78vw}
  .actions{gap:10px}
  .hero{padding:22px 0 14px}
  .h1{font-size:32px; line-height:1.08}
  .lead{font-size:16px}
  .card{padding:16px}
  .hero-actions{flex-direction:column; align-items:stretch}
  .hero-actions .btn{width:100%}
  .hero-grid{gap:14px}
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .footer{padding:18px 0}
  .badge{font-size:12px}
  .whatsapp-fab{right:14px; bottom:14px}
  .drawer{padding:14px}
  .drawer a{padding:14px 12px}
}
@media (max-width: 420px){
  .brand img{height:56px}
  .h1{font-size:29px}
  .btn{padding:12px 14px}
}
