/* G Tech Group - Custom Branding CSS */

/* Import Google Fonts - Poppins per titoli, Lato per testo */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ========== NASCONDE SEZIONI HOMEPAGE GREENLIGHT ========== */
/* Nasconde la hero section e le feature cards della homepage */
.wide-white,
#homepage-hero,
.row:has(#homepage-hero),
.row:has(.wide-white),
/* Nasconde la riga con le feature cards (quella con h4 "Come funziona") */
.row:has(> h4.text-muted),
.row > h4.text-muted.text-uppercase,
/* Nasconde le card delle feature */
.row:has(.card .hi-s) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Rimuove lo spazio bianco della homepage */
.regular-height {
  min-height: 0 !important;
}

/* Nasconde il vecchio footer di Greenlight */
#footer {
  display: none !important;
}

/* Root Variables - G Tech Group Color Palette */
:root {
  --gtech-primary: #5e91d0;
  --gtech-secondary: #264573;
  --gtech-text: #000222;
  --gtech-primary-light: #7ba8dd;
  --gtech-primary-dark: #4a7ab8;
  --gtech-accent: #5e91d0;
  --gtech-gradient-start: #264573;
  --gtech-gradient-end: #5e91d0;
  --gtech-success: #10b981;
  --gtech-bg-light: #f8fafc;
  --gtech-text-muted: #64748b;
  --gtech-footer-bg: #264573;
}

/* Global Styles */
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--gtech-text) !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Poppins', sans-serif !important;
}

/* Titoli su sfondo chiaro */
section:not([style*="gradient"]) h1,
section:not([style*="gradient"]) h2,
section:not([style*="gradient"]) h3 {
  color: var(--gtech-text) !important;
}

/* Titoli su sfondo scuro/gradient - forza bianco */
section[style*="gradient"] h1,
section[style*="gradient"] h2,
section[style*="gradient"] h3,
#homepage-hero h1,
footer h4 {
  color: #ffffff !important;
}

/* Hero Section Enhancement */
#homepage-hero {
  background: linear-gradient(135deg, var(--gtech-secondary) 0%, var(--gtech-primary) 100%);
  padding: 60px 40px;
  border-radius: 24px;
  color: white;
  margin: 20px 0;
  box-shadow: 0 20px 60px rgba(38, 69, 115, 0.3);
  position: relative;
  overflow: hidden;
}

#homepage-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

#homepage-hero h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 2.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  color: white !important;
}

#homepage-hero p {
  font-family: 'Lato', sans-serif !important;
  color: rgba(255,255,255,0.95) !important;
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
  max-width: 700px;
}

#homepage-hero a {
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  margin-top: 20px;
  border: 2px solid rgba(255,255,255,0.3);
}

#homepage-hero a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(5px);
}

/* Feature Cards */
.card {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  overflow: hidden;
  background: white !important;
}

.card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(38, 69, 115, 0.15) !important;
}

.card-body {
  padding: 30px !important;
}

.card-title, .card h5 {
  font-family: 'Poppins', sans-serif !important;
  color: var(--gtech-text) !important;
}

.card-text, .card p {
  font-family: 'Lato', sans-serif !important;
}

/* Icon containers in feature cards */
.card .rounded-circle {
  background: linear-gradient(135deg, var(--gtech-secondary) 0%, var(--gtech-primary) 100%) !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 20px rgba(94, 145, 208, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--gtech-secondary) 0%, var(--gtech-primary) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(38, 69, 115, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(38, 69, 115, 0.4) !important;
  background: linear-gradient(135deg, var(--gtech-primary) 0%, var(--gtech-secondary) 100%) !important;
}

.btn-outline-primary {
  border: 2px solid var(--gtech-primary) !important;
  color: var(--gtech-primary) !important;
  border-radius: 12px !important;
  padding: 10px 26px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
  background: var(--gtech-primary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* Navbar */
.navbar {
  background: white !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
  padding: 15px 0 !important;
}

.navbar-brand img {
  max-height: 45px;
}

.navbar a, .nav-link {
  font-family: 'Lato', sans-serif !important;
  color: var(--gtech-text) !important;
}

/* Forms */
.form-control {
  font-family: 'Lato', sans-serif !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  color: var(--gtech-text) !important;
}

.form-control:focus {
  border-color: var(--gtech-primary) !important;
  box-shadow: 0 0 0 4px rgba(94, 145, 208, 0.15) !important;
}

.form-label {
  font-family: 'Poppins', sans-serif !important;
  color: var(--gtech-text) !important;
}

/* Section titles */
h4.text-muted {
  font-family: 'Poppins', sans-serif !important;
  color: var(--gtech-secondary) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 2px !important;
  position: relative;
  padding-bottom: 15px;
}

h4.text-muted::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gtech-primary), var(--gtech-secondary));
  border-radius: 2px;
}

