:root {
  --cream:         #FDFCF9;
  --cream-dark:    #F0F6D8;
  --warm-brown:    #1A1A1A;
  --warm-brown-light: #353535;
  /* Brand palette from logo (blue primary; green + yellow accents) */
  --terracotta:    #176A9F;
  --terracotta-dark: #125578;
  --sage:          #AFCB0C;
  --sage-dark:     #6B8F0A;
  --sage-light:    #FECC02;
  --accent-yellow: #FECC02;
  --accent-green:  #AFCB0C;
  --white:         #FFFFFF;
  --text:          #1A1A1A;
  --text-muted:    #5C5A57;
  --border:        #D8E4BC;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 2px 20px rgba(26, 26, 26, 0.07);
  --shadow-md:     0 8px 32px rgba(26, 26, 26, 0.10);
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif:    'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans:     'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::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: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

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

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(26, 26, 26, 0.45);
  z-index: 299;
  pointer-events: auto;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: #FFFDF2; }
.section-warm { background: linear-gradient(180deg, #F7FCE8 0%, var(--cream-dark) 100%); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(254, 204, 2, 0.35);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--warm-brown);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
}
.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Header */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

#header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-yellow) 0%, var(--accent-green) 42%, var(--terracotta) 100%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta);
  line-height: 1.3;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-mobile-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--terracotta);
  white-space: nowrap;
}

.page-home .logo-mark {
  width: 64px;
  height: 64px;
}

.main-nav {
  margin-left: 0;
  flex-shrink: 0;
}

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

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--warm-brown-light);
  transition: color 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--terracotta);
}

.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-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(--warm-brown-light);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-dropdown-btn:hover,
.nav-item-dropdown.is-open .nav-dropdown-btn {
  color: var(--terracotta);
  background: rgba(23, 106, 159, 0.08);
}

.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: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
  z-index: 120;
}

/* padding-top keeps the panel attached to the trigger for reliable :hover */

.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.92rem;
  font-weight: 500;
  color: var(--warm-brown-light);
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(23, 106, 159, 0.08);
  color: var(--terracotta);
}

.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(--warm-brown);
  cursor: pointer;
}

.mobile-nav-dropdown-btn:hover,
.mobile-nav-item-dropdown.is-open .mobile-nav-dropdown-btn {
  background: rgba(23, 106, 159, 0.1);
  color: var(--terracotta);
}

.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: 500;
  color: var(--warm-brown-light);
}

.mobile-nav-submenu a:hover {
  color: var(--terracotta);
}

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

.header-phone {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--warm-brown);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.header-phone:hover { color: var(--terracotta); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: var(--white);
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(23, 106, 159, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--terracotta-dark) 0%, #0E4A6E 100%);
  border-color: var(--terracotta-dark);
  box-shadow: 0 6px 22px rgba(18, 85, 120, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--warm-brown);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: rgba(254, 204, 2, 0.18);
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn-dark {
  background: var(--warm-brown);
  color: var(--cream);
  border-color: var(--warm-brown);
}
.btn-dark:hover { background: var(--warm-brown-light); }

.btn-wa {
  background: var(--warm-brown-light);
  color: var(--cream);
  border-color: var(--warm-brown-light);
}

.btn-wa:hover {
  background: var(--warm-brown);
  border-color: var(--warm-brown);
  color: var(--cream);
}

.btn-wa::before,
.floating-bar-wa::before {
  content: '';
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
  background-color: currentColor;
  -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='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.883 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");
  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='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.883 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");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.btn-full { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--warm-brown);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--cream);
  z-index: 200;
  padding: 88px 28px max(32px, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  box-shadow: -8px 0 40px rgba(26, 26, 26, 0.14);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-drawer > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.mobile-nav-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--warm-brown);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-drawer .mobile-nav-submenu a {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-drawer .mobile-nav-submenu li:last-child a {
  border-bottom: none;
}

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

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-ctas .btn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  border-bottom: none;
  padding: 12px 24px;
}

.drawer-ctas .btn-dark {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: var(--white);
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(23, 106, 159, 0.28);
}

.drawer-ctas .btn-dark:hover {
  background: linear-gradient(135deg, var(--terracotta-dark) 0%, #0E4A6E 100%);
  border-color: var(--terracotta-dark);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(18, 85, 120, 0.35);
}

.drawer-ctas .btn-wa {
  border-bottom: none;
  background: var(--accent-green);
  color: var(--text);
  border-color: var(--accent-green);
}

.drawer-ctas .btn-wa:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--text);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm-brown);
  background: var(--cream-dark);
  border-radius: 999px;
}

