/* Giglio Antonio - New Edil — stili globali sito (home + interne) */

:root {
  --fp-primary: #2d2d2d;
  --fp-accent: #ff6600;
  --fp-white: #ffffff;
  --ksi-primary: var(--fp-primary);
  --ksi-secondary: var(--fp-accent);
  --ksi-accent: var(--fp-accent);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad-y: clamp(5.5rem, 10vw, 9rem);
  --fp-nav-bar-h: 5rem;
  --fp-nav-logo-h: 4.375rem;
  --fp-header-offset: calc(var(--fp-nav-bar-h) + env(safe-area-inset-top, 0px));
}

/* Nessuno scroll animato sulle ancore; offset per header fisso */
html {
  scroll-behavior: auto !important;
  scroll-padding-top: var(--fp-header-offset);
  overflow-x: clip;
  background-color: #2d2d2d;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Ancoraggi (#logistica, ecc.): niente salto scroll finché la pagina non è pronta */
html[data-fp-hash-load] body {
  opacity: 0;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
  margin: 0;
  opacity: 1;
}

body.bg-charcoal {
  background-color: #2d2d2d;
  color: #fff;
}

body.bg-concrete {
  background-color: #f3f4f6;
  color: #2d2d2d;
}

/* Fallback critici prima del parse Tailwind CDN */
.bg-charcoal {
  background-color: #2d2d2d;
}

.bg-concrete {
  background-color: #f3f4f6;
}

.bg-white {
  background-color: #fff;
}

.text-white {
  color: #fff;
}

.text-charcoal {
  color: #2d2d2d;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.chi-siamo-hero-title,
.secondary-hero-inner h1 {
  font-family: "Montserrat", sans-serif;
}

/* Badge hero index: una sola riga anche su mobile */
.index-hero-badge {
  white-space: nowrap;
}

/* CTA finali index / chi siamo: gradiente a tutta larghezza */
.ksi-cta-full,
.fp-cta-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 50%, #1a1a1a 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 102, 0, 0.08), transparent 58%),
    linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.22) 100%);
  z-index: 0;
}

.hero-bg > * {
  position: relative;
  z-index: 1;
}

/* CTA / bottoni accent (classi Tailwind bg-orange sul markup) */
a.bg-orange,
button.bg-orange,
input[type="button"].bg-orange,
input[type="submit"].bg-orange {
  background: linear-gradient(180deg, #ff8533 0%, var(--fp-accent) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 18px rgba(255, 102, 0, 0.35);
}

[class*="bg-orange/"] {
  box-shadow: 0 0 0 1px rgba(255, 200, 170, 0.25), 0 0 16px rgba(255, 77, 0, 0.22);
}

a.bg-orange:hover,
button.bg-orange:hover,
input[type="button"].bg-orange:hover,
input[type="submit"].bg-orange:hover {
  background: linear-gradient(180deg, #ff8f5c 0%, #ff6a33 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 24px rgba(255, 77, 0, 0.45);
}

.hero-title .text-orange {
  color: var(--fp-accent);
  -webkit-text-fill-color: var(--fp-accent);
  background: none;
}

/* Titolo principale hero: ombra per leggibilità */
.hero-bg .hero-title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 14px rgba(0, 0, 0, 0.32), 0 4px 28px rgba(0, 0, 0, 0.18);
}

.hero-bg .hero-title .text-orange {
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.52)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.36));
}

