/* =========================
   RESET BASE / VARIABILI
========================= */
:root{
  --brand:#ff6a00;
  --brand2:#0d6efd;
  --dark:#0f141a;
  --light:#f6f7fb;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
  background: var(--light);
  color: #101828;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{
  max-width: 100%;
  display: block;
}

a{
  text-decoration: none;
  color: inherit;
}

/* Accessibilità */
:focus-visible{
  outline: 3px solid rgba(13,110,253,.45);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================
   NAVBAR
========================= */
/* GLASS NAVBAR – very light */
/* ULTRA GLASS NAVBAR */
.top-nav{
  background: rgba(250, 250, 250, 0.28); /* ⬅⬅ MOLTO trasparente */
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.12),
    inset 0 1px 1px rgba(255,255,255,0.6);
}


/* navbar spacing */
.navbar{
  padding: .55rem 0;
}

.navbar-brand{
  font-weight: 800;
}

.logo-navbar{
  height: 32px;
  width: auto;
  filter:
          drop-shadow(0 2px 6px rgba(255,255,255,0.55))
          drop-shadow(0 0 12px rgba(255,255,255,0.35));
}

/* menu links */
.nav-link{
  color: rgba(0,0,0,0.85) !important;
  font-weight: 600;
  padding: .45rem .7rem !important;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

/* hover glass */
.nav-link:hover{
  background: rgba(255,255,255,0.35);
  color: rgba(0,0,0,0.95) !important;
}

/* =========================
   HERO
========================= */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0,0,0,.68), rgba(0,0,0,.68)),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
}

.hero .kicker{
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}

.hero .divider{
  width: 70px;
  height: 3px;
  background: var(--brand);
  margin: 18px auto 22px;
  border-radius: 999px;
}

.hero-logo{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 10px 18px;
  border-radius: 14px;
}

.hero-logo-img{
  height: 200px;          /* ⬅ dimensione corretta */
  width: auto;
  max-width: 70%;
  margin-bottom: 6px;
  filter:
          drop-shadow(0 2px 6px rgba(255,255,255,0.55))
          drop-shadow(0 0 12px rgba(255,255,255,0.35));

}

.hero-logo::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);   /* overlay locale */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
  z-index: -1;
}



/* =========================
   BOTTONI
========================= */
.btn-brand{
  background: var(--brand);
  border: none;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255,106,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-brand:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,106,0,.3);
}

/* =========================
   SEZIONI
========================= */
section{
  scroll-margin-top: 90px;
}

.section-animate{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.section-animate.visible{
  opacity: 1;
  transform: none;
}

/* =========================
   SERVIZI
========================= */
.service-card{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(16,24,40,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16,24,40,.14);
}

.service-topbar{
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}

/* =========================
   PORTFOLIO
========================= */

/* ===== Portfolio Banner Slider ===== */
.portfolio-slider-wrap{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);

  /* fallback mentre carica */
  background: #e9edf3;
}

/* evita glitch e assicura clipping */
#portfolioCarousel,
#portfolioCarousel .carousel-inner{
  overflow: hidden;
}

/* parent relativo per overlay/caption */
#portfolioCarousel .carousel-item{
  position: relative;
}

#portfolioCarousel .carousel-item > a{
  position: relative;
  display: block;
  width: 100%;
}

/* altezza banner tipo TV */
.portfolio-slide-img{
  height: clamp(260px, 38vw, 520px);
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* overlay premium per leggibilità */
.portfolio-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.26) 38%,
    rgba(0,0,0,0.10) 62%,
    rgba(0,0,0,0.00) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ===== Caption (più risalto) ===== */
.portfolio-caption{
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 60px;                 /* alzata per non toccare indicatori */
  color: #fff;
  z-index: 2;

  /* look più “corporate” */
  padding-left: 18px;
  border-left: 4px solid #ffc107;  /* richiamo brand */
}

