
/* ===========================
   DESKTOP PICCOLO - 1200px
=========================== */
@media (max-width: 1200px) {
  .timeline-image {
    width: 40%;
  }
  
  .timeline-content {
    width: 48%;
  }

  .dati-header .heading-secondary {
    font-size: 3.5rem;
  }

  .dati-content {
    gap: 4rem;
  }

  .dati-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .soluzioni-grid {
    grid-template-columns: repeat(3, 1fr);
  }
    .timeline-image img{
      width: 80%;
      max-width: 500px;
}
}

/* ===========================
   TABLET LANDSCAPE - 944px
=========================== */
@media (max-width: 944px) {
  html {
    font-size: 50.25%;
  }

  .header {
    padding: 0 3rem;
  }

  /* === MOBILE NAV === */
  .btn-mobile-nav {
    display: flex;
  }

  .hamburger span {
    transform-origin: center;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, #002f5d 0%, #001f3d 100%);
    padding: 12rem 2rem 4rem 2rem;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .header.nav-open .main-nav {
    right: 0;
  }

  .main-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    padding: 0 2rem;
    margin-bottom: 0;
  }

  .header.nav-open .main-nav-list li {
    animation: slideInFromRight 0.4s ease forwards;
  }

  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .main-nav-link {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
  }

  .main-nav-link.home {
    color: var(--color-white);
  }

  .main-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  }

  .nav-cta {
    background-color: var(--color-accent);
    padding: 1.6rem 3.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 183, 255, 0.4);
    margin-top: 2rem;
  }

  .nav-cta:hover {
    background-color: #fff;
    color: var(--color-primary);
    transform: translateX(0) scale(1.08);
  }

  /* Mobile Footer */
  .mobile-nav-footer {
    display: block;
    padding-top: 7rem;
    margin-top: auto;
    margin-bottom: 130px;
  }

  .mobile-nav-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .mobile-social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .mobile-social-link svg {
    width: 22px;
    height: 22px;
    fill: white;
    transition: transform 0.3s ease;
  }

  .mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .mobile-social-link:hover svg {
    transform: scale(1.1);
  }

  .mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .mobile-contact-link svg {
    flex-shrink: 0;
  }

  .mobile-contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
  }

  /* Overlay */
  .nav-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(3px);
  }

  /* === LAYOUT === */
  .hero {
    grid-template-columns: 1fr;
    gap: 6rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .dati-content {
    display: flex;
    justify-content: center;
  }

  .dati-image img {
    max-width: 320px;
  }

  /* === TIMELINE === */
  .timeline::before {
    left: 50px;
  }
  .timeline-icon {
    left: 50px;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -450%);
  }

  .timeline-icon ion-icon {
    font-size: 3.5rem;
  }

  .timeline-content {
    width: calc(100% - 240px);
    margin-left: 120px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::before {
    left: -25px;
    right: auto;
    border-width: 25px 25px 25px 0;
    border-color: transparent white transparent transparent;
  }

  .timeline-image {
    position: static;
    width: calc(100% - 140px);
    margin: 3rem 0 0 120px;
    transform: none;
  }

  .timeline-item:hover .timeline-image {
    transform: scale(1.03);
  }

  /* === PRODOTTI === */
  .prodotti-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .soluzioni-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* === MISC === */
  .checkbox label {
    font-size: 1.6rem;
  }
    .timeline-image img{
    width: 100%;
}
}