.hero-bg .max-w-4xl > p,
.hero-bg .index-hero-lead {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.hero-bg .index-hero-highlights {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

/* Index — testo hero sulla foto */
.hero-bg .index-hero-title {
  font-weight: 700;
  font-size: clamp(1.6875rem, 5.2vw + 0.35rem, 2.375rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.hero-bg .index-hero-lead {
  font-weight: 500;
  font-size: clamp(0.9375rem, 2.4vw + 0.5rem, 1.0625rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
  .hero-bg .index-hero-title {
    font-size: clamp(2.75rem, 3.45vw + 1rem, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .hero-bg .index-hero-lead {
    font-size: clamp(1.0625rem, 0.55vw + 0.85rem, 1.25rem);
    line-height: 1.72;
    max-width: 38rem;
  }
}

.hero-bg {
  background-image: linear-gradient(115deg, rgba(45, 45, 45, 0.78), rgba(26, 26, 26, 0.62)),
    url("../immagini/hero-mobile.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 769px) {
  .hero-bg {
    background-image: linear-gradient(115deg, rgba(45, 45, 45, 0.64), rgba(26, 26, 26, 0.46)),
      url("../immagini/hero-industriale.jpg");
  }

  .hero-bg::after {
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 102, 0, 0.08), transparent 58%),
      linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.14) 100%);
  }
}

@media (min-width: 1024px) {
  .hero-bg {
    background-image: linear-gradient(115deg, rgba(45, 45, 45, 0.52), rgba(26, 26, 26, 0.36)),
      url("../immagini/hero-industriale.jpg");
  }
}

/* Index — hero desktop: composizione e ritmo verticale */
@media (min-width: 1024px) {
  section.hero-bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: var(--fp-header-offset, 6.5rem) !important;
    padding-bottom: 0;
  }

  section.hero-bg > div:first-of-type {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-top: clamp(0.75rem, 2.5vh, 1.75rem) !important;
    padding-bottom: clamp(2.75rem, 7.5vh, 4.75rem) !important;
  }

  .hero-bg .index-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-bg .index-hero-badge {
    margin: 0 0 1.75rem !important;
    padding: 0.5rem 1.125rem;
    letter-spacing: 0.18em;
  }

  .hero-bg .index-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.375rem;
    width: 100%;
    max-width: 42rem;
    margin: 0 !important;
  }

  .hero-bg .index-hero-copy .index-hero-title {
    margin: 0;
    max-width: 12.5em;
    line-height: 1.08;
    letter-spacing: -0.032em;
  }

  .hero-bg .index-hero-copy .index-hero-lead {
    margin: 0 !important;
    max-width: 34rem;
    line-height: 1.7;
    color: rgba(241, 245, 249, 0.94);
  }

  .hero-bg .index-hero-ctas {
    margin: 2.125rem 0 0 !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem 1rem;
  }

  .hero-bg .index-hero-ctas a {
    min-height: 3rem;
    padding-inline: 1.75rem;
  }

  .hero-bg .index-hero-highlights {
    margin: 2.5rem 0 0 !important;
    width: 100%;
    max-width: min(64rem, 100%);
    padding-top: 1.625rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

@media (min-width: 1280px) {
  section.hero-bg > div:first-of-type {
    padding-bottom: clamp(3rem, 8vh, 5.25rem) !important;
  }

  .hero-bg .index-hero-copy {
    max-width: 44rem;
  }

  .hero-bg .index-hero-copy .index-hero-title {
    max-width: 13em;
  }

  .hero-bg .index-hero-copy .index-hero-lead {
    max-width: 36rem;
  }

  .hero-bg .index-hero-ctas {
    margin-top: 2.375rem !important;
    gap: 1rem 1.125rem;
  }

  .hero-bg .index-hero-highlights {
    max-width: min(68rem, 100%);
    margin-top: 2.75rem !important;
    padding-top: 1.75rem;
    font-size: 0.875rem;
  }
}

/* Home — 4 icone hero su una riga (2x2 mobile) */
.index-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.index-hero-highlights__item {
  display: flex;
  flex: 1 1 calc(50% - 0.375rem);
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 0;
  text-align: left;
}

.index-hero-highlights__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--fp-accent);
}

.index-hero-highlights__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.index-hero-highlights__text {
  min-width: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .index-hero-highlights__item {
    flex: 1 1 calc(25% - 0.75rem);
    justify-content: flex-start;
    padding-right: 0.75rem;
  }

  .index-hero-highlights__item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  #site-header {
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #site-header.glass-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-fp-site="costruzioni"] body:not(.bg-concrete):not(.bg-white) #site-header:not(.nav-scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
  }

  body:not(.bg-concrete) #site-header.nav-scrolled {
    box-shadow: none !important;
    border-bottom: none !important;
  }

  body.bg-concrete #site-header,
  body.bg-white #site-header {
    border-bottom: none !important;
    box-shadow: none !important;
  }

  body.bg-concrete #site-header.nav-scrolled,
  body.bg-white #site-header.nav-scrolled {
    box-shadow: none !important;
    border-bottom: none !important;
  }

  #site-header .fp-header-inner {
    align-items: center;
  }

  #mobile-menu.fp-mobile-panel {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  #site-header #mobile-menu-button {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
  }

  #site-header:not(.nav-scrolled) #mobile-menu-button {
    color: #fff !important;
  }

  #site-header #mobile-menu-button svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  #site-header #mobile-menu-button svg * {
    stroke-width: 1.35px;
  }

  #site-header.nav-scrolled #mobile-menu-button {
    border: none !important;
    color: #1a2b4c !important;
  }

  /* Index — hero mobile: contenuto distribuito su tutta l’altezza foto */
  section.hero-bg {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 5.25rem !important;
    background-position: center center;
  }

  section.hero-bg > div:first-of-type {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: calc(100svh - 5.25rem);
    min-height: calc(100dvh - 5.25rem);
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
    padding-top: 0.75rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .hero-bg .index-hero-stack,
  .hero-bg .max-w-4xl {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    text-align: center;
  }

  .hero-bg .index-hero-stack > .index-hero-badge,
  .hero-bg .index-hero-stack > .index-hero-copy,
  .hero-bg .index-hero-stack > .index-hero-ctas,
  .hero-bg .index-hero-stack > .index-hero-highlights,
  .hero-bg .max-w-4xl > .index-hero-badge,
  .hero-bg .max-w-4xl > .index-hero-copy,
  .hero-bg .max-w-4xl > .index-hero-ctas,
  .hero-bg .max-w-4xl > .index-hero-highlights {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-bg .index-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 20.5rem;
  }

  .hero-bg .index-hero-copy .index-hero-lead {
    margin-top: 0 !important;
  }

  .hero-bg .index-hero-badge {
    max-width: calc(100% - 0.5rem);
    padding: 0.4375rem 0.875rem;
    gap: 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.25;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .hero-bg .index-hero-badge > span[aria-hidden="true"] {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
  }

  .hero-bg .index-hero-copy .index-hero-title {
    max-width: 17em;
    font-size: clamp(1.9375rem, 9.2vw, 2.4375rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .hero-bg .index-hero-copy .index-hero-lead {
    max-width: 100%;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.58;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
  }

  .hero-bg .index-hero-ctas {
    width: 100%;
    max-width: 20.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }

  .hero-bg .index-hero-ctas a {
    width: 100%;
    min-height: 2.875rem;
    justify-content: center;
    padding: 0.6875rem 1.25rem;
    font-size: 0.6875rem;
    letter-spacing: 0.11em;
  }

  .hero-bg .index-hero-ctas a i {
    height: 0.9375rem;
    width: 0.9375rem;
  }

  .hero-bg .index-hero-highlights {
    width: 100%;
    max-width: 20.5rem;
    padding-top: 0;
    border-top: none;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .hero-bg .index-hero-highlights li {
    justify-content: center;
    gap: 0.4375rem;
  }

  .hero-bg .index-hero-highlights li span[aria-hidden="true"] {
    font-size: 1rem;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .hero-bg .index-hero-badge {
    white-space: normal;
    line-height: 1.35;
    letter-spacing: 0.1em;
  }

  .hero-bg .index-hero-copy .index-hero-title {
    max-width: 100%;
    font-size: clamp(1.8125rem, 8.5vw, 2.1875rem);
  }
}

.glass-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#site-header {
  z-index: 100;
  isolation: isolate;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#site-header .fp-header-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
}

#site-header #mobile-menu-button {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}

#site-header #mobile-menu-button svg {
  pointer-events: none;
}

#site-header.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: rgba(26, 43, 76, 0.12) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

#site-header.nav-scrolled #mobile-menu-button {
  color: #1a2b4c !important;
  border-color: rgba(26, 43, 76, 0.28) !important;
}

#site-header.nav-scrolled #mobile-menu-button:hover {
  border-color: rgba(255, 102, 0, 0.55) !important;
  color: var(--fp-accent) !important;
}

#site-header.nav-scrolled .fp-header-inner nav a:not(.bg-orange),
#site-header.nav-scrolled .fp-header-inner nav .nav-dropdown-toggle {
  color: #1a2b4c !important;
  font-weight: 300;
}

