/* ==========================================================================
   A.B. Meccanica — stili del sito
   Palette: rosso del logo + grigi acciaio / grafite
   ========================================================================== */

/* Inter variabile (pesi 100-900), subset latin, self-hosted: testo principale */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}
/* fallback metrico su Arial: all'arrivo del font il testo non cambia larghezza (CLS) */
@font-face {
  font-family: "Inter Fallback";
  font-style: normal;
  font-weight: 100 499;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 106.64%;
  ascent-override: 90.85%;
  descent-override: 22.62%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-style: normal;
  font-weight: 500 599;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 107.73%;
  ascent-override: 89.93%;
  descent-override: 22.39%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-style: normal;
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 101.33%;
  ascent-override: 95.61%;
  descent-override: 23.81%;
  line-gap-override: 0%;
}

/* Space Grotesk variabile (pesi 300-700), subset latin, self-hosted: titoli e etichette.
   Self-hosted (non piu' da Google Fonts) per togliere un CSS esterno bloccante */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fallback metrico su Arial (come per Inter): all'arrivo del font i titoli non cambiano ingombro (CLS) */
@font-face {
  font-family: "Space Grotesk Fallback";
  font-style: normal;
  font-weight: 100 599;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  size-adjust: 108.4%;
  ascent-override: 90.77%;
  descent-override: 26.94%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  font-style: normal;
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 102.17%;
  ascent-override: 96.31%;
  descent-override: 28.58%;
  line-gap-override: 0%;
}
/* Material Symbols Rounded: solo le icone usate nel sito, self-hosted. Se si aggiunge un'icona va rigenerato il subset:
   https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,400,0..1,0&display=block&icon_names=
   arrow_back,arrow_forward,arrow_upward,calendar_today,call,check,chevron_left,chevron_right,close,description,download,
   expand_more,first_page,handyman,last_page,location_on,mail,menu,pause,photo_library,play_arrow,precision_manufacturing,
   settings,straighten,verified,zoom_in (nomi in ordine alfabetico) e si scarica il woff2 indicato nel CSS restituito */
@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/material-symbols-rounded-subset.woff2") format("woff2");
}

