/*
Theme Name: IdeaHub Elementor
Theme URI: https://ideahub.it
Author: IdeaHub Team
Description: Tema professionale IdeaHub con widget Elementor personalizzati per Compliance, Governance e Gestione del Rischio Legale.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ideahub
Tags: business, professional, legal, compliance, elementor
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --ih-dark:           #0a0a1a;
  --ih-dark-blue:      #0d1033;
  --ih-navy:           #111440;
  --ih-purple:         #6b4fbb;
  --ih-purple-light:   #8b6fd4;
  --ih-accent:         #c084fc;
  --ih-white:          #ffffff;
  --ih-light:          #f8f8ff;
  --ih-gray:           #6b7280;
  --ih-gray-light:     #e5e7eb;
  --ih-text:           #1f2937;
  --ih-text-muted:     #6b7280;
  --ih-font-heading:   'Poppins', sans-serif;
  --ih-font-body:      'Poppins', sans-serif;
  --ih-radius:         8px;
  --ih-radius-lg:      16px;
  --ih-shadow:         0 4px 24px rgba(107,79,187,0.15);
  --ih-shadow-lg:      0 8px 48px rgba(107,79,187,0.25);
  --ih-transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================
   BASE RESET
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ih-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ih-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===========================
   HEADER
=========================== */
.admin-bar .ih-snews-hero { margin-top: -32px; }
.ih-single-news { padding-top: 0 !important; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 24px 0;
  transition: var(--ih-transition);
}
.site-header.scrolled {
  background: rgba(10,10,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.header-inner {
  width: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 60px; width: auto; }
.site-logo-svg { display: block; color: #ffffff; }
.site-logo-svg svg { height: 80px; width: auto; display: block; margin: 10px 0 0 200px; transition: height 0.3s ease; }
.site-header.scrolled .site-logo-svg svg { height: 60px; }
.site-logo-text {
  font-family: var(--ih-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a {
  font-family: var(--ih-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  transition: var(--ih-transition);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--ih-transition);
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .current-menu-item > a { opacity: 0.75; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff;
  transition: var(--ih-transition);
}

/* ===========================
   ELEMENTOR OVERRIDES
=========================== */
.elementor-section { position: relative; }

/* Hero: wrapper posizione relativa per i tab assoluti */
.elementor-8 .elementor-element.elementor-element-8ffe8a9 .ih-hero-carousel-wrap {
  position: relative;
}

/* Force hero container full width — stessa specificità di Elementor */
.elementor-8 .elementor-element.elementor-element-a9481ca {
  --container-max-width: 100%;
  --content-width: 100%;
  max-width: 100%;
}
.elementor-8 .elementor-element.elementor-element-a9481ca > .elementor-widget-container,
.elementor-8 .elementor-element.elementor-element-a9481ca .ih-hero-carousel-wrap {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--ih-dark);
  padding: 36px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo-text {
  font-family: var(--ih-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--ih-dark);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 9998;
  }
  .site-nav.open a { font-size: 22px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