.blog-tag--featured {
  color: var(--warm-brown);
  background: var(--accent-yellow);
}

.blog-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-card h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--warm-brown);
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta-dark);
}

.blog-article-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.blog-article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--warm-brown);
  margin: 12px 0 16px;
}

.blog-article-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.blog-cta-box {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.blog-cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

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

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: 24px;
}

.blog-back:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-dark);
}

/* Article pages */
.article-hero {
  background: linear-gradient(145deg, #1A1A1A 0%, #123D5C 50%, #121212 100%);
  color: var(--white);
  padding: 88px 0 52px;
  position: relative;
  overflow: hidden;
}

.article-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 106, 159, 0.28) 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: 400;
  opacity: 0.55;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-hero .breadcrumb a {
  color: var(--white);
  transition: opacity 0.2s var(--ease);
}

.article-hero .breadcrumb a:hover { opacity: 0.85; }
.breadcrumb-sep { opacity: 0.35; }

.article-category {
  display: inline-block;
  background: var(--terracotta);
  color: var(--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: 600;
  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;
  opacity: 0.65;
}

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

.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;
}

.toc {
  background: var(--white);
  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-muted);
  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(--warm-brown);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.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(--warm-brown);
  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(--warm-brown);
  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(--warm-brown); }

.article-content a {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.article-content blockquote {
  border-left: 3px solid var(--sage);
  padding: 16px 22px;
  background: var(--white);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin: 24px 0;
  line-height: 1.65;
}

.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(--terracotta-dark);
  background: var(--cream-dark);
  padding: 4px 12px;
  border-radius: 100px;
}

.author-box {
  background: var(--white);
  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(--cream-dark);
  transition: box-shadow 0.2s var(--ease);
}

a.author-photo:hover {
  box-shadow: 0 0 0 2px var(--terracotta);
}

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

.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-muted);
  margin-bottom: 4px;
}

.author-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--warm-brown);
  margin-bottom: 4px;
  transition: color 0.2s var(--ease);
}

a.author-name:hover { color: var(--terracotta-dark); }

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

.author-bio {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.author-team-link {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--terracotta-dark);
}

.author-team-link:hover { text-decoration: underline; text-underline-offset: 2px; }

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

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

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

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

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

.article-sidebar { order: 2; }

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

.sidebar-card {
  background: var(--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-muted);
  margin-bottom: 14px;
}

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

.sidebar-tratt-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--terracotta-dark);
}

.sidebar-tratt-link:hover { text-decoration: underline; text-underline-offset: 2px; }

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

.sidebar-link {
  font-size: 0.86rem;
  color: var(--warm-brown);
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}

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

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

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

@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); }
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(165deg, #FFF9D6 0%, #E8F2F8 38%, #EAF4C2 68%, var(--cream-dark) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--warm-brown);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-ctas--center {
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(23, 106, 159, 0.08);
}

.hero-image-wrap img,
.hero-image-wrap .img-placeholder {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 58% 24%;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(254, 204, 2, 0.45);
  color: var(--terracotta-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.pillar-card:nth-child(2) .pillar-icon {
  background: rgba(175, 203, 12, 0.45);
  color: var(--sage-dark);
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--warm-brown);
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Team */
.team-group-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.team-group-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.team-group-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.team-group-photo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

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

.team-photo {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  overflow: hidden;
}

.team-photo img,
.team-photo .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 24px;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--warm-brown);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.team-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--warm-brown);
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.team-section-title:first-of-type { margin-top: 0; }

/* Treatments */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.treatment-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--warm-brown);
  margin-bottom: 12px;
}

.treatment-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Featured treatments (eccellenze) */
.eccellenze-grid {
  display: grid;
  gap: 24px;
}

.ecc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.ecc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green), var(--terracotta));
  opacity: 0;
  transition: opacity 0.38s var(--ease);
}

.ecc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ecc-card:hover::before { opacity: 1; }

