/**
 * Custom Core - Main CSS
 * Author: Luca Larice
 * Author URI: https://lucalarice.com/
 *
 */

/* ==========================================================
   Reset base
   ========================================================== */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}

/* ==========================================================
   Variabili globali del tema.
   ========================================================== */
:root {
  --section-padding-y: clamp(3.5rem, 6vw, 6.5rem);
  --content-width: 900px;
  --radius: 0;

  --font-base:
    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading:
    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Text */
  --text-body: #565d68;
  --text-primary: #1f2c4c;
  --text-secondary: #9c8437;
  --text-tertiary: #1f2c4c;
  --text-inverse: #fff;

  /* Background */
  --bg-primary: #fff;
  --bg-secondary: #9c8437;
  --bg-tertiary: #f5f6f7;
  --bg-grey: #eceef0;
  --bg-dark: #1f2c4c;
  --line: #e3e6e9;
  --line-dark: rgba(201, 173, 85, 0.34);

  /*
     * Fluid typography (375px → 1440px)
     * clamp(MIN, calc(MIN + (MAX - MIN) * ((100vw - 375px) / 1065)), MAX)
     * Sostituisci MIN e MAX con i valori mobile e desktop di Figma.
     */
  --h1: clamp(2.25rem, 5.2vw, 4.75rem);
  --h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --h3: clamp(1.25rem, 1.75vw, 2rem);
  --h4: clamp(1.25rem, 1.35vw, 1.9rem);
  --h5: clamp(13px, calc(13px + (14 - 13) * ((100vw - 375px) / 1065)), 14px);
  --h6: clamp(12px, calc(12px + (13 - 12) * ((100vw - 375px) / 1065)), 13px);

  /* Testo body */
  --text: clamp(1rem, 1vw, 1.2rem);
  --text-small: 0.75rem;

  /* Generale */
  --header-height: 90px;
  --admin-bar-height: 0px;
}

/* Barra admin WordPress */
body.admin-bar {
  --admin-bar-height: 46px;
}

@media (min-width: 783px) {
  body.admin-bar {
    --admin-bar-height: 32px;
  }
}

/* ==========================================================
   Utilities
   ========================================================== */
.object-fit-cover {
  object-fit: cover;
}
.text-balance {
  text-wrap: balance;
}

/* ==========================================================
   Theme color utilities
   ========================================================== */
.text-primary {
  color: var(--text-primary) !important;
}
.text-secondary {
  color: var(--text-secondary) !important;
}
.text-tertiary {
  color: var(--text-tertiary) !important;
}
.text-body {
  color: var(--text-body) !important;
}
.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4 {
  color: var(--text-inverse) !important;
}
.text-black {
  color: #000 !important;
}
.bg-primary {
  background-color: #1f2c4c !important;
}
.bg-secondary {
  background-color: #eceef0 !important;
}
.bg-tertiary {
  background-color: var(--bg-tertiary) !important;
}
.bg-black,
.bg-dark {
  background-color: var(--bg-dark) !important;
}
.bg-grey {
  background-color: var(--bg-grey) !important;
}

/* ==========================================================
   Font e typography
   ========================================================== */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow/Barlow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font-base);
  font-size: var(--text);
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
}

a {
  text-decoration: underline;
  transition: color 0.3s ease;
  color: var(--text-secondary);
  text-underline-offset: 0.2em;
}
a:hover,
a:focus {
  color: #b89a45;
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn,
.site-header a,
.site-footer a,
.nav a {
  text-decoration: none;
}

/* ==========================================================
   Titoli e contenuti editoriali
   ========================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-wrap: balance;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--h1);
  line-height: 1.08;
}
h2 {
  font-size: var(--h2);
  font-weight: 200;
  text-transform: uppercase;
}
h3 {
  font-size: var(--h3);
  font-weight: 700;
  text-transform: uppercase;
}
h4 {
  font-size: var(--h4);
}
h5 {
  font-size: var(--h5);
  line-height: 1.4;
}
h6 {
  font-size: var(--h6);
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}
p,
li {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

blockquote {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6;
  font-weight: 600;
  color: #1f2c4c;
  border-left: 3px solid #9c8437;
  padding-left: 22px;
  margin: 28px 0;
}

/* elimina margine dell'ultimo elemento */
.entry-content > :last-child,
.acf-section__content > :last-child,
.rank-math-breadcrumb > :last-child {
  margin-bottom: 0;
}

.text-small {
  font-size: var(--text-small);
}

/* ==========================================================
   Layout helpers
   ========================================================== */
.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  padding-block: var(--section-padding-y);
}

/* ==========================================================
   Accessibilità
   ========================================================== */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #000;
  border: 1px solid currentColor;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Header / menu
   ========================================================== */
.site-header {
  position: fixed;
  top: var(--admin-bar-height);
  right: 0;
  left: 0;
  z-index: 1060;
}
.site-header__inner {
  min-height: var(--header-height);
}
.site-header__logo {
  max-height: 68px;
  width: auto;
}

.site-menu-overlay {
  height: 100vh !important;
  background: #fff;
  border: 0;
}
.site-menu-overlay__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
}

.header-quick-link {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Pulsante menu */
.site-header__menu-toggle {
  position: relative;
  z-index: 1065;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0;
  border: 0;
  background: transparent;
}
.site-header__menu-label {
  font-weight: 500;
  color: var(--text-secondary);
}
.site-header__menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header__menu-icon--close {
  display: none;
}
.site-header__menu-toggle.is-open .site-header__menu-icon--open {
  display: none;
}
.site-header__menu-toggle.is-open .site-header__menu-icon--close {
  display: inline-flex;
}

/* Menu offcanvas
   Mobile: pannello dall'alto sotto l'header  */
.site-menu-overlay {
  --bs-offcanvas-width: 100%;
  --bs-offcanvas-height: auto;
  top: calc(var(--admin-bar-height) + var(--header-height));
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--admin-bar-height) - var(--header-height));
  border: 0;
  background: #fff;
  z-index: 1050;
  transform: translateY(-100%);
  overflow-y: auto;
}
.site-menu-overlay.showing,
.site-menu-overlay.show:not(.hiding) {
  transform: none;
}
.site-menu-overlay.hiding {
  transform: translateY(-100%);
}
.site-menu-overlay__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.site-menu-overlay__nav {
  flex: 1;
}
.site-menu-overlay__footer {
  margin-top: auto;
  padding-top: 2rem;
}

/* Backdrop sotto header e barra admin  */
.offcanvas-backdrop {
  top: calc(var(--admin-bar-height) + var(--header-height));
  height: calc(100dvh - var(--admin-bar-height) - var(--header-height));
  z-index: 1040;
}

/* Desktop: pannello laterale destro da 300px  */
@media (min-width: 992px) {
  .site-menu-overlay {
    top: calc(var(--admin-bar-height) + var(--header-height));
    right: 0;
    bottom: 0;
    left: auto;
    width: 300px;
    height: calc(100dvh - var(--admin-bar-height) - var(--header-height));
    max-height: none;
    transform: translateX(100%);
  }
  .site-menu-overlay.showing,
  .site-menu-overlay.show:not(.hiding) {
    transform: none;
  }
  .site-menu-overlay.hiding {
    transform: translateX(100%);
  }
}

/* ==========================================================
   Menu
   ========================================================== */
.site-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu li {
  margin: 0;
  padding: 0;
}
.site-menu a {
  display: inline-block;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: clamp(
    18px,
    calc(15px + (10 - 18) * ((100vw - 375px) / 1065)),
    10px
  );
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a,
.site-menu .current-menu-ancestor > a {
  color: var(--text-primary);
  opacity: 0.7;
}
.site-menu-overlay__nav {
  text-align: left;
}
@media (min-width: 992px) {
  .site-menu-overlay__nav {
    text-align: right;
  }
  .site-menu {
    align-items: flex-end;
  }
}

/* ==========================================================
   BODY
   ========================================================== */
.page-content {
  background: var(--bg-primary);
  display: flow-root;
}

/* ==========================================================
   ACF MODULES
   ========================================================== */

/* HEADER SLIDESHOW */
.page-header-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--text-secondary);
}
.page-header-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.page-header-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.page-header-slider__slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-header-slider__media,
.page-header-slider__picture {
  display: block;
  width: 100%;
  height: 100%;
}
.page-header-slider__image,
.page-header-slider__video {
  display: block;
  width: 100%;
  height: 100%;
}
.page-header-slider--fit-cover .page-header-slider__image,
.page-header-slider--fit-cover .page-header-slider__video {
  object-fit: cover;
}
.page-header-slider--fit-contain .page-header-slider__image,
.page-header-slider--fit-contain .page-header-slider__video {
  object-fit: contain;
}
.page-header-slider--height-px {
  height: var(--slider-height-desktop-px);
}
.page-header-slider--height-vh {
  height: var(--slider-height-desktop-vh);
}
.page-header-slider--height-naturale .page-header-slider__slide {
  position: absolute;
}
.page-header-slider--height-naturale .page-header-slider__slide.is-active {
  position: relative;
}
.page-header-slider--height-naturale .page-header-slider__image,
.page-header-slider--height-naturale .page-header-slider__video {
  height: auto;
  min-height: 0;
}
.page-header-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.page-header-slider--overlay-none .page-header-slider__overlay {
  background: transparent;
}
.page-header-slider--overlay-light .page-header-slider__overlay {
  background: rgba(0, 0, 0, 0.2);
}
.page-header-slider--overlay-medium .page-header-slider__overlay {
  background: rgba(0, 0, 0, 0.4);
}
.page-header-slider--overlay-strong .page-header-slider__overlay {
  background: rgba(0, 0, 0, 0.65);
}
.page-header-slider__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  color: #fff;
  pointer-events: none;
}
.page-header-slider__content .container {
  width: 100%;
}
.page-header-slider__content-row {
  display: flex;
  width: 100%;
}
.page-header-slider__content-row--left {
  justify-content: flex-start;
}
.page-header-slider__content-row--center {
  justify-content: center;
}
.page-header-slider__content-row--right {
  justify-content: flex-end;
}
.page-header-slider__content-inner {
  width: min(100%, 700px);
  pointer-events: auto;
}
.page-header-slider__title {
  margin: 0 0 1rem;
  color: inherit;
  font-size: clamp(
    40px,
    calc(40px + (80 - 40) * ((100vw - 375px) / 1065)),
    80px
  );
}
.page-header-slider__content-inner h1,
.page-header-slider__content-inner h2,
.page-header-slider__content-inner h3,
.page-header-slider__content-inner h4,
.page-header-slider__content-inner h5,
.page-header-slider__content-inner h6,
.page-header-slider__content-inner p,
.page-header-slider__content-inner li,
.page-header-slider__content-inner a:not(.button) {
  color: inherit;
}
.page-header-slider__content-inner--white {
  color: #fff;
}
.page-header-slider__content-inner--black {
  color: #000;
}
.page-header-slider__content-inner--primary {
  color: var(--text-primary);
}
.page-header-slider__content-inner--secondary {
  color: var(--text-secondary);
}
.page-header-slider__content-inner--custom {
  color: var(--header-text-color);
}
.page-header-slider__text {
  margin-bottom: 1.5rem;
}
.page-header-slider__text > :last-child {
  margin-bottom: 0;
}
.page-header-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}
.page-header-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}
.page-header-slider__arrow--prev {
  left: 1.5rem;
}
.page-header-slider__arrow--next {
  right: 1.5rem;
}
.page-header-slider__arrow svg {
  width: 20px;
  height: 20px;
}
.page-header-slider__dots {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.65rem;
}
.page-header-slider__dots--bottom {
  right: 0;
  bottom: 1.5rem;
  left: 0;
  justify-content: center;
  flex-direction: row;
}
.page-header-slider__dots--right {
  top: 50%;
  right: 1.5rem;
  flex-direction: column;
  transform: translateY(-50%);
}
.page-header-slider__dots--left {
  top: 50%;
  left: 1.5rem;
  flex-direction: column;
  transform: translateY(-50%);
}
.page-header-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 999px;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.page-header-slider__dot.is-active {
  background: #fff;
}
.page-header-slider__dots--bottom .page-header-slider__dot.is-active {
  width: 24px;
}
.page-header-slider__dots--right .page-header-slider__dot,
.page-header-slider__dots--left .page-header-slider__dot {
  width: 5px;
  height: 22px;
}
.page-header-slider__dots--right .page-header-slider__dot.is-active,
.page-header-slider__dots--left .page-header-slider__dot.is-active {
  height: 40px;
}
@media (max-width: 767.98px) {
  .page-header-slider--height-px {
    height: var(--slider-height-mobile-px);
  }

  .page-header-slider--height-vh {
    height: var(--slider-height-mobile-vh);
  }

  .page-header-slider__content {
    align-items: flex-start;
    padding-top: 3rem;
  }

  .page-header-slider__content-row {
    justify-content: center !important;
  }

  .page-header-slider__content-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    text-align: center !important;
  }

  .page-header-slider__title {
    margin-bottom: 1rem;
  }

  .page-header-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .page-header-slider__arrow--prev {
    left: 0.75rem;
  }

  .page-header-slider__arrow--next {
    right: 0.75rem;
  }

  .page-header-slider__dots--right {
    right: 0.75rem;
  }

  .page-header-slider__dots--left {
    left: 0.75rem;
  }

  .page-header-slider__dots--bottom {
    bottom: 1rem;
  }

  .page-header-slider__dots--right .page-header-slider__dot,
  .page-header-slider__dots--left .page-header-slider__dot {
    height: 16px;
  }

  .page-header-slider__dots--right .page-header-slider__dot.is-active,
  .page-header-slider__dots--left .page-header-slider__dot.is-active {
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-header-slider__slide {
    transition: none;
  }
}

