@import url('fonts/fonts.css');

:root {
  --primary:       #0a0a0a;
  --primary-light: #1a1a1a;
  --accent:        #0d9488;
  --accent-light:  #14b8a6;
  --brand:         #0086b5;
  --brand-dark:    #006a91;
  --accent-rgb:    13, 148, 136;
  --brand-rgb:     0, 134, 181;
  --wa:            #22c55e;
  --wa-hover:      #16a34e;
  --wa-rgb:        34, 197, 94;
  --text:          #0a0a0a;
  --text-light:    #5c6570;
  --text-on-dark:  rgba(255, 255, 255, 0.88);
  --bg:            #ffffff;
  --bg-light:      #f8fafc;
  --bg-alt:        #f8fafc;
  --border:        #e2e8f0;
  --title:         var(--accent);
  --title-on-dark: #f8fafc;
  --title-light:   var(--accent-light);
  --surface-dark:  var(--hero-gradient);
  --hero-gradient: linear-gradient(145deg, #003d56 0%, var(--brand-dark) 46%, var(--brand) 100%);
  --radius:        14px;
  --radius-btn:    6px;
  --shadow:        0 2px 24px rgba(10, 10, 10, 0.05);
  --shadow-md:     0 6px 32px rgba(10, 10, 10, 0.08);
  --shadow-lg:     0 14px 56px rgba(10, 10, 10, 0.10);
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast:  0.18s;
  --t-base:  0.28s;
  --t-slow:  0.42s;
  --font-serif: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
}

/* Teal titles on light surfaces; off-white titles on brand-blue surfaces */
#hero .hero-title,
#hero .hero-payoff,
.page-banner h1,
.blog-page-hero .blog-hero-title,
.article-hero .article-hero-title,
.pagamenti-section .section-title,
.blog-cta .section-title,
.article-cta h3,
body > footer .footer-brand-name,
body > footer .footer-col-title,
.sidebar-cta .sidebar-card-title,
#stats .stat-num {
  color: var(--title-on-dark);
}

#hero .hero-title em,
.blog-page-hero .blog-hero-title em {
  color: rgba(255, 255, 255, 0.82);
}

#hero .btn-outline {
  color: var(--title-on-dark);
  border-color: rgba(255, 255, 255, 0.55);
}

#hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { min-width: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  letter-spacing: 0.005em;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.cookie-consent-lock,
html.cookie-consent-lock body {
  overflow: hidden;
  height: 100%;
}

html.cookie-consent-lock body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 299;
  pointer-events: auto;
}

img, video, iframe, embed, object { max-width: 100%; }
img   { height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
em, i, cite { font-style: normal; }

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section     { padding: 96px 0; }
.section-alt { background: var(--bg-light); }

/* Section typography */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: var(--title);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.8;
}

.section-subtitle-accent {
  font-weight: 700;
  color: var(--accent);
}

.section-header          { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.035em;
  cursor: pointer;
  border: none;
  transition:
    transform    var(--t-base) var(--ease),
    box-shadow   var(--t-base) var(--ease),
    background   var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color        var(--t-base) var(--ease),
    opacity      var(--t-base) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.32); }

.btn-dark  { background: var(--brand-dark); color: white; }
.btn-dark:hover { background: var(--brand); box-shadow: 0 8px 24px rgba(var(--brand-rgb), 0.35); }

.btn-wa { background: var(--wa); color: white; }
.btn-wa:hover { background: var(--wa-hover); box-shadow: 0 8px 24px rgba(var(--wa-rgb), 0.35); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost  { background: rgba(255,255,255,0.10); color: white; border: 1px solid rgba(255,255,255,0.30); }
.btn-ghost:hover { background: rgba(255,255,255,0.20); }

.btn-urgent { background: transparent; color: var(--text-light); border: 1.5px solid var(--border); }
.btn-urgent:hover { background: var(--bg-alt); color: var(--primary); border-color: var(--primary); }

.btn-full { width: 100%; justify-content: center; }

/* Header */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(var(--brand-rgb), 0.08);
  transition: box-shadow var(--t-base) var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  height: 54px;
  width: auto;
  max-width: min(210px, 44vw);
  object-fit: contain;
  transition: opacity var(--t-base) var(--ease);
}
.logo:hover .logo-image { opacity: 0.88; }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity var(--t-base) var(--ease);
}
.logo:hover .logo-mark img { opacity: 0.85; }

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--title);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.logo-text-desktop { display: none; }
.logo-sub { font-size: 0.67rem; color: var(--text-light); font-weight: 400; letter-spacing: 0.02em; }

.main-nav ul { display: none; gap: 28px; }

.main-nav a {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-light);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover  { color: var(--primary); }
.main-nav a.active { color: var(--title); border-bottom-color: var(--accent); font-weight: 500; }

.nav-item-dropdown { position: relative; }

@media (min-width: 769px) {
  .nav-item-dropdown:hover,
  .nav-item-dropdown.is-hover,
  .nav-item-dropdown.is-open { z-index: 130; }
}