.ecc-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  opacity: 0.75;
}

.ecc-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warm-brown);
  margin-bottom: 12px;
  line-height: 1.25;
}

.ecc-desc {
  color: var(--text-muted);
  font-size: 0.91rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

.ecc-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.ecc-link:hover { border-bottom-color: var(--terracotta); }

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

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

.eccellenze-grid--treatments .ecc-title {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.eccellenze-grid--treatments .ecc-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

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

.eccellenze-grid--treatments .ecc-desc {
  margin-bottom: 0;
  line-height: 1.65;
}

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

.servizio-item {
  background: var(--white);
  padding: 22px 24px;
  transition: background 0.22s var(--ease);
  scroll-margin-top: 100px;
}

.servizio-item:hover { background: var(--cream); }

a.servizio-item--link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

a.servizio-item--link:hover {
  border-color: var(--sage);
}

.serv-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
}

.serv-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-brown);
  margin-bottom: 4px;
}

.serv-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.treatment-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .treatment-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .treatment-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.treatment-preview {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s var(--ease);
}

.treatment-preview:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-green);
}

.treatment-preview h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--warm-brown);
  margin-bottom: 8px;
}

.treatment-preview p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.tech-item img,
.tech-item .img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-brown);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-block {
  margin-bottom: 28px;
}

.contact-info-block h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1.05rem;
  color: var(--warm-brown);
  line-height: 1.6;
}

.contact-info-block a:hover { color: var(--terracotta); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.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: 400px;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  text-align: center;
}

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

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

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

/* Page banner */
.page-banner {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #FFFCE8 0%, #F2F8E4 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-yellow) 0%, var(--accent-green) 50%, var(--terracotta) 100%);
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--warm-brown);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.page-banner .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-banner .breadcrumb a {
  color: var(--terracotta);
  text-decoration: none;
}

.page-banner .breadcrumb a:hover {
  text-decoration: underline;
}

.trattamento-body {
  max-width: 760px;
  margin: 0 auto;
}

/* Trattamento detail: tighter rhythm below banner and before FAQ */
section.section:has(.trattamento-body) {
  padding-top: 44px;
  padding-bottom: 44px;
}

section.section.section-alt:has(.trattamento-faq-header) {
  padding-top: 44px;
}

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

.trattamento-featured-img {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trattamento-featured-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.trattamento-faq-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Prose (legal) */
.prose-container {
  max-width: 720px;
}

.prose-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--warm-brown);
  margin: 36px 0 12px;
}

.prose-title:first-child { margin-top: 0; }

.prose-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-brown-light);
  margin: 20px 0 8px;
}

.prose {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.prose a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-list {
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.prose-list li {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.prose-footnote {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Studio content */
.studio-section-nav {
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.studio-section-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.studio-section-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-brown-light);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.studio-section-nav a:hover,
.studio-section-nav a:focus-visible {
  color: var(--sage-dark);
  background: rgba(254, 204, 2, 0.22);
  border-color: var(--accent-green);
}

.studio-body {
  display: block;
}

.studio-blocks {
  display: block;
}

.studio-block {
  display: block;
}

.studio-block--with-photo {
  display: grid;
  grid-template-columns: 1fr min(360px, 38%);
  gap: 40px 48px;
  align-items: start;
  margin-bottom: 48px;
}

.studio-block-content h2[id] {
  scroll-margin-top: 96px;
}

.studio-block-content {
  padding-bottom: 48px;
}

.studio-block-content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.studio-block-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--warm-brown);
  margin: 0 0 16px;
}

.studio-block:first-child .studio-block-content h2 {
  margin-top: 0;
}

.studio-block:not(:first-child) .studio-block-content {
  padding-top: 8px;
}

.studio-block:not(:first-child) .studio-block-content h2 {
  margin-top: 8px;
}

.studio-block-photo {
  margin: 0;
}

.studio-block-photo img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.studio-block-photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.studio-aside {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  margin-top: 48px;
  max-width: 680px;
}

.studio-aside h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--warm-brown);
  margin-bottom: 12px;
}

.studio-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.studio-image img,
.studio-image .img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Placeholder images */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F3F0E6 0%, #D4E8F5 55%, #E8F0C4 100%);
  color: #3D4A52;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 16px;
}

