/* Hero compatibility */
.lead.mb-5 {
  margin-bottom: 8px !important;
}

.compat-line {
  font-size: 16px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  font-weight: 400;
  margin-bottom: 20px;
}

.jbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  color: white;
  margin-left: 4px;
  margin-right: 4px;
}

.jicon {
  margin-right: 2px;
  font-size: 0.85em;
}

.j4 {
  background: linear-gradient(135deg, #1e87f0, #0e67c0);
}

.j5 {
  background: linear-gradient(135deg, #7e57c2, #5e35b1);
}
.login-button-wrap .btn-outline-primary {
  padding: 0.6875rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
}


.login-button-wrap .btn-outline-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 70, 83, 0.35);
  color: #fff;
  text-decoration: none;
}

.login-button-wrap .btn-outline-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.2);
}
/* Login Dropwdon */
.login-button-wrap .dropdown .btn-secondary {
  padding: 10px 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(44, 158, 143, 0.25);
  transition: all 0.3s ease;
}

.login-button-wrap .dropdown .btn-secondary:hover,
.login-button-wrap .dropdown .btn-secondary:focus {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 70, 83, 0.35);
  color: #fff;
}

.login-button-wrap .dropdown .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.2);
}

.login-button-wrap .dropdown .btn-secondary::after {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.login-button-wrap .dropdown .btn-secondary:hover::after {
  transform: translateY(-2px);
}

.login-button-wrap .dropdown-menu {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  margin-top: 10px;
  min-width: 220px;
}

.login-button-wrap .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 25px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-left: 1px solid rgba(0,0,0,0.06);
}

.login-button-wrap .dropdown-item-text {
  color: var(--primary);
  padding: 8px 20px;
  font-size: 15px;
}

.login-button-wrap .dropdown-menu ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-button-wrap .dropdown-menu ul.menu li {
  margin: 0;
  padding: 0;
}

.login-button-wrap .dropdown-menu ul.menu li a,
.login-button-wrap .dropdown-menu .dropdown-item {
  color: var(--text-light);
  padding: 8px 20px;
  font-size: 14px;
  display: block;
  transition: all 0.3s ease;
  background: transparent;
}

.login-button-wrap .dropdown-menu ul.menu li a:hover,
.login-button-wrap .dropdown-menu .dropdown-item:hover {
  background: rgba(44, 158, 143, 0.05);
  color: var(--primary);
  padding-left: 23px;
  text-decoration: none;
}

.login-button-wrap .dropdown-menu .dropdown-item[href*="task=user.logout"] {
  color: #dc3545;
  font-weight: 500;
}

.login-button-wrap .dropdown-menu .dropdown-item[href*="task=user.logout"]:hover {
  background: rgba(220, 53, 69, 0.05);
  color: #b02a37;
}

.login-button-wrap .dropdown-divider {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 8px 0;
}

.login-button-wrap .dropdown-menu .fas {
  transition: transform 0.3s ease;
}

.login-button-wrap .dropdown-menu .dropdown-item:hover .fas {
  transform: translateX(3px);
}
/* form login */
.login .form-validate {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 25px;
}