#site-header.nav-scrolled .fp-header-inner nav a:not(.bg-orange):hover,
#site-header.nav-scrolled .fp-header-inner nav .nav-dropdown-toggle:hover {
  color: var(--fp-accent) !important;
}

#site-header:not(.nav-scrolled) .fp-header-inner nav .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

#site-header.nav-scrolled .fp-header-inner nav a.text-orange,
#site-header.nav-scrolled .fp-header-inner nav .nav-dropdown-toggle.text-orange {
  color: var(--fp-accent) !important;
}

#site-header.nav-scrolled .fp-header-inner nav a.text-ice {
  color: var(--fp-accent) !important;
}

#site-header.nav-scrolled .fp-header-inner nav a.text-ice:hover {
  color: #1a1a1a !important;
}

/* Navbar — trasparente in cima, bianca allo scroll */
html[data-fp-site="costruzioni"] #site-header:not(.nav-scrolled) {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-fp-site="costruzioni"] #site-header .fp-header-inner {
  align-items: center;
  min-height: var(--fp-nav-bar-h);
  padding-top: calc(0.375rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.375rem;
}

html[data-fp-site="costruzioni"] #site-header .navbar-brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: auto;
  line-height: 0;
  transition: opacity 0.35s ease;
}

html[data-fp-site="costruzioni"] #site-header .navbar-brand-img {
  display: block;
  height: var(--fp-nav-logo-h) !important;
  max-height: calc(var(--fp-nav-bar-h) - 0.5rem) !important;
  width: auto;
  max-width: min(68vw, 20rem);
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

html[data-fp-site="costruzioni"] body.bg-charcoal #site-header:not(.nav-scrolled) .fp-header-inner nav a:not(.bg-orange),
html[data-fp-site="costruzioni"] body.bg-charcoal #site-header:not(.nav-scrolled) .fp-header-inner nav .nav-dropdown-toggle {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

html[data-fp-site="costruzioni"] body.bg-concrete #site-header:not(.nav-scrolled) .fp-header-inner nav a:not(.bg-orange),
html[data-fp-site="costruzioni"] body.bg-concrete #site-header:not(.nav-scrolled) .fp-header-inner nav .nav-dropdown-toggle {
  color: #1a2b4c !important;
  text-shadow: none;
}

html[data-fp-site="costruzioni"] body.bg-concrete #site-header:not(.nav-scrolled) #mobile-menu-button {
  color: #1a2b4c !important;
  border-color: rgba(26, 43, 76, 0.28) !important;
}

html[data-fp-site="costruzioni"] .secondary-hero-bg.secondary-hero-bg--compact {
  padding-top: max(5.25rem, calc(env(safe-area-inset-top, 0px) + var(--fp-nav-bar-h)));
}

@media (min-width: 769px) {
  html[data-fp-site="costruzioni"] {
    --fp-nav-bar-h: 5.125rem;
    --fp-nav-logo-h: 4.625rem;
  }

  html[data-fp-site="costruzioni"] #site-header .navbar-brand-img {
    max-width: min(72vw, 19.5rem);
  }

  html[data-fp-site="costruzioni"] .secondary-hero-bg.secondary-hero-bg--compact {
    padding-top: max(5.75rem, calc(env(safe-area-inset-top, 0px) + var(--fp-nav-bar-h)));
  }
}

