/* RemoteWork Italia - Stile principale
-------------------------------------------------- */

:root {
  --primary-color: #4285F4;
  --secondary-color: #0F9D58;
  --accent-color: #DB4437;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #212529;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Stili generali */
body {
  font-family: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f5f7fa;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: #1a73e8;
  text-decoration: none;
}

.btn {
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1a73e8;
  border-color: #1a73e8;
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #0c8048;
  border-color: #0c8048;
}

.btn-danger {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-danger:hover {
  background-color: #c13728;
  border-color: #c13728;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Stili per il navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background-color: white;
  padding: 1rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(66, 133, 244, 0.08);
}

.nav-notification {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
}

/* Hero section */
.hero {
  background: linear-gradient(to right, rgba(66, 133, 244, 0.9), rgba(15, 157, 88, 0.85)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  color: white;
  margin-bottom: 3rem;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--box-shadow);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Search form */
.search-form {
  background-color: white;
  padding: 2rem;
  margin-top: -5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 3rem;
}

/* Category cards */
.category-card {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.category-card .category-icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.category-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.category-card:hover .category-icon {
  transform: scale(1.2);
}

/* Testimonials */
.testimonial-card {
  padding: 1.5rem;
  margin: 1rem 0.5rem 2rem;
  text-align: center;
}

.testimonial-content {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
}

.testimonial-content:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  margin-left: -20px;
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #f9f9f9 transparent;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid white;
  box-shadow: var(--box-shadow);
}

.testimonial-author h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* How it works section */
.steps-section {
  margin: 4rem 0;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(66, 133, 244, 0.15);
  color: var(--primary-color);
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Job cards */
.job-card {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.job-card .company-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  padding: 0.5rem;
  background-color: white;
  border: 1px solid #eee;
}

.job-card .job-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}

.job-card .company-name {
  color: var(--gray-color);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.job-card .job-meta span {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.job-card .job-meta i {
  margin-right: 0.5rem;
}

.job-card .job-salary {
  font-weight: 700;
  color: var(--success-color);
}

/* Footer */
.footer {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #e2e8f0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 0.5rem;
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Utility classes */
.category-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: rgba(66, 133, 244, 0.15);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.category-pill:hover {
  background-color: var(--primary-color);
  color: white;
}

.rating-stars {
  color: #ffc107;
}

/* Responsiveness */
@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .search-form {
    margin-top: -2rem;
    padding: 1.5rem;
  }
  
  .category-card, .step-card {
    margin-bottom: 1rem;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Fullscreen Hero Section */
.fullscreen-hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/remote-work-hero.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  margin-bottom: 6rem;
  position: relative;
}

.hero-content {
  z-index: 10;
  position: relative;
}

.fullscreen-hero h1 {
  font-size: 3.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.fullscreen-hero p {
  font-size: 1.4rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for fullscreen hero */
@media (max-width: 992px) {
  .fullscreen-hero {
    height: auto;
    min-height: 80vh;
    padding: 5rem 0;
  }
  
  .fullscreen-hero h1 {
    font-size: 2.5rem;
  }
  
  .fullscreen-hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .fullscreen-hero {
    min-height: 70vh;
    padding: 4rem 0;
  }
  
  .fullscreen-hero h1 {
    font-size: 2rem;
  }
  
  .fullscreen-hero p {
    font-size: 1.1rem;
  }
}

/* Additional Responsive Improvements */
@media (max-width: 480px) {
  /* Migliora la visualizzazione su dispositivi molto piccoli */
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .job-card {
    padding: 1rem;
  }
  
  .search-form {
    padding: 1rem;
    margin-top: -1.5rem;
  }
  
  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .category-card {
    padding: 1.5rem 0.75rem;
  }
  
  .testimonial-card {
    padding: 1rem 0.5rem;
  }
  
  /* Miglioramenti per form su dispositivi piccoli */
  input, select, textarea, .form-control {
    font-size: 16px !important; /* Previene lo zoom automatico sui dispositivi iOS */
  }
  
  /* Tabelle responsive */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Migliorie per dispositivi di dimensioni medie */
@media (min-width: 481px) and (max-width: 767px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .step-icon {
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
  }
}

/* Stampa */
@media print {
  .navbar, .footer, .btn, .search-form, .action-buttons {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    font-size: 12pt;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}

/* Migliorie per l'accessibilità */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body.enable-dark-mode {
    background-color: #121212;
    color: #e0e0e0;
  }
  
  body.enable-dark-mode .card,
  body.enable-dark-mode .navbar,
  body.enable-dark-mode .search-form {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
  
  body.enable-dark-mode .navbar-nav .nav-link {
    color: #e0e0e0;
  }
  
  body.enable-dark-mode .testimonial-content {
    background-color: #2d2d2d;
  }
  
  body.enable-dark-mode .testimonial-content:after {
    border-color: #2d2d2d transparent;
  }
}