/* HEADER IMAGE */
.page-header {
  position: relative;
  min-height: 65vh;
  background: var(--text-primary);
  color: var(--text-inverse);
}
.page-header__inner {
  position: relative;
  min-height: max(65vh, clamp(32rem, 55vw, 41rem));
  overflow: hidden;
  background: var(--text-primary);
}
.page-header__picture,
.page-header__image {
  display: block;
  width: 100%;
}
.page-header__picture {
  position: absolute;
  inset: 0;
}
.page-header__image {
  height: 100%;
  object-fit: cover;
  transition: transform 1400ms cubic-bezier(0.22, 0.61, 0.22, 1);
  will-change: transform;
}
.page-header:hover .page-header__image {
  transform: scale(1.035);
}
.page-header--height-px .page-header__inner,
.page-header--height-vh .page-header__inner {
  min-height: 0;
  height: var(--page-header-height-desktop);
}
.page-header--height-naturale .page-header__inner {
  min-height: max(65vh, clamp(32rem, 55vw, 41rem));
}
.page-header--fit-contain .page-header__image {
  object-fit: contain;
}
.page-header__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(38, 34, 28, 0.94) 0%,
    rgba(38, 34, 28, 0.85) 30%,
    rgba(38, 34, 28, 0.52) 60%,
    rgba(38, 34, 28, 0.14) 100%
  );
}
.page-header--overlay-none .page-header__overlay {
  opacity: 0.82;
}
.page-header--overlay-light .page-header__overlay {
  opacity: 0.65;
}
.page-header--overlay-medium .page-header__overlay {
  opacity: 0.85;
}
.page-header--overlay-strong .page-header__overlay {
  opacity: 1;
}
.page-header__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.page-header__content-container {
  width: 100%;
}
.page-header__content-inner {
  width: min(100%, 40rem);
  padding-top: clamp(7rem, 11vw, 9.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
}
.page-header--content-left .page-header__content-inner {
  margin-right: auto;
  text-align: left;
}
.page-header--content-center .page-header__content-inner {
  margin-inline: auto;
  text-align: center;
}
.page-header--content-right .page-header__content-inner {
  margin-left: auto;
  text-align: right;
}
.page-header__title {
  margin: 0 0 clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-inverse);
  font-size: clamp(2.375rem, 4.4vw, 3.625rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: none;
}
.page-header__text {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9375rem, 1.2vw, 0.96875rem);
  line-height: 1.65;
}
.page-header--content-center .page-header__text {
  margin-inline: auto;
}
.page-header--content-right .page-header__text {
  margin-left: auto;
}
.page-header__text > :last-child {
  margin-bottom: 0;
}
.page-header__text strong {
  color: var(--text-inverse);
}
.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.625rem;
}
.page-header--content-center .page-header__actions {
  justify-content: center;
}
.page-header--content-right .page-header__actions {
  justify-content: flex-end;
}
.page-header__button.button-primary {
  background: var(--bg-secondary);
  border-color: var(--bg-secondary);
  color: #fff;
}
.page-header__button.button-primary:hover,
.page-header__button.button-primary:focus-visible {
  background: transparent;
  border-color: var(--text-inverse);
  color: var(--text-inverse);
}
.page-header__button--ghost.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-inverse);
}
.page-header__button--ghost.button-outline:hover,
.page-header__button--ghost.button-outline:focus-visible {
  background: var(--text-inverse);
  border-color: var(--text-inverse);
  color: var(--bg-dark);
}
.page-header--boxed {
  background: transparent;
}

@media (max-width: 980px) {
  .page-header__overlay {
    background: linear-gradient(
      90deg,
      rgba(38, 34, 28, 0.94) 0%,
      rgba(38, 34, 28, 0.78) 55%,
      rgba(38, 34, 28, 0.5) 100%
    );
  }
}

@media (max-width: 767px) {
  .page-header__inner,
  .page-header--height-naturale .page-header__inner {
    min-height: 31rem;
  }
  .page-header--height-px .page-header__inner,
  .page-header--height-vh .page-header__inner {
    min-height: 0;
    height: var(--page-header-height-mobile);
  }
  .page-header__overlay {
    background: linear-gradient(
      90deg,
      rgba(38, 34, 28, 0.94),
      rgba(38, 34, 28, 0.66)
    );
  }
  .page-header__content {
    align-items: flex-end;
  }
  .page-header__content-inner {
    width: 100%;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
  .page-header__title {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }
  .page-header__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .page-header__button.button {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-header__image {
    transition: none;
  }
  .page-header:hover .page-header__image {
    transform: none;
  }
}

/* CARDS */
.cc-cards-row {
  --bs-gutter-x: 2.75rem;
  --bs-gutter-y: 2.75rem;
}

.cc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.cc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cc-card__title {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cc-card__text {
  line-height: 1.6;
}

.cc-card__text > :last-child {
  margin-bottom: 0;
}

.cc-card__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.cc-card__eyebrow h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Card con immagine: immagine sopra, contenuto libero sotto */
.cc-card--image .cc-card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.125rem;
}

.cc-card--image .cc-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cc-card--image:hover .cc-card__image {
  transform: scale(1.04);
}

.cc-card--image .cc-card__body {
  padding: 0;
}

/* Card senza immagine: solo testo, come ep-card di azienda.html */
.cc-card--icon {
  background: transparent;
  color: inherit;
}

.cc-card--icon .cc-card__body {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
}

.cc-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.cc-card--icon .cc-card__text {
  max-width: 34rem;
}

.cc-card .button {
  margin-top: auto;
  align-self: center;
}

/* Mobile scroll laterale */
@media (max-width: 991px) {
  .cc-cards-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
  }

  .cc-cards-scroll .row {
    width: max-content;
    min-width: 100%;
  }

  .cc-cards-scroll [class*="col-"] {
    max-width: 85vw;
  }
}

@media (max-width: 767px) {
  .cc-cards-row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
  }

  .cc-card--image .cc-card__media {
    height: 220px;
  }
}

/* GALLERY */
.cc-gallery {
  display: grid;
  gap: var(--gallery-gap, 1.5rem);
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
}
.cc-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}
.cc-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.cc-gallery__image {
  display: block;
  width: 100%;
  height: auto;
}
.cc-gallery--originale {
  align-items: center;
}
.cc-gallery--quadrata .cc-gallery__item,
.cc-gallery--orizzontale .cc-gallery__item {
  position: relative;
}
.cc-gallery--quadrata .cc-gallery__item {
  aspect-ratio: 1 / 1;
}
.cc-gallery--orizzontale .cc-gallery__item {
  aspect-ratio: 4 / 3;
}
.cc-gallery--quadrata .cc-gallery__image,
.cc-gallery--orizzontale .cc-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 991px) {
  .cc-gallery {
    grid-template-columns: repeat(
      var(--gallery-columns-mobile),
      minmax(0, 1fr)
    );
  }
}

/* TESTO + IMMAGINE */
.acf-section--image-text .row.g-5 {
  --bs-gutter-x: clamp(2rem, 5vw, 4rem);
  --bs-gutter-y: clamp(2.5rem, 6vw, 5rem);
}

.image-text__media {
  width: 100%;
  height: clamp(18rem, 28vw, 27rem);
  min-height: 0;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.image-text__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-text__eyebrow {
  margin-bottom: clamp(0.8rem, 1.4vw, 1.15rem);
}

.image-text__title {
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.image-text__text > :last-child {
  margin-bottom: 0;
}

/* Full width: immagine a filo viewport, spazio gestito solo nella colonna testo. */
.acf-section--image-text-full .container-fluid,
.acf-section--image-text-full .container-fluid > .row,
.acf-section--image-text-full .container-fluid > .row > [class*="col-"] {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.acf-section--image-text-full .image-text__media {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: clamp(24rem, 38vw, 38rem);
}

.acf-section--image-text-full .image-text__content {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  padding-left: clamp(2rem, 6vw, 7rem);
  padding-right: clamp(2rem, 6vw, 7rem);
}

@media (max-width: 991.98px) {
  .image-text__media {
    height: clamp(17rem, 62vw, 24rem);
  }

  .acf-section--image-text-full .image-text__media {
    min-height: 0;
    height: clamp(18rem, 62vw, 30rem);
  }

  .acf-section--image-text-full .image-text__content {
    padding-left: var(--container-padding, 1.25rem);
    padding-right: var(--container-padding, 1.25rem);
  }
}

/* LISTING */
.cc-listing__media img {
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* BANNER */
.cc-banner {
  --cc-banner-bg: transparent;
  --cc-banner-image: none;
  --cc-banner-size: cover;
  --cc-banner-position: center center;
  position: relative;
  overflow: hidden;
  background-color: var(--cc-banner-bg);
  background-image: var(--cc-banner-image);
  background-repeat: no-repeat;
  background-size: var(--cc-banner-size);
  background-position: var(--cc-banner-position);
}
.cc-banner--rounded {
  border-radius: var(--radius);
}
.cc-banner--auto {
  min-height: 0;
}
.cc-banner--compact {
  min-height: 220px;
}
.cc-banner--medium {
  min-height: 360px;
}
.cc-banner--large {
  min-height: 520px;
}
.cc-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3rem;
}
.cc-banner--content-left:not(.cc-banner--has-media) .cc-banner__content {
  max-width: 650px;
  margin-right: auto;
}
.cc-banner--content-center:not(.cc-banner--has-media) .cc-banner__content {
  max-width: 750px;
  margin-right: auto;
  margin-left: auto;
}
.cc-banner--content-right:not(.cc-banner--has-media) .cc-banner__content {
  max-width: 650px;
  margin-left: auto;
}
.cc-banner__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}
.cc-banner__title {
  margin-bottom: 1rem;
  color: #55671d;
}
.cc-banner__text {
  max-width: 650px;
}
.cc-banner--content-center .cc-banner__text {
  margin-right: auto;
  margin-left: auto;
}
.cc-banner--content-right .cc-banner__text {
  margin-left: auto;
}
.cc-banner__text > :last-child {
  margin-bottom: 0;
}
.cc-banner .button.button-outline {
  margin-top: 1.5rem;
  background-color: #55671d;
  border-color: #55671d;
  color: #fff;
}
.cc-banner__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cc-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 340px;
}
@media (max-width: 991.98px) {
  .cc-banner--compact,
  .cc-banner--medium,
  .cc-banner--large {
    min-height: 0;
  }
  .cc-banner__content {
    min-height: 260px;
    padding: 2rem;
  }
  .cc-banner__media {
    padding-top: 2rem;
    max-height: 260px;
  }
  .cc-banner--media-left .cc-banner__media {
    order: 2;
  }
}

/* ==========================================================
   Componenti comuni
   ----------------------------------------------------------
   Bottoni, card, badge, pagination, social, ecc.
   ========================================================== */
.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: clamp(3.25rem, 4vw, 4rem);
  padding: clamp(0.875rem, 1.2vw, 1.125rem) clamp(1.75rem, 3vw, 3rem);
  border: 1px solid transparent;
  border-radius: 0;
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
}