.nav-dropdown-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-dropdown-row > a { border-bottom: none; padding-bottom: 4px; }

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.nav-dropdown-btn:hover,
.nav-item-dropdown.is-open .nav-dropdown-btn {
  color: var(--primary);
  background: rgba(var(--brand-rgb), 0.1);
}

.nav-item-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-chevron {
  display: block;
  transition: transform 0.22s var(--ease);
}

.nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: max-content;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 10px 0 8px;
  list-style: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
  z-index: 120;
}

.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown.is-hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-light);
  white-space: nowrap;
  border-bottom: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--title);
}

.mobile-nav-dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-dropdown-row > a {
  flex: 1;
  border-bottom: none;
  padding: 14px 0;
}

.mobile-nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav-dropdown-btn:hover,
.mobile-nav-item-dropdown.is-open .mobile-nav-dropdown-btn {
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--title);
}

.mobile-nav-item-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.mobile-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-submenu[hidden] { display: none; }

.mobile-nav-submenu a {
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
}

.mobile-nav-submenu a:hover,
.mobile-nav-submenu a.is-active {
  color: var(--accent);
  font-weight: 500;
}

.header-right { display: flex; align-items: center; gap: 10px; }

/* Phone stays in mobile drawer, footer, and Contatti — not in the desktop header bar */
.header-phone {
  display: none !important;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.28s var(--ease);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: white;
  z-index: 201;
  padding: 88px 24px max(24px, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  box-shadow: -8px 0 40px rgba(var(--brand-rgb), 0.16);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-nav-drawer > ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.mobile-nav-drawer li   { border-bottom: 1px solid var(--border); }
.mobile-nav-drawer ul a { display: block; padding: 14px 0; font-weight: 400; color: var(--text); transition: color var(--t-base) var(--ease); }
.mobile-nav-drawer ul a:hover  { color: var(--primary); }
.mobile-nav-drawer ul a.active,
.mobile-nav-drawer .mobile-nav-dropdown-row > a.active {
  color: var(--text);
  font-weight: 400;
}
.mobile-nav-drawer .mobile-nav-dropdown-row { border-bottom: none; }
.mobile-nav-drawer .mobile-nav-submenu li:last-child { border-bottom: none; }
.drawer-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 0 2px; }

.drawer-ctas .btn-wa::before {
  content: '💬';
  font-size: 1.05em;
  line-height: 1;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop {
    display: none;
  }
}

body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  body.nav-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }
}

.footer-sep .cookie-manage-link { cursor: pointer; }

@media (max-width: 1023px) {
  .header-inner { gap: 8px; }

  .main-nav { display: none; }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-image {
    height: 48px;
    max-width: min(190px, 52vw);
  }

  .logo > div:last-child {
    min-width: 0;
  }

  .logo-text {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-mark img {
    width: 42px;
    height: 42px;
  }

  .logo-sub { display: none; }

  .header-right {
    flex-shrink: 0;
    gap: 6px;
  }

  #header .header-right .btn.btn-primary {
    display: none;
  }

  #header .header-right .btn {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .hamburger {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 9px 7px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
  }

  .hamburger span {
    height: 2px;
    background: var(--primary);
  }
}

@media (min-width: 1024px) {
  #header .container {
    max-width: 1280px;
  }

  .hamburger { display: none; }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
  }

  .logo { min-width: 0; }
  .logo-sub { display: none; }
  .logo-text-desktop { display: inline; }

  .main-nav {
    min-width: 0;
    justify-self: stretch;
    padding-left: 4px;
  }

  .main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.2vw, 20px);
    width: max-content;
    max-width: 100%;
    margin-left: auto;
  }

  .main-nav li { flex-shrink: 0; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .main-nav a {
    font-size: 0.8rem;
  }
}

@media (min-width: 1200px) {
  .main-nav ul { gap: 22px; }
}

/* Hero */
#hero {
  background: var(--hero-gradient);
  color: white;
  padding: 88px 0 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}

/* Match oblique clip reveal to the next section surface (not plain body white) */
#hero + .section-alt {
  margin-top: -32px;
  padding-top: calc(96px + 32px);
}

@media (max-width: 767px) {
  #hero {
    padding: 44px 0 72px;
  }
}

#hero::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  min-width: 0;
}