:root {
  --abm-red: #950303;
  --abm-red-700: #7a0202;
  --abm-red-500: #a8140f;
  --abm-red-100: #f6e6e6;

  --abm-graphite-950: #111316;
  --abm-graphite-900: #1b1f23;
  --abm-graphite-800: #262b30;
  --abm-graphite-700: #3a4046;
  --abm-logo-gray: #4f4d4d;
  --abm-steel-600: #5d656d;
  --abm-steel-500: #737b83;
  --abm-steel-300: #b4bbc2;
  --abm-steel-200: #d7dce1;
  --abm-steel-100: #e9ecef;
  --abm-steel-50: #f4f5f7;
  --abm-white: #ffffff;

  --abm-text: #2e3338;
  --abm-text-muted: #5d656d;

  --abm-steel-gradient: linear-gradient(135deg, #f8f9fa 0%, #e4e8ec 38%, #f3f5f7 62%, #d9dee3 100%);
  --abm-dark-gradient: linear-gradient(135deg, #111316 0%, #262b30 55%, #1b1f23 100%);
  --abm-brushed: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0, rgba(255, 255, 255, .025) 1px, transparent 1px, transparent 4px);

  /* titoli ed etichette */
  --abm-font: "Space Grotesk", "Space Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* testo principale */
  --abm-font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --abm-shadow-sm: 0 2px 10px rgba(17, 19, 22, .06);
  --abm-shadow: 0 14px 40px rgba(17, 19, 22, .10);
  --abm-shadow-lg: 0 24px 60px rgba(17, 19, 22, .18);
  --abm-radius: 4px;
  --abm-ease: cubic-bezier(.22, .61, .36, 1);

  --abm-navbar-h: 136px;
  --abm-header-offset: 24px;
  /* filetti "disegno tecnico" */
  --abm-hairline: 1px solid var(--abm-steel-200);
  --abm-page-header-side-gap: clamp(28px, 4vw, 64px);
  --abm-hairline-dark: 1px solid rgba(255, 255, 255, .16);
  --abm-container: 100vw;
  --abm-header-h: calc(var(--abm-header-offset) + var(--abm-navbar-h));
}

@media (max-width: 1199.98px) {
  :root { --abm-navbar-h: 120px; }
}
@media (max-width: 575.98px) {
  :root { --abm-navbar-h: 108px; --abm-header-offset: 12px; }
}

/* --------------------------------------------------------------------------
   Container più larghi su desktop (Bootstrap arriva a 1320px)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) { :root { --abm-container: 540px; } }
@media (min-width: 768px) { :root { --abm-container: 720px; } }
@media (min-width: 992px) { :root { --abm-container: 960px; } }
@media (min-width: 1200px) { :root { --abm-container: 1140px; } }
@media (min-width: 1400px) { :root { --abm-container: 1360px; } }
@media (min-width: 1600px) { :root { --abm-container: 1520px; } }
@media (min-width: 1800px) { :root { --abm-container: 1680px; } }
@media (min-width: 1400px) {
  .container { max-width: var(--abm-container); }
}
/* fascia contatti e box in evidenza della home: larghezza Bootstrap originale */
@media (min-width: 1400px) {
  .abm-contact-strip .container,
  .abm-home-features .container { max-width: 1320px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--abm-navbar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* testo principale come overfibers.com: Inter 16px light, interlinea 1.5, senza letter-spacing */
body {
  font-family: var(--abm-font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--abm-text);
  background: var(--abm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
b, strong { font-weight: 600; }
body.abm-no-scroll { overflow: hidden; }
/* nessuno scroll orizzontale (clip non crea un contenitore di scroll: lo sticky continua a funzionare) */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

/* su mobile il gutter g-5 (3rem) sborda dal padding del container (0,75rem): lo riduco */
@media (max-width: 767.98px) {
  .g-5 { --bs-gutter-x: 1.5rem; }
}

h1, h2, h3, h4, h5, h6,
.abm-hero-title,
.abm-award-title,
.abm-contact-strip-label,
.abm-footer-title,
.abm-about-intro-title,
.abm-about-mission-number,
.abm-machine-card-number,
.abm-feature-number,
.abm-404-subtitle,
.abm-eyebrow,
.abm-nav-link,
.abm-link-arrow {
  font-family: var(--abm-font);
}
h1, h2, h3, h4, h5, h6 {
  color: var(--abm-graphite-900);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
a { color: var(--abm-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--abm-red-700); }
img { max-width: 100%; height: auto; }
::selection { background: var(--abm-red); color: #fff; }

:focus-visible { outline: 3px solid var(--abm-red); outline-offset: 2px; }

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  flex-shrink: 0;
  /* box quadrato fisso: prima che il font arrivi il nome dell'icona (es. "menu") non allarga il layout (CLS) */
  width: 1em;
  height: 1em;
  overflow: hidden;
}

.section-space { padding: clamp(64px, 8vw, 120px) 0; }
.section-space-top { padding-top: clamp(64px, 8vw, 120px); }
.section-space-bottom { padding-bottom: clamp(64px, 8vw, 120px); }

.abm-skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--abm-red); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.abm-skip-link:focus { top: 1rem; color: #fff; }

#main-content { display: block; position: relative; }

body:not(.has-hero) #main-content { padding-top: var(--abm-header-h); }

/* --------------------------------------------------------------------------
   Titoli di sezione
   -------------------------------------------------------------------------- */
.abm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--abm-red);
  margin-bottom: 14px;
}
.abm-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.abm-eyebrow-light { color: #fff; }
.abm-eyebrow-light::before { background: var(--abm-red-500); }

.abm-section-heading { margin-bottom: clamp(28px, 4vw, 48px); }
.abm-section-heading .abm-eyebrow { display: flex; }
.abm-section-heading.text-center .abm-eyebrow { display: inline-flex; }
.abm-section-title {
  font-size: clamp(1.85rem, 1.25rem + 2.2vw, 3rem);
  margin: 0;
  text-wrap: balance;
}
.abm-section-lead {
  margin: 18px 0 0;
  font-size: 1.1rem;
  color: var(--abm-text-muted);
}
.abm-section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.abm-section-heading-row .abm-section-heading { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */
.btn-abm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 28px;
  font-family: var(--abm-font);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .3s var(--abm-ease), color .3s var(--abm-ease), border-color .3s var(--abm-ease), box-shadow .3s var(--abm-ease);
  text-align: center;
}
.btn-abm .material-symbols-rounded { font-size: 1.25rem; }
.btn-abm-sm { padding: 11px 20px; font-size: .78rem; gap: 10px; }

.btn-abm-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-abm-icon svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform .4s var(--abm-ease);
}
.btn-abm-icon .icon-second { transform: translateX(-150%); }
.btn-abm:hover .btn-abm-icon .icon-first { transform: translateX(150%); }
.btn-abm:hover .btn-abm-icon .icon-second { transform: translateX(0); }

.btn-abm-primary { background: var(--abm-red); color: #fff; }
.btn-abm-primary:hover, .btn-abm-primary:focus-visible { background: var(--abm-graphite-900); color: #fff; }
.btn-abm-light { background: #fff; color: var(--abm-graphite-900); }
.btn-abm-light:hover, .btn-abm-light:focus-visible { background: var(--abm-graphite-900); color: #fff; }
.btn-abm-outline { border-color: var(--abm-graphite-900); color: var(--abm-graphite-900); background: transparent; }
.btn-abm-outline:hover, .btn-abm-outline:focus-visible { background: var(--abm-graphite-900); color: #fff; }
.btn-abm-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-abm-outline-light:hover, .btn-abm-outline-light:focus-visible { background: #fff; border-color: #fff; color: var(--abm-graphite-900); }

.abm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--abm-graphite-900);
}
.abm-link-arrow .material-symbols-rounded { font-size: 1.15rem; color: var(--abm-red); transition: transform .3s var(--abm-ease); }
.abm-link-arrow:hover { color: var(--abm-red); }
.abm-link-arrow:hover .material-symbols-rounded { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.abm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  /* spazio tra il menu e il bordo superiore della finestra; si annulla allo scroll */
  padding-top: var(--abm-header-offset);
  transition: padding-top .35s var(--abm-ease);
}
body.is-scrolled .abm-header { padding-top: 0; }
/* pagine interne: lo spazio sopra il menu ha lo stesso fondo della barra */
body:not(.has-hero) .abm-header { background: #fff; }
/* nessuna ombra della barra sopra la testata; torna solo quando si scorre */
body:not(.has-hero):not(.is-scrolled) .abm-navbar { box-shadow: none; }

.abm-navbar {
  height: var(--abm-navbar-h);
  background: #fff;
  /* filetto di contorno */
  border-top: var(--abm-hairline);
  border-bottom: var(--abm-hairline);
  box-shadow: var(--abm-shadow-sm);
  transition: background-color .35s ease, box-shadow .35s ease, height .35s var(--abm-ease);
}
.abm-navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.abm-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--abm-graphite-900);
}
.abm-logo img { width: calc(var(--abm-navbar-h) - 32px); height: auto; transition: width .35s var(--abm-ease); }
/* il container della barra deve essere alto quanto la barra, altrimenti logo e menu restano in alto */
.abm-navbar > .container { height: 100%; }
/* allo scroll la barra si riduce un po' */
@media (min-width: 1200px) {
  body.is-scrolled .abm-navbar { height: 104px; }
  body.is-scrolled .abm-logo img { width: 72px; }
}
.abm-logo-negative { display: none; }

.abm-nav { margin-left: auto; }
.abm-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.abm-nav-item { position: relative; display: flex; align-items: center; }
.abm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--abm-graphite-900);
  white-space: nowrap;
}
.abm-nav .abm-nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--abm-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--abm-ease);
}
.abm-nav .abm-nav-item:hover > .abm-nav-link::after,
.abm-nav .abm-nav-item.is-active > .abm-nav-link::after { transform: scaleX(1); }
.abm-nav-item.is-active > .abm-nav-link,
.abm-nav-link:hover { color: var(--abm-red); }

.abm-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  margin-left: -8px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.abm-nav-toggle .material-symbols-rounded { transition: transform .25s ease; }
.abm-nav-item.is-open > .abm-nav-toggle .material-symbols-rounded { transform: rotate(180deg); }

.abm-nav .abm-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  box-shadow: var(--abm-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.abm-nav .abm-nav-item:hover > .abm-nav-dropdown,
.abm-nav .abm-nav-item:focus-within > .abm-nav-dropdown,
.abm-nav .abm-nav-item.is-open > .abm-nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.abm-nav .abm-nav-dropdown a {
  display: block;
  padding: 9px 22px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--abm-graphite-900);
  transition: color .2s ease, padding-left .25s var(--abm-ease), background-color .2s ease;
}
.abm-nav .abm-nav-dropdown a:hover,
.abm-nav .abm-nav-dropdown a.is-active { color: var(--abm-red); background: var(--abm-steel-50); padding-left: 28px; }

.abm-navbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (min-width: 1200px) { .abm-nav + .abm-navbar-actions { margin-left: 12px; } }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .abm-nav-link { padding: 10px 8px; font-size: .86rem; }
  .abm-nav .abm-nav-link::after { left: 8px; right: 8px; }
}

.abm-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  background: var(--abm-red);
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease;
}
.abm-burger:hover, .abm-burger:focus-visible { background: var(--abm-graphite-900); }
.abm-burger .material-symbols-rounded { font-size: 2.2rem; }
/* mobile/tablet: bottone in alto a destra */
@media (max-width: 1199.98px) {
  .abm-navbar-actions { align-self: flex-start; }
}
@media (max-width: 575.98px) {
  .abm-burger { --abm-burger-size: 58px; width: 58px; height: 58px; }
  .abm-burger .material-symbols-rounded { font-size: 2rem; }
}

/* header trasparente sopra l'hero della home */
/* gradiente sull'intero header (compreso lo spazio sopra il menu), parte dal bordo della finestra */
body.has-hero:not(.is-scrolled) .abm-header {
  background: linear-gradient(180deg, rgba(17, 19, 22, .6) 0%, rgba(17, 19, 22, .3) 55%, rgba(17, 19, 22, 0) 100%);
}
body.has-hero:not(.is-scrolled) .abm-navbar {
  background: transparent;
  box-shadow: none;
  border-color: rgba(255, 255, 255, .22);
}
/* allo scroll la barra tocca il bordo della finestra: basta il filetto inferiore */
body.is-scrolled .abm-navbar { border-top-color: transparent; }
body.has-hero:not(.is-scrolled) .abm-logo-default { display: none; }
body.has-hero:not(.is-scrolled) .abm-logo-negative { display: block; }
body.has-hero:not(.is-scrolled) .abm-nav > .abm-nav-list > .abm-nav-item > .abm-nav-link,
body.has-hero:not(.is-scrolled) .abm-nav > .abm-nav-list > .abm-nav-item > .abm-nav-toggle { color: #fff; }

/* mobile/tablet: l'header scorre via con la pagina, resta fisso solo il bottone del menu */
@media (max-width: 1199.98px) {
  .abm-header { position: absolute; }
  body.is-scrolled .abm-header { padding-top: var(--abm-header-offset); }
  body.has-hero .abm-header {
    background: linear-gradient(180deg, rgba(17, 19, 22, .6) 0%, rgba(17, 19, 22, .3) 55%, rgba(17, 19, 22, 0) 100%);
  }
  body.has-hero .abm-navbar { background: transparent; box-shadow: none; border-color: rgba(255, 255, 255, .22); }
  body.has-hero .abm-logo-default { display: none; }
  body.has-hero .abm-logo-negative { display: block; }
  /* a pagina ferma il bottone è centrato in altezza sulla barra (allineato al logo),
     allo scroll la barra scorre via e il bottone sale al margine superiore */
  .abm-burger {
    position: fixed;
    z-index: 1031;
    top: calc(var(--abm-header-offset) + (var(--abm-navbar-h) - var(--abm-burger-size, 64px)) / 2);
    right: max(12px, calc((100vw - var(--abm-container)) / 2 + 12px));
    transition: background-color .25s ease, box-shadow .25s ease, top .35s var(--abm-ease);
  }
  body.is-scrolled .abm-burger { top: var(--abm-header-offset); box-shadow: 0 8px 24px rgba(17, 19, 22, .3); }
}

/* menu mobile */
.abm-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(17, 19, 22, .65);
  opacity: 0;
  transition: opacity .3s ease;
}
.abm-mobile-overlay.is-visible { opacity: 1; }
.abm-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  width: min(380px, 88vw);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  background: var(--abm-graphite-900);
  background-image: var(--abm-brushed);
  color: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--abm-ease), visibility .35s;
}
.abm-mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.abm-mobile-nav-head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 24px; }
.abm-mobile-nav-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer;
}
.abm-mobile-nav-close:hover { background: var(--abm-red); border-color: var(--abm-red); }
.abm-mobile-nav .abm-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.abm-mobile-nav .abm-nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.abm-mobile-nav .abm-nav-link { flex: 1; padding: 14px 0; color: #fff; font-size: .95rem; }
.abm-mobile-nav .abm-nav-item.is-active > .abm-nav-link { color: #fff; box-shadow: inset 3px 0 0 var(--abm-red); padding-left: 12px; }
.abm-mobile-nav .abm-nav-toggle { width: 44px; height: 44px; margin: 0; color: #fff; }
.abm-mobile-nav .abm-nav-dropdown { display: none; width: 100%; list-style: none; margin: 0; padding: 0 0 12px 12px; }
.abm-mobile-nav .abm-nav-item.is-open > .abm-nav-dropdown { display: block; }
.abm-mobile-nav .abm-nav-dropdown a { display: block; padding: 8px 0; color: var(--abm-steel-300); }
.abm-mobile-nav .abm-nav-dropdown a:hover,
.abm-mobile-nav .abm-nav-dropdown a.is-active { color: #fff; }
.abm-mobile-nav-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 28px; }
.abm-mobile-nav-contacts > a:not(.btn-abm) { display: inline-flex; align-items: center; gap: 10px; color: var(--abm-steel-300); }
.abm-mobile-nav-contacts > a:not(.btn-abm) .material-symbols-rounded { color: var(--abm-red-500); }
.abm-mobile-nav-contacts > a:not(.btn-abm):hover { color: #fff; }

/* --------------------------------------------------------------------------
   Hero home (video / slider)
   -------------------------------------------------------------------------- */
/* 90% dello schermo (non 100%): si intravede la sezione successiva e la copertina resta candidata LCP
   (Chrome ignora per l'LCP le immagini che coprono l'intero schermo, e l'LCP diventerebbe il cookie banner) */
.abm-hero {
  position: relative;
  height: 90vh;
  height: 90svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--abm-graphite-950);
  color: #fff;
}
.abm-hero .swiper,
.abm-hero .swiper-wrapper,
.abm-hero .swiper-slide { height: 100%; }
.abm-hero .swiper-slide { position: relative; overflow: hidden; }

.abm-hero-media { position: absolute; inset: 0; z-index: 0; }
.abm-hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .8s ease;
}
.abm-hero-slider .swiper-slide-active .abm-hero-poster { animation: abm-kenburns 9s ease-out both; }
@keyframes abm-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.abm-hero-yt-wrap { position: absolute !important; inset: 0; overflow: hidden; }
.abm-hero-yt-wrap .youtube-background { transition: opacity .8s ease; }
.abm-hero-video.is-playing .abm-hero-poster { opacity: 0; }

.abm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 19, 22, .88) 0%, rgba(17, 19, 22, .62) 45%, rgba(17, 19, 22, .2) 100%),
    linear-gradient(0deg, rgba(17, 19, 22, .55) 0%, rgba(17, 19, 22, 0) 40%);
}
.abm-hero-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-top: var(--abm-header-h);
  padding-bottom: clamp(110px, 9vw, 150px);
}
.abm-hero-content { max-width: 820px; }
.abm-hero-title {
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 22px;
  text-wrap: balance;
}
.abm-hero-subtitle {
  max-width: 620px;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  margin: 0;
}
.abm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.abm-hero-slider .swiper-slide .abm-hero-content > * { opacity: 0; transform: translateY(24px); }
.abm-hero-slider .swiper-slide-active .abm-hero-content > * { animation: abm-fade-up .9s var(--abm-ease) forwards; }
.abm-hero-slider .swiper-slide-active .abm-hero-content > *:nth-child(2) { animation-delay: .15s; }
.abm-hero-slider .swiper-slide-active .abm-hero-content > *:nth-child(3) { animation-delay: .3s; }
.abm-hero-slider .swiper-slide-active .abm-hero-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes abm-fade-up { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .abm-hero-slider .swiper-slide .abm-hero-content > * { opacity: 1; transform: none; animation: none !important; }
  .abm-hero-slider .swiper-slide-active .abm-hero-poster { animation: none; }
}