/* Primario: fondo ocra e testo scuro. */
.button-primary,
.button-primary:visited {
  background: var(--bg-secondary);
  border-color: var(--bg-secondary);
  color: #fff;
}
.button-primary:hover,
.button-primary:focus-visible {
  background: #b89a45;
  border-color: #b89a45;
  color: #fff;
}

/* Secondario: fondo scuro e testo bianco. */
.button-secondary,
.button-secondary:visited {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-inverse);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  background: #2a3a60;
  border-color: #2a3a60;
  color: #fff;
}

/* Outline: trasparente con bordo e testo scuri. */
.button-outline,
.button-outline:visited,
.button-outline-primary,
.button-outline-primary:visited,
.button-outline-secondary,
.button-outline-secondary:visited {
  background: transparent;
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}
.button-outline:hover,
.button-outline:focus-visible,
.button-outline-primary:hover,
.button-outline-primary:focus-visible,
.button-outline-secondary:hover,
.button-outline-secondary:focus-visible {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-inverse);
}

.button-small {
  min-height: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
}

/* PAGINATION */
.cc-pagination .page-link {
  text-decoration: none;
}

/* SOCIAL */
.cc-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 auto;
  vertical-align: middle;
}
.cc-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;

  --social-size: 2.75rem;
  --social-radius: 50%;
  --social-bg: transparent;
  --social-color: currentColor;
  --social-border: 0;

  --social-bg-hover: var(--bg-primary);
  --social-color-hover: var(--bg-secondary);
  --social-border-hover: 0;
}
.text-center .cc-social {
  justify-content: center;
}
.text-end .cc-social {
  justify-content: flex-end;
}
.cc-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-size);
  height: var(--social-size);
  border-radius: var(--social-radius);
  background: var(--social-bg);
  color: var(--social-color);
  border: var(--social-border);
  text-decoration: none;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}
.cc-social__link:hover {
  background: var(--social-bg-hover);
  color: var(--social-color-hover);
  border: var(--social-border-hover);
  transform: translateY(-2px);
}
.cc-social__icon,
.cc-social__link .cc-icon {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.cc-social--filled {
  --social-bg: var(--text-secondary);
  --social-color: #fff;
  --social-bg-hover: var(--text-primary);
  --social-color-hover: #fff;
}
.cc-social--outline {
  --social-border: 1px solid currentColor;
  --social-bg-hover: var(--text-primary);
  --social-color-hover: #fff;
  --social-border-hover: 1px solid var(--text-primary);
}
.cc-social--square {
  --social-radius: 0.5rem;
}
.cc-social--sharp {
  --social-radius: 0;
}
.cc-social--sm {
  --social-size: 2.25rem;
}
.cc-social--lg {
  --social-size: 3rem;
}

/* ==========================================================
   Form
   ========================================================== */
.fluentform.ff-default .ff_upload_btn.ff-btn {
  background-color: #fff;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 10px;
}
.fluentform.ff-default .ff_upload_btn.ff-btn:hover {
  background-color: var(--text-primary);
  color: #fff;
}

.fluentform.ff-default form .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--text-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0px;
  padding: 0.5rem 3rem;
}

/* footer */
.site-footer .fluentform.ff-default form .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  border-radius: 0px;
  font-size: 13px;
  padding: 0.5rem 3rem;
}
.site-footer
  .fluentform.ff-default
  form
  .ff-btn-submit:not(.ff_btn_no_style):hover {
  background-color: var(--bg-secondary);
  color: #fff;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  padding: clamp(46px, 5vw, 68px) 0 0;
  background: var(--bg-dark);
  color: #aeb6c4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.footer-brand__logo {
  display: inline-flex;
}

.site-footer__logo {
  width: auto;
  height: 73px;
  max-width: 210px;
}

.footer-contacts {
  margin-top: 22px;
}

.footer-menu__title,
.footer-editor h1,
.footer-editor h2,
.footer-editor h3,
.footer-editor h4,
.footer-editor h5,
.footer-editor h6 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-contacts__list,
.footer-menu__list,
.footer-legal__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contacts__list {
  display: grid;
  gap: 16px;
}

.footer-contacts__list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #aeb6c4;
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-contacts__icon {
  display: inline-flex;
  margin-top: 2px;
}

.footer-contacts__icon svg {
  width: 16px;
  height: 16px;
  color: #c9ad55;
}

.footer-socials {
  margin-top: 22px;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--bg-secondary);
  border-color: var(--bg-secondary);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-menu a,
.footer-contacts a,
.footer-legal a {
  color: inherit;
}

