/* ============================================================
   EPR S.r.l. — PREMIUM AWARD EDITION  
   Visual override layer: links AFTER style.css
   ============================================================ */

/* ─── BODY: MESH GRADIENT + NOISE ─── */
body {
  background-color: #141e1d;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255,204,0,.045) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 85% 100%, rgba(255,204,0,.025) 0%, transparent 65%);
  /* NO cursor:none — keeps native cursor working on form/link elements */
}
/* Restore native cursors on interactive elements */
a, button, [role="button"] { cursor: pointer; }
input, textarea { cursor: text; }
select { cursor: default; }
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 300px;
  pointer-events: none; z-index: 9998; mix-blend-mode: overlay;
}

/* Hide cursor dot — only ring stays as premium overlay */
.cursor-dot { display: none !important; }
.cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid rgba(255,204,0,.5);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .4s cubic-bezier(.16,1,.3,1), height .4s cubic-bezier(.16,1,.3,1), opacity .3s, border-color .3s;
  left: -100px; top: -100px;
}
body.c-hover .cursor-ring { width: 60px; height: 60px; border-color: #FFCC00; opacity: .5; }
@media (max-width:768px),(hover:none){ .cursor-dot,.cursor-ring{display:none!important} }

/* ─── SELECTION ─── */
::selection { background: rgba(255,204,0,.25); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0d1514; }
::-webkit-scrollbar-thumb { background: rgba(255,204,0,.4); border-radius: 3px; }

/* ─── HEADER GLASSMORPHISM ─── */
header.scrolled {
  background: rgba(13,21,20,.82) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,204,0,.1) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.55) !important;
}

/* ─── NAV MENU BTN ─── */
.nav-menu-btn {
  border-radius: 6px !important;
  font-size: .88rem !important;
  letter-spacing: 1.5px !important;
  transition: all .25s cubic-bezier(.16,1,.3,1) !important;
}
.nav-menu-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255,204,0,.5) !important;
}

/* ─── HERO — DECORATIVE POLISH ONLY (layout in style.css) ─── */
.hero {
  background:
    linear-gradient(160deg, rgba(13,21,20,.95) 0%, rgba(20,30,29,.7) 50%, rgba(13,21,20,.97) 100%),
    url('header-bg.png') center/cover no-repeat;
}

/* Decorative corner accents */
.hero::before {
  content: '';
  position: absolute; top: 2rem; left: 2rem;
  width: 60px; height: 60px;
  border-top: 2px solid rgba(255,204,0,.5);
  border-left: 2px solid rgba(255,204,0,.5);
  pointer-events: none; z-index: 3;
  animation: cornerDraw .8s .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes cornerDraw {
  from { width: 0; height: 0; opacity: 0; }
  to   { width: 60px; height: 60px; opacity: 1; }
}

/* Hero horizontal accent line */
.hero-line {
  position: absolute; top: 50%; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.25), transparent);
  animation: lineExpand 1.2s 1s cubic-bezier(.16,1,.3,1) both;
  z-index: 3;
}
@keyframes lineExpand { to { width: 100%; } }

/* Hero logo glow on hover */
.hero-logo:hover {
  filter: drop-shadow(0 0 80px rgba(255,204,0,.5)) !important;
}

/* Hero h1 — gradient text + animation */
.hero h1 {
  background: linear-gradient(140deg, #fff 30%, #FFF200 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: titleIn 1s .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-dal-1976 {
  animation: fadeUp .8s 1s cubic-bezier(.16,1,.3,1) both;
}
.hero-subtitle-contacts {
  animation: fadeUp .8s 1.1s cubic-bezier(.16,1,.3,1) both;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: 4px; color: rgba(255,255,255,.3);
  text-transform: uppercase; animation: fadeUp .8s 1.5s both;
  z-index: 5;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,204,0,.6), transparent);
  animation: scrollLine 1.5s 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.5); opacity: .4; }
}

@media (max-width: 768px) {
  .hero::before { top: 1rem; left: 1rem; width: 30px; height: 30px; }
}