@media (max-width: 767px) {
  .hero-inner {
    gap: 0;
  }

  .hero-content {
    display: contents;
  }

  #hero-title { order: 1; }
  .hero-photo,
  .hero-reviews { order: 2; }
  .hero-payoff { order: 3; }
  .hero-ctas { order: 4; }
  .hero-subtitle { order: 5; }
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 32px 64px;
    align-items: start;
  }

  .hero-photo {
    max-width: none;
    width: 100%;
    margin-bottom: 0;
    justify-self: end;
  }

  .hero-reviews {
    max-width: none;
    width: 100%;
    margin-bottom: 0;
    justify-self: end;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-photo {
  max-width: min(100%, 400px);
  margin-bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.hero-photo.team-photo--portrait {
  aspect-ratio: 1;
}
.hero-photo.team-photo--portrait img {
  transform: scale(1.32);
  object-position: 54% 12%;
}

.hero-reviews {
  min-width: 0;
  max-width: min(100%, 400px);
  margin-bottom: 24px;
}

.hero-reviews .reviews-header {
  margin-bottom: 20px;
  text-align: center;
}

.hero-reviews .reviews-summary {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 500;
  color: #fff;
}

.hero-reviews .reviews-rating-star {
  color: #fff;
}

.hero-reviews .reviews-carousel {
  margin-bottom: 16px;
}

.hero-reviews .reviews-cta a {
  color: #fff;
}

.hero-reviews .reviews-cta a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hero-reviews .review-card {
  flex: 0 0 100%;
  min-height: 180px;
  height: auto;
  max-height: min(52vh, 360px);
  text-align: center;
}

.hero-reviews .review-card blockquote p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-reviews .review-card blockquote {
  overflow: visible;
}

@media (min-width: 640px) {
  .hero-reviews .review-card {
    flex: 0 0 100%;
  }
}

@media (min-width: 960px) {
  .hero-reviews .review-card {
    flex: 0 0 100%;
    height: auto;
    max-height: none;
  }

  .hero-reviews .review-card blockquote {
    overflow: visible;
  }

  .hero-reviews .review-card blockquote p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.75;
  max-width: 460px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: var(--title-on-dark);
  transition:
    transform    var(--t-base) var(--ease),
    background   var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.hero-social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-social-btn:active {
  transform: translateY(0) scale(0.99);
}

.hero-social-btn::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.hero-social-btn--instagram::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

.hero-social-btn--facebook::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.miodottore-widget-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  min-height: 480px;
}

.miodottore-widget-wrap > a[data-zl-widget-facility] {
  display: block;
  width: 100%;
}

.miodottore-widget-wrap iframe {
  display: block;
  width: 100% !important;
  min-height: 480px;
  border: none;
}

.miodottore-widget-wrap:has(.miodottore-consent-placeholder) > a[data-zl-widget-facility],
.miodottore-widget-wrap--blocked > a[data-zl-widget-facility] {
  display: none;
}

.miodottore-widget-wrap:has(.miodottore-consent-placeholder) iframe {
  display: none !important;
}

.miodottore-widget-wrap--blocked,
.miodottore-widget-wrap:has(.miodottore-consent-placeholder) {
  background: var(--bg-light);
}

.miodottore-consent-placeholder {
  min-height: 480px;
  box-sizing: border-box;
}

.hero-payoff {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-weight: 700;
  opacity: 0.95;
  max-width: 520px;
  margin-bottom: 16px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* Stats */
#stats {
  background: var(--surface-dark);
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  color: white;
}

.stats-grid > div {
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stats-grid > div:nth-child(2n) { border-right: none; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.59rem;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  opacity: 1;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid > div { border-bottom: none; }
  .stats-grid > div:last-child { border-right: none; }
}

/* Google reviews */
.reviews-section {
  padding: 56px 0;
}

.reviews-header {
  text-align: center;
  margin-bottom: 32px;
}

.reviews-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 3.5vw + 1.5rem, 3.75rem);
  font-weight: 500;
  color: var(--title);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  text-wrap: balance;
}

.reviews-summary {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  margin: 0;
}

.reviews-rating-star {
  color: var(--accent);
  font-size: 1.05em;
  vertical-align: baseline;
}

.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.reviews-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.reviews-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.reviews-nav:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--accent);
  color: var(--accent);
}

.reviews-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  padding: 22px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  text-align: center;
}

.review-card .review-stars {
  font-size: 1rem;
  margin-bottom: 12px;
}

.review-card blockquote {
  margin: 0 0 14px;
  padding: 0;
  border: none;
  flex: 1;
  min-height: 0;
}

.review-card blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.32;
  margin: 0;
}

.review-stars {
  color: var(--accent);
  letter-spacing: 0.06em;
}

.review-author {
  margin-top: auto;
  font-style: normal;
}

.review-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.reviews-cta {
  text-align: center;
  margin: 0;
}

.reviews-cta a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.reviews-cta a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .review-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (min-width: 960px) {
  .review-card {
    flex: 0 0 calc((100% - 32px) / 3);
    height: 464px;
    box-sizing: border-box;
  }

  .review-card blockquote {
    overflow: hidden;
  }

  .review-card blockquote p {
    font-size: 1.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Page banner */
.page-banner {
  background: var(--surface-dark);
  color: white;
  padding: 64px 0 60px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.page-banner + .section-alt {
  margin-top: -32px;
  padding-top: calc(96px + 32px);
}

.page-banner::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner .breadcrumb {
  font-size: 0.76rem;
  font-weight: 300;
  opacity: 0.45;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  position: relative; z-index: 1;
}
.page-banner .breadcrumb a { color: white; transition: opacity var(--t-base) var(--ease); }
.page-banner .breadcrumb a:hover { opacity: 0.8; }

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.page-banner p {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.62;
  max-width: 500px;
  line-height: 1.7;
  position: relative; z-index: 1;
}

.page-banner-lead {
  max-width: 720px;
  opacity: 0.72;
}

/* Eccellenze */
.eccellenze-grid { display: grid; gap: 24px; }

.ecc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
  position: relative;
  overflow: hidden;
}
.ecc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.ecc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ecc-card:hover::before { opacity: 1; }

.ecc-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.7;
}
.ecc-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 12px;
  line-height: 1.25;
}
.ecc-desc  { color: var(--text-light); font-size: 0.91rem; font-weight: 300; margin-bottom: 0; line-height: 1.75; }

