:root{
  --gfg-blue:#0033CC;
  --gfg-yellow:#FFD700;
  --gfg-dark:#0f172a;
}
body{ font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.brand-text{ color: var(--gfg-blue); }

/* Hero */
.hero-section{
  min-height: 60vh;
  background: radial-gradient(80% 60% at 50% 0%, rgba(0,51,204,.15), transparent 70%), linear-gradient(180deg,#001a66, #00123d);
  position: relative;
}
.hero-section::after{
  content:''; position:absolute; inset:0;
  background: url('/images/prod5.jpg') center/cover no-repeat;
  mix-blend-mode: overlay; opacity:.09;
}
.hero-shape{ position:absolute; inset:auto 0 0 0; height:140px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.2)); }

.btn-primary{ background-color: var(--gfg-blue); border-color: var(--gfg-blue); }
.btn-warning{ color:#000; background-color: var(--gfg-yellow); border-color: var(--gfg-yellow); }
.text-primary{ color: var(--gfg-blue) !important; }

/* Coming soon card */
.coming-soon{
  background: linear-gradient(135deg, rgba(255,215,0,.2), rgba(0,51,204,.15));
  border: 2px dashed var(--gfg-blue);
}

/* Preloader */
.preloader{
  position: fixed; inset: 0; background: #ffffff; z-index: 9999; opacity:1; transition: opacity .6s ease;
}
.preloader.hide{ opacity:0; pointer-events:none; }
.preloader-logo{ width: 220px; animation: pulse 1.2s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.2)); }
@keyframes pulse{ 0%,100%{ transform: scale(1); opacity:.9; } 50%{ transform: scale(1.06); opacity:1; } }

footer .small-legal{ opacity:.8; }

/* Cards & effects */
.card-title{ color: var(--gfg-blue); }
.rounded-4{ border-radius: 1rem !important; }
.shadow-sm{ box-shadow: 0 .2rem .8rem rgba(0,0,0,.08) !important; }
.glass{ backdrop-filter: blur(6px); background: rgba(255,255,255,.6); }
.glass-nav{ backdrop-filter: blur(10px); }
.shadow-hover{ transition: transform .25s ease, box-shadow .25s ease; }
.shadow-hover:hover{ transform: translateY(-4px); box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.14) !important; }

/* Navbar hover underline */
.nav-link{ position:relative; }
.nav-link::after{ content:''; position:absolute; left:0; bottom:-6px; width:0; height:3px; background: var(--gfg-yellow); transition: width .25s; }
.nav-link:hover::after{ width:100%; }

