/* Visita Medica — CSS unico */
:root{--blu:#0F7ACA;--blu-chiaro:#2F97EA;--blu-scuro:#0B4A6F;--testo:#33383e;--celeste:#EAF6FE;}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--testo);background:#fff}
a{color:var(--blu);text-decoration:none}
a:hover{color:var(--blu-scuro)}
input{font-family:inherit}
select,button{font-family:inherit}
body{font-family:"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--testo);background:#F5F9FC}
input,select,button{font-family:inherit}

/* Regole per pagina */
body.page-index .hero-select{width:100%;appearance:none;-webkit-appearance:none;border:0;border-radius:9px;outline:0;padding:14px 38px 14px 44px;font-size:15px;font-weight:600;color:#1b2733;background:#fff url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 viewBox=%220 0 24 24%22 fill=%22%230F7ACA%22%3E%3Cpath d=%22M3.293 8.293a1 1 0 0 1 1.414 0L12 15.586l7.293-7.293a1 1 0 1 1 1.414 1.414l-8 8a1 1 0 0 1-1.414 0l-8-8a1 1 0 0 1 0-1.414%22/%3E%3C/svg%3E') no-repeat right 14px center;box-shadow:inset 0 0 0 1px #dbe7f0;cursor:pointer}
body.page-index .hero-select:hover{box-shadow:inset 0 0 0 1.5px var(--blu-chiaro)}
body.page-index .hero-select:focus{box-shadow:inset 0 0 0 2px var(--blu)}
body.page-index .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-search .addr-tab{background:none;border:0;border-bottom:2px solid transparent;padding:8px 2px;font-size:14px;font-weight:600;color:#5b6770;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
body.page-search .addr-tab[aria-selected="true"]{color:var(--blu);border-bottom-color:var(--blu)}
body.page-search .filter-drop summary{list-style:none}
body.page-search .filter-drop summary::-webkit-details-marker{display:none}
body.page-search .addr-panel{display:none}
body.page-search .addr-panel.active{display:block}
body.page-search .slot{background:var(--celeste);border:0;border-radius:7px;padding:7px 0;font-size:13px;font-weight:600;color:var(--blu);cursor:pointer;width:100%}
body.page-search .slot:hover{background:var(--blu);color:#fff}
body.page-search .slot-empty{color:#c3ccd3;text-align:center;font-size:13px;padding:7px 0}
body.page-category .addr-tab{background:none;border:0;border-bottom:2px solid transparent;padding:8px 2px;font-size:14px;font-weight:600;color:#5b6770;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
body.page-category .addr-tab[aria-selected="true"]{color:var(--blu);border-bottom-color:var(--blu)}
body.page-category .filter-drop summary{list-style:none}
body.page-category .filter-drop summary::-webkit-details-marker{display:none}
body.page-category .addr-panel{display:none}
body.page-category .addr-panel.active{display:block}
body.page-category .slot{background:var(--celeste);border:0;border-radius:7px;padding:7px 0;font-size:13px;font-weight:600;color:var(--blu);cursor:pointer;width:100%}
body.page-category .slot:hover{background:var(--blu);color:#fff}
body.page-category .slot-empty{color:#c3ccd3;text-align:center;font-size:13px;padding:7px 0}
body.page-doctor .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-doctor .card{background:#fff;border:1px solid #e3edf4;border-radius:16px}
body.page-doctor .tab-btn{background:none;border:0;border-bottom:3px solid transparent;padding:15px 2px;font-size:15px;font-weight:600;color:#5b6770;cursor:pointer;text-decoration:none;display:inline-block;white-space:nowrap}
body.page-doctor .tab-btn[aria-current="true"]{color:var(--blu);border-bottom-color:var(--blu)}
body.page-doctor .tab-panel{scroll-margin-top:90px}
body.page-doctor .chip{display:inline-block;background:var(--celeste);color:var(--blu-scuro);font-size:13px;font-weight:600;padding:7px 14px;border-radius:999px}
body.page-doctor .prest-extra{display:none}
body.page-doctor .prest-extra.is-open{display:flex}
body.page-doctor .slot{border:1px solid #cfdde8;background:#fff;border-radius:8px;padding:9px 2px;font-size:13px;font-weight:600;color:#0B4A6F;cursor:pointer;width:100%;transition:background .12s,border-color .12s}
body.page-doctor .slot:hover{background:var(--celeste);border-color:var(--blu)}
body.page-doctor .slot[aria-pressed="true"]{background:var(--blu);border-color:var(--blu);color:#fff}
body.page-doctor .navbtn{width:34px;height:34px;border-radius:50%;border:1px solid #cfdde8;background:#fff;color:var(--blu);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}
body.page-doctor .navbtn:hover:not(:disabled){background:var(--celeste);border-color:var(--blu)}
body.page-doctor .navbtn:disabled{opacity:.35;cursor:default}
body.page-doctor .addr-tab{background:#fff;border:1.5px solid #dbe7f0;border-radius:999px;padding:9px 18px;font-size:14px;font-weight:600;color:#5b6770;cursor:pointer}
body.page-doctor .addr-tab[aria-current="true"]{background:var(--celeste);border-color:var(--blu);color:var(--blu-scuro)}
@media(max-width:1000px){
body.page-doctor .profile-grid{grid-template-columns:1fr!important}
body.page-doctor .body-grid{grid-template-columns:1fr!important}
}
body.page-cart input, body.page-cart select, body.page-cart button, body.page-cart textarea{font-family:inherit}
body.page-cart .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-checkout input, body.page-checkout select, body.page-checkout button, body.page-checkout textarea{font-family:inherit}
body.page-checkout .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-specialties input, body.page-specialties select, body.page-specialties button, body.page-specialties textarea{font-family:inherit}
body.page-specialties .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-specialties .spec-card:hover{border-color:var(--blu);box-shadow:0 6px 18px rgba(11,74,111,.10)}
body.page-specialties .spec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
body.page-services input, body.page-services select, body.page-services button, body.page-services textarea{font-family:inherit}
body.page-services .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-services .prest-group{scroll-margin-top:100px}
body.page-services .prest-row{break-inside:avoid}
body.page-services .prest-row:last-child{border-bottom:0}
body.page-services .az-link:hover{background:var(--celeste)}
@media (max-width:1080px){
body.page-services .prest-group ul{columns:2}
}
@media (max-width:720px){
body.page-services .prest-group ul{columns:1}
}
body.page-single input, body.page-single select, body.page-single button, body.page-single textarea{font-family:inherit}
body.page-single .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-support input, body.page-support select, body.page-support button, body.page-support textarea{font-family:inherit}
body.page-support .main-nav a:hover{background:rgba(255,255,255,.15)}
body.page-hospital input, body.page-hospital select, body.page-hospital button, body.page-hospital textarea{font-family:inherit}
body.page-hospital .sec{background:#fff;border:1px solid #e3edf4;border-radius:14px;padding:26px;margin-bottom:18px;scroll-margin-top:110px}
body.page-hospital .sec h2{font-size:20px;font-weight:700;color:var(--blu-scuro);margin-bottom:16px}
body.page-hospital .osp-tab{padding:14px 4px;font-size:15px;font-weight:600;color:#5b6770;border-bottom:3px solid transparent;display:inline-block}
body.page-hospital .osp-tab:hover{color:var(--blu)}
body.page-hospital .area-chip{display:inline-block;background:var(--celeste);color:var(--blu-scuro);font-size:14px;font-weight:600;padding:9px 16px;border-radius:999px}
body.page-hospital .area-chip:hover{background:var(--blu);color:#fff}
body.page-hospital .prest-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #f1f5f8;font-size:15px;color:var(--testo);font-weight:500}
body.page-hospital .prest-link:hover{color:var(--blu)}
@media (max-width:900px){
body.page-hospital .osp-grid{grid-template-columns:1fr !important}
}
body.page-department input, body.page-department select, body.page-department button, body.page-department textarea{font-family:inherit}
body.page-department .sec{background:#fff;border:1px solid #e3edf4;border-radius:14px;padding:26px;margin-bottom:18px;scroll-margin-top:110px}
body.page-department .sec h2{font-size:20px;font-weight:700;color:var(--blu-scuro);margin-bottom:16px}
body.page-department .rep-tab{padding:14px 4px;font-size:15px;font-weight:600;color:#5b6770;border-bottom:3px solid transparent;display:inline-block}
body.page-department .rep-tab:hover{color:var(--blu)}
body.page-department .rep-row:last-child{border-bottom:0}
body.page-department .area-chip{display:inline-block;background:var(--celeste);color:var(--blu-scuro);font-size:14px;font-weight:600;padding:9px 16px;border-radius:999px}
body.page-department .area-chip:hover{background:var(--blu);color:#fff}
@media (max-width:900px){
body.page-department .rep-grid{grid-template-columns:1fr !important}
}

/* ===== RESPONSIVE GLOBALE ===== */
img, svg, video { max-width: 100%; }
body { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* --- Tablet / laptop stretto --- */
@media (max-width: 1024px) {
  [style*="max-width:1180px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="grid-template-columns:1fr 360px"],
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns:1fr 320px"] { grid-template-columns: 1fr !important; }
  aside[style*="position:sticky"] { position: relative !important; top: auto !important; }
  [style*="grid-template-columns:1.2fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  [style*="padding:88px 32px"] { padding: 56px 20px !important; }
  [style*="gap:64px"] { gap: 36px !important; }
}

/* --- Header: logo + ricerca + nav --- */
@media (max-width: 900px) {
  header[role="banner"] > div { grid-template-columns: auto 1fr !important; row-gap: 10px !important; padding: 10px 16px !important; }
  header[role="banner"] form[role="search"] { grid-column: 1 / -1; order: 4; width: 100% !important; justify-self: stretch !important; }
  header[role="banner"] .main-nav a { padding: 8px 10px !important; font-size: 13px !important; }
}

/* --- Mobile --- */
@media (max-width: 720px) {
  [style*="max-width:1180px"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1fr auto 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.2fr 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="border-right:1px solid #eef3f7"] { border-right: 0 !important; border-bottom: 1px solid #eef3f7 !important; }
  [style*="padding:88px 32px"] { padding: 44px 16px !important; }
  [style*="padding:64px 32px 32px"] { padding: 40px 16px 24px !important; }
  [style*="padding:26px"], [style*="padding:28px"] { padding: 18px !important; }
  [style*="padding:20px 24px"] { padding: 16px !important; }
  h1[style]:not(.page-doctor h1), .hero-title { font-size: clamp(22px, 6vw, 30px) !important; line-height: 1.25 !important; }
  body.page-doctor h1[style] { font-size: 19px !important; }
  h2[style] { font-size: clamp(18px, 5vw, 22px) !important; }
  /* CTA e bottoni a piena larghezza */
  a[style*="border-radius:999px"][style*="padding:14px"],
  a[style*="border-radius:999px"][style*="padding:13px"] { width: 100%; justify-content: center; text-align: center; }
  /* barre orizzontali scorrevoli */
  nav[aria-label="Sezioni profilo"] > div,
  [style*="overflow-x:auto"] { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  [style*="overflow-x:auto"]::-webkit-scrollbar { display: none; }
}

/* --- Pagina medico --- */
@media (max-width: 720px) {
  body.page-doctor .doc-head { flex-wrap: wrap; gap: 16px !important; }
  body.page-doctor img[alt="Prof. Fabrizio Signore"] { width: 96px !important; height: 96px !important; }
  body.page-doctor #cal-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 5px !important; }
  body.page-doctor .slot { font-size: 12px !important; padding: 8px 1px !important; }
  body.page-doctor .prest-row { gap: 8px !important; }
  body.page-doctor .prest-row > span:first-child { min-width: 0 !important; flex-basis: 100% !important; }
}

/* --- Ricerca --- */
@media (max-width: 720px) {
  body.page-search .filter-bar, body.page-search [style*="display:flex"][style*="gap:8px"][style*="flex-wrap:wrap"] { gap: 6px !important; }
  body.page-search img[width="110"] { width: 76px !important; height: 76px !important; }
}

/* --- Home hero --- */
@media (max-width: 720px) {
  body.page-index #hero-search-form { flex-direction: column !important; }
  body.page-index #hero-search-form > * { width: 100% !important; }
  body.page-index .hero-select { font-size: 16px !important; }
}

/* Evita zoom automatico iOS sugli input */
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px !important; }
}


/* ===== MENU PRINCIPALE ===== */
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; list-style: none; margin: 0; padding: 0; }

/* ===== MENU MOBILE ===== */
.vm-burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex-shrink: 0; }
.vm-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease; }
.vm-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vm-burger.is-open span:nth-child(2) { opacity: 0; }
.vm-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  header[role="banner"] > div { position: relative; }
  .vm-burger { display: flex; order: 2; margin-left: auto; }
  header[role="banner"] nav[aria-label="Principale"] { display: none !important; }
  header[role="banner"] > div > a img { height: 26px !important; }
  header[role="banner"] > div { gap: 8px 10px !important; }
  header[role="banner"] nav[aria-label="Principale"].is-open {
    display: block !important; position: fixed; grid-column: 1 / -1; top: 56px; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    background: var(--blu); border-top: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 14px 28px rgba(7,58,96,.28); padding: 8px 16px 14px; z-index: 120; }
  header[role="banner"] nav[aria-label="Principale"].is-open .main-nav {
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; }
  header[role="banner"] nav[aria-label="Principale"].is-open .main-nav a {
    display: block; padding: 13px 8px !important; font-size: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,.12); }
  /* la CTA vive dentro il menu, non nella barra */
  header.vm-has-burger > div > div:last-of-type { display: none !important; }
  header[role="banner"] nav[aria-label="Principale"].is-open .vm-nav-cta { padding-top: 10px; border-bottom: 0; }
  header[role="banner"] nav[aria-label="Principale"].is-open .vm-nav-cta a {
    border-bottom: 0 !important; text-align: center; background: var(--blu-chiaro) !important;
    border-radius: 999px; font-weight: 700 !important; }
}

/* ===== HOME: hero e sezioni su mobile ===== */
@media (max-width: 760px) {
  body.page-index main > section:first-child {
    min-height: 100vh !important; min-height: 100dvh !important;
    align-items: center !important; }
  body.page-index main > section:first-child > img {
    right: -18% !important; top: 0 !important; bottom: 0 !important;
    height: 100% !important; opacity: .5; }
  body.page-index main > section:first-child > div { padding: 0 16px !important; }
  /* card di ricerca leggibile sopra la foto */
  body.page-index main > section:first-child [style*="backdrop-filter"] {
    background: rgba(11,74,111,.72) !important; border-color: rgba(255,255,255,.28) !important; }
  body.page-index #hero-h1 { font-size: clamp(24px, 7vw, 32px) !important; }

  /* immagine prima del testo nelle tre sezioni */
  body.page-index main > section:nth-of-type(2),
  body.page-index main > section:nth-of-type(4) { display: flex !important; flex-direction: column !important; }
  body.page-index main > section:nth-of-type(2) > img,
  body.page-index main > section:nth-of-type(4) > img { order: -1; }
  body.page-index main > section:nth-of-type(3) > div { display: flex !important; flex-direction: column !important; }
  body.page-index main > section:nth-of-type(3) > div > img { order: -1; }
}

.vm-nav-cta { display: none; }
@media (max-width: 900px) { .vm-nav-cta { display: block; } }

/* Footer: su mobile resta solo la barra finale */
@media (max-width: 720px) {
  footer > div:first-child { display: none !important; }
  footer > div:last-child { border-top: 0 !important; padding: 24px 16px !important;
    flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Reparto: righe prestazione su mobile — nome sopra, prezzo e Prenota a destra */
@media (max-width: 720px) {
  body.page-department .rep-row { gap: 8px 10px !important; padding: 13px 0 !important; }
  body.page-department .rep-row > :first-child { flex: 1 0 100% !important; min-width: 0 !important; }
  body.page-department .rep-row > span:nth-last-of-type(1) { min-width: 0 !important; }
  body.page-department .rep-row > a { margin-left: auto !important; }
}

/* Ospedale / reparto: niente tab di sezione su mobile */
@media (max-width: 720px) {
  body.page-hospital nav[aria-label="Sezioni"],
  body.page-department nav[aria-label="Sezioni"] { display: none !important; }
}

/* Prestazioni: lettura su mobile */
@media (max-width: 720px) {
  body.page-services .prest-group { margin-bottom: 22px !important; }
  body.page-services .prest-group ul { columns: 1 !important; }
  body.page-services .prest-row { padding: 12px 0 !important; }
  body.page-services .prest-row a { font-size: 15px !important; line-height: 1.4; }
}

/* Scheda medico: "Prenota" sempre a destra */
body.page-doctor .prest-row > a { margin-left: auto !important; }
@media (max-width: 720px) {
  body.page-doctor .prest-row > span:first-child { flex: 1 0 100% !important; }
}

/* Scheda medico: galleria a carosello su mobile */
@media (max-width: 720px) {
  body.page-doctor .gal-item { scroll-snap-align: start; }
  body.page-doctor [style*="grid-template-columns:repeat(3,1fr)"] {
    display: flex !important; gap: 10px !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -18px; padding: 0 18px 4px; }
  body.page-doctor [style*="grid-template-columns:repeat(3,1fr)"]::-webkit-scrollbar { display: none; }
  body.page-doctor [style*="grid-template-columns:repeat(3,1fr)"] > .gal-item {
    flex: 0 0 78%; }
}

/* Ricerca: niente mappa su mobile */
@media (max-width: 900px) {
  body.page-search aside[aria-label="Mappa"] { display: none !important; }
}

/* Ricerca: card su mobile — solo "Prenota ora" */
.vm-mobile-book { display: none; }
@media (max-width: 900px) {
  body.page-search main article > div > div:last-child { display: none !important; }
  body.page-search .vm-mobile-book {
    display: block; margin-top: 14px; background: var(--blu); color: #fff;
    font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 999px;
    text-align: center; }
  body.page-search .vm-mobile-book:hover { background: var(--blu-scuro); color: #fff; }
}

/* Ricerca: titolo su una riga, filtri sotto */
@media (max-width: 720px) {
  body.page-search main > div:first-child h1 { flex: 1 0 100%; margin-right: 0 !important; }
}

/* Ricerca: su mobile "Sesso del medico" sta dentro la modale */
@media (max-width: 720px) {
  body.page-search .filter-sesso { display: none !important; }
  body.page-search #filtri-modale > div { max-height: 92vh; border-radius: 16px; }
}

@media (max-width: 720px) {
  body.page-search main > div:first-child [data-vm="search.128_risultati"] {
    margin-left: 0 !important; flex: 1 0 100%; }
}

/* Categoria: card medico su mobile */
@media (max-width: 720px) {
  body.page-category main article { padding: 16px !important; gap: 14px !important; }
  body.page-category main article > a:first-child img { width: 72px !important; height: 72px !important; }
  body.page-category main article > div:nth-of-type(1) { min-width: 0 !important; flex: 1 1 0 !important; }
  body.page-category main article > div:last-of-type {
    flex: 1 0 100% !important; flex-direction: row !important; flex-wrap: wrap;
    align-items: center !important; gap: 10px !important; }
  body.page-category main article > div:last-of-type a {
    flex: 1 0 100%; text-align: center; padding: 13px 20px !important; }
}

@media (max-width: 720px) {
  body.page-search .filter-video { display: none !important; }
}

/* Checkout: riepilogo ordine prima del form su mobile */
@media (max-width: 1024px) {
  body.page-checkout main > div > div:last-of-type { display: flex !important; flex-direction: column; align-items: stretch !important; }
  body.page-checkout main aside { order: -1; }
}

/* Intestazioni blu di pagina: stessi margini laterali delle altre pagine */
@media (max-width: 720px) {
  body.page-specialties main > section:first-child,
  body.page-services main > section:first-child { padding-left: 16px !important; padding-right: 16px !important; }
  body.page-specialties main > div[style*="padding:32px 32px 56px"],
  body.page-services main > div[style*="padding:32px 32px 56px"] { padding: 24px 16px 40px !important; }
}

/* Assistenza: intestazione e ricerca su mobile */
@media (max-width: 720px) {
  body.page-support main > section:first-child { padding: 36px 16px !important; }
  body.page-support main > section:first-child h1 { font-size: clamp(22px, 6vw, 28px) !important; }
  body.page-support main > section:first-child form { flex-wrap: wrap; gap: 10px !important; }
  body.page-support main > section:first-child form input { flex: 1 0 100% !important; }
  body.page-support main > section:first-child form button { flex: 1 0 100% !important; }
  body.page-support main > section:nth-of-type(2) { padding: 32px 16px !important; }
}

/* Reparto: intestazione e tab su mobile */
@media (max-width: 720px) {
  body.page-department main > div:nth-of-type(1) { display: none !important; }
  body.page-department main > section:first-child > div { padding: 28px 16px 26px !important; }
  body.page-department main > section:first-child h1 { font-size: clamp(24px, 6.5vw, 30px) !important; }
  body.page-department main > section:first-child a[data-vm="department.080_4149150"] { display: none !important; }
  body.page-department main > section:first-child a[data-vm="department.prenota_una_prestazione"] {
    flex: 1 0 100%; text-align: center; padding: 14px 26px !important; }
}

/* Ospedale: intestazione su mobile */
@media (max-width: 720px) {
  body.page-hospital main > div:first-child > div { padding: 18px 16px 0 !important; }
  body.page-hospital main > div:first-child > div > div:nth-of-type(1) { gap: 14px !important; }
  body.page-hospital main img[data-vm-src="hospital.img_ospedale_san_giacomo_di_monopoli"] {
    width: 84px !important; height: 84px !important; }
  body.page-hospital main > div:first-child h1 { font-size: 21px !important; line-height: 1.3; }
  body.page-hospital main > div:first-child > div > div:nth-of-type(1) > div:first-of-type {
    min-width: 0 !important; flex: 1 1 0 !important; }
  body.page-hospital a[data-vm="hospital.080_4149111"] { display: none !important; }
  body.page-hospital main > div:first-child > div > div:nth-of-type(1) > div:last-of-type {
    flex: 1 0 100% !important; margin-top: 4px; margin-bottom: 10px; }
  body.page-hospital a[data-vm="hospital.prenota_una_prestazione"] {
    display: block; width: 100%; text-align: center; padding: 14px 26px !important; }
}

/* Scheda medico: intestazione su mobile — margini simmetrici */
@media (max-width: 720px) {
  body.page-doctor .doc-head { padding: 16px !important; }
  body.page-doctor img[data-vm-src="doctor.img_prof_fabrizio_signore"] {
    width: 84px !important; height: 84px !important; }
  body.page-doctor .doc-head { gap: 14px !important; }
  body.page-doctor .doc-head h1 { font-size: 19px !important; }
  body.page-doctor .doc-head > div:nth-of-type(2) {
    min-width: 0 !important; }
  body.page-doctor .doc-head p,
  body.page-doctor .doc-head a span { font-size: 14px !important; }
  body.page-doctor .doc-head a span[style*="c99400"] { font-size: 16px !important; }
}

.cta-short { display: none; }
@media (max-width: 720px) {
  body.page-doctor .cta-full { display: none; }
  body.page-doctor .cta-short { display: inline; }
  body.page-doctor a[data-vm-href="doctor.url_prenota_una_visita"],
  body.page-doctor a[data-vm-href="doctor.url_invia_messaggio"] { padding: 13px 18px !important; }
}

/* Scheda medico: pannello prenotazione */
#prenota-chiudi { display: none; }
@media (max-width: 720px) {
  body.page-doctor #prenota { display: none !important; }
  body.page-doctor.prenota-aperto { overflow: hidden; }
  body.page-doctor.prenota-aperto #prenota {
    display: block !important; position: fixed; inset: 0; z-index: 500;
    background: #fff; border: 0; border-radius: 0; overflow-y: auto;
    padding: 60px 18px 28px !important; }
  body.page-doctor.prenota-aperto #prenota-chiudi {
    display: flex; position: fixed; top: 12px; right: 14px; z-index: 510;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e3edf4;
    background: #F7FBFE; color: #5b6770; font-size: 17px; cursor: pointer;
    align-items: center; justify-content: center; }
  body.page-doctor .doc-head a svg, body.page-doctor .card a svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
}

@media (max-width: 720px) {
  body.page-doctor img[data-vm-src="doctor.img_prof_fabrizio_signore"] {
    width: 112px !important; height: 112px !important; }
  body.page-doctor .doc-head h1 { font-size: 16px !important; margin-bottom: 4px !important; }
  body.page-doctor .doc-head p,
  body.page-doctor .doc-head a span { font-size: 13px !important; }
  body.page-doctor .doc-head a span[style*="c99400"] { font-size: 14px !important; }
  body.page-doctor .doc-head { flex-wrap: nowrap !important; }
  body.page-doctor .doc-head > div:nth-of-type(2) {
    min-width: 0 !important; overflow-wrap: anywhere; }
  body.page-doctor .doc-head > div:nth-of-type(2) p,
  body.page-doctor .doc-head > div:nth-of-type(2) h1 {
    overflow-wrap: anywhere; }
  body.page-doctor .doc-head > a[aria-pressed],
  body.page-doctor #save-doc { width: 36px !important; height: 36px !important; }
}

/* Scheda medico: intestazione contenuta su mobile */
@media (max-width: 720px) {
  body.page-doctor .doc-head { gap: 14px !important; align-items: flex-start; }
  body.page-doctor .doc-head > div:nth-of-type(2) { min-width: 0 !important; flex: 1 1 0 !important; }
  body.page-doctor .doc-head > div:nth-of-type(2) > * { overflow-wrap: anywhere; }
  body.page-doctor .doc-head h1 { font-size: 16px !important; margin-bottom: 4px !important; }
  body.page-doctor .doc-head p, body.page-doctor .doc-head a span { font-size: 13px !important; }
  body.page-doctor .doc-head span[style*="c99400"] { font-size: 14px !important; }
  body.page-doctor .doc-head img { width: 112px !important; height: 112px !important; }
  body.page-doctor #save-doc { display: none !important; }
  body.page-doctor .card > div:first-child { padding: 16px !important; }
  body.page-doctor .doc-head > div:first-child { margin-left: -14px !important; }
}

@media (max-width: 720px) {
  body.page-doctor .doc-head h1 {
    white-space: nowrap; overflow-wrap: normal;
    font-size: clamp(13px, 4.2vw, 16px) !important; }
}

/* ===== SELECT ===== */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F7ACA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 15px 15px !important;
  padding-right: 40px !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:hover { border-color: var(--blu) !important; }
select:focus-visible {
  outline: 0; border-color: var(--blu) !important;
  box-shadow: 0 0 0 3px rgba(15,122,202,.18); }
select::-ms-expand { display: none; }