.abm-hero-nav {
  position: absolute;
  z-index: 3;
  right: max(16px, calc((100vw - var(--abm-container)) / 2 + 12px));
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.abm-hero-prev, .abm-hero-next {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.abm-hero-prev:hover, .abm-hero-next:hover { background: var(--abm-red); border-color: var(--abm-red); }
.abm-hero-pagination { display: flex; gap: 8px; }
.abm-hero-pagination .swiper-pagination-bullet {
  width: 28px; height: 4px; border-radius: 0; margin: 0 !important;
  background: rgba(255, 255, 255, .45); opacity: 1; transition: background-color .25s ease, width .25s ease;
}
.abm-hero-pagination .swiper-pagination-bullet-active { width: 44px; background: var(--abm-red-500); }

.abm-hero-video-toggle {
  position: absolute;
  z-index: 3;
  /* a sinistra (lontano da WhatsApp), sulla stessa riga e nello stesso stile dell'indicatore di scroll */
  left: max(16px, calc((100vw - var(--abm-container)) / 2 + 12px));
  bottom: 40px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.abm-hero-video-toggle:hover,
.abm-hero-video-toggle:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .12); }
.abm-hero-video-toggle .material-symbols-rounded { font-size: 1.35rem; }

.abm-hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
}
.abm-hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: abm-scroll 1.8s ease-in-out infinite;
}
@keyframes abm-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .abm-hero-scroll span { animation: none; } }
@media (max-width: 767.98px) {
  .abm-hero { min-height: 560px; }
  .abm-hero-container { align-items: flex-end; padding-bottom: 40px; }
  /* nello slider resta lo spazio per frecce e pallini */
  .abm-hero-slider .abm-hero-container { padding-bottom: 108px; }
  .abm-hero-scroll { display: none; }
  .abm-hero-nav { left: 16px; right: auto; bottom: 40px; }
  .abm-hero-video-toggle { display: none; }
  /* due bottoni sulla stessa riga */
  .abm-hero-actions { flex-wrap: nowrap; gap: 10px; }
  .abm-hero-actions .btn-abm { flex: 1 1 0; min-width: 0; padding: 13px 10px; gap: 8px; font-size: .74rem; letter-spacing: .05em; }
  .abm-hero-actions .btn-abm-icon { display: none; }
}

/* --------------------------------------------------------------------------
   Home — fascia contatti sotto l'hero (da template: rs-contact-two)
   -------------------------------------------------------------------------- */
.abm-contact-strip { position: relative; z-index: 1; overflow: hidden; }
.abm-contact-strip-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  height: 100%;
  z-index: -1;
  background-color: var(--abm-graphite-900);
}
.abm-contact-strip-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/immagini/template/contact-bg.webp") center right / cover no-repeat;
  filter: grayscale(1) brightness(1.3);
  opacity: .55;
}
.abm-contact-strip-bg::after { content: ""; position: absolute; inset: 0; background: var(--abm-brushed); }

.abm-award-item {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(168, 20, 15, .55) 0%, rgba(122, 2, 2, .85) 100%),
    url("/immagini/cover.svg") center / cover no-repeat,
    var(--abm-red);
  overflow: hidden;
}
/* riflesso diagonale */
.abm-award-item::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg);
  transition: left .9s var(--abm-ease);
  pointer-events: none;
}
.abm-award-item:hover::after { left: 120%; }

.abm-award-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--abm-red);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .14), 0 10px 24px rgba(0, 0, 0, .25);
}
.abm-award-icon .material-symbols-rounded {
  position: relative;
  font-size: 2.3rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
}
.abm-award-icon-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .45);
  animation: abm-award-spin 30s linear infinite;
}
@keyframes abm-award-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .abm-award-icon-ring { animation: none; }
  .abm-award-item::after { display: none; }
}

/* testi uniformati agli elementi di contatto della stessa riga */
.abm-award-title {
  display: inline-block;
  margin: 0 0 5px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}
.abm-award-text { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.6; color: rgba(255, 255, 255, .85); }
@media (max-width: 1199.98px) { .abm-award-title { font-size: 1.2rem; } }

.abm-contact-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 30px;
  padding: 56px 0 56px 30px;
}
.abm-contact-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--abm-red);
  color: #fff;
  transition: background-color .3s ease, color .3s ease;
}
.abm-contact-strip-icon .material-symbols-rounded { font-size: 2.1rem; }
.abm-contact-strip-item:hover .abm-contact-strip-icon { background: #fff; color: var(--abm-red); }
.abm-contact-strip-label { display: inline-block; margin-bottom: 5px; font-size: 1.4rem; font-weight: 700; color: #fff; }
.abm-contact-strip-content p { margin: 0; font-size: 1rem; font-weight: 500; color: #cccccc; line-height: 1.6; }
.abm-contact-strip-content a { color: #cccccc; }
.abm-contact-strip-content a:hover { color: #fff; }
@media (max-width: 1199.98px) {
  .abm-contact-strip-inner { padding-inline-start: 0; }
  .abm-contact-strip-label { font-size: 1.2rem; }
}
@media (max-width: 991.98px) {
  .abm-contact-strip-bg { width: 100%; }
  .abm-award-item { padding: 48px 30px; margin: 0 calc(-.5 * var(--bs-gutter-x, 1.5rem)); }
  .abm-contact-strip-inner { padding: 44px 0 56px; }
}
/* da mobile i contatti sono già nel footer: resta solo il box del riconoscimento */
@media (max-width: 767.98px) {
  .abm-contact-strip-inner { display: none; }
}

/* --------------------------------------------------------------------------
   Home — box in evidenza
   -------------------------------------------------------------------------- */
.abm-home-features { position: relative; padding-top: clamp(64px, 8vw, 120px); }
.abm-feature-card {
  position: relative;
  height: 100%;
  padding: 40px 36px 36px;
  background: #fff;
  box-shadow: var(--abm-shadow);
  border-bottom: 3px solid transparent;
  overflow: hidden;
  transition: transform .35s var(--abm-ease), box-shadow .35s var(--abm-ease), border-color .35s var(--abm-ease);
}
.abm-feature-card:hover { transform: translateY(-6px); box-shadow: var(--abm-shadow-lg); border-color: var(--abm-red); }
.abm-feature-number {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--abm-steel-200);
}
.abm-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  background: var(--abm-graphite-900);
  color: #fff;
  transition: background-color .35s ease;
}
.abm-feature-card:hover .abm-feature-icon { background: var(--abm-red); }
.abm-feature-icon .material-symbols-rounded { font-size: 2rem; }
.abm-feature-title { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
/* testo principale (come il body) */
.abm-feature-text { margin-bottom: 22px; font-family: var(--abm-font-body); font-size: 1rem; font-weight: 300; line-height: 1.5; letter-spacing: 0; color: var(--abm-text); }

/* --------------------------------------------------------------------------
   Immagini delle card (articoli, macchine)
   -------------------------------------------------------------------------- */
.abm-article-card-thumb img,
.abm-machine-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--abm-ease);
}
.abm-article-card:hover .abm-article-card-thumb img { transform: scale(1.06); }
.abm-article-card-title a { color: inherit; }
.abm-article-card-title a:hover { color: var(--abm-red); }

/* --------------------------------------------------------------------------
   Home — azienda
   -------------------------------------------------------------------------- */
.abm-home-about { position: relative; }
/* più vicina alla sezione lavorazioni sopra */
.abm-home-about.section-space { padding-top: clamp(16px, 2vw, 32px); }

/* riquadro a filetti con crocini agli angoli (stile disegno tecnico) */
.abm-hairline-box { position: relative; border-top: var(--abm-hairline); border-bottom: var(--abm-hairline); }
.abm-hairline-box::before,
.abm-hairline-box::after {
  content: "+";
  position: absolute;
  font-family: var(--abm-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--abm-red);
}
.abm-hairline-box::before { top: -10px; left: -5px; }
.abm-hairline-box::after { bottom: -9px; right: -5px; }

.abm-hairline-label {
  position: absolute;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--abm-font);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--abm-steel-600);
}
.abm-hairline-label::before { content: ""; width: 7px; height: 7px; background: var(--abm-red); }
.abm-hairline-label-left { left: 0; }
.abm-hairline-label-right { right: 0; }

/* variante su fondo scuro */
.abm-hairline-box-dark { border-top: var(--abm-hairline-dark); border-bottom: var(--abm-hairline-dark); }
.abm-hairline-box-dark .abm-hairline-label { color: var(--abm-steel-300); }
.abm-hairline-box-dark::before, .abm-hairline-box-dark::after { color: var(--abm-red-500); }

/* filetto superiore con crocino per le intestazioni di sezione */
.abm-hairline-top { position: relative; border-top: var(--abm-hairline); padding-top: 28px; }
.abm-hairline-top::before {
  content: "+";
  position: absolute;
  top: -10px;
  left: -5px;
  font-family: var(--abm-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--abm-red);
}
.abm-section-heading-row.abm-hairline-top { align-items: flex-end; }

/* occhiello con quadratino al posto della lineetta */
.abm-eyebrow-square::before { width: 7px; height: 7px; }


/* elenco a righe: variante su fondo scuro (parco macchine in home) */
.abm-rowlist-dark { border-top: var(--abm-hairline-dark); border-bottom: var(--abm-hairline-dark); }
.abm-rowlist-dark li { border-bottom: var(--abm-hairline-dark); }
.abm-rowlist-dark .abm-about-mission-number { color: var(--abm-red-500); padding-left: 0; width: 64px; }
.abm-rowlist-dark .abm-about-mission-text { color: #fff; font-weight: 500; font-size: 1.02rem; }
.abm-rowlist-dark .abm-about-mission-icon { border-left: var(--abm-hairline-dark); color: var(--abm-steel-300); }
.abm-rowlist-dark li:hover .abm-about-mission-icon { color: var(--abm-red-500); }

/* introduzione */
.abm-about-intro { padding: clamp(72px, 8vw, 120px) 0 clamp(56px, 6vw, 96px); text-align: center; }
.abm-about-intro-title {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.abm-about-intro-lead {
  max-width: 760px;
  margin: 0 auto;
  font-weight: 400;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem);
  line-height: 1.65;
  color: var(--abm-text-muted);
}

/* storia */
.abm-about-story {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: var(--abm-hairline);
}
.abm-about-story-media {
  position: relative;
  min-height: 520px;
  background: var(--abm-steel-100);
  overflow: hidden;
}
.abm-about-story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* slideshow della storia (atom about_images): occupa tutta la cella come la foto singola */
.abm-about-story-media .abm-content-slideshow { position: absolute; inset: 0; min-height: 0; height: 100%; aspect-ratio: auto; }
.abm-about-story-main { display: flex; flex-direction: column; border-left: var(--abm-hairline); }
.abm-about-story-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 6vw, 120px) clamp(40px, 4vw, 56px);
}
.abm-about-story-label {
  font-family: var(--abm-font);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--abm-red);
}
/* frase grande come la .about-intro-lead di overfibers: Inter light, senza letter-spacing */
.abm-about-story-highlight {
  margin: 0;
  max-width: 640px;
  font-family: var(--abm-font-body);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--abm-graphite-900);
  text-wrap: balance;
}
/* testo principale (come il body): Inter 16px light, interlinea 1.5, senza letter-spacing */
.abm-about-story-text { margin: 0; max-width: 600px; font-family: var(--abm-font-body); font-size: 1rem; font-weight: 300; line-height: 1.5; letter-spacing: 0; color: var(--abm-text); }

