/* AK Costruzioni — stili globali sito (home + interne) */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad-y: clamp(5.5rem, 10vw, 9rem);
}

/* Nessuno scroll animato sulle ancore; offset per header fisso */
html {
  scroll-behavior: auto;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}

body {
  font-family: "Manrope", sans-serif;
  min-width: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0, 74, 173, 0.12), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.16) 100%);
  z-index: 0;
}

.hero-bg > * {
  position: relative;
  z-index: 1;
}

a.bg-orange,
button.bg-orange,
input[type="button"].bg-orange,
input[type="submit"].bg-orange {
  background: linear-gradient(180deg, #1f6fdc 0%, #004aad 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 18px rgba(173, 214, 255, 0.35);
}

[class*="bg-orange/"] {
  box-shadow: 0 0 0 1px rgba(173, 214, 255, 0.2), 0 0 16px rgba(173, 214, 255, 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, #7db4ff 0%, #4d94ff 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 24px rgba(173, 214, 255, 0.6);
}

.hero-title .text-orange {
  background: linear-gradient(180deg, #1f6fdc 0%, #004aad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Titolo principale hero: ombra per leggibilità (dimensioni e peso da classi Tailwind sul markup) */
.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);
}

/* Solo “solidità.” e “futuro.”: niente text-shadow ereditato dal titolo (mantiene il blu del gradiente) */
.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 {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.hero-bg {
  background-image: linear-gradient(115deg, rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.32)),
    url("../immagini/hero-cantiere.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .hero-bg {
    background-image: linear-gradient(115deg, rgba(26, 26, 26, 0.48), rgba(26, 26, 26, 0.3)),
      url("../immagini/hero-cantiere.jpg");
  }
}

/* Home hero: immagine dedicata sotto 768px */
@media (max-width: 767px) {
  .hero-bg {
    background-image: linear-gradient(115deg, rgba(26, 26, 26, 0.52), rgba(26, 26, 26, 0.34)),
      url("../immagini/hero-home-mobile.jpg");
    background-position: center;
    background-size: cover;
  }
}

.glass-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/*
 * Menu hamburger mobile: evita che altri layer (stacking / icona SVG) rubino i tocchi
 * e che l’header resti sotto contenuti con z-index elevato.
 */
#site-header {
  /* Sopra layer hero/backdrop del main, ma sotto le lightbox delle immagini */
  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;
}

/* Link menu mobile: area tocco più comoda */
#mobile-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Lightbox certificati (Chi Siamo / Servizi): nasconde la navbar solo mentre il viewer è aperto */
html.ak-cert-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%, #004aad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.secondary-hero-bg {
  background-image: linear-gradient(rgba(17, 17, 17, 0.58), rgba(17, 17, 17, 0.58)), url("../immagini/hero-secondary.jpg");
  background-size: cover;
  background-position: center;
}

.service-image {
  border: 1px solid rgba(0, 74, 173, 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);
}

/* LightWidget / lightbox mobile — non modifica l'iframe del feed */
@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;
  }
}