/* ─── SHOWCASE SECTION ─── */
.showcase-seamless {
  position: relative; overflow: hidden;
  background: #0d1514;
  padding: 0 !important;
}
.showcase-img-wrap img {
  opacity: .7;
  filter: brightness(1.15) contrast(1.1);
  transition: transform 8s ease;
}
.showcase-seamless:hover .showcase-img-wrap img { transform: scale(1.03); }
.showcase-text {
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  letter-spacing: -2px !important;
  text-shadow: 0 0 60px rgba(0,0,0,1), 0 20px 80px rgba(0,0,0,.9) !important;
  padding: 0 5%;
}
.showcase-text span { color: #FFCC00; }

/* ─── MADE IN ITALY ─── */
.made-in-italy-strip {
  background: linear-gradient(135deg, #0d1514 0%, #1c2726 100%);
  padding: 4rem 5% !important;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-direction: row !important;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,204,0,.06);
}
.tricolore-icon { border-radius: 8px !important; }
.mii-text {
  font-size: clamp(1.8rem, 4vw, 3.5rem) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 16px !important;
  color: #fff !important;
  opacity: .9 !important;
  margin-top: 0 !important;
}

/* ─── NAV BUTTONS SECTION ─── */
.nav-buttons-section {
  padding: 5rem 5% 6rem !important;
  gap: 1.5rem !important;
}
.nav-buttons-section .btn {
  padding: 1.4rem 3.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  border-radius: 4px !important;
  position: relative; overflow: hidden;
  transition: all .3s cubic-bezier(.16,1,.3,1) !important;
}
.nav-buttons-section .btn-primary {
  background: linear-gradient(135deg, #FFCC00, #e8b800) !important;
  box-shadow: 0 4px 20px rgba(255,204,0,.35), 0 1px 0 rgba(255,255,255,.2) inset !important;
}
.nav-buttons-section .btn-primary:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 36px rgba(255,204,0,.5) !important;
}
.nav-buttons-section .btn-outline {
  border: 2px solid rgba(255,255,255,.25) !important;
  color: #fff !important; background: transparent !important;
}
.nav-buttons-section .btn-outline:hover {
  border-color: #FFCC00 !important; color: #FFCC00 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 28px rgba(255,204,0,.15) !important;
}

/* ─── BiV SECTION — EDITORIAL ─── */
.biv-section {
  background: linear-gradient(160deg, #1c2726 0%, #141e1d 100%) !important;
  border-top: 1px solid rgba(255,255,255,.04) !important;
  border-bottom: 1px solid rgba(255,204,0,.06) !important;
  padding: 7rem 5% !important;
  position: relative; overflow: hidden;
}
.biv-section::before {
  content: 'BiV';
  position: absolute; right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: clamp(8rem, 18vw, 18rem);
  color: rgba(255,204,0,.04); line-height: 1;
  pointer-events: none; user-select: none;
  letter-spacing: -8px;
}
.biv-letters {
  font-size: clamp(5rem, 9vw, 8rem) !important;
  text-shadow: 0 0 60px rgba(255,204,0,.5), 0 4px 30px rgba(255,204,0,.25) !important;
}
.biv-tagline { letter-spacing: 8px !important; }
.biv-lead { font-size: 1.2rem !important; line-height: 1.8 !important; }

/* ─── STRENGTH CARDS ─── */
.strength-card {
  border-radius: 8px !important;
  border: 1px solid rgba(255,204,0,.08) !important;
}
.strength-card:hover { box-shadow: 0 0 60px rgba(255,204,0,.18), 0 24px 60px rgba(0,0,0,.6) !important; }
.strength-card h3 {
  font-size: 1.4rem !important; letter-spacing: 2px !important;
  transition: text-shadow .4s;
}
.strength-card:hover h3 { text-shadow: 0 0 40px rgba(255,204,0,.7) !important; }
.strength-card p { font-size: 1.05rem !important; line-height: 1.7 !important; }

/* Section heading (I NOSTRI PUNTI DI FORZA) */
#strengthsContainer + style + .strength-card,
.section h2.font-capture {
  text-shadow: 0 0 40px rgba(255,204,0,.25) !important;
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, #1c2726 0%, #0d1514 100%) !important;
  border: 1px solid rgba(255,204,0,.1) !important;
  border-radius: 12px !important;
  padding: 6rem 5% !important;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #FFCC00, transparent);
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 3.2rem) !important; }
.cta-section .btn-primary {
  padding: 1.2rem 3rem !important; font-size: 1rem !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 4px 24px rgba(255,204,0,.4) !important;
  transition: all .3s cubic-bezier(.16,1,.3,1) !important;
}
.cta-section .btn-primary:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 36px rgba(255,204,0,.55) !important;
}