@media (min-width: 768px) {
  .eccellenze-grid--treatments { grid-template-columns: repeat(2, 1fr); }
}

.trattamenti-preview .ecc-card--trattamenti-preview-desktop {
  display: none;
}

@media (min-width: 768px) {
  .trattamenti-preview .ecc-card--trattamenti-preview-desktop {
    display: block;
  }
}

.eccellenze-grid--treatments .ecc-title { margin-bottom: 10px; }

.eccellenze-grid--treatments .ecc-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}

.eccellenze-grid--treatments .ecc-title a:hover { color: var(--accent); }

.eccellenze-grid--treatments .ecc-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.trattamenti-preview-aside {
  margin-top: 48px;
}

.trattamenti-preview-doctor {
  margin: 0;
}

.trattamenti-preview-doctor .team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trattamenti-preview-doctor-caption {
  padding: 20px 4px 0;
  text-align: center;
}

.trattamenti-preview-doctor-caption .team-name {
  display: block;
  margin-bottom: 6px;
}

.trattamenti-preview-doctor-caption .team-role {
  display: block;
  margin-bottom: 14px;
}

.trattamenti-preview-doctor-caption .team-bio {
  margin: 0;
  font-size: 0.88rem;
}

.trattamenti-preview-cta {
  margin: 36px 0 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .trattamenti-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 56px;
    align-items: start;
  }

  .trattamenti-preview-aside {
    margin-top: 0;
  }

  .trattamenti-preview-main .section-header {
    margin-bottom: 40px;
  }

  .trattamenti-preview-main .section-subtitle {
    max-width: none;
  }

  .trattamenti-preview-cta {
    text-align: left;
  }

  .trattamenti-preview-doctor-caption {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
}

.trattamento-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.trattamento-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trattamento-faq {
  margin-top: 2.5rem;
}

.trattamento-faq-header {
  margin-bottom: 28px;
}

.trattamento-faq .section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .trattamento-faq {
    margin-top: 2.75rem;
    margin-left: -24px;
    margin-right: -24px;
    padding: 40px 24px 48px;
    background: var(--bg-light);
  }
}

.trattamento-body .article-content > h2:first-child { margin-top: 0; }

.trattamento-specialist {
  margin: 2.5rem 0 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt, #faf9f7);
  box-shadow: var(--shadow);
}

.trattamento-specialist-heading {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.trattamento-specialist-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

.trattamento-specialist-photo {
  flex-shrink: 0;
  width: min(220px, 72vw);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trattamento-specialist-photo.team-photo--portrait img {
  object-position: 28% center;
}

.trattamento-specialist-caption {
  min-width: 0;
}

.trattamento-specialist-caption .team-name {
  display: block;
  margin-bottom: 6px;
}

.trattamento-specialist-caption .team-role {
  display: block;
  margin-bottom: 12px;
}

.trattamento-specialist-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.trattamento-specialist-team-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.trattamento-specialist-team-link:hover {
  color: var(--primary);
  border-bottom-color: currentColor;
}

@media (min-width: 1024px) {
  .trattamento-body {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .trattamento-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 56px;
    align-items: start;
  }

  .trattamento-main .article-content {
    grid-column: 1;
    grid-row: 1;
  }

  .trattamento-faq {
    grid-column: 1;
    grid-row: 2;
  }

  .trattamento-specialist {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0 0 0 auto;
    width: 60%;
    max-width: 60%;
    position: sticky;
    top: 32px;
    padding: 1.05rem 0.9rem;
  }

  .trattamento-specialist-heading {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .trattamento-specialist-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.75rem;
  }

  .trattamento-specialist-photo {
    width: 100%;
    max-width: 100%;
  }

  .trattamento-specialist-caption .team-name {
    font-size: 0.95rem;
  }

  .trattamento-specialist-caption .team-role {
    font-size: 0.7rem;
    margin-bottom: 7px;
  }

  .trattamento-specialist-note {
    font-size: 0.8rem;
  }

  .trattamento-specialist-team-link {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .trattamento-faq {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }

  .trattamento-faq .faq-list {
    max-width: none;
  }

  .trattamento-faq .faq-more {
    margin-top: 24px;
  }
}

.text-center { text-align: center; }

.mt-lg { margin-top: 2rem; }
.ecc-desc a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-base) var(--ease);
}
.ecc-desc a:hover { color: var(--accent); }
.ecc-link  {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.ecc-link:hover { border-bottom-color: var(--accent); }

@media (min-width: 768px) { .eccellenze-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .eccellenze-grid--pagamenti { grid-template-columns: repeat(3, 1fr); } }

/* Tutti i servizi */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.servizio-item {
  background: white;
  padding: 22px 24px;
  transition: background var(--t-base) var(--ease);
}
.servizio-item:hover { background: var(--bg-light); }

.serv-name { font-size: 0.9rem; font-weight: 500; color: var(--title); margin-bottom: 4px; }
.serv-desc { font-size: 0.77rem; font-weight: 300; color: var(--text-light); line-height: 1.5; }
.servizio-item .ecc-link { display: inline-block; margin-top: 12px; font-size: 0.78rem; }

@media (min-width: 768px)  { .servizi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .servizi-grid { grid-template-columns: repeat(4, 1fr); } }

/* Prima e dopo */
.pd-grid { display: grid; gap: 24px; }

.pd-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.pd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pd-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.pd-img {
  aspect-ratio: 1/1;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-img img { width: 100%; height: 100%; object-fit: cover; }

.pd-img-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-light);
  text-align: center;
  padding: 10px;
}

.pd-badge {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--brand-rgb), 0.82);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.pd-info   { padding: 18px 22px; }
.pd-title  { font-weight: 600; color: var(--title); font-size: 0.93rem; margin-bottom: 4px; }
.pd-detail { font-size: 0.78rem; font-weight: 300; color: var(--text-light); }