/* Promo card pricing */
.price-now{ font-weight:700; color:var(--gfg-blue); }
.price-old{ text-decoration: line-through; opacity:.6; }
.promo-badge{ box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* Timeline */
.sub-hero{ min-height: 32vh; background: linear-gradient(135deg, #001a66, #0033cc); }
.timeline{ position:relative; margin-left:1rem; }
.timeline::before{ content:''; position:absolute; left:18px; top:0; bottom:0; width:3px; background: linear-gradient(180deg, var(--gfg-yellow), var(--gfg-blue)); }
.t-item{ position:relative; padding-left:60px; margin-bottom:24px; }
.t-year{ position:absolute; left:0; top:0; width:46px; height:46px; border-radius:50%; background: var(--gfg-blue); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.t-card{ background:#fff; border:1px solid rgba(0,0,0,.06); padding:16px; border-radius:12px; box-shadow: 0 .2rem .8rem rgba(0,0,0,.06); }


/* ===== Design Upgrade v3 ===== */
html{scroll-behavior:smooth;}
.container{max-width:1140px;}
.container-xl{max-width:1320px;}
.display-4{letter-spacing:-.5px;}
h1,h2,h3{letter-spacing:-.3px;}
.section-divider{
  height: 10px;
  background: linear-gradient(90deg, var(--gfg-yellow), var(--gfg-blue));
  opacity:.35;
}

/* Strengthen preloader centering without relying on Bootstrap */
.preloader{
  display:flex; align-items:center; justify-content:center;
}
.preloader-logo{
  width:min(240px, 60vw);
}

/* Fancy buttons */
.btn-gradient{ 
  background: linear-gradient(135deg, var(--gfg-yellow), #ffe680);
  border:0; color:#111; font-weight:700; box-shadow:0 .5rem 1.25rem rgba(0,0,0,.15);
}
.btn-gradient:hover{ filter:brightness(0.97); }

/* Cards visual polish */
.card-img-top{ border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.card.glass{ border:1px solid rgba(0,0,0,.06); }

/* Floating WhatsApp */
.wp-float{
  position:fixed; right:16px; bottom:16px; z-index:9998;
  background:#25D366; color:#fff; border-radius:999px; padding:12px 18px;
  display:flex; gap:10px; align-items:center; text-decoration:none;
  box-shadow:0 .5rem 1.25rem rgba(0,0,0,.2);
}
.wp-float:hover{ opacity:.9; }
.wp-float svg{ width:22px; height:22px; fill:#fff; }

/* Section badges */
.badge-soft{
  background: rgba(0,51,204,.08); color: var(--gfg-blue);
  border:1px solid rgba(0,51,204,.15);
}

/* Contact link cards */
.link-card{
  border:1px solid rgba(0,0,0,.06); transition:transform .2s ease, box-shadow .2s ease;
}
.link-card:hover{ transform: translateY(-4px); box-shadow:0 .8rem 1.6rem rgba(0,0,0,.12); }


/* ===== v4 Navbar mobile centering ===== */
@media (max-width: 991.98px){
  .navbar .navbar-brand{ margin: 0 auto; }
  .navbar .navbar-toggler{ position: absolute; right: 12px; top: 8px; }
}

/* Footer social buttons */
.footer-social a{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  margin-left:8px;
}
.footer-social a:hover{ background: rgba(255,255,255,.2); }

.footer-links a{ color:#fff; opacity:.9; text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }

/* Brand text hidden (kept for accessibility if any) */
.brand-text{ display:none !important; }


/* ===== v7 mobile nav & preloader fixes ===== */
html, body { max-width: 100%; overflow-x: hidden; }

/* Preloader must occupy full viewport and be perfectly centered */
.preloader{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.no-scroll { overflow: hidden; }

/* Center hamburger menu items on mobile */
@media (max-width: 991.98px){
  .navbar .navbar-collapse { text-align: center; }
  .navbar .navbar-nav { width:100%; align-items: center; justify-content: center; }
  .navbar .navbar-nav .nav-item { width:100%; }
  .navbar .nav-link { display:block; padding: .6rem 0; }
}


/* ===== v8 overflow hardening & navbar mobile rework ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

/* Prevent sections from introducing overflow via positioned children */
.hero-section, .sub-hero, header, main, section, footer { overflow-x: hidden; }

/* Media should never exceed viewport width */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; display: block; }

/* Floating elements safe bounds */
.wp-float { max-width: calc(100vw - 32px); }

/* Preloader safe bounds */
.preloader { width: 100vw; height: 100vh; overflow: hidden; }

/* Navbar: center brand on mobile without pushing width */
@media (max-width: 991.98px){
  .navbar .container { position: relative; }
  .navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
  .navbar .navbar-toggler {
    position: relative;
    margin-left: auto;
    right: 0;
    top: 0;
  }
  .navbar .navbar-collapse { text-align: center; }
  .navbar .navbar-nav { width:100%; align-items: center; justify-content: center; }
  .navbar .navbar-nav .nav-item { width:100%; }
  .navbar .nav-link { display:block; padding: .6rem 0; }
}

/* Extra safety for map iframes inside .ratio */
.ratio iframe { width: 100%; }


/* ===== v9: mobile navbar via CSS grid + overflow hardening ===== */
html, body { max-width:100%; overflow-x:hidden; }
.container, .container-fluid, .container-xl { overflow-x:hidden; }

/* Bootstrap rows safety in case of nested rows without container */
.row { margin-right: calc(var(--bs-gutter-x) * -0.5); margin-left: calc(var(--bs-gutter-x) * -0.5); }

/* Navbar mobile: center brand with grid; toggler on right; no overflow */
@media (max-width: 991.98px){
  .navbar .container{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; }
  .navbar .navbar-brand{ grid-column:2; justify-self:center; position:static; transform:none; margin:0; }
  .navbar .navbar-toggler{ grid-column:3; justify-self:end; position:static; margin-left:0; }
  .navbar .navbar-collapse{ text-align:center; }
  .navbar .navbar-nav{ width:100%; align-items:center; justify-content:center; }
  .navbar .navbar-nav .nav-item{ width:100%; }
  .navbar .nav-link{ display:block; padding:.6rem 0; }
}

/* Ensure pseudo elements and shapes never push width */
.hero-section, .sub-hero, header, main, section, footer { overflow-x:hidden; }
.hero-section::after{ max-width:100%; overflow:hidden; }

/* Media fluid */
img, svg, video, canvas, iframe{ max-width:100%; height:auto; }
.ratio iframe{ width:100%; }

/* Floating button safe */
.wp-float{ max-width: calc(100vw - 32px); }


/* ===== v10 navbar brand sizing & centering ===== */
.navbar .navbar-brand img{ height:40px; width:auto; max-width:160px; }
@media (max-width: 991.98px){
  .navbar .navbar-brand img{ height:34px; max-width:52vw; }
  .navbar .container{ display:flex; align-items:center; }
  .navbar .navbar-brand{ position:absolute; left:50%; transform:translateX(-50%); margin:0; }
  .navbar .navbar-toggler{ margin-left:auto; position:relative; right:0; }
}
/* Ensure images inside navbar don't stretch due to global img rules */
.navbar .navbar-brand img{ display:inline-block; }


/* v10 footer socials visible */
.footer-social a{
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25);
  margin-left:8px;
}
.footer-social a svg{ width:22px; height:22px; }
.footer-social a:hover{ background: rgba(255,255,255,.2); }


/* ===== v11 navbar: keep logo above menu & remove toggler outline ===== */
@media (max-width: 991.98px){
  .navbar .container{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto; /* row 1: brand+toggle, row 2: menu */
    align-items:center;
  }
  .navbar .navbar-brand{ grid-column:2; grid-row:1; justify-self:center; position:static; transform:none; margin:0; z-index:2; }
  .navbar .navbar-toggler{ grid-column:3; grid-row:1; justify-self:end; position:static; }
  .navbar .navbar-collapse{ grid-column: 1 / -1; grid-row: 2; padding-top: .5rem; }
  .navbar .navbar-collapse.show{ padding-top: .75rem; }
}

/* Remove persistent focus ring on hamburger */
.navbar-toggler:focus,
.navbar-toggler:focus-visible{
  box-shadow: none !important;
  outline: none !important;
}



/* === Footer (layout tipo screenshot) === */
.site-footer{
  background:#fff;
  color: var(--gfg-dark);
  border-top:1px solid rgba(0,0,0,.06);
  padding: 56px 0;
  font-size: 15px;
}
.site-footer .container{ max-width:1140px; }

.footer-top{
  display:grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
}

.footer-brand{
  display:flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .f-logo{
  display:flex; align-items:center; gap:10px;
}
.footer-brand .f-logo img{
  height:28px; width:auto; display:block;
}
.footer-brand .f-text{
  line-height: 1.6;
  color: rgba(15,23,42,.75); /* testo secondario */
  max-width: 420px;
}

/* Social (stile semplice come in screenshot) */
.footer-social-min{
  display:flex; gap:14px; margin-top: 8px;
}
.footer-social-min a{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px;
  color: rgba(15,23,42,.75);
  text-decoration:none;
  transition: color .18s ease, transform .18s ease;
}
.footer-social-min a:hover{
  color: var(--gfg-blue);
  transform: translateY(-1px);
}
.footer-social-min i{ font-size: 18px; }

/* Colonne link */
.footer-col h6{
  font-weight: 700;
  font-size: 14px;
  color: var(--gfg-dark);
  margin-bottom: 12px;
}
.footer-col ul{
  list-style:none; margin:0; padding:0;
}
.footer-col li{ margin: 10px 0; }
.footer-col a{
  color: rgba(15,23,42,.75);
  text-decoration:none;
  transition: color .18s ease;
}
.footer-col a:hover{ color: var(--gfg-blue); }

/* Riga bassa (opzionale) */
.footer-bottom{
  margin-top: 40px;
  padding-top: 20px;
  border-top:1px solid rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom small{
  color: rgba(15,23,42,.7);
}
.footer-bottom .overeye-link{
  text-decoration:none; font-weight:600;
  color: rgba(15,23,42,.75);
}
.footer-bottom .overeye-link:hover{ color: var(--gfg-blue); }

/* Responsive */
@media (max-width: 992px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px){
  .site-footer{ padding: 40px 0; }
  .footer-top{
    grid-template-columns: 1fr;
  }
  .footer-brand .f-text{ max-width: none; }
}

/* Footer: brand + made by */
.footer-brand .sep{ opacity:.35; padding:0 6px; }
.footer-brand .overeye-link{
  color: rgba(15,23,42,.75);
  font-weight:700;
  text-decoration:none;
  transition: color .18s ease;
}
.footer-brand .overeye-link:hover{ color: var(--gfg-blue); }



/* Icona utente in navbar */
.gfg-user-icon{
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--gfg-dark);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.gfg-user-icon:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.2);
  transform: translateY(-1px);
}
.navbar .dropdown-menu{ border-radius: 12px; }


/* --- Navbar user icon: allineamento perfetto --- */
.navbar .nav-item .nav-link.user-trigger{
  display:flex; align-items:center; justify-content:center;
  height: 40px; /* stessa altezza delle link */
  padding: 0; line-height: 1;
}

.gfg-user-icon{
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--gfg-dark);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.gfg-user-icon svg{ display:block; } /* elimina “salti” verticali */
.gfg-user-icon:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.2);
  transform: translateY(-1px);
}

/* --- Dropdown: sempre visibile sopra la navbar e non tagliato --- */
.navbar{ overflow: visible; position: sticky; z-index: 1030; }
.navbar .container,
.navbar .container-fluid{ overflow: visible !important; } /* sovrascrive overflow-x:hidden globale */
.navbar .dropdown-menu{
  z-index: 2000;           /* sopra la navbar sticky e altri elementi */
  margin-top: .5rem;       /* un po’ d’aria sotto l’icona */
  border-radius: 12px;
}

/* === Navbar user icon: fix overflow SVG nel cerchio === */
.navbar .nav-item .nav-link.user-trigger{
  display:flex; align-items:center; justify-content:center;
  height: 40px; padding: 0; line-height: 1;
}

/* contenitore tondo */
.gfg-user-icon{
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;            /* impedisce allo svg di “uscire” */
  box-sizing: border-box;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

/* lo svg deve stare “dentro” al tondo, senza margini */
.gfg-user-icon svg{
  width: 18px !important;      /* forza dimensione interna */
  height: 18px !important;
  display: block;              /* elimina spazio extra */
  pointer-events: none;
}

/* hover */
.gfg-user-icon:hover{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.22);
  transform: translateY(-1px);
}

/* dropdown sempre visibile sopra la navbar */
.navbar{ overflow: visible; position: sticky; z-index: 1030; }
.navbar .container,
.navbar .container-fluid{ overflow: visible !important; }
.navbar .dropdown-menu{
  z-index: 2000;
  margin-top: .5rem;
  border-radius: 12px;
}


/* ===== Cataloghi prodotto (cover grid come screenshot) ===== */
.cataloghi-prodotti{
  background:#fff;
}
.cataloghi-head{
  text-align:center;
  margin-bottom: 26px;
}
.cataloghi-head h2{
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--gfg-dark, #0f172a);
  margin: 0 0 6px;
}
.cataloghi-head p{
  margin:0;
  color: rgba(15,23,42,.68);
}

/* griglia */
.cataloghi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}

/* link-card */
.cataloghi-item{
  display:block;                 /* IMPORTANT: evita l’effetto “tutto in riga” */
  text-decoration:none;
  color: inherit;
}

.cataloghi-card{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  background: #0b1220;
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 12px 28px rgba(2,6,23,.10);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* ratio tipo copertina */
.cataloghi-media{
  position:relative;
  aspect-ratio: 3 / 4;           /* cover verticale */
  width: 100%;
}
.cataloghi-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .6s ease;
}

/* overlay leggero */
.cataloghi-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: none; /* <-- Rimuove la sfumatura */
  pointer-events:none;
}


/* label basso */
.cataloghi-label{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
}
.cataloghi-title{
  margin:0;
  font-weight: 900;
  color:#fff;
  line-height:1.15;
  font-size: 16px;
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}
.cataloghi-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0b1220;
  background: rgba(255,215,0,.95);
  border: 1px solid rgba(255,255,255,.35);
  white-space: nowrap;
}
.cataloghi-pill i{
  color: var(--gfg-blue, #0033cc);
  font-size: 14px;
}

/* hover */
.cataloghi-item:hover .cataloghi-card{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2,6,23,.16);
  border-color: rgba(0,51,204,.25);
}
.cataloghi-item:hover .cataloghi-media img{
  transform: scale(1.06);
}

/* focus accessibile */
.cataloghi-item:focus-visible{
  outline: none;
}
.cataloghi-item:focus-visible .cataloghi-card{
  box-shadow: 0 0 0 4px rgba(255,215,0,.35), 0 18px 40px rgba(2,6,23,.16);
}

/* responsive */
@media (max-width: 992px){
  .cataloghi-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 576px){
  .cataloghi-grid{ grid-template-columns: 1fr; }
}



.cataloghi-media{ position:relative; aspect-ratio: 3 / 4; width:100%; }
.pdf-thumb{ position:absolute; inset:0; width:100%; height:100%; display:block; background:#0b1220; }