.login .form-validate .mb-3:has(#username),
.login .form-validate .mb-3:has(.password-group) {
  margin-bottom: 22px;
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.login .form-validate .mb-3:has(#username)::after,
.login .form-validate .mb-3:has(.password-group)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.login .form-validate .mb-3:has(#username):hover::after,
.login .form-validate .mb-3:has(.password-group):hover::after {
  background: rgba(44, 158, 143, 0.3);
}

.login .form-validate .mb-3:has(#username):focus-within::after,
.login .form-validate .mb-3:has(.password-group):focus-within::after {
  background: var(--primary);
  box-shadow: 0 1px 6px rgba(44, 158, 143, 0.4);
}

.login .form-validate .form-label {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.login .form-validate .form-control {
  border: none;
  border-radius: 0;
  padding: 16px 5px;
  font-size: 15px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.login .form-validate .form-control:focus {
  background: transparent;
  box-shadow: none;
}

.login .form-validate .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login .form-validate .form-control:focus::placeholder {
  opacity: 0.5;
  transform: translateY(-5px);
  font-size: 13px;
}

.login .form-validate .input-group {
  background: transparent;
  border-radius: 0;
}

.login .form-validate .input-group-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 16px 5px 16px 0;
  transition: all 0.3s ease;
}

.login .form-validate .input-group:focus-within .input-group-text,
.login .form-validate .input-group:focus-within .input-group-text .fas {
  color: var(--primary);
}

.login .form-validate .input-group-text .fas {
  transition: all 0.3s ease;
}

.login .form-validate .input-group:focus-within .input-group-text .fas {
  transform: translateY(-2px);
}

.login .form-validate .input-password-toggle {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  padding: 16px 5px 16px 10px !important;
  transition: all 0.3s ease !important;
}

.login .form-validate .input-password-toggle:hover,
.login .form-validate .input-password-toggle:focus,
.login .form-validate .input-password-toggle:active {
  background: transparent !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
}

.login .form-validate .input-group:focus-within .input-password-toggle {
  color: var(--primary) !important;
}

.login .form-validate .input-password-toggle .icon-eye {
  transition: transform 0.3s ease;
}

.login .form-validate .input-password-toggle:hover .icon-eye {
  transform: translateY(-2px);
}

.login .form-validate .form-check {
  padding-left: 28px;
  margin: 5px 0 20px 0;
}

.login .form-validate .form-check-input {
  width: 18px;
  height: 18px;
  margin-left: -28px;
  margin-top: 0;
  border: 2px solid rgba(44, 158, 143, 0.3);
  border-radius: 4px;
  background-color: #f8f9fa;
  cursor: pointer;
}

.login .form-validate .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.login .form-validate .form-check-label {
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
}

.login .form-validate .btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(44, 158, 143, 0.25);
  transition: all 0.3s ease;
}

.login .form-validate .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 70, 83, 0.35);
}

.login .form-validate .btn-primary:active {
  transform: translateY(0);
}

.login .list-group {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 15px;
  border-radius: 0;
}

.login .list-group-item {
  margin-bottom: 10px;
  padding: 8px 5px;
  transition: padding-left 0.2s ease;
  border: none;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: block;
}

.login .list-group-item:hover {
  padding-left: 8px;
  background: transparent;
  color: var(--primary);
}

.login .list-group-item:last-child {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login .list-group-item:last-child:hover {
  color: var(--primary-dark);
}
@media (max-width: 576px) {
  .login-button-wrap .btn-outline-primary {
  padding: 0.5rem 0.75rem;
 font-weight: 500;
    }
}
@media (max-width: 768px){
.login-button-wrap .dropdown .btn-secondary {
   padding: 6px 12px;
}
}
/* Enhanced styling for the hero subtitle */
.fabrik-hero .lead {
  font-size: 2rem;         
  opacity: 1;              
  color: var(--primary);    
  font-weight: 600;        
  letter-spacing: 0.5px;    
  margin-bottom: 2.5rem;   
  position: relative;      
  display: inline-block;  
  padding: 0.2rem 1rem;     
  border-radius: 4px;       
  background-color: rgba(255, 255, 255, 0.3); 
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);   
  transform: translateY(-10px); 
margin-top:20px
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .fabrik-hero .lead {
    font-size: 1.5rem;
    padding: 0.1rem 0.7rem;
  }
}

@media (max-width: 576px) {
  .fabrik-hero .lead {
    font-size: 1.3rem;
    transform: translateY(-5px);
  }
}
.version-tag {
  position: absolute;
  top: 15px;
  right: -60px;
  transform: rotate(5deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  z-index: 10; /* Aumentato z-index per garantire cliccabilità */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.version-text {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 6px 20px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 700;
  position: relative;
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  animation: float 3s ease-in-out infinite;
}

.changelog-link {
  margin-top: 8px;
  font-size: 0.7em;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 3px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 15;
  transform: rotate(-2deg); /* Leggera rotazione in direzione opposta */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.changelog-link:hover {
  background-color: white;
  color: var(--accent);
  transform: rotate(-2deg) translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ======================================================
   VARIABILI CSS GLOBALI
========================================================= */
:root {
  /* Colori principali */
  --primary: #2a9d8f;
  --primary-dark: #264653;
  --primary-light: #4895ef;
  --accent: #f72585;
  --accent-dark: #b5179e;
  --accent-light: #f8edeb;
  
  /* Colori testo */
  --text: #1a1a2e;
  --text-light: #6c757d;
  --text-muted: #7f8c8d;
  
  /* Sfondi */
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --bg-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --bg-hero-gradient: radial-gradient(circle at 70% 40%, #e6edcb 0%, #9cd6dd 100%);
  
  /* Dimensioni e bordi */
  --border-radius: 20px;
  --border-radius-sm: 10px;
  
  /* Ombre */
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
  
  /* Transizioni */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
#sp-main-body {
	background-color: #f5f8f2;
	padding-top: 80px;
}
.sp-sign-in {
     padding: 10px 20px;
color: white;
 border-radius: 50px;
  background-color: #3aaa9e; /* Verde acqua che si abbina al tuo gradiente */
 }

.sp-sign-in:hover {
  background-color: #2c8c82; /* Versione più scura per l'hover */
  transform: translateY(-2px);
color: white
}

/* Alert message (bottom right) */
#system-message-container {
    width: 100%;
      z-index: 1000;
  top: 50px;
    bottom: unset;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 15px;
}

#system-message-container joomla-alert {
    margin-bottom: 20px;
  font-size: 1rem;
  border:solid;
  border-left:solid 40px;
  background:white;
  padding:20px;
}

.view-login #system-message-container {
    max-width: 600px;
}


/* ======================================================
   STILI BASE E RESET
========================================================= */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* ======================================================
   HERO SECTION PRINCIPALE
========================================================= */
.fabrik-hero {
  background: var(--bg-hero-gradient);
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: 60px 0;
}

#sp-header {
  background: var(--bg-hero-gradient);
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.05) 50%,
    rgba(156,214,221,0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Intestazione */
.display-1 {
  margin-top: 30px;
  font-size: calc(2rem + 3vw);
  line-height: 1.2;
  font-weight: bold;
}

/* Versione tag */
.version-tag {
  position: absolute;
  top: 15px;
  right: -60px;
  transform: rotate(5deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  z-index: 2;
}

.version-text {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 6px 20px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 700;
  position: relative;
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  animation: float 3s ease-in-out infinite;
}

.version-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(42,157,143,0.2);
  filter: blur(12px);
  top: 0;
  left: 0;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Testo evidenziato */
.text-highlight {
  color: var(--primary-dark);
  display: inline-block;
  position: relative;
  margin-right: 30px;
  z-index: 1;
  font-weight: 900;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 106%;
  height: 12px;
  background: rgba(42,157,143,0.2);
  z-index: -1;
  border-radius: 4px;
  transform: skew(-15deg);
}

/* Computer Mockup */
.computer-mockup {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  perspective: 1000px;
}

.screen-frame {
  background: #0f172a;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.3),
    0 0 0 2px rgba(255,255,255,0.1);
  transform: rotateX(5deg) rotateY(-10deg);
}

.screen-content {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  height: auto;
}

.camera-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.base {
  width: 110%;
  height: 20px;
  background: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
  top: -5px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 100px; 
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  justify-content: center;
  gap: 10px;
}

.btn-demo {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: white;
  border: none;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-icon {
  font-size: 1.3em;
}

.buttons-wrapper {
  padding: 30px 0;
}

.btn-container {
  gap: 20px !important;
}

/* Pulsanti principali */
.btn-dark {
  background: var(--primary-dark);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  border: none;
  transition: all 0.2s ease;
}

.btn-dark:hover, .btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: #228176;
}

/* ======================================================
   stats
========================================================= */
.stats-container {
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.stat-box {
  padding: 1.8rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.25);
}

.stat-icon {
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 157, 143, 0.1);
  border-radius: 50%;
  color: var(--primary);
}

.stat-title {
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.stat-value p {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}
.fabrik-intro-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 0 40px;
  position: relative;
  background: linear-gradient(180deg, rgba(248,249,250,0) 0%, rgba(67,97,238,0.03) 100%);
  border-radius: var(--border-radius);
}

.intro-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
  transform: rotate(3deg);
}

.intro-decoration {
  position: absolute;
  width: 60%;
  height: 8px;
  background: var(--bg-gradient);
  border-radius: 4px;
  bottom: 0;
  left: 20%;
  opacity: 0.7;
}

.fabrik-intro-section h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.fabrik-intro-section .text-highlight {
  color: var(--primary);
}

.fabrik-intro-section .text-highlight::after {
  bottom: 4px;
  left: -5px;
  right: -5px;
  height: 12px;
  background-color: rgba(67, 97, 238, 0.15);
  width: auto;
}

.fabrik-intro-section p {
  font-size: 24px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 30px;
  font-weight: 300;
}

/* Style bottom */
#sp-bottom {
  background-color: #4ba69a; /* Verde medio-chiaro */
  padding: 60px 0 40px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#sp-bottom1 .mod-custom.custom > div:first-child img {
  max-height: 55px;
  margin-bottom: 20px;
}

#sp-bottom1 .mod-custom.custom > div:nth-child(2) {
  color: #f5fffd; 
  font-size: 15px;
  line-height: 1.6;
  max-width: 90%;
}

#sp-bottom h4.footer-heading {
  color: #ffffff; 
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: none;
}

#sp-bottom h4.footer-heading:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #e0f5f2; 
}