.pd-consent {
  text-align: center;
  margin-top: 24px;
  font-size: 0.73rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
}

@media (min-width: 768px)  { .pd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: repeat(3, 1fr); } }

/* Paura del dentista */
.paura-inner { display: grid; gap: 48px; align-items: start; }

.paura-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 700;
  color: var(--title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.paura-title em { color: var(--title-light); }

.paura-intro {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.8;
  color: var(--text);
}

.paura-checks {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.paura-checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.91rem;
  font-weight: 300;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
  transition: background var(--t-base) var(--ease);
}
.paura-checks li:last-child { border-bottom: none; }

.check-mark {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.paura-blockquote {
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.paura-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.paura-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}

.paura-reel-lead {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  margin: -8px 0 18px;
}

.paura-reel-card .article-featured-img {
  margin-bottom: 20px;
  overflow: hidden;
}

.paura-reel-card .article-featured-img img {
  max-height: min(72vh, 540px);
  object-fit: cover;
  object-position: center top;
}

.paura-reel-card .article-embed-wrap .article-embed-iframe:not([hidden]) {
  min-height: min(72vh, 540px);
}

.paura-reel-cta-secondary {
  margin-top: 10px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.7;
}
.steps-list li:last-child { border-bottom: none; }

.step-num {
  width: 24px;
  height: 24px;
  background: var(--brand-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.prose:last-child { margin-bottom: 0; }

.studio-grid { display: grid; gap: 40px; align-items: start; }

@media (min-width: 768px) {
  .paura-inner  { grid-template-columns: 55% 45%; }
  .studio-grid  { grid-template-columns: 1fr 1fr; }
}

/* Team */
.team-grid { display: grid; gap: 24px; }

.team-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.team-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.team-photo--portrait {
  aspect-ratio: 3/4;
}
.team-photo--portrait img {
  object-position: center 15%;
}
.trattamenti-preview-doctor .team-photo.team-photo--portrait img {
  object-position: 28% center;
}
.team-card:hover .team-photo img { transform: scale(1.04); }

.team-group-photo {
  margin: 48px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.team-group-photo img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Homepage: team + FAQ preview */
.team-preview-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.team-preview .team-group-photo--preview {
  margin-top: 0;
}

.team-preview-faq-title {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  margin-bottom: 10px;
}

.team-preview-faq-lead {
  margin: 0 0 20px;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-light);
}

.team-preview-faq .faq-list--home-preview,
.team-preview-faq .faq-more {
  max-width: none;
}

.team-preview-faq-more {
  text-align: center;
}

.team-preview-faq .faq-item--team-preview-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .team-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px 56px;
    align-items: start;
  }

  .team-preview .team-group-photo--preview {
    margin-top: 0;
    max-height: min(52vh, 480px);
  }

  .team-preview .team-group-photo--preview img {
    width: 100%;
    height: 100%;
    max-height: min(52vh, 480px);
    object-fit: cover;
    object-position: center 35%;
  }

  .team-preview-cta {
    margin-top: 28px;
  }

  .team-preview-faq-title,
  .team-preview-faq-lead {
    display: none;
  }

  .team-preview-faq .faq-item--team-preview-desktop {
    display: block;
  }

  .team-preview-faq-more {
    text-align: left;
  }

  .team-preview-faq .faq-question {
    font-size: 0.94rem;
    padding: 16px 20px;
    padding-right: 40px;
  }

  .team-preview-faq .faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 16px;
  }
}

.team-photo-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: var(--bg-light);
}

.person-silhouette {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.22);
}

.ph-label {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--text-light);
  text-align: center;
  padding: 0 16px;
}

.team-info { padding: 24px; }