/* elenco a righe con filetti */
.abm-about-mission { margin-top: auto; border-top: var(--abm-hairline); }
.abm-about-mission-title {
  margin: 0;
  padding: 22px clamp(24px, 6vw, 120px);
  font-family: var(--abm-font);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--abm-graphite-900);
  border-bottom: var(--abm-hairline);
}
.abm-about-mission-list { list-style: none; margin: 0; padding: 0; }
.abm-about-mission-list li {
  display: flex;
  align-items: stretch;
  border-bottom: var(--abm-hairline);
  transition: background-color .3s ease;
}
.abm-about-mission-list li:last-child { border-bottom: 0; }
.abm-about-mission-number {
  flex: none;
  display: flex;
  align-items: center;
  width: clamp(64px, 6vw, 120px);
  padding-left: clamp(24px, 3vw, 40px);
  font-family: var(--abm-font);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--abm-red);
}
/* blocco (non flex): il testo contiene <strong> e con flex grassetto e resto della riga finivano in colonne separate */
.abm-about-mission-text {
  flex: 1;
  display: block;
  align-self: center;
  padding: 16px 20px 16px 0;
  font-size: .98rem;
  line-height: 1.45;
  color: var(--abm-graphite-900);
}
.abm-about-mission-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  border-left: var(--abm-hairline);
  color: var(--abm-steel-500);
  transition: color .3s ease, transform .6s var(--abm-ease);
}
.abm-about-mission-list li:hover .abm-about-mission-icon { color: var(--abm-red); }
.abm-about-mission-list li:hover .abm-about-mission-icon .material-symbols-rounded { transform: rotate(90deg); }
.abm-about-mission-icon .material-symbols-rounded { transition: transform .6s var(--abm-ease); }


@media (max-width: 991.98px) {
  .abm-about-story { grid-template-columns: 1fr; }
  .abm-about-story-media { min-height: 0; aspect-ratio: 4 / 3; }
  .abm-about-story-main { border-left: 0; }
  .abm-about-mission-title { padding-left: 0; padding-right: 0; }
  .abm-about-story-body { padding-left: 0; padding-right: 0; }
  .abm-about-mission-number { padding-left: 0; width: 56px; }
}
@media (max-width: 575.98px) {
  .abm-about-intro .abm-hairline-label { position: static; margin-bottom: 18px; }
  .abm-about-intro .abm-hairline-label-right { display: none; }
  .abm-about-intro { padding-top: 40px; }
}
/* da mobile l'ingranaggio a destra delle righe e' solo decorativo: lo nascondo */
@media (max-width: 767.98px) {
  .abm-about-mission-icon { display: none; }
}

/* --------------------------------------------------------------------------
   Testo ricco (Htmlarea)
   -------------------------------------------------------------------------- */
.abm-richtext { color: var(--abm-text); }
.abm-richtext > *:first-child { margin-top: 0; }
.abm-richtext > *:last-child { margin-bottom: 0; }
.abm-richtext p { margin-bottom: 1.1rem; }
.abm-richtext h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 2.4rem 0 1rem; }
.abm-richtext h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.abm-richtext a { text-decoration: underline; text-underline-offset: 3px; }
.abm-richtext ul, .abm-richtext ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.abm-richtext li { margin-bottom: .45rem; }
.abm-richtext strong { color: var(--abm-graphite-900); }
.abm-richtext-lead { font-size: 1.1rem; }
/* testo su due colonne da desktop (es. introduzione Lavorazioni): i paragrafi non si spezzano tra le colonne */
@media (min-width: 992px) {
  .abm-richtext-2col { column-count: 2; column-gap: clamp(40px, 5vw, 72px); column-rule: var(--abm-hairline); }
  .abm-richtext-2col > * { break-inside: avoid; }
  .abm-richtext-2col > *:last-child { margin-bottom: 0; }
}
.abm-richtext-checklist ul { list-style: none; padding-left: 0; }
.abm-richtext-checklist ul li {
  position: relative;
  padding: 10px 0 10px 40px;
  margin: 0;
  border-bottom: 1px solid var(--abm-steel-100);
}
.abm-richtext-checklist ul li:last-child { border-bottom: 0; }
/* seconda riga delle pagine di contenuto (es. "Altri strumenti di misura"): lista su 2 colonne da desktop */
@media (min-width: 992px) {
  .abm-content-row-reverse .abm-richtext-checklist ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  /* con un numero pari di voci anche la penultima chiude la colonna: niente filetto sotto */
  .abm-content-row-reverse .abm-richtext-checklist ul li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.abm-richtext-checklist ul li::before {
  content: "check";
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  line-height: 1;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  color: #fff;
  background: var(--abm-red);
}

/* --------------------------------------------------------------------------
   Home — parco macchine
   -------------------------------------------------------------------------- */
.abm-home-machines {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 0;
  background: var(--abm-graphite-900);
  color: var(--abm-steel-300);
  overflow: hidden;
}
.abm-home-machines-bg { position: absolute; inset: 0; background: var(--abm-dark-gradient); }
.abm-home-machines-bg::after { content: ""; position: absolute; inset: 0; background: var(--abm-brushed); }
.abm-home-machines-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1); }
.abm-home-machines .container { position: relative; }
.abm-home-machines .abm-section-lead { color: var(--abm-steel-300); margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Card articoli
   -------------------------------------------------------------------------- */
.abm-article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--abm-steel-100);
  transition: box-shadow .35s var(--abm-ease);
}
.abm-article-card:hover { box-shadow: var(--abm-shadow); }
/* carosello articoli correlati: padding per non tagliare l'ombra delle card al hover */
.abm-related-swiper { padding: 8px 8px 0; margin: -8px -8px 0; }
.abm-related-swiper .swiper-slide { height: auto; }
.abm-related-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.abm-related-pagination.swiper-pagination-lock { display: none; }
.abm-related-pagination .swiper-pagination-bullet {
  width: 28px; height: 4px; border-radius: 0; margin: 0 !important;
  background: var(--abm-steel-200); opacity: 1; transition: background-color .25s ease, width .25s ease;
}
.abm-related-pagination .swiper-pagination-bullet-active { width: 44px; background: var(--abm-red); }
.abm-article-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--abm-steel-100); }
.abm-article-card-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 34px 26px 30px; }
/* data a cavallo tra foto e testo (da template: rs-blog-tag) */
.abm-article-card-date {
  position: absolute;
  top: -15px;
  left: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 2px;
  background: var(--abm-red);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .3s ease;
}
.abm-article-card-date .material-symbols-rounded { font-size: 1rem; color: #fff; }
.abm-article-card:hover .abm-article-card-date { background: var(--abm-graphite-900); }
.abm-article-card-title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; }
.abm-article-card-text { color: var(--abm-text-muted); font-size: .95rem; margin-bottom: 20px; }
.abm-article-card .abm-link-arrow { margin-top: auto; align-self: flex-end; }


/* --------------------------------------------------------------------------
   Intestazione pagine interne
   -------------------------------------------------------------------------- */
.abm-page-header {
  position: relative;
  display: flex;
  /* testata più alta, contenuto allineato in basso */
  min-height: clamp(420px, 60vh, 640px);
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--abm-dark-gradient);
  color: #fff;
  overflow: hidden;
}
.abm-page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--abm-brushed);
  pointer-events: none;
}
.abm-page-header-bg { position: absolute; inset: 0; }
.abm-page-header-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.4); }
.abm-page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 22, .9) 0%, rgba(17, 19, 22, .5) 100%);
}
.abm-page-header::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: min(220px, 30vw);
  height: 4px;
  background: var(--abm-red);
}
.abm-page-header .container { position: relative; z-index: 2; display: flex; flex-direction: column; }
.abm-page-header-frame { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 76px 0 clamp(20px, 2.5vw, 32px); }
.abm-page-header-inner { max-width: 860px; }
.abm-page-header-breadcrumb { top: 14px; max-width: 100%; letter-spacing: .08em; }
.abm-page-header-breadcrumb::before { flex-shrink: 0; }
.abm-page-header .abm-page-header-breadcrumb .breadcrumb { margin: 0; font-size: .74rem; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .abm-page-header-frame { padding-top: 64px; }
}
.abm-page-header nav[aria-label="breadcrumb"] { justify-content: flex-start !important; }
.abm-page-header .breadcrumb { margin-bottom: 18px; font-size: .85rem; }
.abm-page-header .breadcrumb-item,
.abm-page-header .breadcrumb-item a { color: var(--abm-steel-300); }
.abm-page-header .breadcrumb-item a:hover { color: #fff; }
.abm-page-header .breadcrumb-item:last-child { color: #fff; }
.abm-page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--abm-red-500); content: "/"; }
/* da mobile si nasconde l'ultimo livello del breadcrumb (la pagina corrente, già nel titolo H1); vale anche per Contatti */
@media (max-width: 767.98px) {
  .breadcrumb .breadcrumb-item:last-child:not(:first-child) { display: none; }
}
.abm-page-header-title {
  color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
  margin: 0;
  text-wrap: balance;
}
.abm-page-header-subtitle {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .85);
  text-wrap: balance;
}
@media (max-width: 767.98px) { .abm-page-header { min-height: 340px; } }
.abm-page-header-meta { margin-top: 20px; color: var(--abm-steel-300); font-size: .92rem; }
.abm-page-header-meta time { display: inline-flex; align-items: center; gap: 8px; }
.abm-page-header-meta .material-symbols-rounded { color: var(--abm-red-500); }