/* ─── FOOTER ─── */
.site-footer {
  background: linear-gradient(180deg, #141e1d 0%, #0d1514 100%) !important;
  border-top: 0 !important;
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('world-map.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.07;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
}
.footer-inner {
  position: relative;
  z-index: 1;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.3), transparent);
}
.footer-link {
  transition: color .25s, transform .25s !important;
}
.footer-link:hover {
  color: #FFCC00 !important; transform: translateX(5px) !important; padding-left: 0 !important;
}
.footer-linkedin-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,119,181,.45) !important;
}
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,.3) !important;
}

/* ─── PAGE HEADERS (sub-pages) ─── */
.page-header {
  background-attachment: fixed !important;
  min-height: 520px !important;
}
.page-header h1 {
  font-family: 'Capture it', sans-serif !important;
  font-size: clamp(4rem, 9vw, 8rem) !important;
  font-weight: normal !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  line-height: 0.95 !important;
  background: linear-gradient(140deg, #ffffff 35%, #FFF200 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: titleIn 1s .5s cubic-bezier(.16,1,.3,1) both;
}
.page-header h1 span {
  color: inherit !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(140deg, #FFF200 0%, #FFCC00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.page-header h1::after {
  content: '';
  display: block; width: 4rem; height: 3px;
  background: #FFCC00;
  box-shadow: 0 0 16px rgba(255,204,0,.6);
  margin-top: .75rem;
  border-radius: 2px;
  animation: lineExpand .6s .6s cubic-bezier(.16,1,.3,1) both;
}

/* ─── PRODUCT CARDS ─── */
.product-card {
  border-radius: 6px !important;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease !important;
}
.product-card:hover { transform: translateY(-8px) scale(1.008) !important; }

/* ─── FORMS ─── */
.form-control {
  background: rgba(13,21,20,.7) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 4px !important;
  transition: border-color .3s, box-shadow .3s, background .3s !important;
}
.form-control:focus {
  background: rgba(20,30,29,.95) !important;
  border-color: #FFCC00 !important;
  box-shadow: 0 0 0 3px rgba(255,204,0,.12), 0 4px 16px rgba(0,0,0,.2) !important;
  outline: none !important;
}
.form-control::placeholder { color: rgba(209,213,219,.3) !important; font-style: italic; }
.form-group:focus-within label { color: #FFCC00 !important; transition: color .3s; }
.contact-form {
  background: rgba(28,39,38,.65) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  position: relative; overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.5), transparent);
}

/* ─── CARDS ─── */
.card {
  background: linear-gradient(145deg, #1e2d2b, #1c2726) !important;
  border: 1px solid rgba(255,255,255,.05) !important;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, border-color .35s !important;
}
.card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(255,204,0,.2) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 60px rgba(255,204,0,.07) !important;
}

/* ─── SCROLL TOP ─── */
#smartScrollTop {
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(255,204,0,.4) !important;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
}
#smartScrollTop:hover {
  transform: translateY(-6px) scale(1.1) !important;
  box-shadow: 0 10px 30px rgba(255,204,0,.55) !important;
}

/* ─── MODAL ─── */
.modal-content {
  box-shadow: 0 0 0 1px rgba(255,204,0,.2), 0 40px 100px rgba(0,0,0,.8) !important;
}

/* ─── PRIVACY BANNER ─── */
.privacy-banner { backdrop-filter: blur(16px) !important; }

/* ─── LETTER GROUPS ─── */
.letter-group {
  transition: transform .35s cubic-bezier(.34,1.2,.64,1), box-shadow .35s, border-color .35s, background .35s !important;
}
.letter-group:hover, .letter-group.active {
  transform: translateY(-6px) !important;
}

/* ─── HORIZONTAL NAV UNDERLINE & ALIGNMENT ─── */
.horizontal-product-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 1rem 5% !important;
  min-height: 70px !important;
}