#sp-bottom .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sp-bottom .footer-links li {
  margin-bottom: 14px;
}

#sp-bottom .footer-links a {
  color: #e0f5f2; 
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 400;
  display: inline-block;
}

#sp-bottom .footer-links a:hover {
  color: #ffffff; 
  transform: translateX(5px);
}

#sp-bottom3 .footer-links a i.fab.fa-github {
  margin-right: 5px;
  font-size: 16px;
  vertical-align: middle;
}


#sp-footer {
  background-color: #3d8d82 !important; 
}


#sp-footer .sp-copyright {
  color: #e0f5f2;
  font-size: 14px;
}

#sp-footer a {
  color: #e0f5f2;
}

#sp-footer a:hover {
  color: #ffffff;
}




/* ======================================================
   MODERN CONTAINER
========================================================= */
.fabrik-modern-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}



.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
  transform: rotate(3deg);
}

.hero-decoration {
  position: absolute;
  width: 60%;
  height: 8px;
  background: var(--bg-gradient);
  border-radius: 4px;
  bottom: 0;
  left: 20%;
  opacity: 0.7;
}


/* ======================================================
   FEATURES GRID
========================================================= */
.toggle-btn::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.fabrik-feature.active .toggle-btn::after {
  transform: rotate(-135deg);
}
.fabrik-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1200px) {
  .fabrik-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .fabrik-features-grid {
    grid-template-columns: 1fr;
  }
}

