/* Responsive Styles per Tuttostampa */

/* Tablet e dispositivi di medie dimensioni */
@media screen and (max-width: 992px) {
  /* Header */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  /* Hero Section */
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  /* About Section */
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  /* Timeline */
  .timeline:before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-date {
    left: 0 !important;
    right: auto !important;
    top: -40px;
    width: auto;
  }
}

/* Smartphone e dispositivi di piccole dimensioni */
@media screen and (max-width: 768px) {
  /* Typography */
  h1, .hero-title {
    font-size: 2.2rem;
  }
  
  h2, .section-title h2 {
    font-size: 1.8rem;
  }
  
  /* Sections */
  .section {
    padding: 60px 0;
  }
  
  /* Services & Products Grid */
  .services-grid, .products-grid, .catalog-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* CTA Section */
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-about {
    grid-column: span 1;
  }
  
  /* Buttons */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Form */
  .form-row {
    flex-direction: column;
  }
  
  /* Preventivi Page */
  .preventivi .row {
    flex-direction: column;
  }
  
  .preventivi-info, .preventivi-form {
    margin-bottom: 30px;
  }
}

/* Dispositivi molto piccoli */
@media screen and (max-width: 480px) {
  /* Header */
  .logo img {
    max-height: 40px;
  }
  
  /* Typography */
  h1, .hero-title {
    font-size: 1.8rem;
  }
  
  h2, .section-title h2 {
    font-size: 1.5rem;
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  /* Service & Product Cards */
  .service-card, .product-card {
    margin-bottom: 20px;
  }
  
  /* Footer */
  .footer {
    padding: 50px 0 20px;
  }
}

/* Animazioni responsive */
@media (prefers-reduced-motion: reduce) {
  .animate-fadeIn {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}