.nav-back-button {
  position: absolute !important;
  left: 5% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  color: #FFCC00 !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
}
.nav-back-button::before {
  content: '←' !important;
  margin-right: 8px !important;
  font-size: 1.2rem !important;
  transition: transform .3s ease !important;
}
.nav-back-button:hover::before {
  transform: translateX(-4px) !important;
}
.nav-back-button:hover {
  transform: translateY(-50%) !important; /* Mantiene allineamento */
  color: #fff !important;
}

.horizontal-product-nav a { position: relative; }
.horizontal-product-nav a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #FFCC00;
  box-shadow: 0 0 8px rgba(255,204,0,.5);
  transition: width .3s cubic-bezier(.16,1,.3,1);
}
.horizontal-product-nav a:hover::after,
.horizontal-product-nav a.active::after { width: 100%; }

.nav-links-wrap {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* ─── IMG BOX ─── */
.img-box img {
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s !important;
}
.img-box:hover img {
  transform: scale(1.03) translateY(-4px) !important;
  box-shadow: 0 32px 64px rgba(0,0,0,.5) !important;
}

/* ─── FADE ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.fade-up[data-delay="1"] { transition-delay: .1s; }
.fade-up[data-delay="2"] { transition-delay: .2s; }
.fade-up[data-delay="3"] { transition-delay: .3s; }
.fade-up[data-delay="4"] { transition-delay: .4s; }
.fade-up[data-delay="5"] { transition-delay: .5s; }
.fade-up[data-delay="6"] { transition-delay: .6s; }

/* ─── INTERNO ITEMS ─── */
.interno-item { transition: border-color .3s, padding-left .3s !important; }
.interno-item:hover { padding-left: .75rem !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .made-in-italy-strip { flex-direction: column !important; gap: 1rem !important; }
  .biv-section { padding: 4rem 5% !important; }
  .cta-section { padding: 4rem 5% !important; }
  .page-header h1 { font-size: clamp(2.2rem,8vw,3.5rem) !important; letter-spacing: 2px !important; }
}

/* ════════════════════════════════════════════════
   GLOBAL PREMIUM EFFECTS — ALL PAGES
   ════════════════════════════════════════════════ */

/* ─── PAGE TRANSITION ─── */
body {
  transition: opacity 0.4s ease;
}

/* ─── PAGE HEADER (Sub-pages) — CINEMATIC ─── */
.page-header {
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: 2rem; left: 2rem;
  width: 50px; height: 50px;
  border-top: 2px solid rgba(255,204,0,.4);
  border-left: 2px solid rgba(255,204,0,.4);
  pointer-events: none; z-index: 3;
  animation: cornerDraw .8s .3s cubic-bezier(.16,1,.3,1) both;
}
.page-header h1 {
  animation: titleIn .8s .4s cubic-bezier(.16,1,.3,1) both;
}
.page-header .page-subtitle {
  animation: fadeUp .8s .6s cubic-bezier(.16,1,.3,1) both;
}

/* ─── SECTION DIVIDERS — ACCENT LINES ─── */
.section {
  position: relative;
}
.section + .section::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.12), transparent);
  pointer-events: none;
}

/* ─── SECTION TITLES — GLOW UNDERLINE ─── */
.section-title {
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #FFCC00, rgba(255,204,0,.3));
  border-radius: 3px;
  margin: .75rem auto 0;
  box-shadow: 0 0 12px rgba(255,204,0,.4);
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.section-title:hover::after {
  width: 90px;
}

/* ─── PRODUCT CARDS — SHINE EFFECT ─── */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none; z-index: 5;
}
.product-card:hover::before {
  opacity: 1;
  animation: shimmer .8s ease forwards;
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ─── PRODUCT OVERLAY BUTTONS — SLIDE IN ─── */
.product-overlay-btn {
  transition: all .28s cubic-bezier(.16,1,.3,1) !important;
}
.product-overlay-btn:hover {
  transform: translateX(6px) !important;
  color: #FFCC00 !important;
}

/* ─── GALLERY IMAGES — REVEAL + DEPTH ─── */
.gallery-item, .gallery-thumb {
  overflow: hidden;
  border-radius: 6px;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.gallery-item:hover, .gallery-thumb:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 40px rgba(255,204,0,.08);
}
.gallery-item img, .gallery-thumb img {
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.gallery-item:hover img, .gallery-thumb:hover img {
  transform: scale(1.06);
}

/* ─── SERVIZI CARDS ─── */
.servizio-card, .service-card {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .3s !important;
}
.servizio-card:hover, .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 40px rgba(255,204,0,.08);
  border-color: rgba(255,204,0,.2) !important;
}

/* ─── AZIENDA — IMAGE BOXES ─── */
.img-box {
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}
.img-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.3));
  pointer-events: none; opacity: 0;
  transition: opacity .4s;
}
.img-box:hover::after { opacity: 1; }