/* ===========================
   TABLET - 768px - 1024px
=========================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .solution-item {
    display: flex;
  }

  .step-text-box {
    margin-left: 25%;
  }

  .pricing-container {
    grid-template-columns: 1fr;
    width: 650px;
  }

  .contact-form-box {
    padding: 3rem 3rem;
    width: auto;
  }

  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .grid--footer {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline-icon {
    transform: translate(-50%, -50%);
  }

  .section-hero {
    padding-top: 20px;
    padding-bottom: 27px;
  }

  .icon-wrapper {
    margin-bottom: 10px;
  }
  .prodotti-grid{
    grid-template-columns: repeat(2, 1fr);
  }
    .contact-form-box {
    padding: 3rem 3rem;
    width: auto;
    margin-left: 5rem;
  }
  .logo-col {
    display: flex;
    align-items: center;
    margin-left: -10rem;
  }
  
    }
    .timeline-image img{
    width: 100%;
  }



/* ===========================
   MOBILE - 768px
=========================== */
@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  .footer-logo img:first-child {
    height: 100px;
  }
  .footer-logo img:last-child {
    height: 60px;
  }
  
  .footer-logo {
    gap: 1.5rem;
  }
  /* === HEADER === */
  .header {
    height: 7rem;
    padding: 0 2.4rem;
  }

  .logo {
    height: 50px;
  }

  .sticky .header {
    height: 7rem;
  }

  /* === TYPOGRAPHY === */
  .heading-primary {
    font-size: 3rem;
  }

  .heading-secondary {
    font-size: 2.5rem;
  }

  /* === HERO === */
  .section-hero {
    padding: 2rem 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    display: flex;
    flex-direction: column;
  }

  .hero-description {
    font-size: 2rem;
    margin-top: 3rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-text-box {
      display: flex;
    flex-direction: column;
  }
  .hero-img-box {
    order: 1; /* Immagine va prima */
    margin-bottom: 2rem;
  }


  /* === BUTTONS === */
  .btn {
    font-size: 1.4rem;
    padding: 1.2rem 2.4rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    margin-right: 0;
  }

  /* === GRID === */
  .grid {
    gap: 4rem;
  }

  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  /* === EVENT CARD === */
  .event-card {
    width: 100%;
    max-width: none;
    margin: 0 auto 3rem auto;
    padding: 1.6rem;
    border-radius: 0;
  }

  /* === CONTAINER === */
  .container {
    width: 92%;
  }

  /* === SECTIONS === */
  .section-featured,
  .section-vantaggi,
  .section-how {
    padding: 6rem 0;
  }

  /* === DATI === */
  .section-dati {
    padding: 5rem 0;
  }

  .icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .icon-wrapper ion-icon {
    font-size: 4rem;
  }

  .dati-header .heading-secondary {
    font-size: 3rem;
  }

  .subheading-intro {
    font-size: 1.7rem;
  }

  .dati-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    flex-direction: column;
    text-align: center;
  }

  .dati-text {
    padding: 0;
  }

  .dati-image img {
    width: 100%;
    max-width: 500px;
  }

  .dati-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .feature-number {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .feature-card h3 {
    font-size: 2rem;
  }

  .feature-card p {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  .stat-icon {
    font-size: 4rem;
  }

  .btn-cta {
    padding: 1.6rem 3rem;
    font-size: 1.6rem;
  }

  /* === TIMELINE === */
  .section-timeline {
    padding: 6rem 0;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-icon {
    left: 30px;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -450%);
  }

  .timeline-icon ion-icon {
    font-size: 2.8rem;
  }

  .timeline-content {
    width: calc(100% - 100px);
    margin-left: 90px !important;
    padding: 3rem 2rem;
  }

  .timeline-badge {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    left: 2rem;
  }

  .timeline-title {
    font-size: 2.4rem;
  }

  .timeline-description {
    font-size: 1.6rem;
  }

  .timeline-image {
    width: calc(100% - 100px);
    margin-left: 80px;
  }

  .timeline-image img {
    width: 110%;
    max-width: none;
    margin-left: -5%;
  }

  .timeline-item {
    margin-bottom: 6rem;
  }

  /* === SOLUZIONI === */
  .section-how .grid {
    display: block;
  }

  .solution-item {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 6rem;
  }

  .solution-item .step-img-box {
    order: 1;
  }

  .solution-item .step-text-box {
    order: 2;
    text-align: center;
  }

  .step-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .step-number {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .soluzioni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .soluzione-card {
    padding: 3rem 1.5rem;
  }

  .soluzione-icon {
    width: 6rem;
    height: 6rem;
  }

  .soluzione-title {
    font-size: 1.7rem;
  }
  .timeline-image img {
    width: 90%;
}
.logo-col {
  display: flex;
  align-items: center;
  margin-left: -3rem;
}

  /* === FEATURES === */
  .feature img {
    height: 120px;
    width: 120px;
  }

  .feature-text {
    font-size: 1.7rem;
  }

  /* === SUITE === */
  .suite-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .suite-card {
    padding: 3rem 2rem;
    cursor: pointer;
  }

  .suite-card:last-child {
    grid-column: 1;
  }

  .suite-icon-box {
    width: 140px;
    height: 140px;
  }

  .suite-icon-box img {
    width: 170px;
    height: 170px;
  }

  .suite-card .heading-tertiary {
    font-size: 2rem;
  }

  /* === PRODOTTI === */
  .prodotti-grid {
    grid-template-columns: 1fr;
  }

  /* === PRICING === */
  .pricing-container {
    grid-template-columns: 1fr;
    max-width: 650px; /* Limita larghezza */
    margin: 0 auto;
    padding: 2rem;
  }

  .pricing-card {
    padding: 3.5rem 3rem;
  }

  /* === CONTACT === */
  .contact-form-box {
    padding: 3rem 2rem;
    width: auto;
  }

  .contact-info {
    font-size: 1.5rem;
  }

  /* === FOOTER === */
  .grid--footer {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer {
    padding: 6rem 0 10rem;
  }

  .footer-logo img {
    height: 90px;
    margin-left: 100px;
  }

  .address-col {
    margin-left: 15px;
  }

  .nav-col {
    margin-left: 20px;
  }

  .footer-bottom {
    margin-left: -20px;
  }

  /* === MOBILE NAV === */
  .mobile-social-link {
    width: 40px;
    height: 40px;
  }

  .mobile-social-link svg {
    width: 20px;
    height: 20px;
  }

  .mobile-contact-link {
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
  }
  .prodotto-card .prodotto-features li{
    font-size: 1.3rem;
    gap: 1rem;
  }
}

/* ===========================
   MOBILE SMALL - 544px
=========================== */
@media (max-width: 544px) {
  html {
    font-size: 43.75%;
  }

  .container {
    width: 95%;
  }

  .header {
    padding: 0 1.6rem;
  }

  .heading-primary {
    font-size: 2.6rem;
  }

  .main-nav {
    width: 90%;
  }

  /* === EVENT === */
  .event-card {
    width: 105%;
    padding: 3.2rem;
  }

  /* === HERO === */
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.a;
    
  }

  .hero-dynamic {
    font-size: 2rem;
  }

  .hero-description.info {
    text-align: center;
    font-size: 2.2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* === DATI === */
  .dati-content {
    flex-direction: column;
    text-align: center;
  }

  .dati-image img {
    max-width: 320px;
  }

  /* === MODAL === */
  .modal-content {
    width: 349px;
  }

  .modal-content h2 {
    padding: 2rem;
  }

  /* === SOLUZIONI === */
  .soluzioni-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* === PRODOTTI === */
  .prodotti-grid {
    grid-template-columns: 1fr;
  }

  /* === PRICING === */
  .pricing-container {
    grid-template-columns: 1fr;
    width: 360px;
  }

  /* === CONTACT === */
  .section-contatti {
    padding: 7rem 2rem;
  }

  .contact-info {
    font-size: 1.6rem;
  }

  .contact-info strong {
    font-size: 1.5rem;
  }

  .contact-info a {
    font-size: 1.7rem;
  }

  /* === TIMELINE === */
  .timeline-icon {
    transform: translate(-50%, -250%);
  }
  .timeline-image img{
    width: 100%;
}
.prodotto-card .prodotto-features li{
  font-size: 1.3rem;
  gap: 1rem;
}
}

/* ===========================
   MOBILE EXTRA SMALL - 480px
=========================== */
@media (max-width: 480px) {
  .dati-header .heading-secondary {
    font-size: 2.7rem;
  }

  .subheading-intro {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .stat-card {
    padding: 2.5rem 1.5rem;
  }
    .timeline-image img{
    width: 100%;
}
.prodotto-card .prodotto-features li{
  font-size: 1.3rem;
  gap: 1rem;
}
}