/* Desktop — navbar compatta ed elegante */
@media (min-width: 1024px) {
  html[data-fp-site="costruzioni"] {
    --fp-nav-bar-h: 6rem;
    --fp-nav-logo-h: 5.25rem;
  }

  #site-header .fp-header-inner {
    padding-top: calc(0.625rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.625rem;
  }

  html[data-fp-site="costruzioni"] #site-header .navbar-brand-img {
    max-height: calc(var(--fp-nav-bar-h) - 0.625rem) !important;
    max-width: 21.5rem;
  }

  #site-header .fp-header-inner > div.hidden {
    gap: 1.5rem;
  }

  #site-header .fp-header-inner nav {
    gap: 1.375rem;
    font-size: 0.875rem;
    letter-spacing: 0.065em;
  }

  #site-header .fp-header-inner nav .nav-dropdown-toggle {
    font-size: inherit;
    letter-spacing: inherit;
  }

  #site-header .fp-header-inner nav [data-lucide="chevron-down"] {
    width: 1rem;
    height: 1rem;
  }

  #site-header .fp-header-inner a.rounded-full.bg-orange {
    padding: 0.625rem 1.375rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }

  html[data-fp-site="costruzioni"] .secondary-hero-bg.secondary-hero-bg--compact {
    padding-top: max(6.25rem, calc(env(safe-area-inset-top, 0px) + var(--fp-nav-bar-h)));
  }

  #produzione,
  #logistica,
  #perche-sceglierci {
    scroll-margin-top: var(--fp-header-offset);
  }
}

@media (min-width: 1280px) {
  html[data-fp-site="costruzioni"] {
    --fp-nav-logo-h: 5.375rem;
  }

  #site-header .fp-header-inner {
    padding-top: calc(0.6875rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.6875rem;
  }

  html[data-fp-site="costruzioni"] #site-header .navbar-brand-img {
    max-width: 22rem;
  }

  #site-header .fp-header-inner > div.hidden {
    gap: 1.75rem;
  }

  #site-header .fp-header-inner nav {
    gap: 1.5rem;
    font-size: 0.90625rem;
  }

  #site-header .fp-header-inner a.rounded-full.bg-orange {
    padding: 0.6875rem 1.5rem;
    font-size: 0.875rem;
  }
}

html[data-fp-site="costruzioni"] body.bg-white #site-header:not(.nav-scrolled) {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

body.bg-white #site-header.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: rgba(26, 43, 76, 0.12) !important;
}

body.bg-white #site-header .fp-header-inner nav a:not(.bg-orange) {
  color: #1a2b4c !important;
}

body.bg-white #site-header .fp-header-inner nav a.text-ice,
body.bg-white #site-header .fp-header-inner nav a.text-orange {
  color: var(--fp-accent) !important;
}

body.bg-white #site-header #mobile-menu-button {
  color: #1a2b4c !important;
  border-color: rgba(26, 43, 76, 0.28) !important;
}

/* Contatti — sinistra: email + chiamata (50% + 50%); destra: contatti (altezza = somma sinistra) */
.fp-contatti-layout {
  align-items: stretch;
}

.fp-contatti-grid {
  align-items: stretch;
}

.fp-contatti-card {
  display: flex;
  flex-direction: column;
}

.fp-contatti-col--left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .fp-contatti-col--left,
  .fp-contatti-layout > .fp-contatti-card--info {
    height: 100%;
  }

  .fp-contatti-col--left {
    min-height: 100%;
  }

  .fp-contatti-col--left .fp-contatti-card {
    flex: 1 1 0;
    min-height: 0;
  }

  .fp-contatti-layout > .fp-contatti-card--info {
    min-height: 100%;
  }
}

.fp-contatti-phones {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fp-contatti-phones li + li {
  margin-top: 0.375rem;
}

.fp-contatti-email-btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ff8533 0%, #ff6600 100%);
  box-shadow: 0 10px 28px rgba(255, 102, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.fp-contatti-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 102, 0, 0.38);
  background: linear-gradient(180deg, #ff944d 0%, #ff751a 100%);
  color: #fff;
}

.fp-contatti-card__body {
  flex: 1 1 auto;
}

.fp-contatti-card__cta {
  margin-top: auto;
  flex-shrink: 0;
}

/* Menu dropdown Pannelli — desktop */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  min-width: 14rem;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2d2d2d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 102, 0, 0.12);
  color: var(--fp-accent);
}

#site-header.nav-scrolled .nav-dropdown-menu {
  background: #fff;
  border-color: rgba(45, 45, 45, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

#site-header.nav-scrolled .nav-dropdown-menu a {
  color: #2d2d2d;
}

#site-header.nav-scrolled .nav-dropdown-menu a:hover {
  color: var(--fp-accent);
}

.nav-dropdown-mobile > summary {
  list-style: none;
}

.nav-dropdown-mobile > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-mobile .nav-dropdown-menu-mobile {
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
}

.nav-dropdown-mobile .nav-dropdown-menu-mobile a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.85);
}

.nav-dropdown-mobile .nav-dropdown-menu-mobile a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fp-accent);
}

/* Menu mobile: voci comode, CTA a tutta larghezza */
#mobile-menu.ksi-mobile-panel,
#mobile-menu.fp-mobile-panel {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