/* Footer */
footer {
  background: var(--warm-brown);
  color: rgba(253, 252, 249, 0.88);
  padding: 64px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-map {
  margin-bottom: 40px;
}

.footer-map .map-wrap {
  border-color: rgba(253, 252, 249, 0.18);
  box-shadow: none;
}

.footer-map .map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.footer-map .map-consent-placeholder {
  min-height: 0;
  padding: 20px 18px;
  gap: 14px;
}

@media (min-width: 769px) {
  .footer-map .map-wrap iframe {
    height: 300px;
  }

  .footer-map .map-consent-placeholder {
    padding: 22px 20px;
  }
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.85;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(253, 252, 249, 0.12);
}

.footer-meta {
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 640px;
}

.footer-director {
  margin-top: 6px;
}

.footer-sep {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-sep a {
  font-size: 0.82rem;
  opacity: 0.85;
}
.footer-sep a:hover { opacity: 1; }

.footer-legal {
  margin-top: 20px;
  font-size: 0.75rem;
  opacity: 0.6;
  text-align: center;
}

/* Floating bar (mobile call) */
.floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(26, 26, 26, 0.08);
  gap: 10px;
}

.floating-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius);
}

.floating-bar-call {
  background: var(--terracotta);
  color: var(--white);
  gap: 8px;
}

.floating-bar-call::before {
  content: '📞';
  flex-shrink: 0;
  font-size: 1.125em;
  line-height: 1;
}

.floating-bar-wa {
  background: var(--accent-green);
  color: var(--text);
  gap: 8px;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 -8px 32px rgba(26, 26, 26, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

#cookie-banner.show,
html.cookie-consent-lock #cookie-banner { transform: translateY(0); }
#cookie-banner.hidden { display: none; }

.cb-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.cb-text a {
  color: var(--terracotta);
  text-decoration: underline;
}

.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.text-center { text-align: center; }
.mt-lg { margin-top: 36px; }

.consultant-note {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
  border-left: 4px solid var(--sage);
}

.consultant-note p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ */
.faq-layout {
  max-width: 720px;
  margin: 0 auto;
}

.faq-group + .faq-group {
  margin-top: 48px;
}

.faq-group-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--warm-brown);
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--warm-brown);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--sage-dark);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(254, 204, 2, 0.12);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 20px 24px 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer p + p {
  margin-top: 12px;
}

.faq-cta-text {
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

.reviews-summary {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--warm-brown);
  margin: 0 auto;
}

.reviews-rating-star {
  color: #E8B923;
  font-size: 1.05em;
  vertical-align: baseline;
}

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

.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(--white);
  color: var(--warm-brown);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.reviews-nav:hover:not(:disabled) {
  background: rgba(254, 204, 2, 0.25);
  border-color: var(--accent-green);
  color: var(--sage-dark);
}

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

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

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

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

.review-card blockquote p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

.review-card .review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--warm-brown);
}

.review-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--accent-yellow);
  letter-spacing: 0.06em;
  text-shadow: 0 0 1px var(--sage-dark);
}

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

.reviews-cta a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  text-decoration: none;
}

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

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .contact-grid,
  .studio-body,
  .studio-blocks,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .studio-block,
  .studio-block--with-photo {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }

  .studio-block-content {
    grid-column: auto;
    padding-bottom: 0;
    padding-top: 0;
  }

  .studio-block:not(:first-child) .studio-block-content h2 {
    margin-top: 0;
  }

  .studio-block-photo {
    order: 1;
  }

  .studio-aside {
    position: static;
    margin-top: 8px;
    max-width: none;
  }

  .studio-body {
    display: flex;
    flex-direction: column;
  }

  .studio-blocks {
    display: flex;
    flex-direction: column;
  }

  .hero-image-wrap { order: -1; }

  .tech-grid,
  .treatment-preview-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-right .btn,
  .header-phone { display: none; }

  .header-inner {
    gap: 5px;
    padding: 12px 0;
  }

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

  .header-mobile-name {
    flex: 1;
    min-width: 0;
    margin-right: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.15rem, 6.2vw, 1.5rem);
  }

  .page-home .logo-mark {
    width: 58px;
    height: 58px;
  }

  .header-right {
    flex-shrink: 0;
  }

  .hamburger {
    display: flex;
    width: 32px;
    height: 32px;
    padding: 5px;
    gap: 4px;
  }

  .floating-bar { display: flex; }

  body { padding-bottom: 72px; }

  .section { padding: 64px 0; }

  section.section:has(.trattamento-body) {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  section.section.section-alt:has(.trattamento-faq-header) {
    padding-top: 32px;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .treatments-grid,
  .blog-grid { grid-template-columns: 1fr; }

  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-actions { width: 100%; }
  .cb-actions .btn { flex: 1; }
}

@media (min-width: 769px) {
  .header-right .btn { display: inline-flex; }

  .header-mobile-name {
    flex: 1;
    min-width: 0;
    font-size: 1.75rem;
  }

  .header-inner {
    gap: 20px;
  }

  .main-nav ul {
    gap: 22px;
  }

  .main-nav li:has(> a[href*="contatti.html"]) {
    display: none;
  }

  .header-phone {
    display: none;
  }
}
/* Contatti (extended layout) */
.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(--terracotta);
  flex-shrink: 0;
  margin-top: 10px;
}

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