/* Variante con foto a destra di h1/h2 (al posto dello sfondo); da mobile la foto va sotto la testata */
.abm-page-header-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.abm-page-header-media-mobile { display: none; }
@media (min-width: 768px) {
  .abm-page-header-side .abm-page-header-frame {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--abm-page-header-side-gap);
  }
  .abm-page-header-side .abm-page-header-media-desktop {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, .14);
  }
}
@media (max-width: 767.98px) {
  .abm-page-header-side { min-height: 0; }
  .abm-page-header-media-desktop { display: none; }
  .abm-page-header-media-mobile { display: block; aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Pagine di contenuto
   -------------------------------------------------------------------------- */
/* griglia a filetti (stesso linguaggio della pagina Contatti) */
.abm-content-grid { padding-top: 56px; border-left: var(--abm-hairline); border-right: var(--abm-hairline); }
.abm-content-grid > .abm-hairline-label-left { left: clamp(16px, 2vw, 24px); }
.abm-content-grid > .abm-hairline-label-right { right: clamp(16px, 2vw, 24px); }
.abm-content-row { display: grid; grid-template-columns: 7fr 5fr; border-top: var(--abm-hairline); }
.abm-content-main { min-width: 0; padding: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px); }
.abm-content-main-title { margin: 0 0 24px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.abm-content-side { display: flex; flex-direction: column; border-left: var(--abm-hairline); }
/* seconda riga invertita: slideshow a sinistra (5/12), testo a destra (7/12) */
.abm-content-row-reverse { grid-template-columns: 5fr 7fr; }
/* scheda lavorazione: la colonna della foto ha la stessa larghezza della foto in testata
   (testata: colonne 1.15fr / 1fr con gap --abm-page-header-side-gap; +2px = filetti laterali del box) */
.abm-content-row-half {
  grid-template-columns: minmax(0, 1fr) calc((100% + 2px - var(--abm-page-header-side-gap)) / 2.15);
}
/* foto a destra del testo in formato quadrato (non si allunga piu' fino all'altezza del testo) */
.abm-content-row-half .abm-content-side-media { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
.abm-content-row-reverse .abm-content-side { border-left: 0; border-right: var(--abm-hairline); }
/* Controllo dimensionale: slideshow in formato quadrato (anche da mobile) invece che alti quanto il testo */
.abm-card-controllo-dimensionale .abm-content-slideshow { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
.abm-content-side-media { position: relative; flex: 1 1 auto; min-height: 380px; background: var(--abm-steel-100); overflow: hidden; }
.abm-content-side-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* .swiper ha margin-inline:auto: dentro .abm-content-side (flex column) lo farebbe stringere a larghezza 0 */
.abm-content-slideshow { width: 100%; margin: 0; }
.abm-content-slideshow .swiper-wrapper { position: absolute; inset: 0; }
.abm-content-slideshow .swiper-slide { position: relative; height: 100%; overflow: hidden; }
/* slide cliccabile: apre il lightbox */
.abm-content-slideshow-zoom { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.abm-content-slideshow-zoom-icon {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 19, 22, .6);
  color: #fff;
  transition: background-color .25s ease;
}
.abm-content-slideshow-zoom-icon .material-symbols-rounded { font-size: 1.4rem; }
.abm-content-slideshow-zoom:hover .abm-content-slideshow-zoom-icon,
.abm-content-slideshow-zoom:focus-visible .abm-content-slideshow-zoom-icon { background: var(--abm-red); }
.abm-content-slideshow-nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(17, 19, 22, .7) 0%, rgba(17, 19, 22, 0) 100%);
}
.abm-content-slideshow-prev, .abm-content-slideshow-next {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.abm-content-slideshow-prev:hover, .abm-content-slideshow-next:hover { background: var(--abm-red); border-color: var(--abm-red); }
.abm-content-slideshow-pagination { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.abm-content-slideshow-pagination .swiper-pagination-bullet {
  width: 20px; height: 4px; border-radius: 0; margin: 0 !important;
  background: rgba(255, 255, 255, .45); opacity: 1; transition: background-color .25s ease, width .25s ease;
}
.abm-content-slideshow-pagination .swiper-pagination-bullet-active { width: 32px; background: var(--abm-red-500); }
/* box CTA a destra del testo: pannello scuro coerente con la testata */
.abm-content-side-cell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(32px, 3vw, 44px) clamp(24px, 2.5vw, 36px) clamp(28px, 3vw, 40px);
  background: var(--abm-dark-gradient);
  color: #fff;
  overflow: hidden;
}
.abm-content-side-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--abm-brushed);
  pointer-events: none;
}
.abm-content-side-cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  background: var(--abm-red);
}
.abm-content-side-cell .abm-contact-cell-label { gap: 12px; color: var(--abm-steel-300); }
.abm-content-side-cell .abm-contact-cell-label .material-symbols-rounded {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--abm-red);
  color: #fff;
  font-size: 1.15rem;
}
.abm-content-side-cell p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.abm-content-side-cell .btn-abm { margin-top: 8px; align-self: flex-end; }
/* CTA a tutta larghezza in fondo alla card (pagine con seconda riga): da desktop testo a sinistra, bottone a destra */
.abm-content-cta-row { border-top: var(--abm-hairline); }
@media (min-width: 768px) {
  .abm-content-cta-row .abm-content-side-cell {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: clamp(24px, 4vw, 64px);
    row-gap: 12px;
    align-items: center;
    padding: clamp(32px, 3vw, 44px) clamp(28px, 4vw, 56px);
  }
  .abm-content-cta-row .abm-contact-cell-label { grid-column: 1; }
  .abm-content-cta-row .abm-content-side-cell p { grid-column: 1; max-width: 760px; font-size: 1.08rem; }
  .abm-content-cta-row .abm-content-side-cell .btn-abm { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
}
.abm-content-side-cell .btn-abm-primary:hover,
.abm-content-side-cell .btn-abm-primary:focus-visible { background: #fff; color: var(--abm-graphite-900); }

/* --- CTA: sfondo animato (griglia tecnica che scorre, ingranaggi che ruotano, linea di scansione) --- */
.abm-cta-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* griglia "da disegno tecnico", sfumata verso sinistra per non disturbare il testo */
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  animation: abm-cta-grid 14s linear infinite;
}
.abm-cta-gear { position: absolute; display: block; color: rgba(255, 255, 255, .14); }
.abm-cta-gear-lg { width: 230px; height: 230px; right: -70px; bottom: -80px; animation: abm-cta-spin 40s linear infinite; }
.abm-cta-gear-sm { width: 130px; height: 130px; right: 112px; bottom: 58px; color: rgba(168, 20, 15, .55); animation: abm-cta-spin 26.7s linear infinite reverse; }
.abm-cta-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--abm-red-500) 25%, var(--abm-red-500) 75%, transparent);
  box-shadow: 0 0 18px 4px rgba(168, 20, 15, .45);
  opacity: 0;
  animation: abm-cta-scan 6s var(--abm-ease) infinite;
}
.abm-content-side-cell .btn-abm-primary { animation: abm-cta-pulse 2.6s ease-out infinite; }
.abm-content-side-cell .btn-abm-primary:hover,
.abm-content-side-cell .btn-abm-primary:focus-visible { animation: none; }
/* al passaggio del mouse sul box gli ingranaggi accelerano */
.abm-content-side-cell:hover .abm-cta-gear-lg { animation-duration: 12s; }
.abm-content-side-cell:hover .abm-cta-gear-sm { animation-duration: 8s; }
@keyframes abm-cta-spin { to { transform: rotate(360deg); } }
@keyframes abm-cta-grid { to { background-position: 28px 28px, 28px 28px; } }
@keyframes abm-cta-scan {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  60% { left: 100%; opacity: .9; }
  61%, 100% { left: 100%; opacity: 0; }
}
@keyframes abm-cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 20, 15, .55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(168, 20, 15, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .abm-cta-fx, .abm-cta-gear, .abm-content-side-cell .btn-abm-primary { animation: none; }
  .abm-cta-scan { display: none; }
}
@media (max-width: 991.98px) {
  .abm-content-row { grid-template-columns: 1fr; }
  .abm-content-side { border-left: 0; border-top: var(--abm-hairline); }
  /* da tablet/mobile la riga invertita torna testo sopra e foto sotto, come la prima */
  .abm-content-row-reverse .abm-content-side { order: 2; border-right: 0; }
  .abm-content-side-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 767.98px) {
  .abm-content-grid { border-left: 0; border-right: 0; padding-top: 52px; }
  .abm-content-grid > .abm-hairline-label-left { left: 0; }
  .abm-content-grid > .abm-hairline-label-right { display: none; }
  .abm-content-main { padding: 28px 0 32px; }
  .abm-content-side-cell { padding: 32px 20px 28px; }
}

/* Galleria */
.abm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.abm-gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--abm-steel-100); }
.abm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--abm-ease); }
.abm-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(149, 3, 3, .35);
  opacity: 0;
  transition: opacity .3s ease;
}
.abm-gallery-item:hover img { transform: scale(1.06); }
.abm-gallery-item:hover::after { opacity: 1; }

/* Video e allegati */
.abm-video-embed { background: var(--abm-graphite-900); box-shadow: var(--abm-shadow); }
.abm-docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.abm-docs-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--abm-steel-50);
  border: 1px solid var(--abm-steel-100);
  color: var(--abm-graphite-900);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.abm-docs-list a:hover { border-color: var(--abm-red); box-shadow: var(--abm-shadow-sm); }
.abm-docs-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--abm-graphite-900); color: #fff; flex-shrink: 0; }
.abm-docs-name { flex: 1; font-weight: 600; line-height: 1.35; word-break: break-word; }
.abm-docs-name small { display: block; font-weight: 500; color: var(--abm-steel-600); font-size: .78rem; letter-spacing: .08em; }
.abm-docs-download { color: var(--abm-red); }
/* colonna destra dell'articolo: form richiesta informazioni con lo stile della pagina Contatti
   (box a filetti con etichetta in alto + form "a tabella" .abm-form-lines), fissa durante lo scroll da desktop */
.abm-article-aside { padding-top: 56px; border-left: var(--abm-hairline); border-right: var(--abm-hairline); background: #fff; }
.abm-article-aside > .abm-hairline-label-left { left: clamp(16px, 2vw, 24px); }
.abm-article-aside-heading { border-top: var(--abm-hairline); }
.abm-article-aside-lead {
  margin: 0;
  padding: 20px clamp(20px, 2.5vw, 32px);
  border-bottom: var(--abm-hairline);
  color: var(--abm-text-muted);
  font-size: .95rem;
  line-height: 1.6;
}
@media (min-width: 992px) {
  .abm-article-aside { position: sticky; top: calc(var(--abm-navbar-h) + 24px); }
}
@media (max-width: 767.98px) {
  .abm-article-aside { border-left: 0; border-right: 0; padding-top: 52px; }
  .abm-article-aside > .abm-hairline-label-left { left: 0; }
  .abm-article-aside-heading, .abm-article-aside-lead { padding-left: 0; padding-right: 0; }
}
/* video e allegati dentro l'articolo del blog */
.abm-article-block { margin-top: clamp(40px, 5vw, 64px); }
.abm-article-videos { display: flex; flex-direction: column; gap: 48px; }
.abm-article-video { margin: 0; }
/* video dell'articolo: angoli molto arrotondati, ombra morbida neutra, nessun fondo/bordo colorato */
.abm-article-video .abm-video-embed { background: transparent; border-radius: 24px; overflow: hidden; box-shadow: var(--abm-shadow-lg); }
.abm-article-video .abm-video-embed iframe { border: 0; border-radius: 24px; }

/* Lavorazioni (elenco) */

/* Parco macchine */
.abm-machine-card { height: 100%; display: flex; flex-direction: column; background: var(--abm-steel-50); border: 1px solid var(--abm-steel-100); scroll-margin-top: calc(var(--abm-navbar-h) + 24px); }
.abm-machine-card-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--abm-steel-100); }
.abm-machine-card-number {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: var(--abm-graphite-900);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
}
.abm-machine-card-body { padding: 24px 24px 26px; }
/* foto della macchina cliccabile: apre il lightbox con tutte le foto */
.abm-machine-card-zoom { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.abm-machine-card-zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 22, .35);
  opacity: 0;
  transition: opacity .3s ease;
}
.abm-machine-card-zoom-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--abm-red);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.8);
  transition: opacity .3s ease, transform .3s var(--abm-ease);
}
.abm-machine-card-zoom-icon .material-symbols-rounded { font-size: 1.8rem; }
.abm-machine-card-count {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(17, 19, 22, .75);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}
.abm-machine-card-count .material-symbols-rounded { font-size: 1.05rem; }
.abm-machine-card-zoom:hover img, .abm-machine-card-zoom:focus-visible img { transform: scale(1.06); }
.abm-machine-card-zoom:hover::after, .abm-machine-card-zoom:focus-visible::after { opacity: 1; }
.abm-machine-card-zoom:hover .abm-machine-card-zoom-icon,
.abm-machine-card-zoom:focus-visible .abm-machine-card-zoom-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.abm-machine-card-number { z-index: 2; pointer-events: none; }
.abm-machine-card-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 14px; }
.abm-machine-specs { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--abm-text-muted); }
.abm-machine-specs li { position: relative; padding: 6px 0 6px 18px; border-top: 1px dashed var(--abm-steel-200); }
.abm-machine-specs li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; background: var(--abm-red); }

