:root {
  --blue: #073b58;
  --blue2: #0ca6df;
  --deep: #063b5e;
  --panel: #f2f6f8;
  --text: #18232e;
  --muted: #5a6b79;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial,Helvetica,sans-serif;
  color: var(--text);
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1280px,92%);
  margin: 0 auto;
}
.topbar,.profile-header {
  height: 48px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner,.profile-header .container {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: Georgia,"Times New Roman",serif;
  color: var(--deep);
  font-size: 28px;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--deep);
  font-size: 15px;
}
.nav a {
  padding: 16px 0;
}
.nav a:hover {
  color: var(--blue2);
}
.nav .cta {
  background: var(--blue2);
  color: #fff;
  padding: 12px 20px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--deep);
  font-size: 28px;
}
.hero {
  height: 526px;
  position: relative;
  background: linear-gradient(rgba(168,219,240,.34),rgba(107,179,207,.34)),url("assets/hero-bg.png") 42% center/cover no-repeat;
  overflow: hidden;
}
.hero-card {
  position: absolute;
  left: 8%;
  top: 120px;
  background: rgba(37,54,67,.66);
  color: #fff;
  width: 480px;
  border-radius: 14px;
  padding: 28px 30px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.hero-card h1 {
  margin: 0 0 6px;
  font-size: 41px;
  font-weight: 800;
  line-height: 1.08;
}
.hero-card p {
  margin: 3px 0;
  font-size: 28px;
}
.hero-card small {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
}
.stats-strip {
  position: relative;
  width: min(1120px,86%);
  margin: -68px auto 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 3;
}
.stat-box {
  min-height: 208px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #16a0da;
}
.stat-box:nth-child(2) {
  background: #0a3f63;
}
.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .95;
}
.stat-box strong {
  font-size: 29px;
  line-height: 1.15;
  max-width: 360px;
}
.stat-box span {
  display: none;
}
.section {
  padding: 68px 0;
}
.section-title,.why h2 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 34px;
  font-weight: 800;
}
.center {
  text-align: center;
}
.title-rule::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--blue2);
  margin: 11px auto 0;
}
.why p {
  font-size: 18px;
  line-height: 1.72;
  margin: 10px 0;
}
.accent {
  color: var(--blue2);
  font-weight: 700;
}
.expert {
  background: var(--deep);
  color: #fff;
  padding: 50px 0 30px;
}
.expert .section-title {
  color: #fff;
}
.expert-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 56px 92px;
  margin-top: 46px;
}
.expert-card {
  text-align: center;
}
.bag {
  width: 103px;
  height: 103px;
  background: #f3f5f6;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bag svg {
  width: 62px;
  height: 62px;
  stroke: #0eb4d5;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.expert-card h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 22px;
}
.expert-card p {
  margin: 0 0 16px;
  font-weight: 700;
}
.expert-card button {
  border: 0;
  background: var(--blue2);
  color: #fff;
  padding: 9px 22px;
  font-size: 17px;
  cursor: pointer;
}
.expert-card button:hover {
  filter: brightness(1.06);
}
.service-detail {
  display: none;
  max-width: 1040px;
  margin: 40px auto 0;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  padding: 32px 36px;
}
.service-detail.active {
  display: block;
}
.service-pane {
  display: none;
}
.service-pane.active {
  display: block;
}
.service-pane h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 29px;
}
.service-pane p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.service-pane ul {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.6;
}
.media-section {
  background: #eef3f6;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 48px;
  margin-top: 42px;
}
.image-placeholder,.video-card {
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.image-placeholder {
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-top: 16px solid #111;
  border-bottom: 16px solid #111;
}
.image-placeholder strong {
  background: #f3a000;
  color: #fff;
  font-size: 24px;
  padding: 8px 18px;
}
.image-placeholder span {
  margin-top: 18px;
  font-weight: 700;
  color: #454545;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 32px;
}
.dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #b8dbea;
}
.dots span:first-child {
  background: #49b9dd;
}
.video-thumb {
  height: 170px;
  background: linear-gradient(135deg,#0c5d82,#071c2b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.play {
  width: 72px;
  height: 50px;
  background: #e00;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}
.video-card .vcopy {
  padding: 18px 22px;
  font-size: 18px;
  line-height: 1.7;
}
.appointment {
  padding: 56px 0 80px;
  background: url("assets/appointment-bg-fused.png") center/cover no-repeat;
  background-color: #addaf0;
}
.appointment-card {
  background: #fff;
  max-width: 820px;
  margin: 38px auto 0;
  box-shadow: 0 5px 14px rgba(0,0,0,.25);
  border-radius: 2px;
  padding: 14px;
  position: relative;
  z-index: 2;
}
.doctor-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 15px;
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #b7c6cf;
  background: #f3f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 30px Georgia,serif;
  color: var(--deep);
}
.doctor-row h3 {
  margin: 0;
  color: #079de2;
  font-size: 21px;
}
.doctor-row p {
  margin: 3px 0;
  color: var(--deep);
}
.booking-box {
  border: 1px solid #c8d5db;
  padding: 20px;
  border-radius: 4px;
}
.notice {
  color: #079de2;
  margin-bottom: 11px;
}
.booking-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 14px 16px;
  margin: 10px 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
}
.booking-item .ico {
  font-size: 24px;
  color: #079de2;
}
.booking-item strong {
  color: #253a4b;
}
.booking-item p {
  margin: 5px 0 0;
  color: #0b7ebc;
}
.price {
  background: #d7f0fb;
  color: #0b7ebc;
  padding: 6px 8px;
  border-radius: 4px;
  font-weight: 800;
}
.booking-action {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  color: var(--deep);
  margin-top: 12px;
}
.booking-action a {
  display: block;
  margin-top: 12px;
  border: 1px solid var(--blue2);
  border-radius: 5px;
  padding: 12px;
  background: #fff;
  color: var(--blue2);
  font-weight: 800;
}
.treatments {
  padding: 46px 0 0;
  background: #fff;
}
.treatments-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  min-height: 360px;
}
.treatments-photo {
  background: url("assets/treatments-bg.png") center/cover no-repeat;
  min-height: 360px;
}
.treatments-list {
  background: #0ca6df;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 48px 64px;
}
.treatments-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 48px;
  font-weight: 800;
  font-size: 20px;
}
.treatments-list li {
  line-height: 1.25;
}
.treatments-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #fff;
}
.team-cta {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: 66px 0;
}
.team-cta p {
  margin: 0 0 24px;
  font-size: 17px;
}
.team-cta h2 {
  margin: 0;
  font-size: 25px;
}
.articles {
  background: #f2f6f8;
}
.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.article-card {
  background: #fff;
  padding: 21px 23px;
  border-top: 4px solid var(--blue2);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.article-card .year {
  font-size: 13px;
  font-weight: 800;
  color: #c7962b;
  letter-spacing: 1px;
}
.article-card h3 {
  margin: 8px 0;
  color: var(--deep);
  font-size: 19px;
  line-height: 1.35;
}
.article-card p {
  margin: 0;
  color: #404c58;
  line-height: 1.56;
  font-size: 15px;
}
.reviews {
  background: linear-gradient(rgba(184,230,245,.34),rgba(184,230,245,.34)),url("assets/reviews-bg.png") center/cover no-repeat;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 26px;
  margin-top: 42px;
}
.review-card {
  background: #fff;
  padding: 28px;
  min-height: 160px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.stars {
  color: #f2a000;
  font-size: 20px;
  letter-spacing: 2px;
}
.review-form {
  background: #fff;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.review-form input,.review-form select,.review-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd8df;
  border-radius: 3px;
  margin: 7px 0 12px;
  font-size: 15px;
}
.review-form button {
  background: var(--blue2);
  color: #fff;
  border: 0;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 92px;
  margin-top: 42px;
}
.social-row a {
  color: #089edc;
  font-size: 18px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  margin-top: 40px;
}
.map {
  height: 270px;
  background: url("assets/map-soft.svg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #d8e1e6;
}
.map a {
  background: #fff;
  border: 1px solid #999;
  padding: 14px 22px;
  font-weight: 700;
  color: #1f2d39;
}
.contact-box {
  background: #f4f5f6;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  line-height: 1.7;
}
.footer {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
}
.profile-main {
  padding: 52px 0 74px;
}
.breadcrumb {
  font-size: 17px;
  color: var(--deep);
  margin: 0 0 80px;
}
.breadcrumb a {
  font-weight: 800;
  color: var(--blue2);
}
.profile-panel {
  background: #fff;
  border: 1px solid #e1e7ec;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  padding: 34px 26px;
  border-radius: 6px;
}
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 12px;
  text-align: center;
}
.profile-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #6e7b86;
  min-height: 118px;
  padding: 6px 8px;
}
.profile-tab .icon-wrap {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.profile-tab svg {
  width: 42px;
  height: 42px;
  stroke: #000;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-tab .fill {
  fill: #000;
  stroke: none;
}
.profile-tab span.label {
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}
.profile-tab.active {
  color: var(--blue2);
}
.profile-tab.active svg {
  stroke: var(--blue2);
}
.profile-tab.active .fill {
  fill: var(--blue2);
}
.divider {
  height: 1px;
  background: #dde4e9;
  margin: 26px 0;
}
.profile-pane {
  display: none;
}
.profile-pane.active {
  display: block;
}
.profile-pane h2 {
  margin: 0 0 16px;
  color: var(--deep);
}
.profile-pane p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.checks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
}
.checks li {
  position: relative;
  padding-left: 22px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue2);
}
@media (max-width:980px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 5%;
    gap: 10px;
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .brand {
    font-size: 22px;
  }
  .hero-card {
    left: 5%;
    top: 118px;
    width: 90%;
  }
  .stats-strip {
    margin: -20px auto 42px;
    grid-template-columns: 1fr;
  }
  .expert-grid,.media-grid,.article-list,.review-grid,.contact-grid,.profile-tabs {
    grid-template-columns: 1fr;
  }
  .social-row {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }
  .appointment {
    background: url("assets/appointment-bg-fused.png") center/cover no-repeat;
    background-color: #addaf0;
  }
  .appointment-card {
    margin: 38px auto 0;
  }
  .treatments-wrap {
    grid-template-columns: 1fr;
  }
  .treatments-list ul {
    grid-template-columns: 1fr;
  }
  .treatments-list {
    padding: 36px 28px;
  }
}
.profile-empty {
  min-height: 180px;
  background: #fff;
  border: 1px dashed #d9e1e7;
  border-radius: 6px;
}