.team-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 4px;
  line-height: 1.3;
}
.team-role {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.team-bio { font-size: 0.86rem; font-weight: 300; color: var(--text-light); line-height: 1.72; }

.studio-img-ph {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: center;
}

.studio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.studio-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.studio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.studio-gallery-item:hover img { transform: scale(1.04); }

@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
  .team-grid.team-grid--trio { grid-template-columns: repeat(3, 1fr); }
  .team-grid.team-grid--staff { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .team-grid.team-grid--staff { grid-template-columns: repeat(5, 1fr); }
}

/* Testimonianze */
.testi-grid { display: grid; gap: 20px; }

.testi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stars {
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--accent);
}

.testi-text {
  font-size: 0.91rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 18px;
}

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

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: white;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.author-name   { font-size: 0.87rem; font-weight: 600; color: var(--primary); }
.author-source { font-size: 0.74rem; font-weight: 300; color: var(--text-light); margin-top: 2px; }

.testi-cta-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.testi-rating  {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--title);
}
.testi-count   { font-size: 0.8rem; font-weight: 300; color: var(--text-light); margin-bottom: 18px; }

@media (min-width: 768px)  { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* Pagamenti */
.pagamenti-section {
  background: var(--surface-dark);
  color: white;
  padding: 72px 0;
}
.pagamenti-section .section-title    { font-family: var(--font-serif); }
.pagamenti-section .section-subtitle { color: rgba(255,255,255,0.50); }

.pagamenti-grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}
.pagamento-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.pagamento-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(var(--accent-rgb), 0.35); }

.pag-num {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pag-title { font-weight: 500; color: var(--accent-light); margin-bottom: 5px; font-size: 0.93rem; letter-spacing: 0.01em; }
.pag-desc  { font-size: 0.82rem; font-weight: 300; opacity: 0.62; line-height: 1.65; }

@media (min-width: 640px)  { .pagamenti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pagamenti-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contatti */
.contatti-visita-split {
  display: grid;
  gap: 56px;
}

.contatti-visita-col--prenota {
  scroll-margin-top: 96px;
}

.section-header--prenota {
  margin-bottom: 20px;
}

.section-header--prenota .section-title {
  margin-bottom: 10px;
}

.contatti-prenota-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.contatti-prenota-arrow-icon {
  display: block;
}

@media (min-width: 1024px) {
  .contatti-visita-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px 56px;
    align-items: start;
  }

  .contatti-visita-col--info .section-header {
    margin-bottom: 36px;
  }

  .contatti-visita-col--prenota .section-header--prenota {
    margin-bottom: 16px;
  }

  .contatti-visita-col--prenota .miodottore-widget-wrap {
    max-width: none;
    margin: 0;
  }

  .contatti-visita-miodottore-hint {
    display: none;
  }
}

.contatti-inner { display: grid; gap: 48px; }

.contact-items { display: flex; flex-direction: column; gap: 26px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 10px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-weight: 400;
  color: var(--primary);
  font-size: 0.93rem;
  line-height: 1.65;
}
.contact-value a { color: var(--primary); transition: color var(--t-base) var(--ease); }
.contact-value a:hover { color: var(--accent); }
.contact-value .note { font-weight: 400; font-size: 0.88rem; color: var(--text-light); }

.map-block { margin-top: 28px; }
.map-block .contact-label { margin-bottom: 10px; }

.map-block > .contact-label,
.contact-label.parking-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #000;
}

.map-block > .contact-label::after,
.contact-label.parking-title::after {
  content: '';
  display: inline-block;
  width: 0.825em;
  height: 1.5em;
  margin-left: 0.45em;
  vertical-align: -0.26em;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14' aria-hidden='true'%3E%3Cpath d='M6 1v7M3.5 8.5 6 11.5 8.5 8.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.parking-title { margin-bottom: 4px; }
.map-block-note {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-light);
  margin: 0 0 10px;
}

.parking-maps {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.parking-maps .map-block {
  margin-top: 0;
}

.parking-maps .map-block-header {
  display: flex;
  flex-direction: column;
}

.parking-maps .map-block-header .map-block-note {
  margin-top: auto;
}

.parking-maps .map-block .map-wrap {
  align-self: start;
  height: auto;
}

.parking-maps .map-block .map-wrap:has(iframe:not([hidden])) {
  height: 100%;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; height: 240px; border: none; }

.map-wrap iframe[hidden],
.map-wrap:has(.map-consent-placeholder) iframe {
  display: none !important;
  height: 0 !important;
  border: 0;
  visibility: hidden;
}

.map-consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  padding: 28px 24px;
  background: var(--bg-light);
  text-align: center;
}

.map-consent-text {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  max-width: 420px;
  margin: 0;
}

.map-consent-text a {
  color: var(--primary);
  text-decoration: underline;
}

.map-consent-btn {
  flex-shrink: 0;
}