.fabrik-feature {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition-bounce);
  border: 1px solid rgba(0,0,0,0.05);
  height: fit-content;
}

.fabrik-feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-header {
  display: flex;
  align-items: center;
  padding: 25px;
  cursor: pointer;
  position: relative;
  background: var(--bg-light);
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-header:hover {
  background: rgba(67, 97, 238, 0.05);
}

.feature-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  padding: 5px;
  position: relative;
  overflow: hidden;
}

.icon-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(67,97,238,0.2) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
  transform: scale(0.5);
}

.fabrik-feature:hover .icon-glow {
  opacity: 1;
  transform: scale(1.5);
}

.feature-icon img {
  max-width: 90%;
  max-height: 90%;
  z-index: 2;
  transition: var(--transition);
}

.fabrik-feature:hover .feature-icon img {
  transform: scale(1.15);
}

.feature-header h3 {
  flex: 1;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(67, 97, 238, 0.1);
}

.toggle-btn:hover {
  background: rgba(67, 97, 238, 0.2);
}

.chevron-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.fabrik-feature.active .toggle-btn .chevron-icon {
  transform: rotate(180deg);
}

.feature-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease;
  opacity: 0;
}

.fabrik-feature.active .feature-content {
  padding: 1.8rem;
  max-height: 2000px;
  opacity: 1;
}

.feature-content p {
  color: var(--text);
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 17px;
}