/* Wide white section */
.wide-white {
  background: linear-gradient(180deg, var(--gtech-bg-light) 0%, white 100%);
  padding: 40px 0;
}

/* Custom Footer - G Tech Group */
footer, .footer {
  background: var(--gtech-footer-bg) !important;
  color: rgba(255,255,255,0.9) !important;
  padding: 40px 0 20px !important;
}

footer a, .footer a {
  color: var(--gtech-primary-light) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

footer a:hover, .footer a:hover {
  color: white !important;
}

/* Modal styling */
.modal-content {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2) !important;
}

.modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 25px 30px !important;
}

.modal-header .modal-title {
  font-family: 'Poppins', sans-serif !important;
}

.modal-body {
  padding: 30px !important;
  font-family: 'Lato', sans-serif !important;
}

/* Toast notifications */
.Toastify__toast {
  font-family: 'Lato', sans-serif !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

/* Room cards */
.room-card {
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
}

.room-card:hover {
  transform: scale(1.02) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#homepage-hero, .card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  #homepage-hero {
    padding: 40px 25px;
    border-radius: 16px;
  }

  #homepage-hero h1 {
    font-size: 2rem !important;
  }

  .card-body {
    padding: 20px !important;
  }

  .gtech-footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}

/* Hide BigBlueButton references */
a[href*="bigbluebutton.org"] {
  display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--gtech-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gtech-secondary);
}

/* Selection color */
::selection {
  background: var(--gtech-primary);
  color: white;
}

/* Links */
a {
  color: var(--gtech-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gtech-secondary);
}

/* Tables */
.table {
  font-family: 'Lato', sans-serif !important;
}

.table th {
  font-family: 'Poppins', sans-serif !important;
  color: var(--gtech-secondary) !important;
}

/* Badge/Pills */
.badge {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
}

.badge.bg-primary, .bg-primary {
  background: var(--gtech-primary) !important;
}

/* Alert boxes */
.alert {
  font-family: 'Lato', sans-serif !important;
  border-radius: 12px !important;
}

/* Dropdown menus */
.dropdown-menu {
  font-family: 'Lato', sans-serif !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
  border: none !important;
}

.dropdown-item:hover {
  background: var(--gtech-bg-light) !important;
  color: var(--gtech-primary) !important;
}

/* Custom Footer Section - Injected via CSS */
body::after {
  content: '';
  display: block;
}

/* Fix text colors in light backgrounds */
.text-muted {
  color: var(--gtech-text-muted) !important;
}

/* Primary color overrides for Bootstrap */
.text-primary {
  color: var(--gtech-primary) !important;
}

.border-primary {
  border-color: var(--gtech-primary) !important;
}

/* Focus states */
*:focus {
  outline-color: var(--gtech-primary) !important;
}

.form-check-input:checked {
  background-color: var(--gtech-primary) !important;
  border-color: var(--gtech-primary) !important;
}

/* Progress bars */
.progress-bar {
  background-color: var(--gtech-primary) !important;
}

/* Pagination */
.page-link {
  color: var(--gtech-primary) !important;
}

.page-item.active .page-link {
  background-color: var(--gtech-primary) !important;
  border-color: var(--gtech-primary) !important;
}