.footer-map-wrap .map-consent-placeholder {
  min-height: 200px;
  padding: 20px 18px;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-map-wrap .map-consent-text {
  color: rgba(255, 255, 255, 0.85);
}

.footer-map-wrap .map-consent-text a {
  color: var(--accent-light);
}

@media (min-width: 640px) {
  .parking-maps {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr;
  }

  .parking-maps .map-block {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
}

.map-placeholder {
  height: 240px;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 300;
  text-align: center;
  padding: 20px;
}

/* Footer */
body > footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.62);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.footer-brand-desc {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: none;
}

.footer-brand-line1 {
  display: block;
  white-space: nowrap;
  font-size: clamp(0.72rem, 2.9vw, 0.83rem);
  letter-spacing: -0.015em;
}

.footer-brand-line2 {
  display: block;
  margin-top: 4px;
}

.footer-map {
  margin-bottom: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-map-label {
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-map-wrap {
  border-color: rgba(255,255,255,0.12);
  max-width: 560px;
}

.footer-map-wrap iframe {
  height: 200px;
}

.footer-map-link {
  margin-top: 12px;
  font-size: 0.83rem;
  font-weight: 300;
}

.footer-map-link a {
  transition: color var(--t-base) var(--ease);
}

.footer-map-link a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .footer-brand-desc { max-width: 300px; }
  .footer-brand-line1 { font-size: 0.83rem; letter-spacing: 0; }
}

.footer-col-title  { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links      { display: flex; flex-direction: column; gap: 9px; }
.footer-links a    { font-size: 0.83rem; font-weight: 300; transition: color var(--t-base) var(--ease); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 300;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.footer-director {
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

.footer-sep  { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-sep a { transition: color var(--t-base) var(--ease); }
.footer-sep a:hover { color: var(--accent); }

.footer-legal { margin-top: 12px; font-size: 0.69rem; opacity: 0.35; line-height: 1.7; }

.footer-credits { margin-top: 6px; font-size: 0.69rem; font-weight: 300; opacity: 0.35; line-height: 1.7; }
.footer-credits a { transition: color var(--t-base) var(--ease); }
.footer-credits a:hover { color: var(--accent); opacity: 1; }

@media (min-width: 768px) {
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-sep    { flex-shrink: 0; padding-top: 2px; }
}

@media (max-width: 767px) {
  body > footer {
    /* Must beat body > footer shorthand (28px); clears Chiama/WhatsApp bar + credits */
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .footer-credits {
    margin-bottom: 4px;
  }
}

/* Floating bar (mobile) — match .btn box shape */
.floating-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 190;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(10, 10, 10, 0.06);
}

.floating-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  min-height: 42px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  color: white;
  letter-spacing: 0.035em;
  line-height: 1;
  transition: opacity var(--t-base) var(--ease);
}
.floating-bar a:hover { opacity: 0.9; }

.fb-call { background: var(--brand-dark); }
.fb-wa   { background: var(--wa); }

@media (max-width: 767px) {
  .floating-bar .fb-call::before {
    content: '📞';
    font-size: 1.05em;
    line-height: 1;
  }

  .floating-bar .fb-wa::before {
    content: '';
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  }
}

@media (min-width: 768px) { .floating-bar { display: none; } }

/* Prose content */
.prose-container {
  max-width: 800px;
  margin: 0 auto;
}

.prose-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--title);
  margin: 36px 0 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose-title:first-child { margin-top: 0; }

.prose-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.prose {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--t-base) var(--ease);
}
.prose a:hover { color: var(--accent); }

.prose-list {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 16px;
}
.prose-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.prose-footnote {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 62px; left: 14px; right: 14px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  z-index: 300;
  max-width: 460px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

#cookie-banner.show,
html.cookie-consent-lock #cookie-banner {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.cb-text   { font-size: 0.82rem; font-weight: 300; color: var(--text); margin-bottom: 14px; line-height: 1.6; }
.cb-text a { color: var(--primary); text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cb-actions .btn { padding: 9px 20px; }
.cb-actions .btn-outline { padding: 9px 20px; }

@media (max-width: 767px) {
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  #cookie-banner { bottom: 24px; }
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Blog */
.blog-page-hero {
  background: var(--hero-gradient);
  color: white;
  padding: 88px 0 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.blog-page-hero + .section-alt {
  margin-top: -32px;
  padding-top: calc(96px + 32px);
}

.blog-page-hero::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.blog-page-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.blog-hero-content { position: relative; z-index: 1; }

.blog-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.blog-hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.72;
  max-width: 520px;
  line-height: 1.8;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.blog-filter-btn {
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: white;
  color: var(--text);
  transition:
    background var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.blog-filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.blog-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.blog-archive-grid,
.blog-grid {
  display: grid;
  gap: 24px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease), border-color var(--t-base) var(--ease);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--brand-rgb), 0.28);
}

.blog-card-img {
  height: 200px;
  background: var(--bg-light);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 28%;
  overflow: hidden;
}

/* Vertical IG reel covers need a taller thumb so cover crops less of the subject */
.blog-card-img[style*="reel-cover"] {
  height: 340px;
}

.blog-card-img[style*="snack-bambini-reel-cover"] {
  background-position: center 36%;
}

.blog-card-img[style*="white-spot-bambini-reel-cover"] {
  /* IG reel screenshot: zoom enough to crop side letterboxing (142% left a black sliver) */
  background-size: 165% auto;
  background-position: center 32%;
}

/* Vertical reel thumbnails: circle-in-frame art needs a hair more headroom */
.blog-card-img[style*="faccette-dentali-reel-cover"] {
  background-position: center 32%;
}

.blog-card-img[style*="igiene-professionale-reel-cover"] {
  background-position: center 25%;
}

.blog-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--brand-rgb), 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

.blog-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--title);
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.65;
}

.blog-card-meta {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-meta span:last-child {
  color: var(--accent);
  font-weight: 500;
}

.ecc-card[id] {
  scroll-margin-top: 90px;
}

.blog-cta {
  background: var(--surface-dark);
  color: white;
  text-align: center;
}

.blog-cta .section-header {
  margin-bottom: 36px;
}

.blog-cta .section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 6vw, 2.85rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.blog-cta .section-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  font-weight: 400;
  line-height: 1.75;
  margin: 18px auto 0;
  max-width: 520px;
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.blog-cta-note {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
}

.blog-cta-note a {
  color: var(--accent-light);
  text-decoration: underline;
}

@media (min-width: 600px) {
  .blog-archive-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .blog-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid--home { grid-template-columns: repeat(3, 1fr); }
}

/* Article */
.article-hero {
  background: var(--hero-gradient);
  color: white;
  padding: 88px 0 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.article-hero + .article-layout {
  margin-top: -32px;
  padding-top: calc(56px + 32px);
}

.article-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.article-hero .breadcrumb {
  font-size: 0.76rem;
  font-weight: 300;
  opacity: 0.45;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-hero .breadcrumb a { color: white; transition: opacity var(--t-base) var(--ease); }
.article-hero .breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { opacity: 0.35; }

.article-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 300;
  opacity: 0.55;
}

.article-meta strong { opacity: 1; font-weight: 500; }

.article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  gap: 40px;
}

.article-body { max-width: 720px; order: 1; }

.article-featured-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.article-featured-img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-embed-wrap {
  position: relative;
}

.article-embed-wrap .article-embed-poster[hidden] {
  display: none;
}

.article-embed-wrap .article-embed-iframe[hidden] {
  display: none !important;
  height: 0 !important;
  border: 0;
  visibility: hidden;
}

.article-embed-wrap .article-embed-iframe:not([hidden]) {
  display: block;
  width: 100%;
  min-height: 480px;
  max-height: min(85vh, 720px);
  border: none;
}

.article-embed-wrap .article-embed-consent-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.94);
}

.article-embed-wrap:has(.article-embed-iframe:not([hidden])) {
  overflow: visible;
}

.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc li a {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.toc li a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.article-content {
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--text);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--title);
  margin: 40px 0 16px;
  line-height: 1.22;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title);
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 18px; }