.feature-benefits {
  background: rgba(67, 97, 238, 0.03);
  border-radius: 16px;
  padding: 25px 30px;
  margin-bottom: 25px;
  border-left: 5px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.feature-benefits::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(67,97,238,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.feature-description {
  font-size: 16px;
  color: var(--text-light);
  background: rgba(247, 37, 133, 0.03);
  padding: 22px;
  border-radius: 16px;
  margin-top: 22px;
  line-height: 1.6;
  border-left: 5px solid var(--accent);
}

.feature-content ul {
  list-style-type: none;
  padding-left: 5px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 22px;
}

.feature-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.feature-content ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
  background: rgba(67, 97, 238, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.feature-action {
  margin-top: 28px;
  text-align: right;
}

/* ======================================================
   BOTTONI E CTA
========================================================= */
.fabrik-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--bg-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.2);
}

.button-arrow {
  margin-left: 8px;
  transition: var(--transition);
}

.fabrik-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.fabrik-button:hover .button-arrow {
  transform: translateX(6px);
}

.fabrik-cta {
  text-align: center;
  margin: 80px 0 30px;
}

.fabrik-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  transition: var(--transition-bounce);
  box-shadow: 0 10px 25px rgba(247, 37, 133, 0.25);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.fabrik-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: var(--transition);
}

.fabrik-cta-button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 35px rgba(247, 37, 133, 0.35);
}

.fabrik-cta-button:hover::before {
  left: 100%;
  transition: 0.7s;
}

