/* ===================
   Responsive Breakpoints
   =================== */

/* Large screens (max 1200px) */
@media (max-width: 1200px) {
  .product-card {
    flex: 0 0 33.333%;
    min-width: 33.333%;
  }
}

/* Tablet and small laptop (max 992px) */
@media (max-width: 992px) {
  /* Header */
  .header-container {
    justify-content: space-between !important;
    align-items: center;
    padding: 0.5rem 0;
  }
  .logo {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px;
  }
  .logo img {
    height: 50px;
    margin-left: 0 !important;
  }
  .mobile-toggle {
    display: block !important;
    position: relative;
    margin-right: 15px;
    z-index: 1101;
  }

  /* Menu morph e mobile nav */
  .nav-morph {
    width: 80vw;
    max-width: 80vw;
    position: fixed;
    top: 80px;
    left: -100vw;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    transition: left 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1100;
  }
  .nav-morph.active {
    left: 0;
  }
  .menu-morph {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  /* Morph dropdown content */
  .morph-content {
    width: 90vw;
    max-width: 600px;
    grid-template-columns: 1fr;
    gap: 15px;
    position: static;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0.5rem;
    border: none;
  }
  .dropdown-morph .morph-content {
    display: none;
  }
  .dropdown-morph.active .morph-content {
    display: block;
    padding: 0;
  }
  .morph-item {
    opacity: 1;
    transform: none;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: none;
  }
  .morph-icon {
    position: static;
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    vertical-align: middle;
  }
  .morph-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    display: inline-block;
    vertical-align: middle;
  }
  .morph-item p {
    font-size: 0.9rem;
    margin-left: 2.2rem;
  }
  .morph-sub-items {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    margin-left: 2.2rem;
  }
  .morph-sub-item {
    padding: 0.5rem 0;
    border-bottom: none;
  }

  /* Products Carousel */
  .product-card {
    flex: 0 0 50%;
    min-width: 50%;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smartphone e mobile (max 768px) */
@media (max-width: 768px) {
  /* Header, menu e morph ancora più compatti */
  .header-container {
    padding: 0.5rem 0;
  }
  .logo {
    padding-left: 10px;
  }
  .logo img {
    height: 50px;
  }
  .mobile-toggle {
    display: block !important;
    margin-right: 15px;
    z-index: 1101;
  }
  .nav-morph {
    width: 80vw;
    max-width: 80vw;
    position: fixed;
    top: 80px;
    left: -100vw;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    transition: left 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1100;
  }
  .nav-morph.active {
    left: 0;
  }
  .menu-morph {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }
  body {
    overflow-x: hidden !important;
  }
  .morph-content {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0.5rem;
    border: none;
    gap: 0;
  }
  .dropdown-morph .morph-content {
    display: none;
  }
  .dropdown-morph.active .morph-content {
    display: block;
    padding: 0;
  }
  .morph-item {
    opacity: 1;
    transform: none;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
  }
  .morph-item:hover {
    transform: none;
    box-shadow: none;
  }
  .morph-icon {
    position: static;
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    vertical-align: middle;
  }
  .morph-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    display: inline-block;
    vertical-align: middle;
  }
  .morph-item p {
    font-size: 0.9rem;
    margin-left: 2.2rem;
  }
  .morph-sub-items {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    margin-left: 2.2rem;
  }
  .morph-sub-item {
    padding: 0.5rem 0;
    border-bottom: none;
  }
  .cta {
    padding: 4rem 0;
    margin-top: 2rem;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-subtitle {
    font-size: 1.1rem;
  }
  .cta .btn-outline {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

/* Smartphone molto piccoli (max 576px) */
@media (max-width: 576px) {
  .header-container {
    padding: 0.8rem 0;
  }
  .logo img {
    height: 50px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
 }
