/* Internal pages retain their existing photography and elegant serif identity.
   The extra body class isolates these proportions from the full-screen homepage. */
html body.bg-inner-page .page-hero {
  min-height: clamp(360px, 46svh, 480px) !important;
  padding: 0 !important;
  align-items: center !important;
  border-radius: 0 0 24px 24px !important;
}
html body.bg-inner-page .page-hero > .wrap {
  align-self: center !important;
  padding: 58px 0 !important;
}
html body.bg-inner-page .page-hero h1 {
  max-width: 21ch !important;
  font-size: clamp(44px, 4.5vw, 64px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
  margin: 16px 0 20px !important;
  overflow-wrap: normal;
}
html body.bg-inner-page .page-hero :is(p, .lead) {
  max-width: 58ch !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #eee !important;
}
html body.bg-inner-page .page-hero .page-hero-bg img {
  object-fit: cover !important;
  opacity: .7 !important;
  transform: none !important;
  animation: none !important;
}
html body.bg-inner-page .page-hero .page-hero-bg::after {
  background: linear-gradient(90deg,rgba(0,0,0,.84),rgba(0,0,0,.48) 58%,rgba(0,0,0,.12)) !important;
}
html body.bg-inner-page .wrap { width: min(100% - 48px, 1200px) !important; }
html body.bg-inner-page :is(.intro,.values,.timeline,.about,.segments,.cards,.feature,.method,.listini,.gallery-sec,.contact,.hub-block) {
  padding-block: clamp(56px, 6vw, 88px) !important;
}
html body.bg-inner-page :is(.sec-head,.f-txt,.about-text,.about-txt,.contact-info,.c-info) h2 {
  font-size: clamp(32px, 3.3vw, 46px) !important;
  line-height: 1.12 !important;
  max-width: 25ch;
}
html body.bg-inner-page .sec-head { margin-bottom: 32px !important; }
html body.bg-inner-page :is(.cta,.hub-cta) h2 {
  font-size: clamp(36px, 4vw, 54px) !important;
  line-height: 1.1 !important;
}
html body.bg-inner-page :is(.intro,.f-txt,.about-text,.contact-info) p {
  max-width: 70ch;
  line-height: 1.75 !important;
}
/* Content must remain available when an animation observer does not run. */
html body.bg-inner-page .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}
html body.bg-inner-page :is(.btn,.c-form button) {
  border-radius: 999px !important;
  min-height: 46px;
  white-space: normal;
  text-align: center;
}
html body.bg-inner-page .page-hero :is(.btn,.btn span) { color: #fff !important; }
html body.bg-inner-page .page-hero .btn:not(.solid) {
  border-color: rgba(255,255,255,.6) !important;
  background: transparent !important;
}
html body.bg-inner-page .page-hero .btn.solid {
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
}
html body.bg-inner-page .page-hero .btn.solid span { color: #000 !important; }
html body.bg-inner-page .page-hero .btn::after { display: none !important; }
html body.bg-inner-page .c-form :is(input,select,textarea) {
  width: 100%; max-width: 100%; min-width: 0;
  font-size: 16px !important;
}
html body.bg-inner-page :is(.contact-grid,.f-grid,.about-grid) > * { min-width: 0; }
html body.bg-inner-page :is(.btn,a,button,input,select,textarea):focus-visible {
  outline: 2px solid #b79872 !important; outline-offset: 4px;
}

/* Courses: a compact introduction, readable programme and the existing enquiry form. */
html body.bg-course-page {
  --bg-course-max: 1120px;
  --bg-course-section: 56px;
  --bg-course-gap: 32px;
  --bg-course-card: #f5f5f5;
  --bg-course-line: #ddd;
}
html body.bg-course-page #qodef-page-content :is(.elementor-element-6327e0b,.elementor-element-d5d647c,.elementor-element-3f04859) {
  padding: 64px 24px 48px !important;
}
html body.bg-course-page #qodef-page-content :is(.elementor-element-bd2ecf5,.elementor-element-adc0f0a,.elementor-element-14b49c2) > .elementor-widget-container {
  margin: 0 !important;
}
html body.bg-course-page #qodef-page-content h1.qodef-m-title {
  font: 600 clamp(40px,4vw,56px)/1.08 'Cormorant Garamond',serif !important;
  max-width: 24ch !important;
  letter-spacing: -.025em !important;
  color: #000 !important;
}
html body.bg-course-page #qodef-page-content .qodef-section-title .qodef-m-text {
  font: 400 16px/1.75 'Work Sans',sans-serif !important;
  max-width: 70ch !important;
  color: #555 !important;
}
html body.bg-course-page #qodef-page-content h2.elementor-heading-title {
  font: 600 clamp(30px,3vw,40px)/1.12 'Cormorant Garamond',serif !important;
  letter-spacing: -.015em !important;
  color: #000 !important;
  text-transform: none !important;
}
html body.bg-course-page #qodef-page-content :is(.elementor-widget-text-editor,.elementor-icon-list-text) {
  font: 400 16px/1.75 'Work Sans',sans-serif !important;
  color: #555 !important;
}
html body.bg-course-page #qodef-page-content .elementor-icon-list-icon :is(i,svg) { color: #000 !important; fill: #000 !important; }
html body.bg-course-page #qodef-page-content .elementor-field {
  font: 400 16px/1.5 'Work Sans',sans-serif !important;
  color: #000 !important;
  border-color: #ccc !important;
  min-width: 0;
}
html body.bg-course-page #qodef-page-content .elementor-field-label { font-size: 14px !important; color: #333 !important; }
html body.bg-course-page #qodef-page-content .elementor-button {
  min-height: 48px !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
}
html body.bg-course-page #qodef-page-content .elementor-button:focus-visible { outline: 2px solid #b79872; outline-offset: 4px; }
/* The laminazione background photographs show interiors, unrelated to this course. */
html body.page-id-20574 #qodef-page-content :is(.elementor-element-2f45739,.elementor-element-4afab6b) { display: none !important; }
html body.page-id-20574 #qodef-page-content :is(.elementor-element-f4a80e9,.elementor-element-601ede0) {
  width: 100% !important; --width: 100% !important;
  max-width: 900px; margin-inline: auto;
  padding: 28px !important;
}
html body:is(.bg-course-page,.bg-legacy-page) #qodef-footer-newsletter { display: none !important; }