/* Riquadri iniziali */
.stats-strip-three {
  grid-template-columns: repeat(3,1fr) !important;
  width: min(1240px,90%) !important;
}
.stats-strip-three .stat-box:nth-child(1),
.stats-strip-three .stat-box:nth-child(3) {
  background: #16a0da !important;
}
.stats-strip-three .stat-box:nth-child(2) {
  background: #0a3f63 !important;
}
.stats-strip-three .stat-box strong {
  max-width: 360px;
  font-size: 24px;
  line-height: 1.2;
}

/* Innovazione e ricerca */
.innovation {
  background: #fff;
  padding-top: 35px;
}
.innovation-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
}
.innovation-text p {
  font-size: 18px;
  line-height: 1.72;
  margin: 10px 0;
}
.innovation-photo {
  min-height: 360px;
  border-radius: 6px;
  background: linear-gradient(135deg,#e8f4fa,#b9e2f2);
  border: 1px solid #d7e7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.endo-placeholder {
  color: #073b58;
  border: 2px dashed rgba(7,59,88,.35);
  padding: 34px 28px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  background: rgba(255,255,255,.55);
}

/* Immagini di sfondo */
.hero {
  background: linear-gradient(rgba(168,219,240,.34),rgba(107,179,207,.34)),url("assets/hero-bg.png") 42% center/cover no-repeat !important;
}
.appointment {
  filter: none;
}
.reviews {
  background: linear-gradient(rgba(184,230,245,.36),rgba(184,230,245,.36)),url("assets/reviews-bg.png") center/cover no-repeat !important;
}

/* Pratica clinica */
.clinical-practice {
  padding: 0;
  background: #fff;
}
.clinical-practice h2 {
  padding: 34px 20px 0;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}
.clinical-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.clinical-image {
  background: url("assets/treatments-bg.png") center/cover no-repeat;
  min-height: 360px;
}
.clinical-list {
  background: #0ca6df;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 42px;
}
.clinical-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 520px;
}
.clinical-list li {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width:980px) {
  .stats-strip-three,
  .clinical-layout,
  .innovation-wrap {
    grid-template-columns: 1fr !important;
  }
}