/* ─── CONTATTI — FORM UPGRADE ─── */
.contact-form {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.5), transparent);
  pointer-events: none;
}

/* ─── CONTATTI — INFO CARDS GLOW ─── */
.contact-info-card, [style*="border-radius: 8px"][style*="border: 1px solid"] {
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.16,1,.3,1) !important;
}
.contact-info-card:hover, [style*="border-radius: 8px"][style*="border: 1px solid"]:hover {
  border-color: rgba(255,204,0,.25) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.4), 0 0 30px rgba(255,204,0,.06) !important;
  transform: translateY(-3px) !important;
}

/* ─── RETE DI VENDITA — LETTER GROUPS PREMIUM ─── */
.letter-group {
  position: relative;
  overflow: hidden;
}
.letter-group::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,.3), transparent);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.letter-group:hover::before, .letter-group.active::before {
  opacity: 1;
}

/* ─── LINKS — ACCENT GLOW ON HOVER ─── */
a:not(.btn):not(.nav-panel a):not(.footer-link):not(.lang-menu a) {
  transition: color .25s ease;
}
a:not(.btn):not(.nav-panel a):not(.footer-link):not(.lang-menu a):hover {
  text-shadow: 0 0 12px rgba(255,204,0,.2);
}

/* ─── TABLE ROWS (Documentazione pages) ─── */
table tr {
  transition: background .25s ease;
}
table tr:hover {
  background: rgba(255,204,0,.04) !important;
}
table th {
  border-bottom: 2px solid rgba(255,204,0,.3) !important;
}

/* ─── NAV PANEL — GLASSMORPHISM ─── */
.nav-panel {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.nav-panel a {
  transition: background .2s, color .2s, padding-left .2s !important;
}
.nav-panel a:hover {
  padding-left: 1.5rem !important;
  background: rgba(255,204,0,.08) !important;
}

/* ─── LANG MENU — GLASSMORPHISM ─── */
.lang-menu {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,204,0,.1) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.6) !important;
  border-radius: 8px !important;
}

/* ─── FOOTER — PREMIUM LINKS ─── */
.footer-link {
  position: relative;
  transition: color .25s ease, transform .25s ease !important;
}
.footer-link:hover {
  color: #FFCC00 !important;
  transform: translateX(4px) !important;
}

/* ─── MODAL — DEPTH ─── */
.modal-content {
  box-shadow: 0 0 0 1px rgba(255,204,0,.15), 0 40px 100px rgba(0,0,0,.8) !important;
  backdrop-filter: blur(8px);
}

/* ─── SCROLL TOP BUTTON ─── */
#smartScrollTop, #scrollTopBtn {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(255,204,0,.4) !important;
  transition: all .3s cubic-bezier(.34,1.56,.64,1) !important;
}
#smartScrollTop:hover, #scrollTopBtn:hover {
  transform: translateY(-6px) scale(1.1) !important;
  box-shadow: 0 10px 30px rgba(255,204,0,.55) !important;
}

/* ─── PRIVACY BANNER — GLASS ─── */
.privacy-banner {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255,204,0,.1);
}

/* ─── SMOOTH SCROLL ─── */
html {
  scroll-behavior: smooth;
}

/* Page Transition */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg, #0a0c10);
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.page-transition-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-transition-overlay .loader {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: rotation 2.5s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.4));
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── FULL WIDTH OVERRIDE FOR CONTACT PAGE ─── */
.section-full-width {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
  margin: 0 auto !important;
}
@media (max-width: 768px) {
  .section-full-width {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ─── CONTACT PAGE RESPONSIVE GRID ─── */
@media (max-width: 900px) {
  .section-full-width > .fade-up[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .contact-form {
    margin: 0 !important;
  }
}