.portfolio-caption h5{
  margin: 0;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 30px);

  /* risalto/leggibilità su foto */
  text-shadow:
    0 2px 6px rgba(0,0,0,0.65),
    0 0 18px rgba(0,0,0,0.35);
}

.portfolio-caption p{
  margin: 8px 0 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 500;

  text-shadow: 0 2px 6px rgba(0,0,0,0.60);
}

/* ===== Indicatori ===== */
#portfolioCarousel .carousel-indicators{
  bottom: 14px;       /* più in basso */
  margin-bottom: 0;   /* elimina conflitto bootstrap */
  z-index: 3;         /* sopra overlay */
}

#portfolioCarousel .carousel-indicators [data-bs-target]{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin: 0 6px;
  border: none;
  opacity: .55;

  background-color: rgba(255,255,255,0.65);
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}

#portfolioCarousel .carousel-indicators .active{
  opacity: 1;
  transform: scale(1.2);
  background-color: #ffc107; /* coerente con text-warning */
}

/* ===== Facoltativo: migliora focus/accessibilità ===== */
#portfolioCarousel .carousel-indicators [data-bs-target]:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,193,7,0.35);
}

/* ===== Responsive fine tuning ===== */
@media (max-width: 768px){
  .portfolio-caption{
    bottom: 70px;
    left: 18px;
    right: 18px;
    padding-left: 14px;
  }

  #portfolioCarousel .carousel-indicators{
    bottom: 10px;
  }
}
/* =========================
   FOOTER (CON CONTATTI)
========================= */
.footer{
  background: var(--dark);
  color: rgba(255,255,255,.7);
}

.footer h5{
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
}
.footer-logo {
  max-width: 140px;   /* regolabile */
  height: auto;
}

.footer ul li{
  margin-bottom: .35rem;
  font-size: .95rem;
}

.footer i{
  color: var(--brand);
}

/* =========================
   LIGHTBOX FIX
========================= */
.lightboxOverlay{ z-index: 99998 !important; }
.lightbox{ z-index: 99999 !important; }

.lb-close{
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  width: 46px !important;
  height: 46px !important;
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35) !important;
  z-index: 100000 !important;
}

/* =========================
   ACCESSIBILITÀ
========================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* =========================
   LIGHTBOX: X visibile sempre
========================= */

/* bottone chiusura "pill" */
.lb-close{
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  width: 46px !important;
  height: 46px !important;
  background: rgba(255,255,255,0.95) !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35) !important;
  z-index: 100000 !important;

  /* nasconde l'icona originale (che spesso non si vede) */
  background-image: none !important;
  text-indent: -9999px !important;
}

/* disegno la X con due linee */
.lb-close::before,
.lb-close::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2.5px;
  background: rgba(0,0,0,0.85);
  border-radius: 999px;
  transform-origin: center;
}

.lb-close::before{
  transform: translate(-50%, -50%) rotate(45deg);
}

.lb-close::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* hover più evidente */
.lb-close:hover{
  background: rgba(255,255,255,1) !important;
  transform: scale(1.04);
}
html, body {
  height: 100%;
  margin: 0;
  background: #0f141a; /* stesso colore del footer */
}
.footer-map{
  max-width: 520px;      /* 👈 STRINGE la mappa */
  margin-left: auto;     /* 👈 la centra */
  margin-right: auto;
}

.footer-map{
  max-width: 480px;     /* scegli: 520 / 480 / 450 */
  margin-left: auto;    /* 👈 la spinge a destra */
  margin-right: 0;      /* 👈 vicina al bordo destro */
}

.footer-map iframe{
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 14px;
  filter: grayscale(100%) invert(92%);
  opacity: 0.9;
}

@media (max-width: 768px){
  .footer-map{
    max-width: 100%;
    margin-left: 0;
  }
}

/* ABOUT */
.about-text p{
  color: rgba(0,0,0,.78);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  max-width: 900px;
}

.about-text .lead{
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(0,0,0,.92);
}