#mobile-menu.ksi-mobile-panel .ksi-mobile-nav > a:not(.ksi-mobile-nav-cta),
#mobile-menu.fp-mobile-panel .fp-mobile-nav > a:not(.fp-mobile-nav-cta),
#mobile-menu.fp-mobile-panel .fp-mobile-nav .nav-dropdown-mobile .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
}

#mobile-menu.ksi-mobile-panel .ksi-mobile-nav > a:not(.ksi-mobile-nav-cta):hover,
#mobile-menu.ksi-mobile-panel .ksi-mobile-nav > a:not(.ksi-mobile-nav-cta):focus-visible,
#mobile-menu.fp-mobile-panel .fp-mobile-nav > a:not(.fp-mobile-nav-cta):hover,
#mobile-menu.fp-mobile-panel .fp-mobile-nav > a:not(.fp-mobile-nav-cta):focus-visible,
#mobile-menu.fp-mobile-panel .fp-mobile-nav .nav-dropdown-toggle:hover,
#mobile-menu.fp-mobile-panel .fp-mobile-nav .nav-dropdown-toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.07);
  outline: none;
}

#mobile-menu.ksi-mobile-panel .ksi-mobile-nav-cta,
#mobile-menu.fp-mobile-panel .fp-mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

html.ksi-cert-lightbox-open #site-header {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Loghi partner: sempre a colori, leggermente più grandi, cliccabili */
button.partner-logo-tile {
  display: flex;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}

button.partner-logo-tile:focus-visible {
  outline: 2px solid var(--ksi-secondary);
  outline-offset: 3px;
}

.partner-logo-tile .partner-logo-img {
  filter: none;
  opacity: 1;
  width: auto;
  height: auto;
  max-height: 4.25rem;
  max-width: min(92%, 11.25rem);
  object-fit: contain;
  pointer-events: none;
}

@media (min-width: 768px) {
  .partner-logo-tile .partner-logo-img {
    max-height: 5rem;
    max-width: min(92%, 12.75rem);
  }
}

/* Lightbox logo partner */
.partner-logo-lightbox {
  align-items: center;
  justify-content: center;
  background: rgba(5, 26, 46, 0.94);
  padding: 1.5rem;
}

.partner-logo-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  transition: background-color 0.25s ease;
}

.partner-logo-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

#partner-logo-lightbox-image {
  max-height: min(85vh, 520px);
  max-width: min(92vw, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
}

html.ksi-partner-lightbox-open #site-header {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.map-industrial {
  filter: grayscale(100%) invert(90%) contrast(95%) brightness(95%);
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff 0%, var(--fp-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.secondary-hero-bg {
  background-image: linear-gradient(rgba(0, 26, 51, 0.38), rgba(0, 38, 77, 0.28)), url("../immagini/hero-secondary.jpg");
  background-size: cover;
  background-position: center;
}

.secondary-hero-bg.secondary-hero-bg--chi-siamo {
  background-image: linear-gradient(rgba(45, 45, 45, 0.72), rgba(26, 26, 26, 0.58)), url("../immagini/chisiamo.jpg");
}

@media (min-width: 1024px) {
  .secondary-hero-bg.secondary-hero-bg--chi-siamo {
    background-image: linear-gradient(rgba(45, 45, 45, 0.65), rgba(26, 26, 26, 0.5)), url("../immagini/chisiamo.jpg");
  }
}

@media (max-width: 768px) {
  .secondary-hero-bg.secondary-hero-bg--chi-siamo {
    background-image: linear-gradient(rgba(45, 45, 45, 0.78), rgba(26, 26, 26, 0.65)), url("../immagini/chisiamo.jpg");
  }
}

@media (min-width: 1024px) {
  .secondary-hero-bg:not(.secondary-hero-bg--chi-siamo) {
    background-image: linear-gradient(rgba(0, 26, 51, 0.32), rgba(0, 38, 77, 0.22)), url("../immagini/hero-secondary.jpg");
  }
}

@media (max-width: 768px) {
  .secondary-hero-bg:not(.secondary-hero-bg--chi-siamo) {
    background-image: linear-gradient(rgba(0, 26, 51, 0.44), rgba(0, 38, 77, 0.32)), url("../immagini/hero-secondary.jpg");
  }
}

/* Hero interne uniformi (Chi Siamo, Servizi, Contatti, Galleria): 65vh, testo calibrato */
.secondary-hero-bg.secondary-hero-bg--compact {
  min-height: 65vh;
  min-height: 65svh;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-top: max(4.75rem, calc(env(safe-area-inset-top, 0px) + 3.25rem));
  padding-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .secondary-hero-bg.secondary-hero-bg--compact {
    padding-top: max(5.5rem, calc(env(safe-area-inset-top, 0px) + 3.75rem));
    padding-bottom: 2.25rem;
  }
}

.secondary-hero-bg--compact .secondary-hero-inner {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.secondary-hero-bg--compact .secondary-hero-inner h1 {
  font-size: clamp(1.875rem, 2.8vw + 1rem, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
}

/* Desktop: solo titolo hero pagine interne (foto e sottotitolo invariati) */
@media (min-width: 1024px) {
  .secondary-hero-bg--compact .secondary-hero-inner h1 {
    font-size: clamp(1.9375rem, 2.95vw + 1.05rem, 3.875rem);
  }
}

.secondary-hero-bg--compact .secondary-hero-inner > p {
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .secondary-hero-bg--compact .secondary-hero-inner > p {
    margin-top: 1.125rem;
  }
}

.service-image {
  border: 1px solid rgba(0, 168, 232, 0.45);
}

.luxury-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.luxury-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.15);
}

/* Tabella prezzi card prodotti (home) */
.product-price-table {
  border-collapse: collapse;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.5rem;
  overflow: hidden;
}

.product-price-table th,
.product-price-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.product-price-table tr:last-child th,
.product-price-table tr:last-child td {
  border-bottom: none;
}

.product-price-table th {
  font-weight: 600;
  text-align: left;
  color: var(--fp-primary, #2d2d2d);
  background: rgba(45, 45, 45, 0.04);
  width: 45%;
}

.product-price-table td {
  text-align: right;
  font-weight: 600;
  color: var(--fp-accent, #ff6600);
}

/* Fade-in allo scroll */
.js-section-animate.fp-fade-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-section-animate.fp-fade-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-section-animate.fp-fade-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Barra cookie discreta */
#cookie-banner {
  background: rgba(26, 26, 26, 0.94) !important;
  backdrop-filter: blur(8px);
  border-color: rgba(255, 102, 0, 0.28) !important;
  border-top-width: 1px;
  padding: 0.75rem 1rem !important;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
}

#cookie-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  line-height: 1.45;
}

#cookie-banner #accept-cookies {
  background: var(--fp-accent) !important;
  color: #fff !important;
  border-radius: 9999px;
  padding: 0.5rem 1.125rem !important;
  font-size: 0.8125rem !important;
  box-shadow: none;
}