/* Navigazione e contenuti */
.nav {
  gap: 22px;
}
.nav a {
  white-space: nowrap;
}
.nav .cta {
  padding: 10px 15px;
}
.hero {
  background: linear-gradient(rgba(168,219,240,.22),rgba(107,179,207,.22)),url("assets/hero-bg.png") 42% center/cover no-repeat !important;
}
.reviews {
  background: linear-gradient(rgba(184,230,245,.22),rgba(184,230,245,.22)),url("assets/reviews-bg.png") center/cover no-repeat !important;
}
.appointment {
  background: url("assets/appointment-bg-fused.png") center/cover no-repeat !important;
  background-color: #addaf0;
}
.subsection-title {
  color: var(--deep);
  font-size: 26px;
  margin: 28px 0 12px;
}
.checks-block {
  font-size: 17px;
}
.endoscope-photo {
  background: #eef8fc;
}
.endoscope-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.expert-grid-wide {
  grid-template-columns: repeat(3,1fr);
}
.expert-grid-wide .expert-card h3 {
  min-height: 54px;
}
.prevention-note {
  background: #fff;
  margin-top: 34px;
  padding: 28px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.prevention-note h3 {
  font-size: 28px;
  color: var(--deep);
  margin: 0 0 8px;
}
.prevention-note img {
  max-width: 820px;
  width: 100%;
  border-radius: 8px;
  margin: 20px auto 12px;
  display: block;
}
.small-note {
  font-size: 14px !important;
  color: #526677 !important;
  line-height: 1.45 !important;
}
.clinical-practice h2 {
  text-transform: none;
}
.profile-tabs-seven {
  grid-template-columns: repeat(7,1fr);
}
.number-list {
  font-size: 17px;
  line-height: 1.65;
  margin: 12px 0 0;
}
.number-list li {
  margin-bottom: 8px;
}
.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-top: 18px;
}
.research-table th,.research-table td {
  border: 1px solid #dbe4ea;
  padding: 10px;
  text-align: left;
}
.research-table th {
  background: #eaf6fb;
  color: var(--deep);
}
.area-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.area-tab {
  border: 1px solid #cddbe4;
  background: #fff;
  color: var(--deep);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}
