/* Mobile and portrait tablet layout for the Iuliano website */
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .container { width: min(100% - 32px, 760px) !important; }

  .topbar, .profile-header,
  .nav-inner, .profile-header .container { height: 56px !important; }
  .nav { top: 56px !important; }
  .brand { font-size: 22px !important; }
  .nav-toggle { font-size: 30px !important; }

  .hero {
    height: 620px !important;
    min-height: 620px !important;
    background-position: 34% center !important;
  }
  .hero-card {
    left: 16px !important;
    right: 16px !important;
    top: 24px !important;
    width: auto !important;
    padding: 18px 14px !important;
    border-radius: 12px !important;
    z-index: 4 !important;
  }
  .hero-card h1 {
    white-space: normal !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
  }
  .hero-card p {
    font-size: 18px !important;
    line-height: 1.28 !important;
    margin-top: 8px !important;
  }
  .hero-doctor {
    right: -8px !important;
    bottom: 0 !important;
    height: 390px !important;
    max-height: none !important;
    z-index: 2 !important;
  }

  .stats-strip,
  .stats-strip-three {
    width: calc(100% - 32px) !important;
    margin: -20px auto 30px !important;
    grid-template-columns: 1fr !important;
  }
  .stat-box {
    min-height: 138px !important;
    padding: 22px 16px !important;
  }
  .stat-icon { margin-bottom: 8px !important; font-size: 38px !important; }
  .stat-box strong,
  .stats-strip-three .stat-box strong {
    max-width: 520px !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
  }

  .section { padding: 44px 0 !important; }
  .section-title,
  .why h2,
  .clinical-practice h2 {
    font-size: 29px !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere;
  }
  .why p,
  .why .checks-block,
  .why .checks-block li {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }
  .subsection-title,
  .clinical-practice .subsection-title {
    font-size: 27px !important;
  }

  .expert { padding: 42px 0 !important; }
  .expert-grid,
  .expert-grid-wide {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 30px !important;
  }
  .expert-card {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-areas:
      "icon title"
      "icon description"
      "icon action" !important;
    column-gap: 16px !important;
    row-gap: 4px !important;
    align-items: center !important;
    padding: 14px !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.045) !important;
    text-align: left !important;
  }
  .bag {
    grid-area: icon !important;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
  }
  .bag svg { width: 45px !important; height: 45px !important; }
  .expert-card h3 {
    grid-area: title !important;
    min-height: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
  .expert-card p {
    grid-area: description !important;
    margin: 3px 0 6px !important;
    font-size: 14px !important;
  }
  .expert-card button {
    grid-area: action !important;
    justify-self: start !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
  }

  .clinical-layout,
  .innovation-wrap { grid-template-columns: 1fr !important; }
  .clinical-image { min-height: 280px !important; }
  .clinical-list { padding: 30px 22px !important; }
  .clinical-list li { font-size: 18px !important; }

  .gallery-carousel {
    grid-template-columns: 34px minmax(0,1fr) 34px !important;
    gap: 6px !important;
    margin-top: 28px !important;
  }
  .gallery-slide { grid-template-columns: 1fr !important; gap: 16px !important; }
  .gallery-slide .gallery-card:nth-child(3) { grid-column: auto !important; max-width: none !important; }
  .gallery-arrow { width: 34px !important; height: 34px !important; font-size: 25px !important; }
  .gallery-image-wrap { height: 230px !important; }
  .gallery-card figcaption { font-size: 14px !important; }

  .media-grid,
  .media-grid-videos { grid-template-columns: 1fr !important; gap: 22px !important; margin-top: 28px !important; }
  .video-embed { height: auto !important; aspect-ratio: 16 / 9 !important; }
  .video-card .vcopy { padding: 14px 16px !important; font-size: 16px !important; line-height: 1.45 !important; }

  .appointment { padding: 42px 0 54px !important; }
  .appointment .section-title { font-size: 29px !important; }
  .appointment-card { width: calc(100% - 24px) !important; margin-top: 24px !important; padding: 12px !important; }
  .doctor-row { gap: 12px !important; }
  .avatar { width: 72px !important; height: 72px !important; flex: 0 0 72px !important; }
  .doctor-row h3 { font-size: 19px !important; }
  .booking-box { padding: 14px !important; }
  .booking-item {
    grid-template-columns: 28px minmax(0,1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .booking-item .price,
  .booking-item > .price { grid-column: 2 !important; justify-self: start !important; }

  .article-list { grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 28px !important; }
  .article-card { padding: 17px 16px !important; }
  .article-card h3 { font-size: 17px !important; line-height: 1.38 !important; overflow-wrap: anywhere; }
  .article-card p { font-size: 14px !important; }

  .review-summary { padding: 16px !important; }
  .review-form { padding: 18px !important; }
  .review-card { padding: 20px !important; }

  .social-row { gap: 16px !important; margin-top: 28px !important; }
  .social-row a { width: 100% !important; min-width: 0 !important; padding: 12px 16px !important; font-size: 17px !important; }
  .contact-grid,
  .contact-grid-multiple { grid-template-columns: 1fr !important; gap: 22px !important; margin-top: 28px !important; }
  .map { height: 220px !important; }

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

@media (max-width: 560px) {
  .container { width: calc(100% - 24px) !important; }
  .brand { font-size: 20px !important; }
  .hero {
    height: 575px !important;
    min-height: 575px !important;
  }
  .hero-card {
    left: 12px !important;
    right: 12px !important;
    top: 18px !important;
    padding: 15px 12px !important;
  }
  .hero-card h1 { font-size: 24px !important; }
  .hero-card p { font-size: 16px !important; }
  .hero-doctor { right: -24px !important; height: 350px !important; }
  .stats-strip,
  .stats-strip-three { width: calc(100% - 24px) !important; }
  .stat-box { min-height: 125px !important; }
  .stat-box strong,
  .stats-strip-three .stat-box strong { font-size: 19px !important; }
  .section-title,
  .why h2,
  .clinical-practice h2 { font-size: 26px !important; }
  .expert-card { grid-template-columns: 66px minmax(0,1fr) !important; column-gap: 12px !important; padding: 12px !important; }
  .bag { width: 64px !important; height: 64px !important; }
  .bag svg { width: 40px !important; height: 40px !important; }
  .expert-card h3 { font-size: 17px !important; }
  .appointment .section-title { font-size: 26px !important; }
}
@media (max-width: 900px) {
  .gallery-carousel {
    align-items: center !important;
  }

  .gallery-arrow {
    align-self: center !important;
    margin-top: 0 !important;
    top: auto !important;
    bottom: auto !important;
  }
}