/* Articolo */
.abm-article-abstract { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4rem); line-height: 1.55; color: var(--abm-graphite-800); font-weight: 500; padding-left: 22px; border-left: 4px solid var(--abm-red); margin-bottom: 36px; }
/* testo principale della news più grande del corpo standard */
.abm-article-text { font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); line-height: 1.75; }
.abm-article-text p { margin-bottom: 1.3rem; }

/* --------------------------------------------------------------------------
   Contatti e form
   -------------------------------------------------------------------------- */
/* sezione "Richiedi informazioni" (Lavorazioni / Lavorazione): stile della pagina Contatti */
/* fondo grigio chiaro esterno per staccarla dalla sezione superiore; il box a filetti resta bianco */
.abm-contact-section { background: var(--abm-steel-50); border-top: var(--abm-hairline); }
.abm-contact-section .abm-contact-grid { background: #fff; }
.abm-request-main { display: grid; grid-template-columns: 5fr 7fr; border-top: var(--abm-hairline); }
.abm-request-info { display: flex; flex-direction: column; }
.abm-request-intro { padding: clamp(28px, 3vw, 44px) clamp(24px, 2.5vw, 32px); }
.abm-request-title { margin: 0 0 16px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; }
.abm-request-lead { margin: 0; max-width: 460px; color: var(--abm-text); }
.abm-request-info .abm-contact-cell { min-height: 0; gap: 10px; border-top: var(--abm-hairline); }
.abm-request-info .abm-contact-cell + .abm-contact-cell { border-left: 0; }
.abm-request-form { min-width: 0; border-left: var(--abm-hairline); }
/* versione a scomparsa: titolo e testo, sotto una barra-pulsante larga quanto tutto il box
   (stesso stile della barra "Invia richiesta"); recapiti e form dentro il collapse */
.abm-request-head { border-top: var(--abm-hairline); }
.abm-request-head .abm-request-lead { max-width: 720px; }
.abm-request-toggle {
  width: 100%;
  height: 88px;
  justify-content: space-between;
  padding: 0 clamp(20px, 2.5vw, 32px);
  border-radius: 0;
  font-size: .95rem;
}
.abm-request-toggle-icon { display: inline-flex; transition: transform .3s var(--abm-ease); }
.abm-request-toggle-icon .material-symbols-rounded { font-size: 1.8rem; }
.abm-request-toggle:not(.collapsed) .abm-request-toggle-icon { transform: rotate(180deg); }
.abm-request-main.collapse .abm-request-info .abm-contact-cell:first-child { border-top: 0; }
.abm-request-main.collapse,
.abm-request-main.collapsing { border-top: 0; }
@media (max-width: 767.98px) {
  .abm-request-toggle { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .abm-request-toggle-icon { transition: none; }
}
.abm-form-lines .abm-form > .abm-form-upload { padding: 22px clamp(20px, 2.5vw, 32px); }
/* campo allegati: input file nativo nascosto (resta accessibile: si apre cliccando l'etichetta),
   zona di trascinamento e bottone "Sfoglia" nello stile del sito */
.abm-form-upload .form-label { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--abm-steel-600); }
.upload-file-wrapper input[type="file"].form-upload {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}
/* niente fondo grigio sulla zona di upload (anche la classe bg-gray del CMS) */
.abm-form-upload .upload-zone-wrapper { position: relative; background: transparent !important; }
.abm-form-upload .upload-label {
  min-height: 0 !important;
  margin: 0;
  padding: 28px 20px !important;
  border: 1px dashed var(--abm-steel-300);
  background-image: none !important;
  color: var(--abm-text);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.abm-form-upload .upload-label:hover,
.abm-form-upload .upload-label.dragover,
.abm-form-upload input[type="file"].form-upload:focus-visible + .upload-label { border-color: var(--abm-red); background-color: #fff; }
.abm-form-upload .upload-label.is-invalid { border-color: #dc3545; }
.abm-form-upload .upload-label svg { fill: var(--abm-red) !important; color: var(--abm-red); }
.abm-form-upload .upload-label span > span { font-size: 1rem !important; }
.abm-form-upload .upload-label small { color: var(--abm-steel-600); }
.abm-form-upload .upload-label .btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 2px solid var(--abm-graphite-900);
  border-radius: 0 !important;
  background: transparent;
  color: var(--abm-graphite-900);
  font-family: var(--abm-font);
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.abm-form-upload .upload-label:hover .btn { background: var(--abm-red); border-color: var(--abm-red); color: #fff; }
@media (max-width: 991.98px) {
  .abm-request-main { grid-template-columns: 1fr; }
  .abm-request-form { border-left: 0; border-top: var(--abm-hairline); }
}
@media (max-width: 767.98px) {
  .abm-request-intro { padding-left: 0; padding-right: 0; }
  .abm-request-info .abm-contact-cell { padding-left: 0; padding-right: 0; }
}
.abm-form .form-check-label strong,
.abm-form .form-label { font-size: .85rem; font-weight: 600; color: var(--abm-graphite-900); margin-bottom: 6px; }
.abm-form .form-control,
.abm-form .form-select {
  border-radius: 0;
  border: 1px solid var(--abm-steel-200);
  background-color: var(--abm-steel-50);
  color: var(--abm-graphite-900);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.abm-form .form-floating > label { color: var(--abm-steel-600); }
.abm-form .form-floating > .form-control:focus ~ label,
.abm-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.abm-form .form-floating > .form-select ~ label { color: var(--abm-graphite-900); }
.abm-form .form-floating > .form-control:focus ~ label::after,
.abm-form .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.abm-form .form-floating > .form-select ~ label::after { background-color: transparent; }
.abm-form .form-control:focus,
.abm-form .form-select:focus,
.abm-form select:focus,
.abm-form textarea:focus,
.abm-form input:focus {
  border-color: var(--abm-red);
  background-color: #fff;
  box-shadow: 0 0 0 .2rem rgba(149, 3, 3, .15);
  outline: 0;
}
.abm-form textarea.form-control { min-height: 150px; }
.abm-form .form-floating > textarea.form-control { height: 150px; }
.abm-form .form-check-input:checked { background-color: var(--abm-red); border-color: var(--abm-red); }
.abm-form .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(149, 3, 3, .15); border-color: var(--abm-red); }
.abm-form .form-check-label { font-weight: 400; font-size: .92rem; }
.abm-form .gdpr-link { color: var(--abm-red); text-decoration: underline; cursor: pointer; }
.abm-form .is-invalid, .abm-form .invalid-feedback { --bs-form-invalid-color: var(--abm-red); --bs-form-invalid-border-color: var(--abm-red); }
.abm-form button[js-bind="form-processor"] { margin-top: 8px; }
@media (max-width: 575.98px) { .abm-form button[js-bind="form-processor"] { width: 100%; } }
/* alert di errore dei form: filetto rosso a sinistra, fondo rosato del brand, icona SVG
   (via mask, non serve aggiungere icone al subset di Material Symbols) */
.alert-danger {
  --bs-alert-color: var(--abm-graphite-900);
  --bs-alert-bg: var(--abm-red-100);
  --bs-alert-border-color: transparent;
  --bs-alert-link-color: var(--abm-red);
  --bs-alert-border-radius: var(--abm-radius);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px 16px 18px;
  border-left: 4px solid var(--abm-red);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
  animation: abm-alert-in .35s var(--abm-ease) both;
}
.alert-danger::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background-color: var(--abm-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 5a1.2 1.2 0 0 1 1.2 1.2v4.6a1.2 1.2 0 0 1-2.4 0V8.2A1.2 1.2 0 0 1 12 7Zm0 8.4a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 5a1.2 1.2 0 0 1 1.2 1.2v4.6a1.2 1.2 0 0 1-2.4 0V8.2A1.2 1.2 0 0 1 12 7Zm0 8.4a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.alert-danger a { font-weight: 600; text-decoration: underline; }
.alert-danger > span:not(.material-symbols-rounded) { flex: 1; }
/* pulsante di chiusura (Bootstrap JS non e' caricato: la chiusura e' in main.js, data-abm-dismiss="alert") */
/* vale anche per il .btn-close di Bootstrap che il vendor mette nell'alert di validazione
   (formErrorContent()): la classe non e' nel CSS purgato e la X si disegna qui con una mask SVG */
.abm-alert-close,
.alert .btn-close {
  position: static;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px -4px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--abm-graphite-700);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.abm-alert-close .material-symbols-rounded { font-size: 20px; }
.alert .btn-close::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M14 2L2 14' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M14 2L2 14' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.abm-alert-close:hover,
.alert .btn-close:hover { background-color: rgba(149, 3, 3, .1); color: var(--abm-red); }
.abm-alert-close:focus-visible,
.alert .btn-close:focus-visible { outline: 2px solid var(--abm-red); outline-offset: 2px; }
.alert-dismissible { padding-right: 20px; }
.alert.is-closing { animation: abm-alert-out .25s ease forwards; }
@keyframes abm-alert-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes abm-alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .alert-danger { animation: none; } }

/* Contatti: griglia a filetti (ispirata a heronaiapp.com/contact-us) */
.abm-contact-page { padding-top: clamp(32px, 4vw, 56px); }
.abm-contact-grid { padding-top: 56px; border-left: var(--abm-hairline); border-right: var(--abm-hairline); }
.abm-contact-grid > .abm-hairline-label-left { left: clamp(16px, 2vw, 24px); }
.abm-contact-grid > .abm-hairline-label-right { right: clamp(16px, 2vw, 24px); }
.abm-contact-head { border-top: var(--abm-hairline); }
/* breadcrumb come etichetta in alto a sinistra */
.abm-contact-crumb nav[aria-label="breadcrumb"] { justify-content: flex-start !important; }
.abm-contact-crumb .breadcrumb { margin: 0; font-size: .74rem; flex-wrap: wrap; }
.abm-contact-crumb .breadcrumb-item, .abm-contact-crumb .breadcrumb-item a { color: var(--abm-steel-600); }
.abm-contact-crumb .breadcrumb-item a:hover { color: var(--abm-red); }
.abm-contact-crumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--abm-red); }
.abm-contact-head-subtitle {
  margin: 0;
  max-width: 460px;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--abm-graphite-800);
  text-wrap: balance;
}

/* riga alta */
.abm-contact-head { display: grid; grid-template-columns: 5fr 7fr; }
.abm-contact-head-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(28px, 3.5vw, 48px);
}
.abm-contact-head-title .abm-eyebrow { margin-bottom: 0; }
.abm-contact-head-heading { margin: 0; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -.02em; }
.abm-contact-head-lead { max-width: 460px; color: var(--abm-text); }
.abm-contact-head-lead p:last-child { margin-bottom: 0; }
.abm-contact-head-title .abm-btn-whatsapp { margin-top: auto; }
/* l'ultima colonna (email) prende la larghezza del suo contenuto, cosi' l'indirizzo email non va a capo */
.abm-contact-head-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; border-left: var(--abm-hairline); }
.abm-contact-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 200px;
  padding: clamp(24px, 2.5vw, 36px);
}
.abm-contact-cell + .abm-contact-cell { border-left: var(--abm-hairline); }
.abm-contact-cell-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--abm-font);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--abm-steel-600);
}
.abm-contact-cell-label .material-symbols-rounded { font-size: 1.15rem; color: var(--abm-red); }
.abm-contact-cell-value, .abm-contact-cell-value a {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--abm-graphite-900);
  word-break: break-word;
}
.abm-contact-cell-value--nowrap { white-space: nowrap; word-break: normal; }
/* desktop medi: piu' spazio alle tre celle, cosi' indirizzo e telefoni non si spezzano accanto all'email su una riga */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .abm-contact-head { grid-template-columns: 4fr 8fr; }
  .abm-contact-head-info .abm-contact-cell { padding-inline: 24px; }
}
a.abm-contact-cell-value:hover, .abm-contact-cell-value a:hover { color: var(--abm-red); }
/* due numeri di telefono uno sotto l'altro: ogni link ha un'area di tocco alta 44px, cosi' non si toccano per sbaglio */
.abm-contact-cell-value a[href^="tel:"] { display: inline-block; padding-block: 10px; margin-block: -10px; }
.abm-contact-cell-value a[href^="tel:"] + br + a[href^="tel:"] { margin-top: 2px; }