@media (max-width: 760px) {
  html body.bg-inner-page .wrap { width: calc(100% - 40px) !important; }
  html body.bg-inner-page .page-hero { min-height: 380px !important; }
  html body.bg-inner-page .page-hero > .wrap { padding: 48px 0 !important; }
  html body.bg-inner-page .page-hero h1 { font-size: 40px !important; max-width: 19ch !important; }
  html body.bg-inner-page .page-hero .page-hero-bg::after { background: rgba(0,0,0,.65) !important; }
  html body.bg-inner-page :is(.intro,.values,.timeline,.about,.segments,.cards,.feature,.method,.listini,.gallery-sec,.contact,.hub-block) { padding-block: 48px !important; }
  html body.bg-inner-page :is(.sec-head,.f-txt,.about-text,.about-txt,.contact-info,.c-info) h2 { font-size: 34px !important; }
  html body.bg-inner-page .page-hero .btn { padding: 13px 20px !important; }
  html body.bg-course-page { --bg-course-section: 40px; --bg-course-gap: 24px; }
  html body.bg-course-page #qodef-page-content :is(.elementor-element-6327e0b,.elementor-element-d5d647c,.elementor-element-3f04859) { padding: 40px 20px 36px !important; }
  html body.bg-course-page #qodef-page-content h1.qodef-m-title { font-size: 40px !important; }
  html body.bg-course-page #qodef-page-content h2.elementor-heading-title { font-size: 30px !important; }
  html body.page-id-20574 #qodef-page-content :is(.elementor-element-f4a80e9,.elementor-element-601ede0) { padding: 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.bg-inner-page .page-hero *,html body.bg-course-page .elementor-element { animation: none !important; }
}

/* Existing category and project pages use the same understated title scale. */
html body.bg-legacy-page #qodef-page-content h1 {
  font: 600 clamp(40px,4.5vw,60px)/1.08 'Cormorant Garamond',serif !important;
  max-width: 25ch; margin-inline: auto;
  color: #000 !important; letter-spacing: -.025em !important;
}
html body.bg-legacy-page #qodef-page-content .qodef-section-title .qodef-m-text {
  font: 400 16px/1.75 'Work Sans',sans-serif !important;
  max-width: 70ch; margin-inline: auto;
}
html body.bg-legacy-page #qodef-page-content .qodef-woo-product-list .qodef-woo-product-image {
  aspect-ratio: 4/3; background: #f5f5f5; border-radius: 20px; overflow: hidden;
}
html body.bg-legacy-page #qodef-page-content .qodef-woo-product-list .qodef-woo-product-image > img { width: 100%; height: 100%; }
html body.bg-legacy-page #qodef-page-content .qodef-woo-product-list .qodef-woo-product-image img { object-fit: contain !important; padding: 20px; }
html body.bg-legacy-page #qodef-page-content .elementor-button { border-radius: 999px !important; min-height: 48px; }
@media (max-width: 1024px) {
  /* A legacy -70px margin placed the beginning of the content under the header. */
  html body:is(.bg-course-page,.bg-legacy-page,.single-product) #qodef-page-outer { margin-top: 0 !important; }
}
@media (max-width: 760px) {
  html body.bg-legacy-page #qodef-page-content h1 { font-size: 40px !important; }
}
html body.bg-legacy-page #qodef-page-content .elementor-top-section {
  padding: 64px 24px !important;
}
html body.bg-legacy-page #qodef-page-content .elementor-widget-reina_core_section_title .elementor-widget-container {
  margin-top: 0 !important;
}
html body.bg-legacy-page #qodef-page-content .qodef-woo-product-list .qodef-woo-product-title {
  font: 600 24px/1.15 'Cormorant Garamond',serif !important;
  color: #000 !important;
}
@media (max-width:760px) {
  html body.bg-legacy-page #qodef-page-content .elementor-top-section { padding: 40px 20px !important; }
}
@media (min-width:1025px) and (max-width:1100px) {
  /* Reina switches to a fixed 72px mobile header before its 1024px content rule. */
  html body:not(.home):not(.bg-inner-page) #qodef-page-outer { margin-top: 72px !important; }
}