#cookie-banner #accept-cookies:hover {
  background: #ff8533 !important;
}

#cookie-banner a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .lw-lightbox,
  .lightwidget-lightbox,
  .lightbox,
  [class*="lightbox"] {
    padding: 0 !important;
  }

  .lw-lightbox img,
  .lightwidget-lightbox img,
  .lightbox img,
  [class*="lightbox"] img {
    width: 95vw !important;
    max-width: 95vw !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}

/* --- Pagina Chi Siamo --- */

.fp-product-card {
  color: #2d2d2d;
  text-decoration: none;
}

.fp-product-card:hover {
  color: #2d2d2d;
}

.fp-product-card h3,
.fp-product-card p {
  color: #334155;
}

.fp-product-card h3 {
  color: #2d2d2d;
}

.fp-product-card-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ff6600 !important;
  transition: transform 0.25s ease;
}

.fp-product-card:hover .fp-product-card-more {
  transform: translateX(4px);
}
.secondary-hero-bg .chi-siamo-hero-title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Privacy / Cookie: titolo documento leggermente più grande su desktop (sopra le utility Tailwind) */
@media (min-width: 1024px) {
  main.max-w-5xl.pb-24 article.rounded-2xl > h1:first-of-type {
    font-size: 3.25rem !important;
    line-height: 1.08 !important;
  }
}

.secondary-hero-bg .chi-siamo-hero-lead {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.chi-siamo-photo-frame {
  box-shadow: 0 24px 50px -12px rgba(0, 51, 102, 0.22);
}

.chi-siamo-photo {
  display: block;
}

.map-ksi-embed {
  filter: grayscale(12%) contrast(1.02) saturate(0.95);
}

/* Chi Siamo — sezione logistica unificata */
.fp-logistica-section {
  overflow: hidden;
}

.fp-logistica-hero {
  min-height: clamp(16rem, 38vw, 24rem);
  background-color: #2d2d2d;
}

.fp-logistica-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.1) 0%, rgba(45, 45, 45, 0.92) 88%, #2d2d2d 100%);
}

.fp-logistica-hero h2 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.fp-logistica-hero p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.fp-logistica-body {
  margin-top: -1px;
}

.fp-logistica-steps {
  counter-reset: fp-step;
}

.fp-logistica-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 1.5rem 1.35rem 1.35rem;
}

.fp-logistica-step__icon {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 102, 0, 0.18);
  padding: 0.65rem;
  color: var(--fp-accent);
}

@media (min-width: 1024px) {
  .fp-logistica-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.25rem;
    right: -0.75rem;
    width: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.5), rgba(255, 255, 255, 0.15));
    pointer-events: none;
  }
}

.fp-logistica-cta a {
  min-width: min(100%, 17rem);
}

/* Lightbox video index — sotto navbar, compatto */
.fp-video-lightbox {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--fp-header-offset);
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
}

.fp-video-lightbox.is-open {
  display: flex;
}

.fp-video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 12, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.fp-video-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 40rem);
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #3a3a3a 0%, #1a1a1a 100%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 102, 0, 0.08);
}

.fp-video-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.fp-video-lightbox__close:hover,
.fp-video-lightbox__close:focus-visible {
  background: var(--fp-accent);
  border-color: var(--fp-accent);
  color: #fff;
  outline: none;
  transform: scale(1.06);
}

.fp-video-lightbox__title {
  display: none !important;
}

.fp-video-lightbox__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.35rem;
  background: #000;
  line-height: 0;
}

.fp-video-lightbox__media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

body.fp-video-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .fp-video-lightbox__panel {
    width: min(88vw, 44rem);
    padding: 0.625rem;
  }
}

