/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Desktop Large (1440px+) - Default styles */

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) {
  .container {
    max-width: 1024px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  :root {
    --header-height: 70px;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .container {
    max-width: 100%;
    padding: 0 var(--space-md);
  }

  /* Header & Navigation */
  .nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav__link {
    width: 100%;
    padding: var(--space-sm) 0;
  }

  .hamburger {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Hero */
  .hero__content {
    padding: var(--space-lg) 0;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 400px;
  }

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

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Technology */
  .technology__grid {
    grid-template-columns: 1fr;
  }

  /* Booking Methods */
  .booking-methods {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
  :root {
    --header-height: 60px;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --container-padding: 1.5rem;
  }

  /* Header */
  .header__content {
    height: var(--header-height);
  }

  .logo img {
    height: 40px;
  }

  .nav {
    width: 100%;
    right: -100%;
  }

  .btn--phone {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .hero__description {
    font-size: 1.125rem;
  }

  .hero__scroll {
    display: none;
  }

  /* Section */
  section {
    padding: var(--space-lg) 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Stats */
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-card__number {
    font-size: 2rem;
  }

  .stat-card__label {
    font-size: 0.875rem;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-md);
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
  }

  .service-card__icon svg {
    width: 32px;
    height: 32px;
  }

  /* Technology */
  .tech-item__image {
    height: 200px;
  }

  /* Booking Methods */
  .method-card {
    padding: var(--space-md);
  }

  .method-card__icon {
    width: 80px;
    height: 80px;
  }

  .method-card__icon svg {
    width: 48px;
    height: 48px;
  }

  .method-card h3 {
    font-size: 1.5rem;
  }

  /* Special Cards */
  .special-card {
    padding: var(--space-md);
  }

  .special-icon {
    width: 60px;
    height: 60px;
  }

  .special-icon svg {
    width: 32px;
    height: 32px;
  }

  /* CTA Section */
  .cta-box h2 {
    font-size: 1.75rem;
  }

  .cta-box p {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__section--brand {
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto var(--space-md);
  }

  .footer__social {
    justify-content: center;
  }

  .footer__section h4 {
    font-size: 1.125rem;
  }

  /* Alerts */
  .alert {
    flex-direction: column;
    text-align: center;
  }

  /* Buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn--large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
  :root {
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --container-padding: 1rem;
  }

  .container {
    padding: 0 var(--container-padding);
  }

  /* Hero */
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__cta {
    gap: var(--space-sm);
  }

  /* Section */
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  /* Stats */
  .stat-card__number {
    font-size: 1.75rem;
  }

  .stat-card__label {
    font-size: 0.8125rem;
  }

  /* Service Cards */
  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-card p {
    font-size: 0.9375rem;
  }

  /* Method Cards */
  .method-card__number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .method-card__icon {
    width: 70px;
    height: 70px;
  }

  .method-card h3 {
    font-size: 1.25rem;
  }

  .method-card p {
    font-size: 0.9375rem;
  }

  /* CTA */
  .cta-box h2 {
    font-size: 1.5rem;
  }

  .cta-box p {
    font-size: 1rem;
  }

  /* Footer */
  .footer__legal {
    font-size: 0.8125rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .hero__scroll,
  .cta-section,
  .hamburger,
  .mobile-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .hero {
    margin-top: 0;
    min-height: auto;
    page-break-after: avoid;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Landscape Orientation */
@media (max-width: 1023px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  .hero__scroll {
    display: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__scroll {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #51AFDA; /* Sostituito blu scuro con azzurro */
    --text-primary: #000;
    --text-secondary: #2c3e50;
    --border-color: #000;
  }

  .btn {
    border-width: 3px;
  }

  .service-card,
  .tech-item,
  .method-card,
  .special-card {
    border: 2px solid #000;
  }
}