.article-content ul,
.article-content ol {
  margin: 16px 0 20px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content strong { font-weight: 600; color: var(--primary); }

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-base) var(--ease);
}

.article-content a:hover { color: var(--accent); }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 22px;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  margin: 24px 0;
  line-height: 1.65;
}

.article-cta {
  background: var(--surface-dark);
  border-radius: var(--radius);
  padding: 28px;
  color: white;
  margin-top: 24px;
}

.article-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.25;
}

.article-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-cta .btn-outline {
  color: white;
  border-color: rgba(255,255,255,0.35);
}

.article-cta .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(var(--brand-rgb), 0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

.author-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.author-info { flex: 1; min-width: 200px; }

.author-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 4px;
}

.author-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.65;
}

.article-sidebar { order: 2; }

.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.sidebar-card-title {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

.sidebar-cta {
  background: var(--surface-dark);
  border-color: var(--brand-dark);
  box-shadow: none;
}

.sidebar-cta-desc {
  font-size: 0.86rem;
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  margin-bottom: 18px;
  line-height: 1.65;
}

.sidebar-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-cta .btn-outline {
  color: white;
  border-color: rgba(255,255,255,0.35);
}

.sidebar-cta .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.sidebar-tratt-desc {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-link {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.5;
  transition: color var(--t-base) var(--ease);
}

.sidebar-link:hover { color: var(--accent); }

.related-section {
  padding: 72px 0 88px;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: 56px;
  }

  .article-body,
  .article-sidebar { order: unset; }

  .sidebar-sticky {
    position: sticky;
    top: 94px;
  }

  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-grid { display: grid; gap: 24px; }

/* Treatment subpages & FAQ */
section.section[aria-labelledby="tratt-content"] {
  padding-top: 48px;
  padding-bottom: 48px;
}

section.section[aria-labelledby="tratt-content"] + footer {
  padding-top: 32px;
}

.treatment-page .section-label { display: block; margin-bottom: 12px; }

.treatment-body { max-width: 720px; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.45;
  padding: 18px 22px;
  list-style: none;
  color: var(--title);
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--t-base) var(--ease);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-answer p { margin: 0; }

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-more {
  margin-top: 28px;
  max-width: 720px;
}

.faq-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.faq-page-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--primary);
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.faq-page-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-section-block {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.faq-section-block:last-child { margin-bottom: 0; }

.faq-section-block .section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