/* riga sotto */
.abm-contact-main { display: grid; grid-template-columns: 7fr 5fr; border-top: var(--abm-hairline); }
/* desktop: la mappa parte dallo stesso filetto della cella Indirizzo (5/12) */
@media (min-width: 1200px) { .abm-contact-main { grid-template-columns: 5fr 7fr; } }
.abm-contact-form-wrap { min-width: 0; }
.abm-contact-form-heading {
  margin: 0;
  padding: 26px clamp(24px, 2.5vw, 32px);
  font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem);
  font-weight: 500;
  border-bottom: var(--abm-hairline);
}
.abm-contact-map { position: relative; min-height: 420px; border-left: var(--abm-hairline); background: #fff; }
.abm-contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) brightness(1.06) contrast(1.08); }

/* form "a tabella": campi grandi senza bordi, separati da filetti */
.abm-form-lines .abm-form { --bs-gutter-x: 0; --bs-gutter-y: 0; margin: 0; }
.abm-form-lines .abm-form > [class*="col"] { border-bottom: var(--abm-hairline); }
.abm-form-lines .abm-form > .abm-col-pair-end { border-left: var(--abm-hairline); }
.abm-form-lines .abm-form > [class*="col"]:last-child { border-bottom: 0; }
.abm-form-lines .form-floating > .form-control,
.abm-form-lines .form-floating > .form-select {
  height: 84px;
  padding: 36px clamp(20px, 2.5vw, 32px) 12px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  font-size: 1.15rem;
  font-weight: 400;
}
.abm-form-lines .form-floating > textarea.form-control { height: 170px; min-height: 170px; padding-top: 40px; resize: vertical; }
.abm-form-lines .form-floating > label { padding: 30px clamp(20px, 2.5vw, 32px); font-size: 1rem; color: var(--abm-steel-600); }
.abm-form-lines .form-floating > .form-control:focus ~ label,
.abm-form-lines .form-floating > .form-control:not(:placeholder-shown) ~ label,
.abm-form-lines .form-floating > .form-select ~ label { transform: scale(.8) translateY(-.9rem) translateX(.15rem); color: var(--abm-steel-600); }
/* rossa solo sul campo attivo */
.abm-form-lines .form-floating > .form-control:focus ~ label,
.abm-form-lines .form-floating > .form-select:focus ~ label { color: var(--abm-red); }
.abm-form-lines .form-control:focus,
.abm-form-lines .form-select:focus { background-color: var(--abm-steel-50); box-shadow: inset 0 -2px 0 var(--abm-red); }
.abm-form-lines .invalid-feedback { padding: 0 clamp(20px, 2.5vw, 32px) 12px; }
.abm-form-lines .form-check { padding: 22px clamp(20px, 2.5vw, 32px) 22px calc(clamp(20px, 2.5vw, 32px) + 3em); margin: 0; }
.abm-form-lines .alert { margin: 0; border-radius: 0; }
.abm-form-lines .alert-danger { padding: 20px clamp(20px, 2.5vw, 32px) 20px calc(clamp(20px, 2.5vw, 32px) - 4px); }
.abm-form-lines .abm-form button[js-bind="form-processor"] {
  width: 100%;
  height: 88px;
  margin: 0;
  justify-content: space-between;
  padding: 0 clamp(20px, 2.5vw, 32px);
  font-size: .95rem;
}
.abm-form-lines .abm-form button[js-bind="form-processor"]::after {
  content: "arrow_forward";
  font-family: "Material Symbols Rounded";
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  transition: transform .3s var(--abm-ease);
}
.abm-form-lines .abm-form button[js-bind="form-processor"]:hover::after { transform: translateX(4px); }

/* WhatsApp */
/* verde WhatsApp scurito: testo bianco leggibile (contrasto 5:1, il #25d366 originale e' 2:1) */
.abm-btn-whatsapp { background: #15803d; color: #fff; gap: 10px; }
.abm-btn-whatsapp:hover, .abm-btn-whatsapp:focus-visible { background: #0e6b35; color: #fff; }
.abm-btn-whatsapp-icon svg { width: 20px; height: 20px; fill: currentColor; display: block; }

@media (max-width: 1199.98px) {
  .abm-contact-head { grid-template-columns: 1fr; }
  .abm-contact-head-info { border-left: 0; border-top: var(--abm-hairline); }
}
@media (max-width: 991.98px) {
  .abm-contact-main { grid-template-columns: 1fr; }
  .abm-contact-map { min-height: 320px; margin-top: 32px; border-left: 0; border-top: var(--abm-hairline); }
}
@media (max-width: 767.98px) {
  .abm-contact-grid { border-left: 0; border-right: 0; padding-top: 52px; }
  .abm-contact-grid > .abm-hairline-label-left { left: 0; max-width: 100%; }
  .abm-contact-grid > .abm-hairline-label-right { display: none; }
  .abm-contact-head-title { padding: 28px 0; }
  .abm-contact-head-info { grid-template-columns: 1fr; }
  .abm-contact-cell { min-height: 0; gap: 10px; padding: 20px 0; }
  .abm-contact-cell + .abm-contact-cell { border-left: 0; border-top: var(--abm-hairline); }
  .abm-contact-form-heading { padding-left: 0; padding-right: 0; }
  .abm-form-lines .abm-form > .abm-col-pair-end { border-left: 0; }
}

/* Thank you / 404 */
.abm-thankyou-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: var(--abm-red);
  color: #fff;
}
.abm-thankyou-icon .material-symbols-rounded { font-size: 3rem; }
.abm-404 { min-height: 60vh; display: flex; align-items: center; background: var(--abm-steel-gradient); }
.abm-404-title {
  font-size: clamp(6rem, 4rem + 10vw, 12rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(180deg, var(--abm-graphite-700) 0%, var(--abm-graphite-950) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.abm-404-subtitle { font-size: 1.5rem; font-weight: 700; color: var(--abm-red); margin: 10px 0 12px; }
.abm-404-text { color: var(--abm-text-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.abm-footer { background: var(--abm-graphite-950); color: var(--abm-steel-300); font-size: .95rem; }
.abm-footer-main {
  position: relative;
  padding: clamp(60px, 7vw, 96px) 0 clamp(48px, 5vw, 64px);
  background-image: var(--abm-brushed);
  border-top: 4px solid var(--abm-red);
}
/* loghi A.B. Meccanica + F.P. Meccanica affiancati */
.abm-footer-brand { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.abm-footer-logo { display: inline-flex; flex-shrink: 0; }
.abm-footer-logo img { width: 120px; height: auto; }
.abm-footer-logo-fp { width: 120px; height: auto; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .2); box-sizing: content-box; }
.abm-footer-claim {
  margin: 0;
  white-space: nowrap;
  font-family: var(--abm-font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--abm-steel-300);
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .abm-footer-brand { gap: 16px; }
  .abm-footer-logo-fp { padding-left: 16px; }
  .abm-footer-claim { font-size: .64rem; letter-spacing: .1em; }
}
@media (max-width: 575.98px) {
  .abm-footer-brand { gap: 16px; }
  .abm-footer-logo-fp { padding-left: 16px; }
  .abm-footer-claim { font-size: .64rem; letter-spacing: .1em; }
}
.abm-footer-title {
  position: relative;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.abm-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--abm-red); }
.abm-footer-links { list-style: none; margin: 0; padding: 0; }
.abm-footer-links li + li { margin-top: 8px; }
.abm-footer a { color: var(--abm-steel-300); }
.abm-footer a:hover { color: #fff; }
.abm-footer-links a { display: inline-block; transition: color .2s ease, transform .25s var(--abm-ease); }
.abm-footer-links a:hover { transform: translateX(4px); }
.abm-footer-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.abm-footer-contacts li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.abm-footer-contacts .material-symbols-rounded { color: var(--abm-red-500); font-size: 1.25rem; margin-top: 2px; }
/* icona WhatsApp (svg) allineata alle icone Material dei contatti */
.abm-footer-whatsapp-icon { flex: none; display: inline-flex; width: 1.25rem; height: 1.25rem; margin-top: 2px; color: var(--abm-red-500); }
.abm-footer-whatsapp-icon svg { width: 100%; height: 100%; fill: currentColor; }
.abm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; }
.abm-footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.abm-footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Barra GDPR (come gli ultimi progetti) */
.abm-gdpr-bar { background: #000; padding: 1rem 0; }
.abm-gdpr-bar #cookies-manager-list-of-choices-made { color: #cfd2cb; font-size: .82rem; }
.abm-gdpr-bar #cookies-manager-list-of-choices-made a { color: #cfd2cb; }
.abm-gdpr-bar #cookies-manager-list-of-choices-made a:hover { color: #fff; }
@media (max-width: 991.98px) {
  #cookies-manager-list-of-choices-made div { display: inline-block !important; }
}

/* --------------------------------------------------------------------------
   WhatsApp e torna su
   -------------------------------------------------------------------------- */
.abm-whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1021;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  animation: abm-whatsapp-breathe 2.6s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.abm-whatsapp-float svg { width: 30px; height: 30px; fill: #fff; position: relative; z-index: 2; flex-shrink: 0; }
.abm-whatsapp-float:hover { transform: scale(1.1) rotate(6deg); box-shadow: 0 10px 30px rgba(37, 211, 102, .65); animation-play-state: paused; }
.abm-whatsapp-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .55;
  animation: abm-whatsapp-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}
.abm-whatsapp-float:hover .abm-whatsapp-float-ring { animation-play-state: paused; opacity: 0; }
@keyframes abm-whatsapp-ping { 0% { transform: scale(1); opacity: .5; } 75%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes abm-whatsapp-breathe { 0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45); } 50% { box-shadow: 0 8px 30px rgba(37, 211, 102, .7); } }

.abm-back-to-top {
  position: fixed;
  right: calc(1.5rem + 8px);
  /* sopra il pulsante WhatsApp (60px) e il suo alone animato (scala 1.7), con margine */
  bottom: calc(1.5rem + 60px + 48px);
  z-index: 1020;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--abm-graphite-900);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .25s ease;
}
.abm-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.abm-back-to-top:hover { background: var(--abm-red); }

@media (max-width: 575.98px) {
  .abm-whatsapp-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .abm-whatsapp-float svg { width: 26px; height: 26px; }
  .abm-back-to-top { right: calc(1rem + 6px); bottom: calc(1rem + 52px + 40px); width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .abm-whatsapp-float, .abm-whatsapp-float-ring { animation: none; }
  .abm-whatsapp-float-ring { display: none; }
}

/* --------------------------------------------------------------------------
   Altre lavorazioni (scheda lavorazione, sotto la CTA): box quadrati a filetto
   -------------------------------------------------------------------------- */
.abm-other-workings-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
@media (min-width: 992px) {
  .abm-other-workings-grid { grid-template-columns: repeat(var(--abm-other-workings-cols, 3), minmax(0, 1fr)); }
}
.abm-other-working {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: clamp(16px, 2vw, 28px);
  border: var(--abm-hairline);
  outline: 1px solid transparent;
  outline-offset: 6px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--abm-graphite-900);
  transition: outline-color .3s ease, box-shadow .3s var(--abm-ease);
}
/* foto a tutto box + velatura scura dal basso per la leggibilita' del titolo */
.abm-other-working-media { position: absolute; inset: 0; z-index: -1; }
.abm-other-working-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--abm-ease), filter .5s ease;
  filter: grayscale(.35);
}
.abm-other-working-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 19, 22, .55) 0%, rgba(17, 19, 22, 0) 28%, rgba(17, 19, 22, .15) 50%, rgba(17, 19, 22, .88) 100%);
  transition: opacity .4s ease;
}
/* segnaposto cover.svg (rosso con ingranaggio, sfuma al bianco in basso): velatura scura piu' decisa
   in basso e numero bianco, cosi' testo e frecce restano bianchi come nei box con foto */