.cta-arrow {
  margin-left: 15px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.cta-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fabrik-cta-button:hover .cta-arrow {
  transform: translateX(6px);
}

/* ======================================================
   MODULO PRODOTTI
========================================================= */
.fabrik-module-products-container {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Intestazione della sezione */
.fabrik-module-section-header {
  text-align: center;
  margin: 0 0 40px 0;
  padding-bottom: 20px;
  position: relative;
}

.fabrik-module-section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #3d8ea5;
  border-radius: 2px;
}

.fabrik-module-section-title {
  font-size: 48px;
  color: #140a42;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.fabrik-module-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 5px;
}

/* Contenitore delle card prodotto */
.fabrik-module-products-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Stile per ogni singola card */
.fabrik-module-product-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fabrik-module-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Header del prodotto */
.fabrik-module-product-header {
  background: #3d8ea5;
  color: #ffffff;
  padding: 15px;
  text-align: center;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fabrik-module-product-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Immagine del prodotto */
.fabrik-module-product-image {
  padding: 20px;
  background: #f9f9f9;
  text-align: center;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fabrik-module-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Descrizione del prodotto */
.fabrik-module-product-description {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.fabrik-module-product-description p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Pulsanti azione */
.fabrik-module-product-actions {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stili comuni per i pulsanti */
.fabrik-module-btn-more, 
.fabrik-module-btn-buy,
.fabrik-module-btn-secondary {
  padding: 12px 20px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.95rem;
}

.fabrik-module-btn-more i, 
.fabrik-module-btn-buy i,
.fabrik-module-btn-secondary i {
  margin-right: 8px;
}

/* Colori dei pulsanti */
.fabrik-module-btn-more {
  background-color: #3d8ea5;
  color: white;
}

.fabrik-module-btn-buy {
  background-color: #27ae60;
  color: white;
}

.fabrik-module-btn-secondary {
  background-color: #95a5a6;
  color: white;
}

/* Effetti hover */
.fabrik-module-btn-more:hover {
  background-color: #4255c8;
}

.fabrik-module-btn-buy:hover {
  background-color: #219653;
}

.fabrik-module-btn-secondary:hover {
  background-color: #7f8c8d;
}

/* Sezione dettagli espandibile */
.fabrik-module-product-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background: #f8f9fa;
  border-top: 0px solid #e9ecef;
}

.fabrik-module-product-details.fabrik-module-active {
  max-height: 800px;
  border-top: 1px solid #e9ecef;
}

.fabrik-module-details-content {
  padding: 20px 20px 10px;
}

.fabrik-module-details-content p {
  margin: 0 0 15px;
  color: #555;
  line-height: 1.6;
  font-size: 0.9rem;
}

.fabrik-module-buttons-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
}

.fabrik-module-buttons-extra .fabrik-module-btn-secondary {
  font-size: 0.85rem;
  padding: 8px 15px;
}

/* Modal per prodotti */
.fabrik-module-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.fabrik-module-modal-overlay.fabrik-module-active {
  opacity: 1;
  visibility: visible;
}

.fabrik-module-modal {
  background-color: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.fabrik-module-modal-overlay.fabrik-module-active .fabrik-module-modal {
  transform: translateY(0);
}

.fabrik-module-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #3d8ea5;
  border-radius: 8px 8px 0 0;
  color: white;
}

.fabrik-module-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.fabrik-module-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.fabrik-module-modal-close:hover {
  color: #f1c40f;
}

.fabrik-module-modal-content {
  padding: 25px;
  overflow-y: auto;
  flex-grow: 1;
}

.fabrik-module-modal-content p {
  margin: 0 0 15px;
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
}

.fabrik-module-modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

/* ======================================================
   MEDIA QUERIES RESPONSIVE
========================================================= */
@media (max-width: 992px) {
  .version-tag {
    right: -45px;
    top: 10px;
    transform: rotate(3deg) scale(0.9);
  }
  
  .computer-mockup {
    margin-top: 2rem;
  }
  
  .fabrik-modern-container .fabrik-hero h2 {
    font-size: 42px;
  }
  
  .fabrik-modern-container .fabrik-hero p {
    font-size: 20px;
  }
   .hero-content {
    text-align: center;
    padding-right: 0 !important;
  }
  
  .display-1, .lead {
    text-align: center;
  }
}
  
  .fabrik-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .fabrik-module-section-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .fabrik-hero {
    padding: 40px 0;
    min-height: auto;
  }
  
  .version-tag {
    right: -35px;
    top: 5px;
    font-size: 0.8em;
  }
  
  .text-highlight {
    margin-right: 20px;
  }
  
  .btn-lg {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .btn-container {
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
  }
  
  .stats-container {
    margin-top: 1.5rem;
  }
  
  .stat-value p {
    font-size: 1.8rem;
  }
  
  .stat-box {
    padding: 1.2rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
  }
  
  @media (max-width: 992px) {
  .fabrik-intro-section h2 {
    font-size: 42px;
  }
  
  .fabrik-intro-section p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .fabrik-intro-section {
    padding: 40px 0 20px;
  }
  
  .fabrik-intro-section h2 {
    font-size: 34px;
  }
  
  .fabrik-intro-section p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .fabrik-intro-section h2 {
    font-size: 28px;
  }
  
  .intro-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
}
  
  .fabrik-features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .feature-header h3 {
    font-size: 22px;
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
  }
  
  .feature-content ul {
    grid-template-columns: 1fr;
  }
  
  .fabrik-feature.active .feature-content {
    padding: 25px;
  }
  
  .fabrik-module-section-title {
    font-size: 40px;
  }
  
  .fabrik-module-section-subtitle {
    font-size: 1rem;
  }
  
  .fabrik-module-section-header {
    margin-bottom: 30px;
  }

  .fabrik-module-products-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .fabrik-module-product-card {
    max-width: 100%;
  }
  
  .fabrik-module-buttons-extra {
    flex-direction: column;
  }
  
  /* Nascondi il modal su mobile */
  .fabrik-module-modal-overlay {
    display: none;
  }
}

@media (max-width: 576px) {
  .fabrik-hero {
    padding: 30px 0 40px;
  }
  
  .version-tag {
    right: -25px;
    top: 2px;
    transform: rotate(3deg) scale(0.7);
  }
  
  .text-highlight::after {
    height: 8px;
    bottom: 5px;
  }
  
  .display-1 {
    font-size: calc(1.5rem + 4vw);
    margin-top: 10px;
  }
  
  .btn-lg {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem !important;
  }
  
  .stat-title {
    font-size: 1rem;
  }
  
  .stat-value p {
    font-size: 1.5rem;
  }
  
  .stat-box {
    padding: 1rem;
  }
  
  .computer-mockup {
    margin-top: 1.5rem;
    transform: scale(0.95);
  }
  
  .stat-icon {
    width: 45px;
    height: 45px;
  }
  

  
  .feature-icon {
    width: 70px;
    height: 70px;
    margin-right: 15px;
  }
  
  .feature-header h3 {
    font-size: 20px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .fabrik-module-section-title {
    font-size: 32px;
  }
}
@media (max-width: 992px) {
  .fabrik-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .fabrik-features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .fabrik-feature.active .feature-content {
    padding: 25px;
  }
  
  .feature-content ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fabrik-features-grid {
    grid-template-columns: 1fr;
  }
  
  .fabrik-cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
}