/* Eyebrow / accenti arancione uniformi */
.fp-section-eyebrow,
.fp-logistica-label {
  color: #ff6600 !important;
}

/* Badge sede + spedizioni (Chi Siamo) */
.chi-siamo-location-badge {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.875rem 1.125rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.chi-siamo-location-badge__line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

@media (min-width: 640px) {
  .chi-siamo-location-badge__line {
    font-size: 0.875rem;
  }
}

/* Immagini prodotto — contain, sfondo neutro, lightbox */
.fp-product-media {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: #f8f8f8;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12);
}

.fp-product-media img,
img.fp-zoomable {
  display: block;
  width: 100%;
  object-fit: contain;
  cursor: pointer;
  background: #f8f8f8;
  transition: opacity 0.2s ease;
}

.fp-product-media img {
  aspect-ratio: 4 / 3;
}

/* Senza riquadro: stessa dimensione del vecchio fp-product-media (4:3, larghezza colonna) */
.fp-product-row img.fp-zoomable,
.fp-product-card > img.fp-zoomable,
.fp-logistica-section img.fp-zoomable {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: transparent;
  cursor: pointer;
}

.fp-product-media img:hover,
img.fp-zoomable:hover {
  opacity: 0.92;
}

.fp-product-card .fp-product-media {
  aspect-ratio: 4 / 3;
}

.fp-product-card .fp-product-media img {
  height: 100%;
  aspect-ratio: auto;
}

/* Righe prodotto alternate — senza lg:flex-row Tailwind che sovrascrive */
.fp-product-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .fp-product-row {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .fp-product-row.fp-product-row--reverse {
    flex-direction: row-reverse;
  }

  .fp-product-row.fp-product-row--align-start {
    align-items: flex-start;
  }
}

.fp-product-row.fp-product-row--align-start {
  align-items: flex-start;
}

/* Escavatori macchinari */
.fp-product-row--escavatore {
  align-items: flex-start;
  gap: 1.25rem;
}

.fp-escavatore-media {
  margin: 0;
}

.fp-escavatore-media__frame {
  width: 100%;
}

.fp-escavatore-media__frame img.fp-zoomable {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 0.75rem;
}

.fp-zoom-hint {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
  letter-spacing: 0.01em;
}

@media (max-width: 1023px) {
  .fp-product-row--escavatore {
    display: flex;
    flex-direction: column;
  }

  .fp-product-row--escavatore .fp-escavatore-copy {
    display: contents;
  }

  .fp-product-row--escavatore .fp-escavatore-copy .fp-section-eyebrow {
    order: 1;
  }

  .fp-product-row--escavatore .fp-escavatore-copy h3 {
    order: 1;
  }

  .fp-product-row--escavatore .fp-escavatore-media {
    order: 2;
  }

  .fp-product-row--escavatore .fp-escavatore-copy .specs-table {
    order: 3;
  }
}

/* Tabella specifiche tecniche macchinari */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  color: #1e293b;
  background-color: #fff;
}

.specs-table th {
  background-color: #1e3a8a;
  color: #fff;
  padding: 10px;
  text-align: left;
  font-weight: 600;
}

.specs-table td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  font-size: 14px;
  color: #334155;
  background-color: #fff;
}

.specs-table td:first-child {
  font-weight: 600;
  color: #1e293b;
  width: 42%;
}

.specs-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* Galleria pannelli — griglia 3 colonne */
.gallery-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px 0 0;
}

@media (min-width: 640px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-container .fp-zoomable {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo footer più visibile */
.fp-footer-logo {
  height: 3.75rem;
  width: auto;
  max-width: min(100%, 15rem);
}

@media (min-width: 768px) {
  .fp-footer-logo {
    height: 4.125rem;
  }
}

/* Pulsante play sui video */
.fp-video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #ff6600;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.fp-video-card__play {
  pointer-events: none;
}

.fp-video-card:hover .fp-video-card__play,
.fp-inline-video:hover .fp-inline-video__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.fp-inline-video.is-playing .fp-inline-video__play,
.fp-video-lightbox__media.is-playing .fp-video-play-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Home: anteprime video compatte (griglia 3 col) */
.fp-video-grid--compact .fp-video-card {
  aspect-ratio: 16 / 9;
}

/* Macchinari: anteprime video più grandi (griglia 4 col) */
.fp-video-grid--large .fp-video-card {
  aspect-ratio: 16 / 9;
}

@media (min-width: 640px) {
  .fp-video-grid--large .fp-video-card {
    aspect-ratio: 16 / 10;
  }
}

/* Perché Sceglierci — riquadro video come ex immagine */
.fp-inline-video {
  width: 100%;
  height: 300px;
}

@media (min-width: 640px) {
  .fp-inline-video {
    height: 380px;
  }
}

.fp-inline-video__el {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Pagine dettaglio prodotto */
.fp-product-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}

.fp-product-specs {
  margin-top: 2rem;
  display: grid;
  gap: 0.875rem;
}

.fp-product-specs li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4b5563;
}

.fp-product-specs li::before {
  content: "";
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background: #ff6600;
}

.fp-product-price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.fp-product-price-table thead {
  background: #2d2d2d;
  color: #fff;
}

.fp-product-price-table th,
.fp-product-price-table td {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  text-align: left;
  vertical-align: middle;
}