.abm-other-working.is-cover { background: var(--abm-red); }
.abm-other-working.is-cover .abm-other-working-media img { filter: none; }
.abm-other-working.is-cover .abm-other-working-media::after {
  background: linear-gradient(180deg, rgba(17, 19, 22, 0) 35%, rgba(17, 19, 22, .55) 70%, rgba(17, 19, 22, .92) 100%);
}
/* filetto rosso che si allunga sul bordo inferiore all'hover */
.abm-other-working::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--abm-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--abm-ease);
}
.abm-other-working-top { display: flex; align-items: center; justify-content: space-between; }
.abm-other-working-num { font-family: var(--abm-font); font-size: .82rem; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .85); }
.abm-other-working-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.abm-other-working-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.abm-other-working-title {
  margin: 0;
  color: inherit;
  font-family: var(--abm-font);
  font-size: clamp(1.15rem, .9rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.abm-other-working-subtitle { font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 32ch; }
.abm-other-working-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--abm-ease);
}
.abm-other-working:hover { color: #fff; outline-color: var(--abm-steel-300); box-shadow: var(--abm-shadow); }
.abm-other-working:hover::before { transform: scaleX(1); }
.abm-other-working:hover .abm-other-working-media img { transform: scale(1.06); filter: grayscale(0); }
.abm-other-working:hover .abm-other-working-arrow { background: var(--abm-red); border-color: var(--abm-red); color: #fff; transform: translateX(4px); }
/* da mobile: carosello a scorrimento orizzontale, un box alla volta, con indicatori sotto (creati da main.js).
   Stessa resa per le ultime news in home (.abm-mobile-carousel sulla .row di Bootstrap) */
.abm-carousel-dots { display: none; }
@media (max-width: 767.98px) {
  .abm-mobile-carousel {
    --bs-gutter-x: 0;
    flex-wrap: nowrap;
    column-gap: 12px;
    margin-inline: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .abm-mobile-carousel::-webkit-scrollbar { display: none; }
  .abm-mobile-carousel > * { flex: 0 0 100%; scroll-snap-align: start; }
  .abm-other-workings-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .abm-other-workings-grid::-webkit-scrollbar { display: none; }
  .abm-other-workings-grid > li { flex: 0 0 100%; scroll-snap-align: start; }
  .abm-carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
  .abm-carousel-dot {
    width: 36px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .abm-carousel-dot::before {
    content: "";
    display: block;
    width: 28px;
    height: 4px;
    margin: 0 auto;
    background: var(--abm-steel-200);
    transition: background-color .25s ease, width .25s ease;
  }
  .abm-carousel-dot.is-active { width: 52px; }
  .abm-carousel-dot.is-active::before { width: 44px; background: var(--abm-red); }
}
@media (prefers-reduced-motion: reduce) {
  .abm-other-working::before,
  .abm-other-working-media img,
  .abm-other-working-arrow { transition: none; }
  .abm-other-working:hover .abm-other-working-media img { transform: none; }
}

/* --------------------------------------------------------------------------
   Azienda: evoluzione da F.P. Meccanica (fascia scura come il footer, due loghi)
   -------------------------------------------------------------------------- */
.abm-evolution-box {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(72px, 7vw, 104px) clamp(24px, 5vw, 72px) clamp(48px, 5vw, 72px);
  background: var(--abm-brushed), var(--abm-graphite-950);
  color: var(--abm-steel-300);
}
.abm-evolution-box > .abm-hairline-label-left { left: clamp(16px, 2vw, 24px); }
.abm-evolution-box > .abm-hairline-label-right { right: clamp(16px, 2vw, 24px); }
/* loghi affiancati come nel footer: FP -> AB, separati da un filetto con la freccia al centro */
.abm-evolution-logos { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px); }
.abm-evolution-logos img { width: clamp(110px, 12vw, 170px); height: auto; }
.abm-evolution-logo-fp { opacity: .9; }
.abm-evolution-arrow {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--abm-red-500);
  background: var(--abm-graphite-950);
}
.abm-evolution-arrow::before,
.abm-evolution-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: clamp(36px, 4vw, 56px);
  background: rgba(255, 255, 255, .2);
}
.abm-evolution-arrow::before { bottom: 100%; }
.abm-evolution-arrow::after { top: 100%; }
.abm-evolution-title { margin: 0 0 20px; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.abm-evolution-text { color: var(--abm-steel-300); }
.abm-evolution-text p:last-child { margin-bottom: 0; }
.abm-evolution-text strong { color: #fff; font-weight: 600; }
@media (max-width: 991.98px) {
  .abm-evolution-box { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .abm-evolution-arrow { width: 40px; height: 40px; }
  .abm-evolution-arrow::before, .abm-evolution-arrow::after { display: none; }
}

/* --------------------------------------------------------------------------
   Prestazioni: le sezioni della home sotto la piega vengono calcolate e disegnate solo quando
   si avvicinano allo schermo (meno lavoro al caricamento, TBT di PageSpeed).
   contain-intrinsic-size "auto": finche' non e' mai stata visibile la sezione occupa un'altezza stimata,
   poi il browser ricorda quella reale
   -------------------------------------------------------------------------- */
.abm-home-workings,
.abm-home-about,
.abm-home-machines,
.abm-home-blog {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* --------------------------------------------------------------------------
   Certificazione ISO 9001 (PDF nell'atom iso_certificate della Home):
   box sotto la slide in home, footer, sezione nella pagina Azienda
   -------------------------------------------------------------------------- */
.abm-award-item .abm-award-text { display: block; }
a.abm-award-item { text-decoration: none; }
a.abm-award-item:hover, a.abm-award-item:focus-visible { color: #fff; }
.abm-award-icon-badge { width: 96px; height: 96px; background: transparent; }
.abm-award-icon-badge img { position: relative; display: block; width: 100%; height: 100%; }
.abm-award-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-family: var(--abm-font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  transition: border-color .3s ease;
}
a.abm-award-item:hover .abm-award-link { border-color: #fff; }

.abm-footer-iso { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; color: #fff; }
.abm-footer-iso img { width: 64px; height: 64px; flex: none; }
.abm-footer-iso-title { display: block; font-family: var(--abm-font); font-size: .9rem; font-weight: 600; color: #fff; }
.abm-footer-iso-link { display: block; margin-top: 2px; font-size: .82rem; color: var(--abm-steel-300); transition: color .2s ease; }
.abm-footer-iso:hover .abm-footer-iso-link { color: var(--abm-red-500); }

.abm-iso-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(36px, 5vw, 56px);
}
.abm-iso-box > .abm-hairline-label-left { left: clamp(16px, 2vw, 24px); }
.abm-iso-badge { display: block; width: clamp(120px, 14vw, 160px); transition: transform .4s var(--abm-ease); }
.abm-iso-badge img { display: block; width: 100%; height: auto; }
.abm-iso-badge:hover { transform: rotate(-6deg) scale(1.03); }
.abm-iso-title { margin: 0 0 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.abm-iso-text { margin: 0 0 24px; max-width: 62ch; color: var(--abm-text); line-height: 1.6; }
@media (max-width: 575.98px) {
  .abm-iso-box { grid-template-columns: 1fr; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .abm-iso-badge { transition: none; }
  .abm-iso-badge:hover { transform: none; }
}
