/* =========================================================
   GigaPX Tools - Modern theme (2026)
   Restyling moderno: palette minimale bianca + accento.
   Caricato DOPO style.css: ridefinisce colori e componenti
   mantenendo i nomi di classe originali.
   Per cambiare l'accento basta modificare --accent / --accent-2.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --text: #12151c;
  --muted: #5b6472;
  --border: #e6e8ee;
  --accent: #5b4be0;
  --accent-2: #4438c9;
  --accent-soft: #eeecff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --hero-veil-top: .25;      /* oscuramento hero in alto (0 = nessuno, 1 = nero) */
  --hero-veil-bottom: .00;   /* oscuramento hero in basso */
  --hero-height: 88vh;      /* altezza hero: 88vh = fascia, 100vh = tutto schermo */
  --hero-focus: 50%;        /* inquadratura verticale: 0% = alto, 50% = centro, 100% = basso */
  --hero-pad-top: 26vh;     /* distanza del testo dalla cima, in % dell'altezza schermo (valori minori = testo più in alto) */
}

html,
body {
  font-family: "Open Sans", "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

p {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

h1, h2, h3, h4 { color: var(--text); letter-spacing: -.01em; }

a { color: var(--accent); }
a:hover,
a:focus { color: var(--accent-2); }

.section-title h2 { font-weight: 800; }

.section-title hr,
#products-section hr,
#download-section hr,
#credits-section hr,
#testimonials-section hr,
#contact-section hr {
  height: 4px;
  width: 56px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease;
}
#preloader.loaded { opacity: 0; pointer-events: none; }
.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: px-spin .8s linear infinite;
}
@keyframes px-spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
#menu { padding: 14px 0; transition: all .3s; }
#menu.navbar-default {
  background-color: transparent;
  border-color: transparent;
}
#menu.navbar-default .navbar-nav > li > a {
  color: rgba(255, 255, 255, .92);
  text-transform: none;
  letter-spacing: .2px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
}
#menu.navbar-default .navbar-nav > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
#menu a.navbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .4px;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
#menu a.navbar-brand i.fa { color: var(--accent-soft); }
.on {
  background-color: rgba(255, 255, 255, .94) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 6px 0 !important;
}
#menu.on .navbar-nav > li > a { color: var(--muted); }
#menu.on .navbar-nav > li > a:hover { color: var(--accent); background: var(--accent-soft); }
#menu.on a.navbar-brand { color: var(--text); opacity: 1; visibility: visible; }
.navbar-default .navbar-toggle { border-color: rgba(255, 255, 255, .4); border-radius: 10px; }
.navbar-default .navbar-toggle .icon-bar { background: #fff; }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.navbar-default .navbar-toggle:hover > .icon-bar { background: #fff; }
#menu.on .navbar-default .navbar-toggle { border-color: var(--border); }
#menu.on .navbar-default .navbar-toggle .icon-bar { background: var(--text); }
#menu.on .navbar-default .navbar-toggle:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
#menu.on .navbar-default .navbar-toggle:hover > .icon-bar { background: var(--accent); }

/* ---------- Hero ---------- */
header {
  background: linear-gradient(180deg, rgba(18, 21, 28, var(--hero-veil-top)), rgba(18, 21, 28, var(--hero-veil-bottom))),
              url(../img/gigapxtools_Hero.webp) no-repeat center var(--hero-focus) / cover;
}
.intro-text {
  height: var(--hero-height);
  padding: var(--hero-pad-top) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.intro-text h1 { font-size: 72px; font-weight: 800; color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, .95); margin: 0 0 20px; }
header p { color: rgba(255, 255, 255, .9); margin-bottom: 0; }
.slogan {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 600;
}
.color { color: #c9c2ff; }

/* ---------- Buttons ---------- */
.btn-default {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 22px;
  box-shadow: var(--shadow-sm);
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}
.btn.btn-buy { background: var(--text) !important; border-color: var(--text) !important; color: #fff !important; }
.btn.btn-buy:hover { background: var(--accent) !important; border-color: var(--accent) !important; }

/* Testo bianco sui bottoni anche dove style.css impone #404040 */
#download-section .btn-default,
#download-section .btn-default:link,
#download-section .btn-default:visited,
#download-section .btn-default:hover,
#download-section .btn-default:focus,
#download-section .btn-default:active,
#download-section .btn-default.active { color: #fff; }

/* ---------- Products ---------- */
#products-section { background: var(--bg); background-image: none; color: var(--text); }
.products-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 30px;
  transition: transform .3s, box-shadow .3s;
}
.products-item:hover { background: var(--card); transform: translateY(-4px); box-shadow: var(--shadow); }
.products-item h4 { font-size: 24px; font-weight: 800; }
.products-item p { color: var(--muted); }
.product-img { height: auto; margin-bottom: 10px; }
#products-section h3 { font-size: 22px; font-weight: 600; color: var(--muted); }
.product-detail { text-align: left; }
.product-detail p { font-size: 16px; }
.section-title .lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
}
/* Screenshot carosello: immagini native 648x830 px, mostrate al 75% (= 486px) */
#screenshots img { max-width: 486px; }

/* ---------- Pricing / Download ---------- */
#download-section { background: var(--bg-soft); background-image: none; color: var(--text); }
#download-section h3 { font-size: 22px; font-weight: 700; color: var(--text); }
#download-section a { color: var(--accent); }
#download-section .row:has(.download-item) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
#download-section .row:has(.download-item) > [class*="col-"] { display: flex; }
.download-item {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
  text-align: left;
  transition: transform .3s, box-shadow .3s;
}
.download-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.download-item h4 {
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.download-item p { font-size: 14px; color: var(--muted); }
p.download-item-price { font-size: 32px; font-weight: 800; color: var(--text); text-align: center; }
.halfspace_line { border-color: var(--border); }
.btn-group { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
#testimonials-section { background: var(--bg); background-image: none; color: var(--text); }
.users-item {
  height: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  padding: 22px;
}
.users-item a { color: var(--accent); }
.user-img { height: auto; }
.owl-theme .owl-controls .owl-page span { background: var(--border); }
.owl-theme .owl-controls .owl-page.active span { background: var(--accent); }

/* ---------- Credits ---------- */
#credits-section { background: var(--bg-soft); background-image: none; color: var(--text); }
p.caption-sub { color: var(--accent); }
#credits-section .thumbnail .caption { color: var(--muted); }

/* ---------- Contact ---------- */
#contact-section { background: var(--bg); background-image: none; color: var(--muted); }
#contact-section .fa,
#contact-section a { color: var(--accent); }
#contact-section .form-control {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
}
#contact-section .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#contact-section .btn { background: var(--accent); border: 1px solid var(--accent); color: #fff; border-radius: 999px; }
#contact-section .btn:hover,
#contact-section .btn:focus { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- Buy table ---------- */
.table-buy { width: 100%; }
.table-buy th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.table-buy td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.table-buy .prod-quantity,
.table-buy .prod-total { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: #fff; }
.table-border-top,
.table-border-bottom { border-color: var(--border); }

/* ---------- Footer ---------- */
#footer { background: var(--text); color: rgba(255, 255, 255, .6); }
#footer a { color: rgba(255, 255, 255, .85); }
#footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .intro-text { height: auto; padding: 140px 0 90px; }
  .intro-text h1 { font-size: 44px; }
  #menu .navbar-collapse { background: rgba(18, 21, 28, .96); border-radius: 14px; padding: 10px; }
  #menu.navbar-default .navbar-nav > li > a,
  #menu.on .navbar-nav > li > a { color: #fff; padding: 12px 14px; }
  #download-section .row:has(.download-item) { display: block; }
}