.contact-value {
  font-weight: 400;
  color: var(--warm-brown);
  font-size: 0.93rem;
  line-height: 1.65;
}
.contact-value a { color: var(--warm-brown); transition: color 0.2s var(--ease); }
.contact-value a:hover { color: var(--terracotta); }
.contact-value .note { font-size: 0.88rem; color: var(--text-muted); }

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

/* 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: 500;
  color: var(--warm-brown);
  line-height: 1.15;
  margin-bottom: 18px;
}
.paura-title em { color: var(--sage-dark); font-style: italic; }

.paura-intro {
  font-size: 1rem;
  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;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.paura-checks li:last-child { border-bottom: none; }

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

.paura-blockquote {
  background: linear-gradient(90deg, rgba(254, 204, 2, 0.2) 0%, var(--cream-dark) 55%);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  font-style: italic;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

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

.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;
  line-height: 1.7;
}
.steps-list li:last-child { border-bottom: none; }

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

/* Photo galleries */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.photo-mosaic__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0;
}

.photo-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.photo-mosaic__item:hover img {
  transform: scale(1.03);
}

.photo-mosaic__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.78));
}

.photo-mosaic__item--wide { grid-column: span 8; grid-row: span 2; }
.photo-mosaic__item--tall { grid-column: span 4; grid-row: span 2; }
.photo-mosaic__item--square { grid-column: span 4; }
.photo-mosaic__item--half { grid-column: span 6; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-strip--gallery {
  gap: 20px;
}

.photo-gallery-groups {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.photo-gallery-group__title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--warm-brown);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.photo-strip--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.photo-strip--cols-1 {
  grid-template-columns: 1fr;
  max-width: min(560px, 100%);
}

.photo-strip__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-strip__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photo-strip__item figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--white);
  text-align: center;
}

.portrait-banner {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 48px;
  align-items: center;
}

.portrait-banner__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.portrait-banner__photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.portrait-banner__photo figcaption {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--white);
}

.portrait-banner__content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--warm-brown);
  margin-bottom: 16px;
}

.portrait-banner__content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.studio-gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.studio-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

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

.studio-gallery__item figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--white);
  text-align: center;
}

.team-moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.team-moments__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-moments__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-moments__item figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--cream);
}

.treatment-preview--with-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.treatment-preview--with-photo h3 {
  padding: 24px;
  margin-bottom: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.treatment-preview__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.reviews-placeholder {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.reviews-placeholder p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .photo-mosaic__item--wide,
  .photo-mosaic__item--tall,
  .photo-mosaic__item--square,
  .photo-mosaic__item--half {
    grid-column: span 1;
    grid-row: span 1;
  }
  .photo-mosaic__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .photo-strip,
  .photo-strip--cols-2 { grid-template-columns: 1fr; }
  .portrait-banner { grid-template-columns: 1fr; }
  .portrait-banner__photo { max-width: 360px; margin: 0 auto; }
  .studio-gallery { grid-template-columns: repeat(2, 1fr); }
  .team-moments { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .studio-gallery,
  .team-moments { grid-template-columns: 1fr; }
}

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