.fp-product-price-table tbody tr:last-child th,
.fp-product-price-table tbody tr:last-child td {
  border-bottom: none;
}

.fp-product-price-table tbody th {
  font-weight: 600;
  color: #2d2d2d;
  background: rgba(45, 45, 45, 0.03);
  width: 22%;
}

.fp-product-price-table tbody td:nth-child(2) {
  color: #4b5563;
  font-size: 0.9375rem;
}

.fp-product-price-table tbody td:last-child {
  text-align: right;
  font-weight: 700;
  color: #ff6600;
  white-space: nowrap;
}

/* Tabella prezzi nel riquadro affianco alla descrizione (pagine prodotto) */
.fp-product-price-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
}

@media (min-width: 1024px) {
  .fp-product-price-card {
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 100%;
  }
}

.fp-product-price-card__head {
  flex-shrink: 0;
  padding: 1.125rem 1.25rem 0.625rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.fp-product-price-card__head .fp-section-eyebrow {
  margin-bottom: 0.375rem;
}

.fp-product-price-card__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.fp-product-price-card__body {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 0.5rem 0.75rem 0.875rem;
  overflow: auto;
}

.fp-product-price-table--card {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  table-layout: fixed;
}

.fp-product-price-table--card thead th {
  padding: 0.5rem 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fp-product-price-table--card tbody th,
.fp-product-price-table--card tbody td {
  padding: 0.5625rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  vertical-align: middle;
}

.fp-product-price-table--card tbody th {
  width: 24%;
}

.fp-product-price-table--card tbody td:nth-child(2) {
  font-size: 0.6875rem;
}

.fp-product-price-table--card tbody td:last-child {
  font-size: 0.75rem;
  white-space: normal;
}

@media (min-width: 640px) {
  .fp-product-price-card__head {
    padding: 1.25rem 1.375rem 0.75rem;
  }

  .fp-product-price-card__body {
    padding: 0.625rem 1rem 1rem;
  }

  .fp-product-price-table--card thead th {
    font-size: 0.75rem;
    padding: 0.5625rem 0.625rem;
  }

  .fp-product-price-table--card tbody th,
  .fp-product-price-table--card tbody td {
    padding: 0.625rem 0.625rem;
    font-size: 0.8125rem;
  }

  .fp-product-price-table--card tbody td:nth-child(2) {
    font-size: 0.75rem;
  }

  .fp-product-price-table--card tbody td:last-child {
    font-size: 0.8125rem;
  }
}

.fp-product-wa-cta {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ff8533 0%, #ff6600 100%);
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-product-wa-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 102, 0, 0.45);
}

.fp-works-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .fp-works-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .fp-works-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

.fp-works-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.fp-works-gallery__open:focus {
  outline: none;
}

.fp-works-gallery__open:focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 3px;
}

.fp-works-gallery__open img {
  pointer-events: none;
}

/* Lightbox galleria lavori */
.fp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.fp-lightbox[hidden] {
  display: none !important;
}

.fp-lightbox:not([hidden]) {
  display: flex;
}

.fp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-out;
  background: rgba(10, 10, 12, 0.92);
}

.fp-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(1180px, 94vw);
  max-height: min(90vh, 880px);
}

.fp-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1180px, 92vw);
  max-height: min(88vh, 860px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.fp-lightbox__close {
  position: fixed;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  z-index: 10060;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fp-lightbox__close:hover {
  background: rgba(255, 102, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.fp-lightbox__close:focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 2px;
}

/* Footer: blocco sotto logo più compatto */
.fp-footer-tagline {
  max-width: 17.5rem;
}

@media (min-width: 640px) {
  .fp-footer-tagline {
    max-width: 20rem;
  }
}

/* Footer — colonne link centrate al blocco logo + testo (layout 4 col) */
@media (min-width: 1024px) {
  footer > div.js-section-animate.grid {
    align-items: stretch;
  }

  footer > div.js-section-animate.grid > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  footer > div.js-section-animate.grid > div h3 {
    margin-top: 0;
  }
}

/* Home: logo footer più grande */
body.fp-page-index .fp-footer-logo {
  height: 7.5rem;
  max-width: min(100%, 24rem);
}

@media (min-width: 1024px) {
  body.fp-page-index .fp-footer-logo {
    height: 8.5rem;
    max-width: min(100%, 26rem);
  }
}

.fp-works-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
}

.fp-works-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.fp-works-gallery__item:hover img {
  transform: scale(1.05);
}

.fp-works-gallery:not(.is-expanded) .fp-works-gallery__item:nth-child(n + 7) {
  display: none;
}

@media (max-width: 1023px) {
  .fp-product-price-card {
    aspect-ratio: unset !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    --tw-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
  }

  .fp-product-price-card.overflow-hidden {
    overflow: visible !important;
  }

  .fp-product-price-card__head {
    padding: 0 0 0.75rem !important;
    border: none !important;
    background: transparent !important;
  }

  .fp-product-price-card__body {
    padding: 0 !important;
  }

  .fp-product-price-table--card {
    border: 1px solid rgba(45, 45, 45, 0.12) !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
  }

  .fp-product-price-table--card thead th {
    font-size: 0.6875rem;
  }

  .fp-product-price-table--card tbody th,
  .fp-product-price-table--card tbody td {
    font-size: 0.8125rem;
  }
}

.fp-index-logistica {
  position: relative;
}