.area-tab.active {
  background: var(--blue2);
  color: #fff;
}
.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 20px 0;
}
.link-cloud button {
  border: 0;
  background: #0ca6df;
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.news-page-content h1 {
  color: var(--deep);
  font-size: 34px;
  margin: 0 0 16px;
}
.news-page-content h2 {
  color: var(--deep);
  font-size: 26px;
  margin: 28px 0 10px;
}
.news-page-content p {
  font-size: 18px;
  line-height: 1.75;
}
.news-alert-img {
  display: block;
  max-width: 760px;
  width: 100%;
  margin: 24px auto 8px;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0,0,0,.16);
}
.news-locations {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-top: 18px;
}
.news-locations div {
  background: #f3f7fa;
  border: 1px solid #dbe4ea;
  padding: 18px;
  border-radius: 5px;
}
.contact-grid-multiple {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.contact-grid-multiple .map {
  grid-row: span 3;
}
.contact-box a {
  color: var(--blue2);
  font-weight: 700;
}
.profile-pane h3 {
  color: var(--deep);
  margin: 22px 0 8px;
}
@media (max-width:980px) {
  .expert-grid-wide,.link-cloud,.news-locations,.contact-grid-multiple,.profile-tabs-seven {
    grid-template-columns: 1fr;
  }
  .profile-tabs-seven {
    display: grid;
  }
  .nav {
    gap: 10px;
  }
  .contact-grid-multiple .map {
    grid-row: auto;
  }
}

/* Schede cliniche */
.raw-text {
  white-space: pre-line;
  font-size: 17px;
  line-height: 1.75;
  color: #12243a;
}
.service-pane .raw-text {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.75;
  color: #111;
}
.service-pane {
  max-height: none;
}
.alarm-box {
  margin-top: 26px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.alarm-box img {
  max-width: 720px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
}
.alarm-box .small-note {
  font-size: 12px;
  line-height: 1.45;
  color: #4d5a6a;
  margin: 12px auto 0;
  max-width: 820px;
}
.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}
.link-cloud button {
  border: 0;
  background: #0aa3dd;
  color: white;
  font-weight: 700;
  border-radius: 4px;
  padding: 10px 14px;
  cursor: pointer;
}
.link-cloud button:hover {
  background: #087fb0;
}
.profile-pane.active {
  display: block;
}
.profile-pane {
  display: none;
}
.service-pane.active {
  display: block;
}
.service-pane {
  display: none;
}

/* Regolazioni generali */
.warning-card,
.warning-image-card,
.alarm-card,
.prevention-warning,
.alert-image,
.segnali-allarme,
.signals-warning,
.colon-warning,
.warning-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.warning-card img,
.warning-image-card img,
.alarm-card img,
.prevention-warning img,
.alert-image img,
.segnali-allarme img,
.signals-warning img,
.colon-warning img,
.warning-box img,
img[src*="segnali"],
img[src*="allarme"],
img[src*="alarm"] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
.endoscope-img,
.innovation-photo img,
img[src*="endoscopio"] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 420px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
.ambiti-intervento {
  margin-top: 24px;
}
.ambiti-intervento h3 {
  color: #003f63;
  font-size: 24px;
  margin-bottom: 10px;
}
.ambiti-intervento ul {
  margin-top: 10px;
  padding-left: 22px;
}
.ambiti-intervento li {
  margin: 8px 0;
  line-height: 1.55;
}

/* Elementi aggiuntivi */
.endoscope-photo,
.innovation-photo {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.endoscope-img {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 430px !important;
  margin: auto !important;
}
.ambiti-intervento {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #dce8ef;
}
.ambiti-intervento h3 {
  color: #073b58;
  font-size: 24px;
  margin: 0 0 10px;
}
.ambiti-intervento ul {
  padding-left: 22px;
}
.ambiti-intervento li {
  margin: 8px 0;
  line-height: 1.55;
}
.booking-label {
  display: block;
  margin: 8px 0 8px;
  color: #00a4e0;
}
.booking-select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6e1e7;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #16324a;
  background: #fff;
}
.booking-item a {
  color: #009fe3;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}
.team-cta {
  margin-top: 34px !important;
}
.team-cta-linked a {
  display: block;
  color: #fff;
  padding: 44px 20px;
}
.team-cta-linked h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.35;
}
.team-cta-linked strong {
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 4px;
  padding: 12px 18px;
  display: inline-block;
  margin-top: 8px;
}
.patient-area {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  margin: 26px auto 16px;
  max-width: 760px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.login-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}
.login-row input {
  padding: 12px;
  border: 1px solid #d5dde3;
  border-radius: 4px;
}
.login-row button {
  background: #0ca6df;
  color: #fff;
  border: 0;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 4px;
}
.review-form.locked {
  opacity: .55;
  pointer-events: none;
}
.login-note {
  display: block;
  margin-top: 8px;
  color: #5a6b79;
}
.raw-text {
  white-space: normal;
  line-height: 1.65;
  font-size: 18px;
}
.raw-text strong {
  font-weight: 800;
  color: #073b58;
}
.bold-subtitles strong {
  display: block;
  margin-top: 16px;
  font-size: 20px;
}
@media (max-width:700px) {
  .login-row {
    grid-template-columns: 1fr;
  }
}

/* Pubblicazioni scaricabili */
.publication-download {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.publication-download:hover {
  background: rgba(12,166,223,.10);
  transform: translateX(3px);
}
.download-label {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #0ca6df;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.article-download-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.article-download-card p {
  font-weight: 800;
  color: #0b8ec4;
}
.article-download-card:hover {
  transform: translateY(-4px);
}

/* Rifinitura titoli secondari nelle aree di eccellenza */
.profile-pane h3,
.service-pane h3,
.bold-subtitles strong,
.raw-text strong {
  font-weight: 800;
}
.service-pane h3 {
  font-weight: 800;
}

/* Ritocchi finali richiesti */
.subsection-title {
  font-size: 34px !important;
  font-weight: 800 !important;
}
.endoscope-photo,.innovation-photo {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.endoscope-photo img,.innovation-photo img,img[src*="endoscopio"] {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.team-cta {
  margin-top: 46px !important;
}
.team-cta-linked {
  text-align: center;
}
.raw-text.bold-subtitles strong {
  font-weight: 800 !important;
  color: #073b58 !important;
}

/* Correzioni profilo/pubblicazioni/aree */
.profile-pane[data-profile-pane="pubblicazioni"] .pub-heading {
  margin: 26px 0 8px !important;
  color: #073b58;
  font-weight: 800;
  line-height: 1.45;
}
.profile-pane[data-profile-pane="pubblicazioni"] .checks {
  margin-top: 8px !important;
}
.area-interest-text strong {
  display: inline !important;
  margin-top: 0 !important;
  font-size: inherit !important;
  color: #073b58 !important;
}
.area-interest-text {
  white-space: normal !important;
}
.profile-pane .raw-text {
  white-space: pre-line;
  font-size: 18px;
  line-height: 1.75;
  color: #061f35;
}
.profile-pane .raw-text strong {
  font-weight: 900;
  color: #073b58;
}
.bold-subtitles strong {
  display: block;
  margin: 18px 0 4px;
  font-size: 1.08em;
}
.area-interest-text strong {
  display: inline;
  font-size: 1em;
  margin: 0;
}
@media (max-width:700px) {
  .link-cloud button {
    white-space: normal;
    font-size: 13px;
    padding: 9px 10px;
  }
  .profile-pane .raw-text {
    font-size: 16px;
  }
}

/* Aree di interesse */
.area-interest-text {
  font-size: 18px;
  line-height: 1.75;
  color: #061f35;
}
.area-interest-text p {
  margin: 0 0 2px 0;
}
.area-interest-text strong {
  font-weight: 900;
  color: #073b58;
}

/* Regolazioni finali */
.clinical-practice .subsection-title, .subsection-title {
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}
.article-download-card a {
  pointer-events: none;
}
.publication-download {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}
.download-label {
  display: none !important;
}

/* Regolazioni definitive */
.why .checks-block, .why .checks-block li {
  font-size: 18px !important;
  line-height: 1.72 !important;
}
.appointment-card {
  box-shadow: none !important;
}

/* Hero, immagini e area paziente */
.hero {
  position: relative;
}
.hero-card {
  left: 8%;
  top: 150px;
  width: 480px;
  z-index: 2;
}
.hero-card h1 {
  font-size: 42px;
}
.hero-card p {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  margin: 6px 0 0;
}
.hero-doctor {
  position: absolute;
  right: 12%;
  bottom: 0;
  height: 450px;
  max-height: 92%;
  z-index: 2;
  object-fit: contain;
}
.avatar-photo {
  overflow: hidden;
  background: #fff;
  padding: 0;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.image-card {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.14);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.register-link {
  margin-top: 12px;
  font-size: 14px;
  color: #526677;
}
.register-link button {
  border: 0;
  background: transparent;
  color: #0ca6df;
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
}
.register-panel {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe4ea;
  border-radius: 6px;
  background: #f8fbfd;
}
.register-panel.open {
  display: block;
}
.register-panel h3 {
  margin: 0 0 12px;
  color: #0b3f63;
}
.register-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}
.register-grid input {
  padding: 12px;
  border: 1px solid #d6e1e8;
  border-radius: 4px;
  font-size: 14px;
}
#patientRegister {
  margin-top: 12px;
  background: #0ca6df;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}
#registerMessage {
  display: block;
  margin-top: 10px;
  color: #0b3f63;
  font-weight: 700;
}
@media (max-width:980px) {
  .hero-doctor {
    right: 2%;
    height: 300px;
    opacity: .9;
  }
  .hero-card {
    width: 80%;
    left: 5%;
    top: 110px;
  }
  .hero-card h1 {
    font-size: 34px;
  }
  .hero-card p {
    font-size: 19px;
  }
  .register-grid {
    grid-template-columns: 1fr;
  }
  .image-card {
    height: 230px;
  }
}

/* Gallerie cliniche e nuova galleria immagini */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 26px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 940px;
  margin: 32px auto 6px;
}
.service-gallery-single {
  grid-template-columns: minmax(0,680px);
}
.service-gallery-pair {
  grid-template-columns: repeat(2,minmax(0,420px));
}
.service-figure {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.service-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 530px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #f7fafc;
  box-shadow: 0 5px 18px rgba(7,59,88,.18);
}
.service-figure figcaption {
  width: 100%;
  max-width: 700px;
  margin: 12px auto 0;
  color: #073b58;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}
.tumori-genetici-text p {
  margin: 0 0 15px;
}
.innovation-photo .endoscope-img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 440px !important;
  height: auto !important;
  object-fit: contain !important;
}
.gallery-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 52px;
  gap: 18px;
  align-items: center;
  margin-top: 42px;
}
.gallery-viewport {
  min-width: 0;
  overflow: hidden;
}
.gallery-track {
  width: 100%;
}
.gallery-slide {
  display: none;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 42px;
  align-items: stretch;
}
.gallery-slide.active {
  display: grid;
  animation: galleryFade .32s ease;
}
@keyframes galleryFade {
  from {
    opacity: .3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gallery-card {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}
.gallery-image-wrap {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-card figcaption {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 14px 16px;
  color: #073b58;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  border-top: 1px solid #e4edf2;
}
.gallery-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #0ca6df;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.gallery-arrow:hover {
  filter: brightness(1.06);
}
.gallery-arrow:focus-visible,.gallery-dot:focus-visible {
  outline: 3px solid #073b58;
  outline-offset: 3px;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}
.gallery-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8dbea;
  cursor: pointer;
}
.gallery-dot.active {
  background: #49b9dd;
  transform: scale(1.15);
}
@media (max-width:980px) {
  .gallery-slide {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
  }
  .gallery-slide .gallery-card:nth-child(3) {
    grid-column: 1/-1;
    max-width: 430px;
    width: 100%;
    justify-self: center;
  }
  .gallery-image-wrap {
    height: 250px;
  }
}
@media (max-width:700px) {
  .service-gallery,.service-gallery-pair {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .service-detail {
    padding: 26px 18px;
  }
  .service-figure img {
    max-height: 440px;
  }
  .gallery-carousel {
    grid-template-columns: 38px minmax(0,1fr) 38px;
    gap: 8px;
  }
  .gallery-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-slide .gallery-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 29px;
  }
  .gallery-image-wrap {
    height: 260px;
  }
}

/* Lightbox per tutte le immagini del sito */
.zoomable-image {
  cursor: zoom-in;
}
.zoomable-image:focus-visible {
  outline: 3px solid #0ca6df;
  outline-offset: 4px;
}
body.lightbox-open {
  overflow: hidden;
}
.site-lightbox[hidden] {
  display: none;
}
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2,18,29,.88);
  opacity: 0;
  transition: opacity .18s ease;
}
.site-lightbox.open {
  opacity: 1;
}
.site-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 92vh;
}
.site-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 45px rgba(0,0,0,.42);
}
.site-lightbox-caption {
  max-width: 900px;
  margin: 14px auto 0;
  padding: 9px 14px;
  border-radius: 5px;
  background: rgba(255,255,255,.96);
  color: #073b58;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
.site-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10000;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(7,59,88,.88);
  color: #fff;
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.site-lightbox-close:hover {
  background: #0ca6df;
}
.site-lightbox-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
@media (max-width:700px) {
  .site-lightbox {
    padding: 18px;
  }
  .site-lightbox-image {
    max-width: 96vw;
    max-height: 80vh;
  }
  .site-lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 31px;
    line-height: 35px;
  }
  .site-lightbox-caption {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* Immagini della sezione Tumori Genetici */
.tumori-genetici-gallery {
  grid-template-columns: 1fr;
  max-width: 940px;
}
.tumori-genetici-gallery .service-figure:first-child img {
  width: 100%;
  max-width: 900px;
  max-height: none;
}
.tumori-genetici-gallery .service-figure:last-child img {
  width: 100%;
  max-width: 620px;
  max-height: none;
}

/* Hero principale */
.hero {
  min-height: 520px;
  background: linear-gradient(rgba(168,219,240,.20),rgba(107,179,207,.20)),url("assets/hero-bg.png") 18% center/cover no-repeat !important;
}
.hero-card {
  left: 7%;
  top: 146px;
  width: 480px;
  background: rgba(46,68,84,.66);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}
.hero-doctor {
  right: 8%;
  bottom: 0;
  height: 500px;
  max-height: 97%;
  width: auto;
}
@media (max-width:980px) {
  .hero {
    background-position: 28% center !important;
  }
  .hero-card {
    left: 5%;
    top: 108px;
    width: 88%;
  }
  .hero-doctor {
    right: 1%;
    height: 330px;
  }
}

/* Social media */
.social-row {
  gap: 36px;
  flex-wrap: wrap;
}
.social-row a {
  min-width: 220px;
  text-align: center;
  padding: 14px 22px;
  border: 2px solid #15a2e0;
  border-radius: 10px;
  color: #0c7db0;
  font-weight: 700;
  background: #fff;
  text-decoration: none;
}
.social-row a:hover {
  background: #f2fbff;
}

/* Video */
.media-grid-videos {
  align-items: start;
}
.video-card {
  overflow: hidden;
  border-radius: 14px;
}
.video-embed {
  display: block;
  width: 100%;
  height: 240px;
  background: #0d2031;
}
.video-card .vcopy {
  padding: 16px 18px;
  line-height: 1.5;
}

/* Galleria tumori genetici */
.tumori-genetici-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 22px;
  justify-items: center;
}
.tumori-genetici-gallery .service-figure {
  max-width: 360px;
  width: 100%;
}

/* Lightbox: mostra descrizione solo se presente nel figcaption */
.site-lightbox-caption[hidden] {
  display: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 18px 18px 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: #3d4e5f;
}
.cookie-banner p {
  margin: 0 auto 16px;
  max-width: 980px;
  font-size: 16px;
  line-height: 1.55;
}
.cookie-banner p a,.cookie-links a {
  color: #15a2e0;
  text-decoration: none;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cookie-btn {
  min-width: 210px;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: .2s ease;
}
.cookie-outline {
  background: #fff;
  border: 2px solid #15a2e0;
  color: #15a2e0;
}
.cookie-light {
  background: #eaf7fd;
  border: 2px solid #8fd0ee;
  color: #1598d7;
}
.cookie-primary {
  background: #17a5e4;
  border: 2px solid #17a5e4;
  color: #fff;
}
.cookie-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
}
body.lightbox-open .cookie-banner {
  display: none;
}
@media (max-width:760px) {
  .cookie-btn {
    min-width: 100%;
  }
  .cookie-banner {
    padding: 15px 12px 18px;
  }
  .cookie-banner p {
    font-size: 14px;
  }
}

/* Sfondi azzurri */
.hero {
  background-image: linear-gradient(rgba(116,202,238,.22),rgba(74,169,214,.28)),
    url("assets/hero-stethoscope-lightblue.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: #a9d8ee !important;
}
.appointment {
  background-image: linear-gradient(rgba(126,207,240,.24),rgba(81,177,220,.30)),
    url("assets/appointment-medical-team-lightblue.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: #b2ddf0 !important;
}
@media (max-width:980px) {
  .hero {
    background-position: 38% center !important;
  }
  .appointment {
    background-position: 68% center !important;
  }
}

/* Regolazioni hero */
.hero-card h1 {
  font-size: 38px !important;
  line-height: 1.08;
}
.hero-card p {
  font-size: 21px !important;
  line-height: 1.28;
  font-weight: 700;
  margin-top: 10px;
}
.hero-doctor {
  right: 11% !important;
  bottom: -10px !important;
  height: 555px !important;
  max-height: none !important;
  width: auto !important;
}
@media (max-width:980px) {
  .hero-card h1 {
    font-size: 32px !important;
  }
  .hero-card p {
    font-size: 18px !important;
  }
  .hero-doctor {
    right: -2% !important;
    bottom: -6px !important;
    height: 370px !important;
  }
}

/* Pulsante permanente per riaprire le preferenze cookie */
.cookie-preferences-trigger {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #85cce9;
  border-radius: 999px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 18px rgba(0,40,65,.16);
  color: #07577f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-preferences-trigger:hover,
.cookie-preferences-trigger:focus-visible {
  border-color: #17a5e4;
  background: #eaf7fd;
  outline: none;
}
.cookie-preferences-trigger[hidden],
body.cookie-modal-open .cookie-preferences-trigger,
body.lightbox-open .cookie-preferences-trigger {
  display: none;
}
@media (max-width:640px) {
  .cookie-preferences-trigger {
    left: 10px;
    bottom: 10px;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Pannelli informativi cookie */
.cookie-links a,
.cookie-banner p a {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5,30,46,.72);
  opacity: 0;
  transition: opacity .16s ease;
}
.cookie-modal[hidden] {
  display: none;
}
.cookie-modal.open {
  opacity: 1;
}
.cookie-modal-dialog {
  position: relative;
  width: min(760px,100%);
  max-height: min(82vh,760px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  transform: translateY(12px);
  transition: transform .16s ease;
}
.cookie-modal.open .cookie-modal-dialog {
  transform: translateY(0);
}
.cookie-modal-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eaf7fd;
  color: #07577f;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.cookie-modal-body {
  padding: 34px 42px 38px;
  color: #243b4b;
  font-size: 16px;
  line-height: 1.65;
}
.cookie-modal-body h2 {
  margin: 0 54px 18px 0;
  color: #073f61;
  font-size: 30px;
}
.cookie-modal-body h3 {
  margin: 24px 0 8px;
  color: #07577f;
  font-size: 20px;
}
.cookie-modal-body p {
  margin: 0 0 14px;
}
.cookie-policy-note {
  margin-top: 24px !important;
  padding: 14px 16px;
  border-left: 4px solid #17a5e4;
  background: #f1faff;
  font-size: 14px;
}
.cookie-settings-form {
  margin-top: 22px;
}
.cookie-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid #dce8ef;
}
.cookie-setting-row span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cookie-setting-row small {
  color: #607787;
  line-height: 1.4;
}
.cookie-setting-row input {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  accent-color: #17a5e4;
}
.cookie-setting-required {
  background: #f8fcfe;
}
.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
body.cookie-modal-open {
  overflow: hidden;
}
body.cookie-modal-open .cookie-banner {
  visibility: hidden;
}
@media (max-width:640px) {
  .cookie-modal {
    padding: 12px;
  }
  .cookie-modal-dialog {
    max-height: 90vh;
  }
  .cookie-modal-body {
    padding: 24px 22px 28px;
    font-size: 15px;
  }
  .cookie-modal-body h2 {
    font-size: 25px;
  }
  .cookie-setting-row {
    align-items: flex-start;
  }
  .cookie-settings-actions .cookie-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Titolo del medico su una sola riga */
.hero-card h1 {
  white-space: nowrap !important;
  font-size: 35px !important;
}
@media (max-width: 980px) {
  .hero-card h1 {
    font-size: 29px !important;
  }
}
@media (max-width: 520px) {
  .hero-card h1 {
    font-size: 24px !important;
  }
}


/* Mantiene visibile la scritta del pulsante Richiedi visita anche al clic */
.nav .cta,
.nav .cta:link,
.nav .cta:visited,
.nav .cta:hover,
.nav .cta:focus,
.nav .cta:focus-visible,
.nav .cta:active {
  background: var(--blue2);
  color: #fff;
  -webkit-text-fill-color: #fff;
  opacity: 1;
}

/* Recensioni salvate, logout e gestione eliminazione */
.review-grid {
  max-height: 760px;
  overflow-y: auto;
  align-items: start;
  padding: 4px 8px 12px 4px;
  scrollbar-gutter: stable;
}

.review-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-card p {
  flex: 1;
}

.review-date {
  display: block;
  margin-top: 10px;
  color: #61717f;
  font-size: 13px;
}

.review-delete {
  margin-top: 14px;
  border: 1px solid #c53b3b;
  border-radius: 5px;
  background: #fff;
  color: #a82929;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
}

.review-delete:hover,
.review-delete:focus {
  background: #fff1f1;
}

.login-row {
  grid-template-columns: 1fr 1fr auto auto;
}

.logout-button {
  background: #fff !important;
  color: #0b79ad !important;
  border: 1px solid #0ca6df !important;
}

.admin-review-area {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d5e2e9;
  border-radius: 6px;
  background: #f7fbfd;
}

.admin-review-area > strong {
  display: block;
  margin-bottom: 10px;
  color: #073b58;
}

.admin-login-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.admin-login-row input {
  padding: 12px;
  border: 1px solid #d5dde3;
  border-radius: 4px;
}

.admin-login-row button {
  border: 0;
  border-radius: 4px;
  padding: 12px 16px;
  background: #073b58;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.admin-review-area small,
.auth-message {
  display: block;
  margin-top: 9px;
  color: #536675;
}

.auth-message {
  min-height: 20px;
  font-weight: 700;
}

.auth-message.error {
  color: #a82929;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .login-row,
  .admin-login-row {
    grid-template-columns: 1fr;
  }

  .review-grid {
    max-height: 620px;
  }
}

/* RECENSIONI DINAMICHE CON DATABASE */
.review-summary {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,.14);
  text-align: left;
}
.review-summary small {
  display: block;
  margin-top: 4px;
  color: #5a6b79;
}
.review-average-number {
  min-width: 92px;
  color: #073b58;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}
.review-average-stars {
  margin-bottom: 3px;
  font-size: 24px;
}
.review-grid {
  max-height: 760px;
  overflow-y: auto;
  padding: 4px 8px 14px 4px;
  align-items: stretch;
  scrollbar-gutter: stable;
}
.review-card {
  height: 100%;
}
.review-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-empty {
  grid-column: 1 / -1;
  padding: 28px;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  text-align: center;
  color: #405261;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.review-error {
  color: #9f2525;
  border: 1px solid #e3b8b8;
}
.login-row {
  grid-template-columns: 1fr 1fr auto auto auto;
}
.admin-login-row {
  grid-template-columns: 1fr 1fr auto auto;
}
.danger-outline-button {
  background: #fff !important;
  color: #a82929 !important;
  border: 1px solid #c53b3b !important;
}
.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.register-actions #patientRegister,
.register-actions .secondary-button {
  margin-top: 0;
}
.secondary-button {
  border: 1px solid #0ca6df;
  border-radius: 4px;
  background: #fff;
  color: #087faf;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}
#registerMessage.error {
  color: #a82929;
}
@media (max-width: 980px) {
  .login-row,
  .admin-login-row {
    grid-template-columns: 1fr;
  }
  .review-summary {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 560px) {
  .review-summary {
    flex-direction: column;
    gap: 10px;
  }
  .review-grid {
    max-height: 680px;
  }
}

/* Riquadri dei contatti della stessa altezza */

.contact-grid-multiple {
  align-items: stretch;
}                     /* Allunga i riquadri presenti sulla stessa riga fino ad avere la stessa altezza */

.contact-grid-multiple .contact-box {
  height: 100%;
  min-height: 180px;
}                  /* Ogni scheda deve occupare tutta l’altezza disponibile nella sua riga */
/* CORREZIONE VISUALIZZAZIONE TABLET E TELEFONO */

@media (max-width: 980px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 92%;
  }

  .hero {
    height: 610px !important;
    min-height: 610px !important;
    background-position: 36% center !important;
  }

  .hero-card {
    left: 5% !important;
    top: 42px !important;
    width: 90% !important;
    padding: 20px 18px !important;
    z-index: 5 !important;
  }

  .hero-card h1 {
    font-size: 28px !important;
  }

  .hero-card p {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  .hero-doctor {
    right: -10px !important;
    bottom: -4px !important;
    height: 350px !important;
    z-index: 2 !important;
  }

  .stats-strip,
  .stats-strip-three {
    width: 92% !important;
    margin: -14px auto 30px !important;
  }

  .stat-box {
    min-height: 160px !important;
    padding: 22px 15px;
  }

  .stat-icon {
    margin-bottom: 10px;
    font-size: 36px;
  }

  .stat-box strong,
  .stats-strip-three .stat-box strong {
    max-width: 310px;
    font-size: 21px !important;
    line-height: 1.2;
  }

  .section {
    padding: 46px 0;
  }

  .section-title,
  .why h2 {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 30px !important;
    line-height: 1.16;
  }

  .clinical-practice .section-title {
    width: 92%;
    margin-right: auto;
    margin-left: auto;
    font-size: 26px !important;
  }

  .expert {
    padding: 44px 0 36px;
  }

  .expert-grid {
    gap: 38px !important;
    margin-top: 34px;
  }

  .bag {
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
  }

  .bag svg {
    width: 52px;
    height: 52px;
  }

  .expert-card h3 {
    font-size: 20px;
    line-height: 1.25;
  }

  .expert-card p {
    margin-bottom: 12px;
  }

  .expert-card button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .gallery-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: start;
    margin-top: 30px;
  }

  .gallery-arrow {
    margin-top: 105px;
  }

  .gallery-image-wrap {
    height: 230px !important;
  }

  .gallery-slide {
    gap: 18px !important;
  }

  .media-grid {
    gap: 24px;
    margin-top: 30px;
  }

  .video-embed {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .video-card .vcopy {
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  .appointment {
    padding: 44px 0 58px;
  }

  .appointment .section-title {
    font-size: 28px !important;
  }

  .appointment-card {
    width: 94%;
    margin-top: 26px;
    padding: 10px;
  }

  .booking-box {
    padding: 14px;
  }

  .booking-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .booking-item .price {
    grid-column: 2;
    justify-self: start;
  }

  .article-list {
    gap: 14px;
    margin-top: 28px;
  }

  .article-card {
    padding: 17px 15px;
  }

  .article-card h3 {
    font-size: 17px;
  }

  .article-card p {
    font-size: 14px;
  }

  .social-row {
    gap: 16px;
    margin-top: 28px;
  }

  .social-row a {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    font-size: 17px;
  }

  .contact-grid {
    gap: 24px;
    margin-top: 28px;
  }

  .map {
    height: 220px;
  }
}

@media (max-width: 980px) and (orientation: portrait) {
  .brand {
    font-size: 20px !important;
  }

  .nav-toggle {
    font-size: 30px;
  }

  .hero {
    height: 580px !important;
    min-height: 580px !important;
  }

  .hero-card {
    left: 4% !important;
    top: 28px !important;
    width: 92% !important;
    padding: 17px 12px !important;
  }

  .hero-card h1 {
    font-size: 22px !important;
  }

  .hero-card p {
    font-size: 15px !important;
  }

  .hero-doctor {
    right: -28px !important;
    height: 325px !important;
  }

  .section-title,
  .why h2 {
    font-size: 27px !important;
  }

  .stat-box strong,
  .stats-strip-three .stat-box strong {
    font-size: 19px !important;
  }

  .cookie-preferences-trigger {
    right: 7px !important;
    bottom: 7px !important;
    left: auto !important;
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 10px !important;
    opacity: 0.92;
  }

  .doctor-row {
    gap: 12px;
  }

  .avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }

  .doctor-row h3 {
    font-size: 18px;
  }

  .booking-select {
    padding: 11px 10px;
    font-size: 14px;
  }
}