.footer-menu__list a {
  display: block;
  padding: 0;
  color: #aeb6c4;
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-menu__list li + li {
  margin-top: 12px;
}

.footer-editor {
  color: #8790a0;
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-editor p {
  margin: 0 0 16px;
  color: #8790a0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-editor img {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 140px;
  margin: 0 0 20px;
  object-fit: contain;
}

.footer-editor figure {
  margin: 0 0 20px;
}

.footer-editor figure img {
  margin-bottom: 0;
}

.footer-editor a {
  color: #c9ad55;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-editor > :last-child {
  margin-bottom: 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #c9ad55;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 4vw, 56px);
  padding: 26px 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #7a8394;
  font-size: 14px;
}

.footer-legal__menu {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.footer-legal__menu li:not(:last-child)::after {
  content: " · ";
  margin: 0 0.2rem;
}

.footer-menu__list .menu-item,
.footer-legal__menu .menu-item {
  margin-left: 0;
}

.footer-menu__list .menu-item {
  display: block;
}

@media (max-width: 1199.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 42px;
  }

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

  .footer-editor[aria-hidden="true"] {
    display: none;
  }

  .footer-bottom,
  .footer-legal__menu {
    flex-direction: column;
  }
}

/* ==========================================================
   Breadcrumbs
   ========================================================== */
.cc-breadcrumbs {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 3rem;
  padding: 0;
  background: var(--text-primary);
  border: 0;
}

.cc-breadcrumbs__inner {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.cc-breadcrumbs .rank-math-breadcrumb {
  width: 100%;
  min-width: 0;
}

.cc-breadcrumbs .rank-math-breadcrumb p {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.8rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.cc-breadcrumbs,
.cc-breadcrumbs a,
.cc-breadcrumbs .last,
.cc-breadcrumbs [aria-current="page"] {
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.cc-breadcrumbs a {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.cc-breadcrumbs a:hover,
.cc-breadcrumbs a:focus-visible {
  color: #fff;
}

.cc-breadcrumbs .last,
.cc-breadcrumbs [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-breadcrumbs .rank-math-breadcrumb .separator {
  flex: 0 0 auto;
  width: auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0;
  line-height: 1;
}

.cc-breadcrumbs .rank-math-breadcrumb .separator::before {
  content: "/";
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6875rem;
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .cc-breadcrumbs {
    height: 2.75rem;
  }

  .cc-breadcrumbs .rank-math-breadcrumb p {
    gap: 0.55rem;
  }

  /* Su schermi piccoli manteniamo Home e pagina corrente. */
  .cc-breadcrumbs .rank-math-breadcrumb a:not(:first-child),
  .cc-breadcrumbs .rank-math-breadcrumb a:not(:first-child) + .separator {
    display: none;
  }
}

/* EYEBROW */
.eyebrow {
  margin: 0 0 clamp(0.75rem, 1.2vw, 0.875rem);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* TESTO + TESTO */
.acf-section--text-text {
  padding-block: var(--section-padding-y);
}

.text-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.text-text__column > :first-child {
  margin-top: 0;
}

.text-text__column > :last-child {
  margin-bottom: 0;
}

.text-text__title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}

.text-text__content > :first-child {
  margin-top: 0;
}

.text-text__content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .acf-section--text-text {
    padding-block: clamp(3rem, 10vw, 4rem);
  }

  .text-text {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================
   SHC — modulo titolo, testo e numeri
   ========================================================== */
.acf-section--numbers {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.numbers-band__inner {
  max-width: 66rem;
  margin-inline: auto;
  text-align: center;
}

.numbers-band__title {
  max-width: 58rem;
  margin: 0 auto;
  color: var(--text-inverse);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.numbers-band__text {
  max-width: 50rem;
  margin: clamp(1.5rem, 2.7vw, 2.5rem) auto 0;
  color: color-mix(in srgb, var(--text-inverse) 72%, transparent);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.65;
}

.numbers-band__text > :last-child {
  margin-bottom: 0;
}

.numbers-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.numbers-band__value {
  color: var(--text-secondary);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.numbers-band__label {
  margin-top: clamp(1rem, 1.8vw, 1.5rem);
  color: color-mix(in srgb, var(--text-inverse) 60%, transparent);
  font-size: clamp(0.72rem, 0.8vw, 0.85rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Titolo opzionale del modulo testo + testo. */
.text-text__header {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 767.98px) {
  .numbers-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .numbers-band__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Header predefinito
   ========================================================== */
/* Header usato quando la pagina non ha un layout ACF in header_pagina. */
.page-header-default {
  position: relative;
  min-height: clamp(29rem, 43vw, 35rem);
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.page-header-default__inner {
  display: flex;
  align-items: flex-start;
  min-height: inherit;
  padding-top: calc(
    var(--shc-utility-height) + var(--shc-nav-height) +
      clamp(2.25rem, 4.5vw, 4rem)
  );
  padding-bottom: calc(
    var(--shc-breadcrumb-height) + clamp(3.25rem, 6vw, 5.25rem)
  );
}

.page-header-default__content {
  width: min(100%, 42rem);
}

.page-header-default__title {
  margin: 0;
  color: var(--text-inverse);
  font-size: clamp(2.6rem, 4.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: none;
}

.page-header-default__intro {
  max-width: 58ch;
  margin: clamp(1.5rem, 2.7vw, 2.25rem) 0 0;
  color: color-mix(in srgb, var(--text-inverse) 78%, transparent);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.72;
}

/* Fascia numeri: proporzioni più compatte rispetto alla prima versione. */
.acf-section--numbers {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.numbers-band__inner {
  max-width: 62rem;
}

.numbers-band__title {
  max-width: 54rem;
  font-size: clamp(1.8rem, 2.9vw, 2.65rem);
  line-height: 1.15;
  color: #fff;
}

.numbers-band__text {
  max-width: 47rem;
  margin-top: clamp(1.15rem, 2vw, 1.75rem);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.6;
}

.numbers-band__grid {
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  margin-top: clamp(2.75rem, 4.8vw, 4rem);
  border-top: 2px solid var(--bg-secondary);
  border-bottom: 2px solid var(--bg-secondary);
}

.numbers-band__value {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  color: #fff;
  font-weight: 300;
}

.numbers-band__label {
  margin-top: clamp(0.75rem, 1.2vw, 1rem);
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .page-header-default {
    min-height: clamp(26rem, 120vw, 31rem);
  }

  .page-header-default__inner {
    padding-top: calc(var(--shc-utility-height) + var(--shc-nav-height) + 2rem);
    padding-bottom: calc(var(--shc-breadcrumb-height) + 2.75rem);
  }

  .acf-section--numbers {
    padding-block: 3.5rem;
  }
}

/* ==========================================================
   SHC — FAQ a due colonne
   ========================================================== */
.acf-section--faq {
  padding-block: clamp(3.75rem, 6.5vw, 6rem);
}

.faq-band__title {
  margin: 0 0 clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.faq-band__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1rem) clamp(1rem, 1.8vw, 1.5rem);
  max-width: 70rem;
  margin-inline: auto;
  align-items: start;
}

.faq-band__item {
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: background-color 0.25s ease;
  border-color: var(--line);
}

.faq-band__item:nth-child(even) {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.faq-band__item[open] {
  border-radius: clamp(1.25rem, 2vw, 1.75rem);
}

.faq-band__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(3.75rem, 5vw, 4.5rem);
  padding: clamp(0.9rem, 1.4vw, 1.15rem) clamp(1.25rem, 2vw, 1.75rem);
  cursor: pointer;
  list-style: none;
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

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

.faq-band__question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.faq-band__item[open] .faq-band__question::after {
  content: "−";
}

.faq-band__answer {
  padding: 0 clamp(1.25rem, 2vw, 1.75rem) clamp(1.2rem, 2vw, 1.6rem);
  font-size: clamp(0.9rem, 0.98vw, 0.98rem);
  line-height: 1.65;
}

.faq-band__answer > :last-child {
  margin-bottom: 0;
}

.faq-band__item:nth-child(even) .faq-band__answer strong {
  color: var(--text-secondary);
}

/* ==========================================================
   SHC — fascia principi numerati
   ========================================================== */
.acf-section--principles {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background: var(--bg-secondary) !important;
  color: var(--text-primary);
}

.acf-section--principles::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(2.5rem, 5vw, 5rem);
  aspect-ratio: 1;
  background: var(--bg-white);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

.principles-band__head {
  max-width: 54rem;
}

.principles-band__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.55vw, 2.35rem);
}

.principles-band__intro {
  max-width: 46rem;
  margin-top: clamp(1rem, 1.8vw, 1.5rem);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.65;
}

.principles-band__intro > :last-child {
  margin-bottom: 0;
}

.principles-band__grid {
  display: grid;
  grid-template-columns: repeat(var(--principles-count, 4), minmax(0, 1fr));
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}

.principles-band__item {
  min-width: 0;
  padding: 0 clamp(1.35rem, 2.3vw, 2.25rem);
  border-left: 1px solid
    color-mix(in srgb, var(--text-primary) 17%, transparent);
}

.principles-band__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.principles-band__item:last-child {
  padding-right: 0;
}

.principles-band__number {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  font-size: clamp(0.8rem, 0.85vw, 0.9rem);
  font-weight: 700;
  line-height: 1;
}

.principles-band__item-title {
  margin: 0 0 clamp(0.85rem, 1.4vw, 1.15rem);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: 0.035em;
}

.principles-band__item-text {
  font-size: clamp(0.9rem, 0.98vw, 1rem);
  line-height: 1.65;
}

.principles-band__item-text > :last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .faq-band__grid {
    grid-template-columns: 1fr;
  }

  .faq-band__item:nth-child(even) {
    background: var(--bg-primary);
  }

  .principles-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 0;
  }

  .principles-band__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .principles-band__grid {
    grid-template-columns: 1fr;
  }

  .principles-band__item,
  .principles-band__item:nth-child(odd) {
    padding: 1.75rem 0 0;
    border-top: 1px solid
      color-mix(in srgb, var(--text-primary) 17%, transparent);
    border-left: 0;
  }

  .principles-band__item:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

/* ==========================================================
   Taratura globale dei componenti
   ========================================================== */

body {
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

h2 {
  line-height: 1.14;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

h3 {
  line-height: 1.22;
}

h4,
h5,
h6 {
  line-height: 1.3;
}

/* Mantiene il linguaggio grafico SHC, evitando titoli sproporzionati. */
h2,
h3 {
  letter-spacing: 0.02em;
}

/* Corpo editoriale leggermente più compatto. */
.page-content p,
.page-content li,
.page-content td,
.page-content th {
  font-size: inherit;
}

/* Pulsanti più vicini alle proporzioni dei template statici. */
.button,
.button:visited {
  min-height: clamp(2.85rem, 3.3vw, 3.35rem);
  padding: clamp(0.75rem, 0.9vw, 0.9rem) clamp(1.35rem, 2vw, 2rem);
  font-size: clamp(0.6875rem, 0.72vw, 0.8rem);
  letter-spacing: 0.15em;
}

/* ==========================================================
   SHC — box immagine, testo e link più compatto
   ========================================================== */
.acf-section--image-links-box {
  padding-block: clamp(3rem, 5vw, 4.75rem);
}

.image-links-box__surface.is-boxed {
  padding: clamp(2rem, 3.2vw, 3.5rem);
}

.image-links-box {
  grid-template-columns: minmax(15rem, clamp(16rem, 27vw, 22rem)) minmax(0, 1fr);
  gap: clamp(2rem, 3.8vw, 4rem);
}

.image-links-box__media {
  width: 100%;
  height: clamp(17rem, 25vw, 24rem);
}

.image-links-box__content {
  max-width: 48rem;
}

.image-links-box__title {
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  line-height: 1.16;
}

.image-links-box__text {
  max-width: 46rem;
  margin-top: clamp(0.8rem, 1.25vw, 1.15rem);
  font-size: clamp(0.9375rem, 0.35vw + 0.88rem, 1.025rem);
  line-height: 1.6;
}

.image-links-box__actions {
  gap: clamp(0.65rem, 0.9vw, 0.85rem);
  margin-top: clamp(1.4rem, 2.2vw, 2rem);
}

.image-links-box__surface.has-white-corner::after {
  width: clamp(2.5rem, 4vw, 4rem);
}

@media (max-width: 991.98px) {
  .image-links-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-links-box__media {
    max-width: 34rem;
    height: clamp(18rem, 52vw, 25rem);
  }
}

@media (max-width: 575.98px) {
  .image-links-box__surface.is-boxed {
    padding: clamp(1.35rem, 6vw, 2rem);
  }

  .image-links-box__media {
    height: clamp(16rem, 78vw, 22rem);
  }
}

/* ==========================================================
   Modulo form
   ========================================================== */
.cc-form-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.875rem, 6vw, 5.25rem);
  background: #f5f6f7;
}

.cc-form-section__inner {
  position: relative;
  z-index: 2;
}

.cc-form-section__title {
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  color: #1f2c4c;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.cc-form-section .cc-form,
.cc-form-section .fluentform,
.cc-form-section .fluentform form {
  width: 100%;
}

/* Mantiene le colonne definite in Fluent Forms ma con le stesse spaziature del form globale. */
.cc-form-section .fluentform .ff-t-container {
  gap: 0 26px;
}

.cc-form-section .fluentform .ff-el-group {
  margin-bottom: 1rem;
}

.cc-form-section .fluentform .ff-el-input--label {
  margin-bottom: 0.375rem;
}

.cc-form-section .fluentform .ff-el-input--label label {
  margin: 0;
  color: #565d68;
  font-size: 0.78125rem;
  font-weight: 400;
  line-height: 1.4;
}

.cc-form-section .fluentform.ff-default .ff-el-form-control,
.cc-form-section
  .fluentform
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not(
    [type="button"]
  ),
.cc-form-section .fluentform select,
.cc-form-section .fluentform textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e3e6e9;
  border-radius: 0;
  background: #fff;
  color: #1f2c4c;
  font: inherit;
  font-size: 0.875rem;
  box-shadow: none;
}

.cc-form-section .fluentform textarea {
  min-height: 8rem;
  resize: vertical;
}

.cc-form-section .fluentform input::placeholder,
.cc-form-section .fluentform textarea::placeholder {
  color: #8b929d;
  opacity: 1;
}

.cc-form-section .fluentform.ff-default .ff-el-form-control:focus,
.cc-form-section .fluentform input:focus,
.cc-form-section .fluentform select:focus,
.cc-form-section .fluentform textarea:focus {
  outline: none;
  border-color: #9c8437;
  background: #fff;
  box-shadow: none;
}

.cc-form-section .fluentform .ff-el-form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.cc-form-section .fluentform input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0.15rem 0 0;
  accent-color: #9c8437;
}

.cc-form-section .fluentform .ff-el-form-check-label,
.cc-form-section .fluentform .ff-el-form-check-label a,
.cc-form-section .fluentform .ff-el-form-check-label span {
  color: #8b929d;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
}

.cc-form-section .fluentform .ff_submit_btn_wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.cc-form-section
  .fluentform.ff-default
  form
  .ff-btn-submit:not(.ff_btn_no_style),
.cc-form-section .fluentform form .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 3rem;
  margin: 0;
  padding: 0.875rem 1.875rem;
  border: 1.5px solid #9c8437;
  border-radius: 0;
  background: #9c8437;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.cc-form-section
  .fluentform.ff-default
  form
  .ff-btn-submit:not(.ff_btn_no_style):hover,
.cc-form-section .fluentform form .ff-btn-submit:hover,
.cc-form-section .fluentform form .ff-btn-submit:focus-visible {
  border-color: #b89a45;
  background: #b89a45;
  color: #fff;
}

.cc-form-section .fluentform .error.text-danger,
.cc-form-section .fluentform .ff-el-is-error .text-danger {
  margin-top: 0.3rem;
  font-size: 0.75rem;
}

.cc-form-section .fluentform .ff-el-is-error .ff-el-form-control {
  border-color: #b42318;
}

@media (max-width: 767.98px) {
  .cc-form-section {
    padding-block: clamp(2.5rem, 10vw, 4rem);
  }

  .cc-form-section__title {
    margin-bottom: 2rem;
  }

  .cc-form-section .fluentform .ff-t-container {
    display: block;
  }

  .cc-form-section .fluentform .ff_submit_btn_wrapper {
    justify-content: flex-start;
  }
}

/* ==========================================================
   Modulo case history selezionate
   ========================================================== */
.acf-section--case-history {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.case-history-section__title {
  max-width: 70rem;
  margin: 0 auto clamp(2.5rem, 4.5vw, 4rem);
  text-align: center;
  text-transform: uppercase;
}

.case-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.case-history-card {
  min-width: 0;
}

.case-history-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background: var(--bg-grey, #d8d7d3);
}

.case-history-card__image,
.case-history-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.case-history-card__media:hover .case-history-card__image {
  transform: scale(1.025);
}

.case-history-card__label {
  position: absolute;
  inset: auto auto 0 0;
  padding: 0.6rem 0.9rem;
  background: var(--primary, #e8c764);
  color: var(--text-primary, #25221e);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.case-history-card__date {
  display: block;
  margin-top: 1rem;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.case-history-card__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.18rem);
  line-height: 1.3;
  text-transform: none;
}

.case-history-card__title a {
  color: inherit;
  text-decoration: none;
}

.case-history-card__excerpt {
  margin: 0.65rem 0 0;
  font-size: clamp(0.84rem, 0.18vw + 0.8rem, 0.94rem);
  line-height: 1.55;
}

.case-history-card__read {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--primary-dark, #b88d22);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .case-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .case-history-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .labels-band__item {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-history-card__image {
    transition: none;
  }
}

/* ==========================================================
   Modulo lista servizi selezionati
   ========================================================== */
.acf-section--selected-services {
  padding-block: clamp(3.25rem, 5vw, 5.25rem);
}

.selected-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.selected-services__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 7.5rem;
  padding: 1.875rem 3.25rem 1.875rem 1.625rem;
  border-top: 2px solid var(--primary, #e8c764);
  background: linear-gradient(135deg, var(--bg-dark, #1f2c4c) 0%, #29385d 100%);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.selected-services__title {
  color: inherit;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.4;
}

.selected-services__arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: var(--primary, #e8c764);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease;
}

.selected-services__item:hover {
  border-top-color: #fff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.625rem rgba(31, 44, 76, 0.22);
}

.selected-services__item:hover .selected-services__arrow {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 859.98px) {
  .selected-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559.98px) {
  .selected-services__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   Modulo elenco servizi
   ========================================================== */
.acf-section--services-list {
  padding-block: var(--section-padding-y);
  background: var(--bg-tertiary);
}

.services-list__title {
  margin: 0 0 clamp(2.25rem, 4vw, 3.75rem);
  text-align: center !important;
}

.services-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.services-list__item {
  display: flex;
  align-items: center;
  min-height: clamp(7.25rem, 9vw, 9.5rem);
  padding: clamp(1.5rem, 2.2vw, 2rem) clamp(1.6rem, 2.4vw, 2.25rem);
  border-top: 2px solid var(--text-secondary);
  background: linear-gradient(135deg, #1f2c4c 0%, #172038 100%);
  color: var(--text-inverse);
}

.services-list__item span {
  max-width: 26ch;
  color: inherit;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

@media (max-width: 991.98px) {
  .services-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .services-list__title {
    letter-spacing: 0.1em;
  }
  .services-list__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-list__item {
    min-height: 7rem;
  }
}

/* ==========================================================
   Modulo steps
   ========================================================== */
.acf-section--steps {
  padding-block: var(--section-padding-y);
  background: var(--bg-tertiary);
}

.steps-module__title {
  margin: 0 0 clamp(2.25rem, 4vw, 3.75rem);
  text-align: center;
  text-transform: uppercase;
}

.steps-module__grid {
  display: grid;
  grid-template-columns: repeat(var(--steps-columns, 4), minmax(0, 1fr));
  gap: clamp(1rem, 1.4vw, 1.25rem);
}

.steps-module__item {
  min-width: 0;
  min-height: clamp(17rem, 22vw, 20rem);
  padding: clamp(1.75rem, 2.3vw, 2.25rem) clamp(1.5rem, 2vw, 2rem);
  border: 1px solid var(--border-color, #d9dadd);
  border-top: 3px solid var(--text-secondary);
  background: #fff;
}

.steps-module__number {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: clamp(2.1rem, 2.8vw, 3rem);
  font-weight: 300;
  line-height: 1;
}

.steps-module__item-title {
  margin: 0 0 0.875rem;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
}

.steps-module__text,
.steps-module__text p {
  color: var(--text-body, #676b73);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.65;
}

.steps-module__text > :last-child {
  margin-bottom: 0;
}

@media (max-width: 1199.98px) {
  .steps-module__grid {
    grid-template-columns: repeat(
      min(var(--steps-columns, 4), 3),
      minmax(0, 1fr)
    );
  }
}

@media (max-width: 767.98px) {
  .steps-module__title {
    letter-spacing: 0.1em;
  }

  .steps-module__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-module__item {
    min-height: 0;
  }
}

@media (max-width: 479.98px) {
  .steps-module__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   Moduli Home — Servizi / Settori / Certificazioni
   Riferimento: TEMPLATE STATICI CLAUDE/index.html
   ========================================================== */
.acf-section--home-services {
  padding: 0;
  background: var(--text-primary);
  color: #fff;
}

.home-services-frame {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 4rem)
    clamp(1.875rem, 4vw, 3.25rem);
}

.home-services-inner {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.home-service-card:last-child {
  border-right: 0;
}

.home-service-card__head {
  padding: 2.125rem clamp(1.375rem, 2.4vw, 2.5rem) 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-service-card__title {
  margin: 0 0 0.875rem;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-service-card__primary-link,
.home-sector-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.home-service-card__primary-link:hover,
.home-sector-tile__link:hover {
  color: #fff;
}

.home-service-card__media {
  height: 12.5rem;
  overflow: hidden;
}

.home-service-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-service-card__body {
  flex: 1;
  padding: 1.625rem clamp(1.375rem, 2.4vw, 2.5rem) 2.25rem;
}

.home-service-card__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-service-card__links li {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.home-service-card__links li::before {
  content: none !important;
}

.home-service-card__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #dfe3ec;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-service-card__links a:hover {
  color: #fff;
}

.home-service-card__arrow {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.acf-section--home-sectors {
  padding-block: var(--section-padding-y);
}

.home-sectors__head,
.home-cert-carousel__head {
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
}

.home-sectors__title,
.home-cert-carousel__title {
  margin: 0;
  color: var(--text-primary);
  text-transform: uppercase;
}

.home-sectors__title strong,
.home-sectors__title b,
.home-cert-carousel__title strong,
.home-cert-carousel__title b {
  font-weight: 700;
}

.home-sectors__mosaic {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-sectors__row {
  display: flex;
  gap: 0.75rem;
}

.home-sector-tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: clamp(12.5rem, 22vw, 14.7rem);
  overflow: hidden;
  color: #fff;
  transition: flex-grow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-sector-tile.is-open {
  flex-grow: 2.4;
}

.home-sector-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-sector-tile:hover .home-sector-tile__image,
.home-sector-tile.is-open .home-sector-tile__image {
  transform: scale(1.035);
}

.home-sector-tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 32, 56, 0.45) 0%,
    rgba(23, 32, 56, 0.5) 34%,
    rgba(23, 32, 56, 0.93) 100%
  );
}

.home-sector-tile__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.375rem 1.375rem 2.75rem;
  pointer-events: none;
}

.home-sector-tile__title {
  margin: 0;
  color: #fff;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-sector-tile__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s ease;
}

.home-sector-tile__reveal > * {
  overflow: hidden;
}

.home-sector-tile.is-open .home-sector-tile__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  transition-delay: 0.12s;
}

.home-sector-tile__description,
.home-sector-tile__description p {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.6;
}

.home-sector-tile__description {
  margin-top: 0.625rem;
  max-width: 40ch;
  text-shadow: 0 1px 3px rgba(15, 22, 42, 0.5);
}

.home-sector-tile__description p {
  margin: 0 0 0.875rem;
}

.home-sector-tile__link {
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  pointer-events: auto;
}

.home-sector-tile__toggle {
  position: absolute;
  right: 1rem;
  bottom: 0.875rem;
  z-index: 3;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  transition: 0.2s ease;
}

.home-sector-tile__toggle:hover,
.home-sector-tile.is-open .home-sector-tile__toggle {
  border-color: var(--text-secondary);
  background: var(--text-secondary);
}

.home-sector-tile.is-open .home-sector-tile__toggle span {
  font-size: 0;
}

.home-sector-tile.is-open .home-sector-tile__toggle span::after {
  content: "–";
  font-size: 1.2rem;
}

.acf-section--cert-carousel {
  padding-block: var(--section-padding-y);
  background: var(--bg-tertiary);
}

.home-cert-carousel {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-color, #d9dadd);
  background: #fff;
}

.home-cert-carousel__arrow {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--border-color, #d9dadd);
  border-radius: 0;
  background: #fff;
  color: var(--text-primary);
  font-size: 1.25rem;
  transition: 0.15s ease;
}

.home-cert-carousel__arrow--next {
  border-right: 0;
  border-left: 1px solid var(--border-color, #d9dadd);
}

.home-cert-carousel__arrow:hover {
  background: var(--text-secondary);
  color: #fff;
}

.home-cert-carousel__track {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-cert-carousel__track::-webkit-scrollbar {
  display: none;
}

.home-cert-carousel__card {
  flex: 0 0 25%;
  min-width: 12.5rem;
  padding: 1.875rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border-right: 1px solid var(--border-color, #d9dadd);
  text-align: center;
  scroll-snap-align: start;
}

.home-cert-carousel__icon {
  width: 4.875rem;
  height: 4.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--text-secondary);
  border-radius: 50%;
  padding: 0.5rem;
}

.home-cert-carousel__icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-cert-carousel__card-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.home-cert-carousel__text,
.home-cert-carousel__text p {
  color: var(--text-muted, #676b73);
  font-size: 0.78rem;
  line-height: 1.5;
}

.home-cert-carousel__text p {
  margin: 0;
}

.home-cert-carousel__cta {
  margin-top: 2.125rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .home-service-card:last-child {
    border-bottom: 0;
  }

  .home-sectors__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-sector-tile,
  .home-sector-tile.is-open {
    width: 100%;
    height: 17rem;
  }

  .home-cert-carousel__card {
    flex-basis: 50%;
  }
}

@media (max-width: 575.98px) {
  .home-services-frame {
    padding-inline: 1.25rem;
  }

  .home-service-card__links {
    grid-template-columns: 1fr;
  }

  .home-sectors__row {
    grid-template-columns: 1fr;
  }

  .home-sector-tile,
  .home-sector-tile.is-open {
    height: 18rem;
  }

  .home-cert-carousel__arrow {
    flex-basis: 2.75rem;
    width: 2.75rem;
  }

  .home-cert-carousel__card {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* ==========================================================
   Modulo elenco certificazioni
   ========================================================== */
.acf-section--certifications {
  padding-block: var(--section-padding-y);
  background: var(--bg-tertiary);
}

.certifications-module__head {
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
  text-align: center;
}

.certifications-module__title {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--h2);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certifications-module__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.certifications-module__filter {
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.certifications-module__filter:hover,
.certifications-module__filter:focus-visible,
.certifications-module__filter.is-active {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #fff;
}

.certifications-module__catalog {
  width: min(100%, 960px);
  margin-inline: auto;
}

.certifications-module__group {
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

.certifications-module__group:last-child {
  margin-bottom: 0;
}

.certifications-module__group[hidden] {
  display: none !important;
}

.certifications-module__category {
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--text-secondary);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.certifications-module__items {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.certifications-module__item {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.18s ease;
}

.certifications-module__item:hover,
.certifications-module__item[open] {
  border-color: var(--text-secondary);
}

.certifications-module__summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 8.5rem;
  padding: 1.25rem 4rem 1.25rem 1.25rem;
  list-style: none;
  cursor: pointer;
}

.certifications-module__summary::-webkit-details-marker {
  display: none;
}

.certifications-module__summary::marker {
  content: "";
}

.certifications-module__icon {
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 4.25rem;
  border: 1.5px solid var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.certifications-module__icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

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

.certifications-module__code {
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.certifications-module__item-title {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.certifications-module__preview,
.certifications-module__preview p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.55;
}

.certifications-module__toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.55rem;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--text-secondary);
}

.certifications-module__toggle::before,
.certifications-module__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease;
}

.certifications-module__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.certifications-module__item[open] .certifications-module__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.certifications-module__download {
  position: absolute;
  top: 3.55rem;
  right: 1.45rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.certifications-module__download svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certifications-module__download:hover,
.certifications-module__download:focus-visible {
  background: var(--text-secondary);
  color: #fff;
}

.certifications-module__detail {
  margin: 0 4rem 1.25rem 6.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--text-body);
}

.certifications-module__detail p {
  margin: 0 0 0.55rem;
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.7;
}

.certifications-module__detail p:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.certifications-module__detail > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .certifications-module__title {
    letter-spacing: 0.08em;
  }

  .certifications-module__filters {
    justify-content: flex-start;
  }

  .certifications-module__filter {
    flex: 1 1 auto;
    min-height: 2.75rem;
    padding-inline: 1rem;
  }

  .certifications-module__summary {
    align-items: flex-start;
    gap: 1rem;
    min-height: 0;
    padding: 1.1rem 3.4rem 1.1rem 1rem;
  }

  .certifications-module__icon {
    flex-basis: 3.6rem;
    width: 3.6rem;
    height: 3.6rem;
  }

  .certifications-module__toggle {
    top: 1rem;
    right: 1.05rem;
  }

  .certifications-module__download {
    top: 3.15rem;
    right: 0.95rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .certifications-module__detail {
    margin: 0 1rem 1.1rem 5.6rem;
  }
}

@media (max-width: 479.98px) {
  .certifications-module__summary {
    gap: 0.8rem;
  }

  .certifications-module__icon {
    flex-basis: 3.15rem;
    width: 3.15rem;
    height: 3.15rem;
    font-size: 0.6rem;
  }

  .certifications-module__detail {
    margin-left: 1rem;
  }
}

/* ==========================================================
   Modulo lista settori inline
   ========================================================== */
.acf-section--inline-sectors {
  padding-block: 0;
  background: var(--text-primary);
}

.inline-sectors__inner {
  width: min(100% - 2rem, 1170px);
  margin-inline: auto;
  padding: 1.125rem 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.inline-sectors__link {
  padding: 0.375rem 0.5625rem;
  color: var(--text-inverse);
  font-size: clamp(0.625rem, 0.78vw, 0.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.inline-sectors__link:hover,
.inline-sectors__link:focus-visible {
  color: var(--text-secondary);
}

.inline-sectors__separator {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  line-height: 1;
}

@media (max-width: 1000px) {
  .inline-sectors__inner {
    flex-wrap: wrap;
    gap: 0.125rem 0;
  }

  .inline-sectors__link {
    font-size: 0.6875rem;
  }
}

/* ==========================================================
   SHC — header semplice
   ========================================================== */
.page-header--simple {
  position: relative;
  min-height: max(65vh, clamp(28rem, 42vw, 34rem));
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.page-header-simple__inner {
  display: flex;
  align-items: flex-start;
  min-height: inherit;
  padding-top: calc(
    var(--shc-utility-height) + var(--shc-nav-height) +
      clamp(2.25rem, 4vw, 3.75rem)
  );
  padding-bottom: calc(
    var(--shc-breadcrumb-height) + clamp(3rem, 5vw, 4.75rem)
  );
}

.page-header-simple__content {
  width: min(100%, 43rem);
}

.page-header-simple__title {
  margin: 0;
  color: var(--text-inverse);
  font-size: clamp(2.65rem, 4.5vw, 4.15rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: none;
}

.page-header-simple__text {
  max-width: 58ch;
  margin-top: clamp(1.35rem, 2.5vw, 2rem);
  color: color-mix(in srgb, var(--text-inverse) 78%, transparent);
  font-size: clamp(0.95rem, 0.75vw + 0.75rem, 1.08rem);
  line-height: 1.7;
}

.page-header-simple__text > :last-child {
  margin-bottom: 0;
}

.page-header-simple__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 2.75vw, 2.25rem);
}

.page-header-simple__actions .button-outline--light {
  border-color: color-mix(in srgb, var(--text-inverse) 72%, transparent);
  color: var(--text-inverse);
}

.page-header-simple__actions .button-outline--light:hover,
.page-header-simple__actions .button-outline--light:focus-visible {
  border-color: var(--text-inverse);
  background: var(--text-inverse);
  color: var(--text-primary);
}

/* ==========================================================
   SHC — contatti e mappa
   ========================================================== */

.contacts-map {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contacts-map__title {
  max-width: 25ch;
  margin: 0 0 clamp(1.4rem, 2.5vw, 2rem);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

.contacts-map__text {
  max-width: 35rem;
  font-size: clamp(0.9rem, 0.25vw + 0.84rem, 1rem);
  line-height: 1.65;
}

.contacts-map__text strong {
  display: block;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.contacts-map__text > :first-child,
.contacts-map__text strong:first-child {
  margin-top: 0;
}

.contacts-map__text > :last-child {
  margin-bottom: 0;
}

.contacts-map__map {
  width: 100%;
  min-height: clamp(19rem, 31vw, 27rem);
  overflow: hidden;
  background: var(--bg-grey, #deddd9);
}

.contacts-map__map iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
  border: 0;
}

@media (max-width: 991.98px) {
  .contacts-map {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contacts-map__map {
    min-height: clamp(18rem, 62vw, 25rem);
  }
}

@media (max-width: 575.98px) {
  .page-header--simple {
    min-height: clamp(26rem, 125vw, 31rem);
  }

  .page-header-simple__inner {
    padding-top: calc(var(--shc-utility-height) + var(--shc-nav-height) + 2rem);
    padding-bottom: calc(var(--shc-breadcrumb-height) + 2.75rem);
  }

  .page-header-simple__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header-simple__actions .button {
    width: 100%;
  }
}

/* ==========================================================
   Modulo testo evidenziato con CTA
   ========================================================== */
.acf-section--highlighted-text-cta {
  padding-block: var(--section-padding-y);
}

.highlighted-text-cta {
  margin-inline: auto;
  border: 1px solid var(--line);
  background: var(--bg-primary);
}

.highlighted-text-cta--side {
  max-width: 60rem;
  padding: clamp(1.65rem, 2.6vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem);
  border-left: 4px solid var(--text-secondary);
}

.highlighted-text-cta--top {
  max-width: 68rem;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  border-top: 3px solid var(--text-secondary);
}

.highlighted-text-cta__title {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.highlighted-text-cta--side .highlighted-text-cta__title {
  margin-bottom: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 0.3vw + 0.74rem, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.highlighted-text-cta--top .highlighted-text-cta__title {
  margin-bottom: clamp(1rem, 1.8vw, 1.4rem);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
}

.highlighted-text-cta__text {
  color: var(--text-body);
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.15rem);
  line-height: 1.75;
}

.highlighted-text-cta--side .highlighted-text-cta__text {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  line-height: 1.8;
}

.highlighted-text-cta__text > :first-child {
  margin-top: 0;
}
.highlighted-text-cta__text > :last-child {
  margin-bottom: 0;
}

.highlighted-text-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem clamp(1.4rem, 3vw, 2.25rem);
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

.highlighted-text-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  color: var(--text-secondary);
  font-size: clamp(0.76rem, 0.18vw + 0.72rem, 0.88rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.highlighted-text-cta__arrow {
  transition: transform 0.18s ease;
}
.highlighted-text-cta__link:hover,
.highlighted-text-cta__link:focus-visible {
  color: var(--text-primary);
}
.highlighted-text-cta__link:hover .highlighted-text-cta__arrow,
.highlighted-text-cta__link:focus-visible .highlighted-text-cta__arrow {
  transform: translateX(0.2rem);
}

@media (max-width: 575.98px) {
  .highlighted-text-cta--side,
  .highlighted-text-cta--top {
    padding: 1.5rem;
  }
  .highlighted-text-cta__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.quote-open,
.quote-close {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}

.quote-open {
  background-image: url("../images/quote-open.png");
  margin-right: 12px;
  transform: translateY(-8px);
}

.quote-close {
  background-image: url("../images/quote-close.png");
  margin-left: 12px;
  transform: translateY(8px);
}

/* ==========================================================
   SHC — ultime news
   Layout basato su ep-storie-grid di TEMPLATE STATICI CLAUDE.
   ========================================================== */
.acf-section--latest-news {
  padding-block: clamp(2.75rem, 5vw, 5.25rem);
  background: var(--bg-tertiary, #f1f2f4);
}

.latest-news__title {
  margin: 0 0 clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  color: var(--bg-dark, #1f2c4c);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.12;
  text-transform: uppercase;
}

.latest-news__title strong,
.latest-news__title b {
  font-weight: 700;
}

.latest-news__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.latest-news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  background: var(--text-primary, #1f2c4c);
  color: #fff;
}

.latest-news-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(12rem, 15vw, 14rem);
  overflow: hidden;
  background: #d8dbe0;
}

.latest-news-card__image,
.latest-news-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.latest-news-card__image {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.latest-news-card__media:hover .latest-news-card__image,
.latest-news-card__media:focus-visible .latest-news-card__image {
  transform: scale(1.025);
}

.latest-news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.35rem, 2vw, 1.65rem);
}

.latest-news-card__label {
  margin-bottom: 0.85rem;
  color: var(--bg-secondary, #a98d31);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.latest-news-card__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1rem, 0.55vw + 0.84rem, 1.18rem);
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.latest-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.latest-news-card__excerpt {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.6;
}

.latest-news-card__read {
  align-self: flex-start;
  margin-top: auto;
  min-height: 0;
  padding: 0.75rem 1.35rem;
  background: var(--bg-secondary, #a98d31);
  border-color: var(--bg-secondary, #a98d31);
  color: #fff;
  font-size: 0.68rem;
}

.latest-news__all {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

.latest-news__all a {
  color: var(--bg-secondary, #a98d31);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .latest-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .latest-news__grid {
    grid-template-columns: 1fr;
  }

  .latest-news-card__media {
    height: clamp(13rem, 62vw, 20rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-news-card__image {
    transition: none;
  }
}

/* ==========================================================
   SHC — immagine singola
   ========================================================== */
.image-module__figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.image-module__image {
  display: block;
  width: 100%;
  height: auto;
}

.image-module__figure.height-px,
.image-module__figure.height-vh {
  height: var(--image-module-height);
}

.image-module__figure.height-px .image-module__image,
.image-module__figure.height-vh .image-module__image {
  height: 100%;
}

.image-module__figure.fit-cover .image-module__image {
  object-fit: cover;
}

.image-module__figure.fit-contain .image-module__image {
  object-fit: contain;
}

.image-module--full .image-module__figure {
  width: 100%;
}

.image-module--boxed .image-module__figure {
  width: 100%;
}

.image-module__row {
  --bs-gutter-x: 0;
}

@media (max-width: 991.98px) {
  .columns-list--3,
  .columns-list--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .columns-list__column:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .columns-list__column:nth-child(even) {
    padding-right: 0;
  }

  .container {
    --bs-gutter-x: 2.5rem;
  }

  .page-header__title,
  .page-header-slider__title {
    max-width: 16ch;
  }

  .text-text__column + .text-text__column {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .columns-list,
  .columns-list--2,
  .columns-list--3,
  .columns-list--4 {
    grid-template-columns: 1fr;
  }

  .columns-list__column,
  .columns-list__column:first-child,
  .columns-list__column:last-child {
    padding: 1.5rem 0;
    border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-left: 0;
  }

  .columns-list__column:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .image-module__figure.height-vh {
    height: min(var(--image-module-height), 70vh);
  }

  .container {
    --bs-gutter-x: 2rem;
  }

  h2 {
    letter-spacing: 0.065em;
  }

  .button,
  .btn,
  .page-header__button {
    width: 100%;
    justify-content: center;
  }
}

.image-text__title--line::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: #9c8437;
  margin: 16px 0 0;
}

/* ==========================================================
   SHC — indice News
   Layout basato su TEMPLATE STATICI CLAUDE / news.html.
   ========================================================== */
.news-section-heading {
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}

.news-section-heading h2 {
  margin: 0;
  text-transform: uppercase;
}

.news-featured-section,
.news-archive-section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  background: #fff;
}

.news-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line, #d9dde3);
  background: #fff;
}

.news-featured__media {
  position: relative;
  min-height: clamp(19rem, 32vw, 26rem);
  overflow: hidden;
  background: #d8dbe0;
}

.news-featured__image,
.news-featured__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-featured__image {
  object-fit: cover;
}

.news-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3.4vw, 3.25rem);
}

.news-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted, #8a9099);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.news-featured__tag {
  padding: 0.35rem 0.75rem;
  background: var(--bg-secondary, #a98d31);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-featured h3 {
  margin: 0 0 0.9rem;
  color: var(--bg-dark, #1f2c4c);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.news-featured h3 a {
  color: inherit;
  text-decoration: none;
}

.news-featured p {
  margin: 0 0 1.35rem;
  color: var(--text-body, #646b76);
  font-size: 0.96rem;
  line-height: 1.75;
}

.news-featured__link,
.news-grid-card__link {
  align-self: flex-start;
  color: var(--bg-secondary, #a98d31);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-filter-section {
  padding-block: clamp(2.5rem, 4vw, 4rem);
  background: var(--bg-tertiary, #f1f2f4);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.press-archive .news-section-heading + .press-filters {
  margin-top: 1.5rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.news-filter {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line, #d9dde3);
  background: #fff;
  color: var(--text-body, #646b76);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.news-filter:hover,
.news-filter.is-active {
  border-color: var(--bg-dark, #1f2c4c);
  background: var(--bg-dark, #1f2c4c);
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.5rem);
}

.news-grid-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line, #d9dde3);
  background: #fff;
}

.news-grid-card__media {
  display: block;
  height: 11.25rem;
  overflow: hidden;
  background: #d8dbe0;
}

.news-grid-card__image,
.news-grid-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.news-grid-card__image {
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-grid-card__media:hover .news-grid-card__image {
  transform: scale(1.025);
}

.news-grid-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.news-grid-card__date {
  margin-bottom: 0.65rem;
  color: var(--bg-secondary, #a98d31);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-grid-card h3 {
  margin: 0 0 0.65rem;
  color: var(--bg-dark, #1f2c4c);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.news-grid-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-grid-card p {
  margin: 0 0 1rem;
  color: var(--text-body, #646b76);
  font-size: 0.84rem;
  line-height: 1.65;
}

.news-grid-card__link {
  margin-top: auto;
}

.cc-pagination {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.cc-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-pagination .page-link {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line, #d9dde3);
  background: transparent;
  color: var(--bg-dark, #1f2c4c);
  font-size: 0.78rem;
  text-decoration: none;
}

.cc-pagination .active .page-link,
.cc-pagination .current {
  border-color: var(--bg-secondary, #a98d31);
  background: var(--bg-secondary, #a98d31);
  color: #fff;
}

.cc-pagination .disabled .page-link {
  opacity: 0.45;
}

@media (max-width: 860px) {
  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Singolo News / Case history
   ========================================================== */
.news-single__article {
  background: var(--bg-primary);
  padding-block: clamp(3rem, 5vw, 5rem);
}

.news-single__meta-wrap,
.news-single__back-wrap {
  width: min(calc(100% - 2rem), 52rem);
  margin-inline: auto;
}

.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.news-single__category {
  display: inline-flex;
  align-items: center;
  color: var(--bg-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.news-single__date {
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-content-block {
  background: var(--bg-primary);
}

.article-content-block--text {
  padding-block: 0 clamp(1.25rem, 2vw, 1.75rem);
}

.article-content-block--text + .article-content-block--text {
  padding-top: 0;
}

.article-content-block--action {
  padding-block: 0 clamp(2rem, 4vw, 3rem);
}

.article-content-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-content-block--media,
.article-content-block--gallery {
  padding-block: clamp(1rem, 2vw, 1.75rem) clamp(2rem, 4vw, 3rem);
}

.article-content-block__inner {
  width: min(100%, 52rem);
  margin-inline: auto;
}

.article-rich-text {
  color: var(--text-body);
  font-size: clamp(1rem, 0.2vw + 0.96rem, 1.075rem);
  line-height: 1.8;
}

.article-rich-text > :first-child {
  margin-top: 0;
}

.article-rich-text > :last-child {
  margin-bottom: 0;
}

.article-rich-text p {
  margin-bottom: 1.125rem;
}

.article-rich-text h2,
.article-rich-text h3,
.article-rich-text h4 {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-rich-text blockquote {
  margin: clamp(2rem, 4vw, 3.5rem) 0;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-left: 4px solid var(--bg-secondary);
  background: var(--bg-tertiary);
}

.article-media {
  width: min(100%, 68rem);
  margin: 0 auto;
}

.article-media__image {
  display: block;
  width: 100%;
  height: auto;
}

.article-media__caption {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: var(--text-small);
  line-height: 1.5;
}

.article-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-dark);
}

.article-video iframe,
.article-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  width: min(100%, 72rem);
  margin-inline: auto;
}

.article-gallery__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.article-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-single__back-wrap {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.news-single__back {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  color: var(--bg-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.news-single__back:hover {
  color: var(--text-primary);
}

@media (max-width: 767.98px) {
  .article-gallery {
    grid-template-columns: 1fr;
  }
}

body::selection {
  background: var(--bg-secondary);
  color: #fff;
}

.site-main {
  background: var(--bg-primary);
}

h1,
h2 {
  line-height: 1.08;
}

h2 strong,
h2 b {
  font-weight: 600;
}

.large-text {
  color: var(--text-primary);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.page-content > section {
  position: relative;
}

.bg-dark,
.bg-black {
  background-color: var(--bg-dark) !important;
}

.button,
.btn,
.page-header__button {
  min-height: 46px;
  padding: 0.85rem 1.7rem;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: none;
}

.button-primary {
  background: var(--bg-secondary);
  border-color: var(--bg-secondary);
  color: #fff;
}

.button-secondary {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.button-outline {
  background: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--text-primary);
  color: #fff;
}

.page-header,
.page-header-slider {
  background: var(--bg-dark);
}

.page-header__overlay,
.page-header-slider__overlay {
  background: linear-gradient(
    90deg,
    rgba(23, 32, 56, 0.82),
    rgba(23, 32, 56, 0.28) 65%,
    rgba(23, 32, 56, 0.08)
  );
}

.page-header__title,
.page-header-slider__title {
  color: #fff;
  font-size: var(--h1);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.03;
  text-transform: uppercase;
}

.page-header__text,
.page-header-slider__text {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.page-header__button--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.page-header__button--ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--bg-secondary);
}

.page-header-simple,
.page-header-default {
  background: var(--bg-dark);
  color: #fff;
}

.page-header-simple__title,
.page-header-default__title {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-header-simple__text,
.page-header-default__intro {
  color: rgba(255, 255, 255, 0.78);
}

.title-text-cta,
.image-links-box,
.contacts-map {
  padding-block: var(--section-padding-y);
}

.text-text__column,
.title-text-cta__content,
.image-links-box__content,
.contacts-map__content {
  position: relative;
}

.text-text__column + .text-text__column {
  border-left-color: var(--line);
}

.title-text-cta::after,
.image-links-box::after {
  border-color: transparent var(--bg-secondary) transparent transparent;
}

.numbers-band {
  background: var(--bg-dark);
  color: #fff;
}

.numbers-band__item {
  border-color: var(--line-dark);
}

.services-grid,
.service-list,
.links-band,
.labels-band {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.76);
}

.services-grid h2,
.services-grid h3,
.services-grid h4,
.service-list h2,
.service-list h3,
.links-band h2,
.labels-band h2 {
  color: #fff;
}

.services-grid__item,
.service-list__item,
.links-band__links a,
.labels-band__item {
  border-color: var(--line-dark);
}

.services-grid__item-title,
.service-list__title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cards-grid .card,
.case-history-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.cards-grid .card:hover,
.case-history-card:hover {
  border-color: rgba(156, 132, 55, 0.7);
  transform: translateY(-3px);
}

.faq-band {
  background: var(--bg-tertiary);
}

.contact-form-global h2,
.contact-form-global h3,
.contact-form-global label {
  color: var(--bg-dark);
}

.contact-form-global input:not([type="submit"]),
.contact-form-global textarea,
.contact-form-global select {
  border-radius: 0 !important;
  border: 0;
  border-bottom: 1px solid rgba(23, 32, 56, 0.45);
  background: transparent;
}

.footer-menu a,
.footer-brand__contacts a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-menu a:hover,
.footer-brand__contacts a:hover,
.footer-legal a:hover {
  color: #c9ad55;
}

/* ==========================================================
   Archivio settori
   ========================================================== */
.settori-archive__section {
  padding-block: var(--section-padding-y);
  background: var(--bg-primary);
}

.settori-archive__heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.settori-gridcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.settori-gridcard {
  position: relative;
  display: block;
  min-height: 11.875rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.settori-gridcard__image,
.settori-gridcard__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.settori-gridcard__image {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.settori-gridcard__placeholder {
  background: var(--text-primary);
}

.settori-gridcard__scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 32, 56, 0.2),
    rgba(23, 32, 56, 0.78)
  );
  pointer-events: none;
}

.settori-gridcard__title {
  position: absolute;
  z-index: 2;
  right: 1.125rem;
  bottom: 1rem;
  left: 1.125rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.settori-gridcard:hover {
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.875rem 1.875rem rgba(31, 44, 76, 0.2);
}

.settori-gridcard:hover .settori-gridcard__image {
  transform: scale(1.03);
}

.settori-gridcard:hover .settori-gridcard__title {
  color: var(--color-gold, #aa8d32);
}

@media (max-width: 991.98px) {
  .settori-gridcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .settori-gridcards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Header testo + immagine
   ========================================================== */
.page-header--split {
  display: grid;
  min-height: 65vh;
  grid-template-columns: minmax(21.25rem, 42%) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg-tertiary);
}

.page-header-split__content {
  display: flex;
  align-items: center;
  min-width: 0;
}

.page-header-split__content-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.75rem, 3.4vw, 3.5rem)
    clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem);
}

.page-header-split__title {
  margin: 0 0 0.875rem;
  color: var(--text-primary);
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-header-split__eyebrow {
  max-width: 36ch;
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-header-split__text {
  max-width: 48ch;
  margin: 0;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

.page-header-split__text p {
  margin: 0 0 0.875rem;
}

.page-header-split__text p:last-child {
  margin-bottom: 0;
}

.page-header-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-header-split__media {
  position: relative;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-grey);
}

.page-header-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 44, 76, 0.28);
  pointer-events: none;
  z-index: 2;
}

.page-header-split__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-split__video,
.page-header-split__embed,
.page-header-split__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-header-split__video {
  object-fit: cover;
}

.page-header-split__embed {
  overflow: hidden;
  pointer-events: none;
}

.page-header-split__embed iframe {
  top: 50%;
  left: 50%;
  inset: auto;
  display: block;
  width: 1920px;
  height: 1080px;
  max-width: none;
  max-height: none;
  border: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform;
}

.page-header-split__audio {
  position: absolute;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 4;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: rgba(31, 44, 76, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.page-header-split__audio:hover {
  background: rgba(31, 44, 76, 0.92);
  transform: scale(1.05);
}

.page-header-split__audio:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.page-header-split__audio .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-header-split__audio-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.page-header-split__audio-icon--off,
.page-header-split__audio.is-muted .page-header-split__audio-icon--on {
  display: none;
}

.page-header-split__audio.is-muted .page-header-split__audio-icon--off {
  display: block;
}

@media (max-width: 991.98px) {
  .page-header--split {
    grid-template-columns: 1fr;
  }

  .page-header-split__content-inner {
    max-width: none;
    padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
  }

  .page-header-split__media {
    min-height: clamp(18rem, 60vw, 28rem);
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .page-header-split__title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .page-header-split__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header-split__actions .button {
    width: 100%;
  }
}

/* ==========================================================
   Euro&Promos — modulo numeri (allineato ai template statici)
   ========================================================== */
.acf-section--numbers {
  background: var(--bg-dark) !important;
  color: #fff;
  padding-block: clamp(3.75rem, 5vw, 5.25rem);
}

.acf-section--numbers > .container,
.acf-section--numbers > .container-fluid {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4.5rem);
}

.acf-section--numbers .numbers-band__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.acf-section--numbers .numbers-band__title {
  max-width: none;
  margin: 0 0 clamp(2.4rem, 3.4vw, 3.25rem);
  color: #fff;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.acf-section--numbers .numbers-band__text {
  max-width: 52rem;
  margin: -1.6rem auto clamp(2.25rem, 3vw, 3rem);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.acf-section--numbers .numbers-band__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  border-top: 2px solid var(--bg-secondary);
  border-bottom: 2px solid var(--bg-secondary);
}

.acf-section--numbers .numbers-band__item {
  display: flex;
  min-width: 0;
  min-height: 12.5rem;
  padding: 2.85rem 1rem 2.45rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px solid var(--line-dark);
}

.acf-section--numbers .numbers-band__item:last-child {
  border-right: 0;
}

.acf-section--numbers .numbers-band__value {
  color: #fff;
  font-size: clamp(2.25rem, 3vw, 3.15rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.acf-section--numbers .numbers-band__label {
  display: flex;
  min-height: 3.4em;
  margin-top: 1.8rem;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.68rem, 0.75vw, 0.78rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .acf-section--numbers .numbers-band__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .acf-section--numbers .numbers-band__item:nth-child(3n) {
    border-right: 0;
  }

  .acf-section--numbers .numbers-band__item:nth-child(n + 4) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 575.98px) {
  .acf-section--numbers {
    padding-block: 3rem;
  }

  .acf-section--numbers .numbers-band__title {
    margin-bottom: 2rem;
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    letter-spacing: 0.12em;
  }

  .acf-section--numbers .numbers-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acf-section--numbers .numbers-band__item,
  .acf-section--numbers .numbers-band__item:nth-child(3n) {
    min-height: 10.5rem;
    padding: 2.2rem 0.75rem 1.8rem;
    border-right: 1px solid var(--line-dark);
  }

  .acf-section--numbers .numbers-band__item:nth-child(2n) {
    border-right: 0;
  }

  .acf-section--numbers .numbers-band__item:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .acf-section--numbers .numbers-band__label {
    margin-top: 1.25rem;
    font-size: 0.66rem;
  }
}

/* ==========================================================
   Euro&Promos — liste e grassetti nei contenuti ACF
   Riferimento: TEMPLATE STATICI CLAUDE / azienda.html (.ep-bullets)
   ========================================================== */

/*
 * Le liste create dagli editor WYSIWYG non hanno normalmente una classe.
 * In questo modo prendono lo stile editoriale di .ep-bullets senza
 * alterare liste strutturali dei singoli moduli (menu, card, slider, ecc.).
 */
section[class*="acf-section--"] ul {
  list-style: none;
  margin: 1.875rem 0 0;
  padding: 0;
}

section[class*="acf-section--"] ul > li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
}

section[class*="acf-section--"] ul > li:last-child {
  margin-bottom: 0;
}

section[class*="acf-section--"] ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--bg-secondary, #b08d3e);
}

/* Come i <b> della sezione missione di azienda.html. */
section[class*="acf-section--"] strong,
section[class*="acf-section--"] b {
  color: var(--text-primary, #1f2c4c);
  font-weight: 700;
}

/* Nei moduli con fondo scuro il grassetto deve restare leggibile. */
section[class*="acf-section--"].text-white strong,
section[class*="acf-section--"].text-white b,
section[class*="acf-section--"].bg-dark strong,
section[class*="acf-section--"].bg-dark b,
section[class*="acf-section--"].bg-black strong,
section[class*="acf-section--"].bg-black b {
  color: inherit;
}

@media (max-width: 767.98px) {
  section[class*="acf-section--"] ul:not([class]) {
    margin-top: 1.5rem;
  }
}

/* ==========================================================
   Fascia Lavora con noi
   Riferimento: TEMPLATE STATICI CLAUDE / azienda.html (.ep-lavora)
   ========================================================== */
.work-band {
  background: var(--text-primary, #1f2c4c);
  color: #fff;
}

.work-band__top {
  background: var(--text-primary, #1f2c4c);
}

.work-band__top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.work-band__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-band__text,
.work-band__text p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.7;
}

.work-band__text > :last-child {
  margin-bottom: 0;
}

.work-band__media {
  position: relative;
  width: 100%;
  height: clamp(18.75rem, 38vw, 32.5rem);
  overflow: hidden;
}

.work-band__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-band__cta-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.work-band__cta-wrap .work-band__cta {
  pointer-events: auto;
}

.work-band__cta {
  min-height: 3rem;
  padding: 0.95rem 1.75rem;
  border: 0;
  background: #fff;
  color: var(--text-primary, #1f2c4c);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-band__cta:hover,
.work-band__cta:focus-visible {
  background: var(--bg-secondary, #b08d3e);
  color: #fff;
}

.work-band__cta-fallback {
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.contact-form-global__title {
  margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
  .work-band__top-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-band__media {
    height: clamp(18rem, 72vw, 26rem);
  }
}

/* ==========================================================
   Euro&Promos — Global contact form (ref. azienda.html .ep-cform)
   ========================================================== */
.contact-form-global {
  background: #f5f6f7;
  padding: clamp(2.875rem, 6vw, 5.25rem) 0;
}

.contact-form-global__title {
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  color: #1f2c4c;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.contact-form-global form > p,
.contact-form-global form > div {
  min-width: 0;
}

.contact-form-global form > p {
  margin: 0 0 1rem;
}

.contact-form-global form > p:has(textarea),
.contact-form-global form > p:has(input[type="checkbox"]),
.contact-form-global form > p:has(input[type="submit"]),
.contact-form-global form > p:has(button[type="submit"]),
.contact-form-global form > p:has(.wpcf7-acceptance),
.contact-form-global form > .wpcf7-response-output,
.contact-form-global form > .full {
  grid-column: 1 / -1;
}

.contact-form-global label {
  display: block;
  margin-bottom: 0.375rem;
  color: #565d68;
  font-size: 0.78125rem;
  font-weight: 400;
  line-height: 1.4;
}

.contact-form-global .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-global
  input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-form-global textarea,
.contact-form-global select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e3e6e9;
  border-radius: 0;
  background: #fff;
  color: #1f2c4c;
  font: inherit;
  font-size: 0.875rem;
  box-shadow: none;
}

.contact-form-global textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form-global input::placeholder,
.contact-form-global textarea::placeholder {
  color: #8b929d;
  opacity: 1;
}

.contact-form-global input:not([type="submit"]):focus,
.contact-form-global textarea:focus,
.contact-form-global select:focus {
  outline: none;
  border-color: #9c8437;
  box-shadow: none;
}

.contact-form-global .wpcf7-acceptance,
.contact-form-global .wpcf7-list-item {
  margin: 0;
  color: #8b929d;
  font-size: 0.75rem;
}

.contact-form-global input[type="checkbox"] {
  margin-right: 0.4rem;
}

.contact-form-global input[type="submit"],
.contact-form-global button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 3rem;
  margin-top: 0.25rem;
  padding: 0.875rem 1.875rem;
  border: 1.5px solid #9c8437;
  border-radius: 0;
  background: #9c8437;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.18s ease;
}

.contact-form-global input[type="submit"]:hover,
.contact-form-global button[type="submit"]:hover {
  border-color: #b89a45;
  background: #b89a45;
}

/* ==========================================================
   Euro&Promos — FAQ
   ========================================================== */
.acf-section--faq.ep-faq {
  background: #f5f6f7;
  padding: clamp(2.875rem, 6vw, 5.25rem) 0;
}

.acf-section--faq .faq-band__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.acf-section--faq .faq-band__title {
  margin: 0;
  color: #1f2c4c;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.acf-section--faq .faq-band__title b,
.acf-section--faq .faq-band__title strong {
  color: #1f2c4c;
  font-weight: 600;
}

.acf-section--faq .faq-band__grid.ep-faqlist {
  display: block;
  max-width: 56.25rem;
  margin: 0 auto;
}

.acf-section--faq .faq-band__item.ep-qa {
  margin: 0 0 0.625rem;
  border: 1px solid #e3e6e9;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.acf-section--faq .faq-band__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  color: #1f2c4c;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.acf-section--faq .faq-band__question::-webkit-details-marker {
  display: none;
}

.acf-section--faq .faq-band__question::after {
  content: "+";
  flex: 0 0 auto;
  color: #9c8437;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
}

.acf-section--faq .faq-band__item[open] .faq-band__question::after {
  content: "\2013";
}

.acf-section--faq .faq-band__answer {
  padding: 0 1.375rem 1.25rem;
  color: #565d68;
  font-size: 0.875rem;
  line-height: 1.75;
}

.acf-section--faq .faq-band__answer > :last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .contact-form-global form {
    grid-template-columns: 1fr;
  }

  .contact-form-global form > p,
  .contact-form-global form > div {
    grid-column: 1 / -1;
  }

  .contact-form-global__title,
  .acf-section--faq .faq-band__title {
    letter-spacing: 0.1em;
  }
}

/* ==========================================================
   Modulo download
   ========================================================== */
.acf-section--download {
  padding-block: var(--section-padding-y);
}

.download-module__head {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.download-module__title {
  margin: 0;
  text-transform: uppercase;
}

.download-module__list {
  display: grid;
  gap: 0.625rem;
}

.download-module__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color, #d9dadd);
  border-left: 3px solid transparent;
  background: #fff;
  transition: border-color 0.15s ease;
}

.download-module__row:hover {
  border-color: #cfd4da;
  border-left-color: var(--accent-color, #a78b32);
}

.download-module__name {
  margin: 0 0 0.375rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.download-module__description,
.download-module__description p {
  margin: 0;
  color: var(--text-body, #676b73);
  font-size: 0.875rem;
  line-height: 1.65;
}

.download-module__description {
  max-width: 78ch;
}

.download-module__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 0 0 auto;
}

.download-module__size {
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--border-color, #d9dadd);
  color: var(--text-muted, #8a8d93);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.download-module__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--accent-color, #a78b32);
  color: var(--accent-color, #a78b32);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.download-module__link:hover,
.download-module__link:focus-visible {
  border-bottom-color: var(--text-primary);
  color: var(--text-primary);
}

@media (max-width: 700px) {
  .download-module__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-module__meta {
    justify-content: space-between;
  }
}

/* ==========================================================
   Modulo lista video
   ========================================================== */

/* Video oEmbed: mantiene il rapporto 16:9 e limita i media alla colonna. */
.acf-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.acf-video-embed iframe,
.acf-video-embed video,
.acf-video-embed object,
.acf-video-embed embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.acf-section--video-list {
  padding-block: var(--section-padding-y);
}

.video-list__grid {
  display: grid;
  grid-template-columns: repeat(var(--video-columns, 3), minmax(0, 1fr));
  gap: clamp(1.4rem, 2.4vw, 2.125rem);
}

.video-list__card {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color, #d9dadd);
  background: #fff;
}

.video-list__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--text-primary);
}

.video-list__frame iframe,
.video-list__frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list__caption {
  padding: 1.25rem 1.375rem 1.5rem;
}

.video-list__eyebrow {
  display: inline-block;
  margin-bottom: 0.5625rem;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-list__title {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.3;
}

.video-list__text,
.video-list__text p {
  color: var(--text-body, #676b73);
  font-size: 0.875rem;
  line-height: 1.7;
}

.video-list__text > :last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .video-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .video-list__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   Modulo video + testo
   ========================================================== */
.acf-section--video-text {
  padding-block: var(--section-padding-y);
}

.video-text__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--border-color, #d9dadd);
  background: #fff;
}

.video-text__media {
  position: relative;
  min-height: clamp(18.75rem, 32vw, 26.25rem);
  background: var(--text-primary);
}

.video-text__media iframe,
.video-text__media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-text__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3.4vw, 3.25rem);
}

.video-text__content > :first-child {
  margin-top: 0;
}

.video-text__content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .video-text__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-text__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================
   Home News — fascia Case History
   ========================================================== */
.case-history-home {
  padding-block: clamp(4rem, 7vw, 7rem);
  background: var(--bg-tertiary, #f1f2f4);
}

.case-history-home__heading {
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
}

.case-history-home__heading h2 {
  margin: 0;
  color: var(--bg-dark, #1f2c4c);
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-history-home__heading p {
  margin: 1rem 0 0;
  color: var(--text-muted, #8a9099);
  font-size: 0.92rem;
}

.case-history-home__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.case-history-home-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line, #d9dde3);
  background: #fff;
}

.case-history-home-card__media {
  display: block;
  height: clamp(12rem, 18vw, 15rem);
  overflow: hidden;
  background: #d8dbe0;
}

.case-history-home-card__image,
.case-history-home-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.case-history-home-card__image {
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-history-home-card__media:hover .case-history-home-card__image {
  transform: scale(1.025);
}

.case-history-home-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 2vw, 1.65rem);
}

.case-history-home-card__label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.72rem;
  background: var(--bg-secondary, #a98d31);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.case-history-home-card h3 {
  margin: 0 0 0.75rem;
  color: var(--bg-dark, #1f2c4c);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.case-history-home-card h3 a {
  color: inherit;
  text-decoration: none;
}

.case-history-home-card p {
  margin: 0;
  color: var(--text-body, #646b76);
  font-size: 0.88rem;
  line-height: 1.7;
}

.case-history-home__pagination {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

/* Anche l'archivio Case History usa tre colonne: 3 elementi per pagina. */
.news-index .news-archive-section .case-history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .case-history-home__grid,
  .news-index .news-archive-section .case-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .case-history-home__grid,
  .news-index .news-archive-section .case-history-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   ACCESSIBILITÀ - FOCUS DA TASTIERA
   WCAG 2.2 - 2.4.7 / 2.4.11
   ========================================================= */

:focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 4px !important;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #005fcc !important;
  border-radius: 3px;
}

/* Campi modulo */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 2px !important;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #005fcc !important;
}

/* Pulsanti */
button:focus-visible,
[type="button"]:focus-visible,
[type="submit"]:focus-visible,
[type="reset"]:focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 3px !important;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #005fcc !important;
}

/* Link */
a:focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 4px !important;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #005fcc !important;
}
.settori-gridcard .europromos-ai-caption {
  display: none;
}
.home-sector-tile .europromos-ai-caption {
  display: none;
}
