/* Filippo Picciotta Costruzioni SRLS — 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-header-offset: 6.5rem;
}

/* Nessuno scroll animato sulle ancore; offset per header fisso */
html {
  scroll-behavior: auto !important;
  scroll-padding-top: var(--fp-header-offset);
  overflow-x: clip;
}

/* index.html: evita salti scroll con ancoraggio (#prodotti, ecc.) */
html[data-fp-hash-load] body {
  opacity: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  min-width: 0;
  opacity: 1;
}

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.72), rgba(26, 26, 26, 0.55)),
      url("../immagini/hero-industriale.jpg");
  }
}

@media (min-width: 1024px) {
  .hero-bg {
    background-image: linear-gradient(115deg, rgba(45, 45, 45, 0.58), rgba(26, 26, 26, 0.42)),
      url("../immagini/hero-industriale.jpg");
  }
}

/* Home hero (solo .hero-bg su index): armonia blocchi su desktop */
@media (min-width: 1024px) {
  section.hero-bg > div:first-of-type {
    padding-top: 2.875rem;
    padding-bottom: max(5.5rem, 9svh);
  }

  .hero-bg .max-w-4xl > div:first-of-type {
    margin-bottom: 1.375rem;
  }

  .hero-bg .hero-title {
    letter-spacing: -0.03em;
    line-height: 1.06;
  }

  .hero-bg .max-w-4xl > p,
  .hero-bg .max-w-4xl > .index-hero-lead {
    margin-top: 1.5rem;
    max-width: 36rem;
  }

  .hero-bg .max-w-4xl > div.flex {
    margin-top: 1.875rem;
    gap: 1.125rem 1.5rem;
  }
}

@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;
  }

  body:not(.bg-concrete):not(.bg-white) #site-header:not(.nav-scrolled) {
    background: transparent !important;
  }

  body.bg-concrete #site-header:not(.nav-scrolled),
  body.bg-white #site-header:not(.nav-scrolled) {
    background: rgba(255, 255, 255, 0.96) !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 > div:first-child {
    padding-top: 15px;
    padding-bottom: 15px;
    align-items: center;
  }

  #site-header .navbar-brand-svg {
    height: 68px;
    width: auto;
  }

  #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 .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 .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;
}

#site-header > div:first-child {
  position: relative;
  z-index: 1;
}

#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;
}

/* Navbar leggibile su sezioni chiare: dopo scroll */
#site-header {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#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 > div:first-child nav a:not(.bg-orange),
#site-header.nav-scrolled > div:first-child nav .nav-dropdown-toggle {
  color: #1a2b4c !important;
  font-weight: 300;
}

#site-header.nav-scrolled > div:first-child nav a:not(.bg-orange):hover,
#site-header.nav-scrolled > div:first-child nav .nav-dropdown-toggle:hover {
  color: var(--fp-accent) !important;
}

#site-header:not(.nav-scrolled) > div:first-child nav .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

#site-header.nav-scrolled > div:first-child nav a.text-orange,
#site-header.nav-scrolled > div:first-child nav .nav-dropdown-toggle.text-orange {
  color: var(--fp-accent) !important;
}

#site-header.nav-scrolled > div:first-child nav a.text-ice {
  color: var(--fp-accent) !important;
}

#site-header.nav-scrolled > div:first-child nav a.text-ice:hover {
  color: #1a1a1a !important;
}

/* Logo header */
#site-header .navbar-brand {
  transition: opacity 0.35s ease;
}

#site-header .navbar-brand-img {
  max-height: 50px;
  width: auto;
}

/* Desktop — navbar più generosa (premium) */
@media (min-width: 1024px) {
  :root {
    --fp-header-offset: 7.25rem;
  }

  #site-header > div:first-child {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
  }

  #site-header .navbar-brand-img {
    max-height: 58px;
    height: 58px !important;
  }

  #site-header > div:first-child > div.hidden {
    gap: 2.25rem;
  }

  #site-header > div:first-child nav {
    gap: 2rem;
    font-size: 0.96875rem;
    letter-spacing: 0.07em;
  }

  #site-header > div:first-child nav .nav-dropdown-toggle {
    font-size: inherit;
    letter-spacing: inherit;
  }

  #site-header > div:first-child nav [data-lucide="chevron-down"] {
    width: 1.125rem;
    height: 1.125rem;
  }

  #site-header > div:first-child a.rounded-full.bg-orange {
    padding: 0.875rem 1.875rem;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
  }

  #produzione,
  #logistica {
    scroll-margin-top: var(--fp-header-offset);
  }
}

@media (min-width: 1280px) {
  :root {
    --fp-header-offset: 7.5rem;
  }

  #site-header > div:first-child {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  #site-header .navbar-brand-img {
    max-height: 62px;
    height: 62px !important;
  }

  #site-header > div:first-child > div.hidden {
    gap: 2.5rem;
  }

  #site-header > div:first-child nav {
    gap: 2.25rem;
    font-size: 1rem;
  }

  #site-header > div:first-child a.rounded-full.bg-orange {
    padding: 0.9375rem 2rem;
  }
}

@media (max-width: 768px) {
  #site-header .navbar-brand-img {
    max-height: 44px;
  }
}

body.bg-white #site-header.nav-scrolled,
body.bg-white #site-header:not(.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 > div:first-child nav a:not(.bg-orange) {
  color: #1a2b4c !important;
}

body.bg-white #site-header > div:first-child nav a.text-ice,
body.bg-white #site-header > div:first-child 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 — card affiancate stessa altezza */
.fp-contatti-grid {
  align-items: stretch;
}

.fp-contatti-card {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

@media (min-width: 640px) {
  .fp-contatti-card {
    min-height: 24rem;
  }
}

.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--chi-siamo {
  background-image: linear-gradient(rgba(45, 45, 45, 0.72), rgba(26, 26, 26, 0.58)), url("../immagini/chi-siamo-bg.jpg");
}

@media (min-width: 1024px) {
  .secondary-hero-bg--chi-siamo {
    background-image: linear-gradient(rgba(45, 45, 45, 0.65), rgba(26, 26, 26, 0.5)), url("../immagini/chi-siamo-bg.jpg");
  }
}

@media (max-width: 768px) {
  .secondary-hero-bg--chi-siamo {
    background-image: linear-gradient(rgba(45, 45, 45, 0.78), rgba(26, 26, 26, 0.65)), url("../immagini/chi-siamo-bg.jpg");
  }
}

@media (min-width: 1024px) {
  .secondary-hero-bg {
    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 {
    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);
}

/* Barra cookie */
#cookie-banner {
  background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, rgba(26, 26, 26, 0.99) 100%) !important;
  border-color: rgba(255, 102, 0, 0.35) !important;
}

#cookie-banner #accept-cookies {
  background: linear-gradient(180deg, #ff8533 0%, var(--fp-accent) 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#cookie-banner #accept-cookies:hover {
  filter: brightness(1.08);
}

@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 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 2rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.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;
}

/* 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;
}

/* 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(4, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

.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);
}

